anycad1.0.3
Local parametric CAD for Pi. A two-solid dovetail took 14.5 s, 405 output tokens, 1 call, and 0 errors on qwen3.8-9b-distill.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
AnyCAD
AnyCAD is a local parametric CAD workflow for Pi. It generates editable build123d source, runs the official text-to-CAD build and inspection, and exports STEP. It can look up syntax in the included local references and asks for missing mounting dimensions when a design needs to fit existing hardware.
Showcase

Make a two-solid guide and slider assembly, with sharp edges.
The full prompt specifies a 100 × 52 mm base, a through dovetail, a fitted tongue, counterbored mounting holes, and an editable travel parameter. Read the exact prompt
AnyCAD produced both named solids. The independent grader matched the STEP against a fresh build of the submitted source and measured zero interference at both travel positions. Starting STEP · +10 mm STEP
| Model and provider | Agent time | Output tokens | Tool calls | Tool errors | Independent grade |
|---|---|---|---|---|---|
qwen3.8-9b-distill via LM Studio |
14.5 s | 405 | 1 | 0 | 100/100 |
Time includes Pi startup, model inference, and CAD calls. The independent grade runs afterward. A separate conversational bolt-block example passed in 17.7 seconds with 509 output tokens, one call, and zero errors.
Install
Download the Windows x64 bundle from GitHub Releases, extract it to a stable location, and run ./install.ps1 from PowerShell. Pi, Node.js, Python 3.12 x64 and uv are host prerequisites. The release includes the CAD skill and Python wheels for text-to-CAD 0.11.21, build123d 0.13.0 and their dependencies. The installer uses your existing CAD CLI and skill when registered. A source checkout can run the same installer, which uses PyPI if CAD is missing and the wheels are absent.
For Pi with the CAD CLI and skill already set up, the compact package installs with pi install npm:anycad once available on npm. A GitHub install uses pi install git:github.com/CubM/AnyCAD.
Use
Open a new Pi session or run /reload. AnyCAD activates on recognizable CAD requests when lmstudio/qwen3.8-9b-distill is selected. Start a request with CAD to activate it explicitly. CAD turns use your selected Pi thinking level and the local CAD and file tools. Pi restores the previous tool selection after the turn. The showcase runs used low thinking.
Start in an empty project folder and describe the part. AnyCAD creates the source and export files as it builds. For vague descriptions, it first saves a dimensioned brief in src/design.md and continues to the build. Missing dimensions that determine how a part fits existing hardware still prompt a focused question.
For custom build123d source, AnyCAD checks the primitives and operations in cad_syntax, then uses cad_source to write the script, verify the build, and export STEP. A syntax or API error prompts a fresh lookup before the retry. cad_construct writes editable source from named geometry operations. Source rules and minimal template
The LM Studio application, model, and provider extension are host components. AnyCAD uses the provider already configured in Pi. The default output paths are src/model.py and exports/model.step in the current project.
Run pi list to see the registered source and pi remove <source> to uninstall it. If the installer added the bundled CAD skill, remove that source separately.
Dependencies and credits
The included text-to-CAD skill comes from commit 09eed4073a6660e8ae814a26215209f646b6091a. Its license accompanies the skill. The release wheels retain their upstream metadata and licenses.