This is text-to-cad, an open source tool for generating 3D models in Codex / Claude Code!
Use it to prompt and edit complex 3D models. Export STEP, STL, GLB, DXF and URDF files. Built for CAD newbies. Link to github below.
CAD is hard. As a software engineer getting back into robotics, I’ve been humbled by new tools like Onshape. Struggling to kick old habits, I started prompting Codex to generate 3D models and had some limited succes. After a few iterations I found a recipe that actually works:
1. Generate a python script for every STEP file. The agent can easily edit each part’s source without touching the raw STEP file. Use build123d > cadquery.
2. Reference specific faces and edges in prompts for precise edits. I built a basic local ui to inspect / cache STEP B-reps to make this easier.
3. Maintain markdown explaining important part features in plain English so the model can index on project context quickly.
4. Verify results with screenshots and geometry. Models don’t have great spatial awareness, but they can interpret images and verify constraints very well.
For the best results I’ve been using GPT 5.4 xhigh / Opus 4.6+. Fair warning, this will burn through tokens, I recommend the Pro/Max plans if you’re planning on building anything serious. PRs welcome!
softservo•1h ago
Use it to prompt and edit complex 3D models. Export STEP, STL, GLB, DXF and URDF files. Built for CAD newbies. Link to github below.
CAD is hard. As a software engineer getting back into robotics, I’ve been humbled by new tools like Onshape. Struggling to kick old habits, I started prompting Codex to generate 3D models and had some limited succes. After a few iterations I found a recipe that actually works:
1. Generate a python script for every STEP file. The agent can easily edit each part’s source without touching the raw STEP file. Use build123d > cadquery. 2. Reference specific faces and edges in prompts for precise edits. I built a basic local ui to inspect / cache STEP B-reps to make this easier. 3. Maintain markdown explaining important part features in plain English so the model can index on project context quickly. 4. Verify results with screenshots and geometry. Models don’t have great spatial awareness, but they can interpret images and verify constraints very well.
For the best results I’ve been using GPT 5.4 xhigh / Opus 4.6+. Fair warning, this will burn through tokens, I recommend the Pro/Max plans if you’re planning on building anything serious. PRs welcome!