- 机械件快速迭代:需要按尺寸参数反复改一个支架或外壳时,让 agent 直接改 build123d 脚本重跑,比在 GUI 里重画草图快,代价是几何复杂度受脚本表达能力限制
- 批量出图与出料:同一批零件要同时要 STEP 给加工厂、STL 给打印、DXF 给激光切割,脚本化流水线一次导出多种格式,比逐个在 CAD 里另存省事
- 设计阶段做粗校核:在没进 CAE 流程前想先看峰值应力和安全系数,用内置 CalculiX 跑一遍能筛掉明显不合理的结构,但别拿它替代正式仿真
- 给 agent 工具链加一个几何后端:已有 agent 框架需要产出实体模型而不是文本或图片时,它提供的是脚本+校验+导出的闭环,换别的方案得自己拼 OpenCASCADE 绑定
text-to-cad
earthtojakeMIT活跃维护 有专家点评用自然语言描述就能生成 STEP、STL 等 CAD 模型文件,把文字直接变成可加工的三维零件设计,适合机械工程和机器人领域的快速原型。
Design physical products with AI
专家点评
上手难度:进阶更新于 2026-11-11把自然语言需求变成可制造的 STEP/STL 零件脚本,顶替手工建模和 CAD 二次开发
适用场景
踩坑
- 安装脚本会改写本机各 agent 应用的配置并自动装 uv,在共享机器或已精细配置过 agent 的环境里会撞上;装完不重启对应应用不生效,手工逐应用安装要另翻 docs/install.md
- 默认上报带随机 ID 的使用统计和崩溃报告,对数据出网敏感的环境必须在隐私设置里先关掉再跑
- issue 列表里 GLB 相关导出问题被单独提出,涉及 GLB 输出的工作流要预留验证环节;其余问题分布从现有信号看不出来
同类对比
纯脚本建模可以直接用 build123d 或 CadQuery 自己写,不需要 agent 层;需要成熟参数化 GUI 与工程图规范时仍应回到 FreeCAD 或商业 CAD。
curl -fsSL https://texttocad.dev/install.sh | shREADME 未说明
项目说明
由 README 自动翻译提炼让 AI 代理用 Python 脚本生成可制造的三维零件与装配体
用自然语言描述就能生成 STEP、STL 等 CAD 模型文件,把文字直接变成可加工的三维零件设计,适合机械工程和机器人领域的快速原型。
核心能力
- 用 build123d 和 OpenCASCADE 把模型写成 Python 脚本
- 导出 STEP、STL、3MF、GLB 及 DXF 切割轮廓
- 按工艺规则检查零件能否加工、折弯、注塑或打印
- 用 CalculiX 做应力校核,给出峰值应力与安全系数
- 生成带尺寸标注、隐藏线和标题栏的工程图 PDF
容易踩的坑
安装脚本会自动安装 uv,并改写本机各 agent 应用的配置,需要重启这些应用才能生效;默认会发送带随机 ID 的使用统计和崩溃报告,可在隐私政策中关闭;手工逐应用安装需另看 docs/install.md
- v0.11.7最新正式版2026-11-10 · 2026-11-10 16:46 UTC
What's Changed
Other Changes
- Release 0.11.7: manufacturing checks on exact geometry for CNC, sheet metal, injection molding and 3D printing, with a three-state verdict by @earthtojake in https://github.com/earthtojake/text-to-cad/pull/816
Full Changelog: https://github.com/earthtojake/text-to-cad/compare/v0.11.6...v0.11.7
- v0.11.62026-11-10 · 2026-11-10 06:06 UTC
查看更新说明
What's Changed
Other Changes
- Release 0.11.6: Blender renders through cad.blender and cad[blender], Python 3.13 as the packages' floor, and a GLB that carries the assembly's tree, its looks and a board's layers by @earthtojake in https://github.com/earthtojake/text-to-cad/pull/809
Full Changelog: https://github.com/earthtojake/text-to-cad/compare/v0.11.5...v0.11.6
- v0.11.52026-11-10 · 2026-11-10 03:57 UTC
查看更新说明
What's Changed
Other Changes
- Release 0.11.5: Claude Code gets the skills from the plugin and CAD's card from Claude Desktop's config by @earthtojake in https://github.com/earthtojake/text-to-cad/pull/814
Full Changelog: https://github.com/earthtojake/text-to-cad/compare/v0.11.4...v0.11.5
- v0.11.42026-11-09 · 2026-11-09 19:45 UTC
查看更新说明
What's Changed
Other Changes
- Release 0.11.4: the SHORT CIRCUIT pinball sample, an agent-directed router, KiCad files built not committed, and PCB check and viewer fixes by @earthtojake in https://github.com/earthtojake/text-to-cad/pull/810
Full Changelog: https://github.com/earthtojake/text-to-cad/compare/v0.11.3...v0.11.4
- v0.11.32026-11-08 · 2026-11-08 19:38 UTC
查看更新说明
What's Changed
Other Changes
- On Windows the engine waits for its update's drain before it exits, so an update click always starts the switch by @earthtojake in https://github.com/earthtojake/text-to-cad/pull/807
- Release 0.11.3: stress studies, cad step|xbf|model solve writes a results folder, CalculiX from cad-ccx (#699 ported) by @earthtojake in https://github.com/earthtojake/text-to-cad/pull/791
Full Changelog: https://github.com/earthtojake/text-to-cad/compare/v0.11.2...v0.11.3
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
Design physical products with AI.
text-to-cad
🚀 Quickstart
macOS and Linux:
curl -fsSL https://texttocad.dev/install.sh | sh
Windows, in PowerShell:
irm https://www.texttocad.dev/install.ps1 | iex
It installs uv if it is missing, then sets up text-to-cad in every agent app on
your computer with each app's own commands (the plugin, which brings the skills
and CAD's MCP server, or for an agent without a plugin the skills alone),
registers the cad command, and moves CAD's server to the new release. Run
it again to update everything, or click CAD's update button when it shows one; it
lists the apps to restart.
Then ask your agent for a part or an assembly: it writes the model as a Python script, runs it to build the model and shows it in the CAD viewer.
Installing by hand, app by app, and updates: docs/install.md
✨ Features
The text-to-cad plugin gives your agent local workflows to generate 3D models as STEP, GLB, STL or 3MF files, check them for manufacturing, draw them, and connect to 3D printing, sheet metal and CNC services. It works with any agent that supports plugins or skills.
- Parts and assemblies: Models written as Python scripts with build123d and OpenCASCADE, exported as STEP, STL, 3MF or GLB, and as DXF profiles and flat patterns for laser and waterjet cutting, with joints and animations for mechanisms, and shown live in the CAD viewer.
- Circuit boards: KiCad schematics and boards, placed and routed, checked with ERC and DRC, reviewed before you order, and exported as fabrication files.
- Manufacturing checks: Whether a part can be machined, cut and bent, molded or 3D printed, measured against the process's rules, and what to change where it cannot.
- Stress checks: Whether a part or an assembly of bonded parts holds under its loads, solved with CalculiX: each part's peak stress, safety factor and how far it moves, drawn on the model.
- Engineering drawings: Dimensioned PDF sheets projected from the part's geometry: views, hidden lines, centre marks, hole callouts and a title block.
- Fabrication services: Checks DXF and STEP files against SendCutSend's guide before you upload them, and slices 3D prints with OrcaSlicer and sends them to Bambu Connect or Bambu Studio.
- Robotics and simulation: Robot and world descriptions for simulation and motion planning: URDF for ROS, SRDF for MoveIt and SDF for Gazebo.
🛠️ Contributing
text-to-cad is MIT-licensed and built in the open.
- Bugs and plugin requests: open an issue.
A bug report with the model script and the output of
cad doctor --checkis the fastest to fix, and an agent app without a plugin gets one on request. A security problem is reported privately, as SECURITY.md says. - Questions, ideas and what you made: the Discord. Say what the skills got wrong, too: that is what improves them.
- Code, skills and models: a new skill (a fabrication service, a printer, a
CAD workflow) goes in
skills/, an example model inmodels/, and fixes anywhere. CONTRIBUTING.md has the local setup and how to test in the agent apps; an agent working in the repository starts at AGENTS.md.
By default, text-to-cad sends usage stats and crash reports, tagged with a random ID and never including your files, paths or prompts. The privacy policy says what is sent and how to turn it off.