@QingQ77: Open-source framework enables Codex, Claude Code and other coding agents to generate CAD models from text descriptions, export to STEP/STL/3MF and more. https://github.com/earthtojake/text-to-cad… text-to-…
Summary
The open-source framework text-to-cad enables Codex, Claude Code and other coding agents to generate CAD models from text descriptions, supporting export to STEP, STL, 3MF, DXF, GLB, URDF and more. It comes with three built-in Skills (CAD, URDF, and Robot Motion) and runs locally without requiring a backend.
View Cached Full Text
Cached at: 05/08/26, 11:39 PM
Open source framework that enables coding agents like Codex and Claude Code to generate CAD models from text descriptions, exportable to STEP/STL/3MF and other formats. https://github.com/earthtojake/text-to-cad
text-to-cad is an open source Text-to-CAD framework powered by build123d/OCP. Agents like Codex and Claude Code can generate CAD models simply by writing text descriptions. It comes with three built-in Skills: CAD, URDF, and Robot Motion, supporting export to STEP, STL, 3MF, DXF, GLB, and URDF. The local CAD Explorer (React/Vite) provides real-time results viewing and geometry references. Workflow: describe → edit source file → regenerate → inspect → reference → commit, all running locally without a backend. Includes 10 benchmarks, from simple cubes to planetary gears.
earthtojake/text-to-cad
Source: https://github.com/earthtojake/text-to-cad
⚙ Open Source Text to CAD Harness ⚙
An open source harness for generating 3D models with your favorite coding agent
Demo project (https://text-to-cad.earthtojake.com) GitHub stars (https://github.com/earthtojake/text-to-cad/stargazers) GitHub forks (https://github.com/earthtojake/text-to-cad/network/members)
Follow @soft_servo (https://x.com/soft_servo)
Python build123d (https://github.com/gumyr/build123d) OCP STEP STL 3MF URDF Robot Motion Node.js React Vite
✨ Features
- Generate - Create source-controlled CAD models with coding agents like Codex and Claude Code.
- Export - Produce STEP, STL, 3MF, DXF, GLB, topology data, and URDF robot descriptions.
- Browse - Inspect generated geometry in CAD Explorer.
- Reference - Copy stable
@cad[...]references so agents can make precise follow-up edits. - Review - Render quick review images for fast checks during an iteration loop.
- Reproduce - Edit source files first, then regenerate explicit targets.
- Local - Run the harness and CAD Explorer locally with no backend to host.
🧰 Bundled Skills
This harness vendors file-targeted skills for CAD, robot-description, robot-motion, and manufacturing-preflight work. Use the bundled copies here for local CAD projects, or use the dedicated repositories when installing the skills outside this harness.
- CAD Skill - STEP, STL, 3MF, DXF, GLB/topology, render images, and
@cad[...]geometry references. Bundled skill · Standalone repo (https://github.com/earthtojake/cad-skill) - URDF Skill - Generated URDF XML, robot links, joints, limits, validation, and mesh references. Bundled skill · Standalone repo (https://github.com/earthtojake/urdf-skill)
- Robot Motion Skill - ROS 2/MoveIt setup, CAD Explorer motion artifacts, inverse kinematics, path planning, and motion-server testing for existing URDFs. Bundled skill
Skills live canonically under .agents/skills for Codex. Claude Code compatibility is provided by per-skill symlinks in .claude/skills.
📸 Screenshots
CAD URDF Robot Motion
🔁 Workflow
- Describe - Tell your agent about the part, assembly, fixture, robot, or mechanism you want.
- Edit - Let your coding agent update repo-local CAD source files.
- Regenerate - Create explicit STEP, STL, 3MF, DXF, GLB, or URDF targets.
- Inspect - Open CAD Explorer to review the generated model.
- Reference - Copy
@cad[...]handles when you want geometry-aware edits. - Commit - Save the source and generated artifacts together once the model is ready.
🧪 Benchmarks
The repo stores .assets/** through Git LFS and excludes that tree from default LFS pulls so lightweight clones do not fetch GIF assets or benchmark detail pages. To hydrate only the benchmark assets locally, run:
git lfs pull --include=".assets/benchmarks/**"
| # | Target | Prompt | Output |
|---|---|---|---|
| 1 | Rectangular calibration block with four holes | Create a centered 100 x 60 x 20 mm block with four 8 mm vertical through-holes. Add only a 2 mm chamfer on the top outer perimeter. | |
| 2 | Circular flange with bolt-hole pattern | Create an 80 mm diameter, 10 mm thick circular flange with a 30 mm central through-bore. Add six 6 mm through-holes on a 60 mm bolt circle and fillet the outside circular edges. | |
| 3 | L-bracket with gussets and two hole directions | Create an L-bracket from a base plate and rear vertical plate. Add vertical base holes, horizontal back-plate holes, two triangular gussets, and a filleted base/back transition. | |
| 4 | Stepped shaft with keyway | Create a 120 mm shaft along X with 20/30/20 mm diameter stepped sections. Add end chamfers and a shallow rectangular keyway on top of the middle section. | |
| 5 | Open-top electronics enclosure with bosses | Create a hollow open-top enclosure with 3 mm walls and floor. Add four internal standoffs with centered blind holes and 2 mm outside vertical corner fillets. | |
| 6 | Aerospace-style clevis bracket with lightening cutouts | Create a symmetric clevis bracket with a base plate, two rounded lugs, base mounting holes, and a horizontal lug bore. Add triangular lightening cutouts, reinforcing ribs, and rounded transitions. | |
| 7 | Radial-engine-style cylinder with cooling fins | Create a vertical engine-cylinder form with a central barrel, 12 cooling fins, a base flange, and a top cap. Add a 35 degree angled spark-plug boss with a coaxial through-hole. | |
| 8 | Centrifugal impeller with backward-curved blades | Create a centrifugal impeller with a backplate, hub, and through-bore. Add 12 fused backward-curved blades sweeping about 45 degrees from root to tip. | |
| 9 | Spiral staircase with helical handrail | Create a miniature spiral staircase with a central column, base disk, and 20 rising wedge treads. Add a one-revolution helical handrail and vertical balusters at the tread outer ends. | |
| 10 | Simplified planetary gear stage | Create a flat planetary gear assembly with separate sun, planet, ring, carrier, and pin bodies. Use simplified trapezoidal teeth and place three planets around the sun on a 42 mm radius circle. |
🚀 Quick Start
Clone the repo:
git clone https://github.com/earthtojake/text-to-cad.git
cd text-to-cad
Install Python CAD dependencies:
python3.11 -m venv .venv
./.venv/bin/python -m pip install --upgrade pip
./.venv/bin/pip install -r .agents/skills/cad/requirements.txt
Install other bundled skill requirements only when you need those workflows:
./.venv/bin/pip install -r .agents/skills/urdf/requirements.txt
Install CAD Explorer dependencies:
npm --prefix .agents/skills/cad/explorer install
Run the local CAD Explorer from the project directory you want to scan:
npm --prefix .agents/skills/cad/explorer run dev
Then open http://localhost:4178.
For root-aware agent workflows across multiple projects, ask CAD Explorer to reuse a matching server or start one on a free port:
npm --prefix .agents/skills/cad/explorer run dev:ensure -- --file STEP/sample_part.step
Then open the URL printed by the command.
Similar Articles
@aigclink: Text-CAD: Not just "draw a part" — one sentence → STEP → slice → straight to your local Bambu printer, full pipeline. What used to be manual modeling in SolidWorks, then checking each dimension with calipers — those two actions are now owned by this project. One setup…
The Text-CAD project achieves AI-driven automation from natural language description to STEP 3D model, slicing, and directly connecting to a Bambu printer for the entire workflow. By having the LLM generate build123d Python source code instead of directly manipulating the geometry kernel, it effectively reduces the difficulty of generating complex formats and integrates multiple hardware manufacturing-related skills.
@GitTrend0x: Blender 里直接喊话生成 3D 模型 https://github.com/Adam-CAD/CADAM 这就是 CADAM,把 ChatGPT / Claude / Gemini 直接变成 Blender 内置 CAD 智能助手的…
CADAM 是一个开源工具,通过自然语言在 Blender 中利用 ChatGPT、Claude 或 Gemini 生成 3D CAD 模型,支持参数化控制和多种导出格式。
@XAMTO_AI: Attention CAD modeling folks! No more hunting for standard parts. A website has packed over 12,000 open-source STEP files into a searchable directory. Search and use directly, saving you time scouring the internet. https://step.parts https://…
step.parts is a searchable directory with over 12,000 open-source STEP files, making it easy for CAD modelers to quickly find and use standard parts.
@oragnes: Wow, just dug up this amazing tool map3d on GitHub! Based on OpenStreetMap, you select an area on the web page, and it automatically fetches real building and road data, rendering a 3D city model with heights in one click! The craziest part is it can directly export GLB files for use in Blender or game engines…
Introduces two open-source tools on GitHub: map3d, which automatically generates 3D city models from OpenStreetMap and exports GLB files; and Voice-Pro, a local tool integrating video download, voice separation, subtitle recognition, translation, voice cloning dubbing, and video synthesis.
@QingQ77: A high-performance API proxy bridging the OpenCode Zen protocol to Anthropic/OpenAI-compatible format, enabling tools like Claude Code and Codex CLI to transparently use domestic models. https://github.com/Kiowx/ope…
opencode-cc is a high-performance Go API proxy that bridges the Anthropic/OpenAI-compatible protocol to the OpenCode Zen protocol, enabling tools such as Claude Code and Codex CLI to transparently use domestic large models including GLM, Kimi, DeepSeek, and Qwen. It supports automatic protocol routing, tool calling, web control panel, and other features.