text-to-cad README

项目的 README,来自 github.com/earthtojake/text-to-cad。合并为一个 markdown 文件:README.md。

text-to-cad

Design physical products with AI.

Website · Docs

cad Tests License: MIT

Join Discord Follow @earthtojake Sponsor

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 cad, the command text-to-cad runs on, then the plugin in each agent app it finds on your computer, with that app's own command (Kimi Code you install by hand), and turns on automatic updates.

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 viewer.

It works in Claude Code, Codex, Cursor, Gemini CLI, Grok Build, Antigravity, Devin CLI, Factory Droid, GitHub Copilot CLI, Kimi Code, Muse, Pi, Qwen Code, Amp, Cline, Goose, Hermes Agent, Kilo Code, Kiro CLI, OpenClaw, OpenCode, Roo Code, Trae and Windsurf.

Installing by hand, app by app, updating and removing: 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.

🌐 Community

Projects built on top of text-to-cad, and projects that text-to-cad uses.

🛠️ Contributing

text-to-cad is MIT-licensed and built in the open.

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, and the terms of service govern using text-to-cad.

text-to-cad (earthtojake/text-to-cad)

正在搜索数据库…

这是什么?text-to-cad 是一套面向 CAD、CAE 和 CAM 的 agent 技能库:它为编码 agent 提供专注的工作流程,可以从你本地的项目文件中生成、检查、寻找来源、切片并交付 CAD 和机器人描述类的产物。
所以它是一个我打开来用的 CAD 软件,还是给我的编码 agent 用的?它不是你打开来用的应用——它把一组技能和各提供商原生的插件装进你已经在用的编码 agent 里,然后 agent 会按照这些工作流程处理你本地的文件。
怎么把它装到我的 agent 里?用 Skills CLI 安装(npx skills add)——这是推荐的方式;它会为受支持的 agent 直接安装各个技能,以后用同一条命令即可刷新更新。
它支持哪些编码 agent?Codex、Claude Code 和 Grok Build 都有提供商原生的插件安装方式,其中 Grok Build 复用了 Claude 插件市场的清单文件。Codex 需要 0.142.0 或更新版本——旧版本会静默跳过插件。
安装或更新的时候有什么坑吗?安装和更新都用 npx skills add——npx skills update 只会刷新锁文件里的技能,会静默漏掉新添加的技能。已下架的技能不会自动删除(用 npx skills remove 移除),另外如果新装的技能没有出现,请重启你的 agent。
agent 用它到底能做出什么?可以根据自然语言或图片请求创建和编辑 CAD 模型,主要输出 STEP 格式,还能导出为 STL、3MF 和 GLB;可以生成 2D 的 DXF 图纸,比如轮廓、模板、垫片和排料切割图;还能生成机器人文件——包含连杆、关节和限位的 URDF 结构、SRDF 的 MoveIt 规划组,以及 SDF 仿真模型和仿真环境。
它能帮我把一个零件一路做到 3D 打印吗?可以。step.parts 能找到现成的 STEP 零件,比如螺丝、轴承、电机和连接器;DfAM Check 会按工艺衡量网格的可打印性(壁厚、悬垂、支撑体积、打印摆放方向);G-code 技能把网格切片成经过验证、按打印机配置档案生成的 FDM .gcode;Bambu Labs 技能可以试运行、上传并谨慎地启动本地打印任务;SendCutSend 会在上传前校验 DXF 和 STEP 文件。
除了这些技能,还要下载很大的东西或做额外配置吗?不用——models/ 目录是一套测试用模型库,只会以很小的 LFS 指针形式下载,使用这些技能并不需要它。每个技能的 requirements.txt 都固定了它发布时所用的 cadgen 版本。
不用桌面 CAD 软件也能预览模型吗?可以——CAD Viewer 技能直接在你的电脑上为 CAD 和机器人文件提供本地浏览器预览。
大小
465.5 MB
星标
28K
时长
7个月
提交 · 90 天