Skip to main content

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 CadQuery script, produce versioned STEP file + geometric metrics (volume, dimensions, validity, face/edge counts)
  • agentcad run ... --preview — four-view PNG + turntable GIF for visual verification
  • agentcad run ... --render iso,front — high-quality PNG views
  • agentcad run ... --export stl,glb — mesh export for 3D printing or web viewers
  • agentcad 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 viewer
  • agentcad docs [section] — 16 sections of built-in documentation

No boilerplate

Scripts need zero imports. cq, show_object, and 16 geometry helpers are pre-injected:

box = cq.Workplane('XY').box(10, 20, 5)
show_object(box)

Helpers include translate, rotate, mirror_fuse, loft_sections, tapered_sweep, involute_gear_profile, and more. Run agentcad docs helpers for the full list.

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 (CadQuery/OpenCascade does 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentcad-0.2.3.tar.gz (208.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentcad-0.2.3-py3-none-any.whl (129.5 kB view details)

Uploaded Python 3

File details

Details for the file agentcad-0.2.3.tar.gz.

File metadata

  • Download URL: agentcad-0.2.3.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

Hashes for agentcad-0.2.3.tar.gz
Algorithm Hash digest
SHA256 9d48f0ebfc4f9ef32ba51dd72b3e085a9dca9b12d31f2b6fdfd9cb8c1c6f44aa
MD5 cffbd6565f690a1b271b3e37c874e4b6
BLAKE2b-256 6c8b9800129befd4e4c86c6fdb295383ff8e573aee0e4e6325eaa6cf80a73661

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentcad-0.2.3.tar.gz:

Publisher: publish.yml on jdilla1277/agentcad

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentcad-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: agentcad-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 129.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentcad-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ce9b9df54032cd102b6dbb5474745614cf393deca5fd50eafb12192b47ffe07d
MD5 04ca70e05000659b8f149ae2e6fd2d85
BLAKE2b-256 7507d2286d98b7fc9b05ed6790955dfc90d9cfb981b13de88a2691aeb5522b03

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentcad-0.2.3-py3-none-any.whl:

Publisher: publish.yml on jdilla1277/agentcad

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page