Let Agents WorkCAD

Free guide

Text-to-CAD with Claude Code

Generate functional 3D printing parts using plain English and AI.

What You Need


Step-by-Step Guide

Step 1: Install OpenSCAD

Download and install OpenSCAD for your operating system. Leave it closed for now. Claude will handle the code.

Step 2: Install Claude Code

Open your terminal and run the following command to install Claude Code globally:

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

Step 3: Launch and Authenticate

Navigate to a folder where you want to save your project, then start Claude Code:

claude

Follow the on-screen prompts to log in with your Claude account and approve permissions.

Step 4: Write Your Prompt

Tell Claude exactly what you want to build with precise dimensions in millimeters.

Copy and paste this example prompt:

"Create an OpenSCAD script for a small rectangular storage tray. Dimensions: 100mm long, 50mm wide, 30mm high. Wall thickness: 3mm. Add smooth rounded corners with a 5mm radius. Output only valid OpenSCAD code."

Step 5: Save the File

Claude will generate the OpenSCAD code in your terminal.

  1. Copy the code.
  2. Open OpenSCAD, paste the code into a new file, and save it as part.scad.
  3. Press F6 to render the model, then F7 to export it as an STL file.

Step 6: Print

Import your new STL file straight into your 3D printer slicer (PrusaSlicer, Cura, etc.) and print.


Common Mistakes & Fixes


Want more practical AI workflows for your daily work? Follow @letagentswork.

Made by Let Agents Work — follow @letagentswork
From the reel: Turn text prompts into 3D printable CAD files