GitHubGet started
← All use cases

A CAD designer

Writes CadQuery, renders the model from four sides and checks the renders.

A model that takes imagesPython · Node.js · Rust

examples/cad
The cad agent writing CadQuery and checking renders of a gear bearing
You Design a planetary gear bearing with 5 planets

It checks its own work

It renders the model, looks at the pictures and fixes what is wrong until they match.

the run in the recording
  • → shell render.py model.py --section y=0
  • ← 7 valid, watertight solids · interferences: []
  • → imgread views.png
  • → imgread section.png
  • → apply_patch model.py gap 0.30 → 0.36
  • → shell render.py model.pychecking again

In a microVM of its own

CadQuery runs in its own Linux VM, not on your machine. The files come back to ./artifacts.

the agent's microVM
  • python:3.12-slim-trixiewith CadQuery 2.8
  • 4 vCPUs · 4 GiBno GPU
  • /contextyour sketches, read-only
  • /artifactsyour ./artifacts

Files ready to print

STEP for CAD tools, an STL per part for your slicer, and the script to change it yourself.

./artifacts/gear-bearing
  • model.stepfor CAD tools
  • parts/*.stlfor a slicer
  • model.glbfor a 3D viewer
  • model.pythe script
  • views.png · turntable.gifthe pictures

Run it

git clone https://github.com/brekkylab/ailoy
git clone https://github.com/brekkylab/ailoy-examples
cd ailoy-examples/cad/python
uv run main.py
needs A model that takes images · and a logged-in Claude Code, Codex or Gemini CLI, or an API key

Run your first agent
in its own microVM

Install the package, name a model and run it