CLI CAD tool for AI agents. Write CadQuery scripts, get STEP files, renders, and metrics.
Project description
agentcad
CAD tool for AI agents. Give your coding agent the ability to design 3D models.
Your agent writes CadQuery or build123d Python scripts. agentcad handles execution, STEP export, PNG rendering, mesh export (STL/GLB/OBJ), geometric metrics, validation, diffing, and browser preview. All command output is structured JSON.
agentcad is open source under the Apache License 2.0. It runs locally and requires no signup.
Quick start
Install agentcad, then paste this into Claude Code, Cursor, or any coding agent:
Create a Python 3.12 virtual environment, then:
pip install agentcad
agentcad skill install
agentcad --help
Read the --help output — it's your operational briefing.
Then design me a phone stand: a simple angled cradle that holds a phone
at 60 degrees. About 80mm wide, 50mm deep, with a 5mm lip at the bottom
to keep the phone from sliding. Show me a preview when you're done.
What it does
agentcad run script.py --output label— execute a build123d or CadQuery script, produce versioned STEP file + geometric metrics (volume, dimensions, validity, face/edge counts)agentcad run ... --preview— four-view PNG + turntable GIF for visual verificationagentcad run ... --render iso,front— high-quality PNG viewsagentcad run ... --export stl,glb— mesh export for 3D printing or web viewersagentcad inspect output.step— topology deep-dive (shells, free edges, validity)agentcad diff 1 2— compare versions (metrics, outputs, parameters)agentcad view output.step— open STEP/GLB output in a browser preview vieweragentcad docs [section]— 16 sections of built-in documentation
No boilerplate
Scripts need zero imports. By default, build123d primitives, show_object, and agentcad edit helpers are pre-injected:
box = Box(10, 20, 5)
show_object(box)
CadQuery remains supported via import cadquery as cq, agentcad init --runtime cadquery, or agentcad run --runtime cadquery. Run agentcad docs runtimes for the dispatch rules.
MCP integration
For native tool integration with Claude Code, Cursor, or Windsurf:
pip install agentcad[mcp]
Add to .mcp.json:
{"agentcad": {"command": "python", "args": ["-m", "agentcad.mcp"]}}
Requirements
- Python 3.10–3.12 (OpenCascade bindings do not support 3.13+)
License
Apache License 2.0. See LICENSE.
Feedback
If your agent struggles, run agentcad feedback "what happened" to capture a friction log.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentcad-0.2.4.tar.gz.
File metadata
- Download URL: agentcad-0.2.4.tar.gz
- Upload date:
- Size: 208.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d758605a001362f45fc656626621999e765b48edb3d6512724343852f9e2287
|
|
| MD5 |
ee14a8e66de4cdc19a408e97a0358fc7
|
|
| BLAKE2b-256 |
b9a317c6d44233c6543af9ce263c07ea56ea37d6b65c01d6966706e2bdb5c1c3
|
Provenance
The following attestation bundles were made for agentcad-0.2.4.tar.gz:
Publisher:
publish.yml on jdilla1277/agentcad
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentcad-0.2.4.tar.gz -
Subject digest:
5d758605a001362f45fc656626621999e765b48edb3d6512724343852f9e2287 - Sigstore transparency entry: 1701143371
- Sigstore integration time:
-
Permalink:
jdilla1277/agentcad@a3dec9baf57fd51d5a7ebf0f1b07766e4eabf2a9 -
Branch / Tag:
refs/tags/v0.2.4 - Owner: https://github.com/jdilla1277
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a3dec9baf57fd51d5a7ebf0f1b07766e4eabf2a9 -
Trigger Event:
release
-
Statement type:
File details
Details for the file agentcad-0.2.4-py3-none-any.whl.
File metadata
- Download URL: agentcad-0.2.4-py3-none-any.whl
- Upload date:
- Size: 129.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d9108817f2d97021a0d4d8c530e42751c41d41433599f9de6475f6296106448
|
|
| MD5 |
d9d5c254205c3cd42f76960ebff00131
|
|
| BLAKE2b-256 |
a56f18e0badf9e1e59c858dd85ed013a7c42a49cc9011108735fc543d5a368c2
|
Provenance
The following attestation bundles were made for agentcad-0.2.4-py3-none-any.whl:
Publisher:
publish.yml on jdilla1277/agentcad
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentcad-0.2.4-py3-none-any.whl -
Subject digest:
4d9108817f2d97021a0d4d8c530e42751c41d41433599f9de6475f6296106448 - Sigstore transparency entry: 1701143423
- Sigstore integration time:
-
Permalink:
jdilla1277/agentcad@a3dec9baf57fd51d5a7ebf0f1b07766e4eabf2a9 -
Branch / Tag:
refs/tags/v0.2.4 - Owner: https://github.com/jdilla1277
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a3dec9baf57fd51d5a7ebf0f1b07766e4eabf2a9 -
Trigger Event:
release
-
Statement type: