AI-Powered
3D Print Design

Your printer just got a design partner

/// What is this?

An AI agent that designs 3D-printable objects from your descriptions. You tell it what you want โ€” "a wall bracket for a 22mm pipe" or "a cable organizer for my desk" โ€” and it writes the CAD code, renders a preview, checks its own work, and iterates until the model is ready to slice and print.

It's not magic โ€” you'll still supply real-world measurements and review the designs โ€” but it turns hours of manual CAD into minutes of conversation.

/// How it works

You describe what you want
โ–ผ
AI writes OpenSCAD code (parametric, editable)
โ–ผ
Code compiles into a 3D model
โ–ผ
AI renders a preview, inspects it, fixes issues
โ–ผ
You review โ†’ iterate if needed
โ–ผ
Export STL โ†’ slicer โ†’ print

The AI doesn't generate a mesh blob โ€” it writes real parametric code with actual dimensions you can read and tweak. If a wall should be 2mm thicker, change one number and re-render.

/// Setup ยท 15 minutes

01 โ€” Install OpenSCAD

Download from openscad.org/downloads โ€” free, runs on Windows/macOS/Linux. Make sure openscad is on your PATH.

02 โ€” Install Claude Code

npm install -g @anthropic-ai/claude-code

You'll need a Claude Pro subscription ($20/mo) โ€” this is the AI engine. Sign up at claude.ai.

03 โ€” Clone the agent

git clone https://github.com/iancanderson/openscad-agent.git
cd openscad-agent

That's it. Three skills + a CLAUDE.md. You're ready.

/// First design session

Start Claude Code in the openscad-agent directory:

cd openscad-agent
claude

Then talk to it:

/openscad Make a wall-mounted hook for a 25mm diameter pipe.
The hook should be open at the top so the pipe drops in.
Wall mounting plate: 40mm wide, 60mm tall, two M4 screw holes.
Material: PLA, so keep walls at least 2mm thick.

What happens:

  1. Agent writes wall_hook_001.scad
  2. Renders wall_hook_001.png and inspects it
  3. Iterates to _002, _003... until correct
  4. Asks you to review the render

Your job: Look at the PNG. Wrong? Say "screw holes should be 30mm apart, not 20mm" and it fixes. When satisfied:

/export-stl

Validates geometry (manifold, no holes, no floaters) โ†’ open in slicer โ†’ print.

/// Example prompts

/// Pro tips

โšก Supply critical dimensions yourself. Measure with calipers. Say "the shaft is exactly 6.1mm, I measured it" โ€” don't let the AI guess.
๐Ÿ‘๏ธ Read every render like you're trying to break it. Parts can pass all checks and still be on the wrong axis or floating in mid-air.
๐Ÿ“ Walls โ‰ฅ 1.2mm (3ร— nozzle for 0.4mm). Tell the agent: "walls at least 2mm thick."
๐Ÿ“ The 45ยฐ rule. Overhangs past 45ยฐ need supports. Want support-free? Say so in the prompt.
๐Ÿ”„ Iterate, don't restart. Files are versioned. "Make the hole 6.5mm instead of 6mm" beats re-describing everything.

/// Level up: ClawSCAD

A desktop app with a live 3D viewport, checkpoint branching, and auto-error feedback:

git clone https://github.com/levkropp/ClawSCAD.git
cd ClawSCAD && npm install && npm start

/// Bonus: Artistic prints

For figurines, miniatures, terrain โ€” use text-to-mesh AI:

Generate โ†’ Repair Printability โ†’ export STL โ†’ slice โ†’ print.

โš ๏ธ Mesh repair is almost always needed. Meshy's built-in repair handles ~97% of figurines. For the rest: Blender + 3D Print Toolbox (free, blender.org).

/// Quick reference

ResourceLink
OpenSCADopenscad.org/downloads
Claude Codenpm install -g @anthropic-ai/claude-code
openscad-agentgithub.com/iancanderson/openscad-agent
ClawSCADgithub.com/levkropp/ClawSCAD
Meshymeshy.ai
Tripotripo3d.ai
Blenderblender.org