hitlcad installs in a few minutes, and most of that is waiting for downloads. This part gets it onto your machine, checks that it works, and sets up a project folder your agent can design in. If you haven’t read Part 1, the short version is that your coding agent writes CAD as Python and hitlcad builds and checks it on every save.
What you need first
hitlcad leans on tools you may already have.
- VS Code 1.101 or newer, with the
codecommand on your PATH. Ifcodeisn’t found in a terminal, open the Command Palette and runShell Command: Install 'code' command in PATH. - uv, the Python package manager. hitlcad uses it to install itself and the Python it runs on, so you don’t have to manage a Python version yourself.
- Claude Code or Codex in VS Code. hitlcad has no agent of its own, so one of these does the modelling. Either needs its own account.
- Blender 4.5 LTS, optionally. You only need it for sculpted designs and the preview renders. Mechanical designs built with build123d work without it.
It runs on Linux, macOS and Windows.
Install it
Download the latest hitlcad-<version>.tar.gz from the releases page and unpack it. Inside you’ll find two pieces that ship together, the hitlcad tool (the server that builds and checks designs) and the VS Code extension (the 3D editor and commands), plus an installer.
On macOS and Linux, run this in the unpacked folder.
./install.shOn Windows, run this in PowerShell instead.
powershell -ExecutionPolicy Bypass -File install.ps1Both do the same job. They install the tool with uv tool install, pinned to the dependency versions the release was tested with, install the extension with code --install-extension, and finish by running hitlcad doctor. The -ExecutionPolicy Bypass part only lets PowerShell run this one script you downloaded.
Check it
hitlcad doctor tells you what it found. A healthy machine looks like this.
$ hitlcad doctor[ok ] backend build123d: build123d importable[ok ] backend blender: Blender 4.5.14[ok ] preview renderer (Blender Workbench)[info] coding agents reach hitlcad's tools at http://127.0.0.1:8000/mcpDon’t worry about a missing line for Blender if you skipped it. A missing backend only affects designs that use it. Two other hiccups are common. If the shell says hitlcad isn’t found, run uv tool update-shell and open a new terminal. If Blender is installed but not on your PATH, point the HITLCAD_BLENDER_BINARY environment variable at its executable.
How the pieces fit together
It helps to know what runs where, because it explains most of what can go wrong.
The extension starts the hitlcad server when you open a design project and stops it when the window closes. Your agent talks to the server through MCP tools, which is how it builds, measures and searches the catalogue. The panel talks to it too, to show you each build. Your designs live in your project folder like any other code, and the server keeps a history of every revision in ~/.hitlcad.
If you work in a dev container, over Remote-SSH or in WSL, run the installer in a terminal of that remote window. The extension has to run where your files are, and VS Code forwards the server’s port for the panel on its own.
Set up a project
In VS Code, open the Command Palette and run hitlcad: New Design Project, then pick a folder. You can also run hitlcad init ~/designs/my-project in a terminal and open the folder it makes. Either way you get these files.
| File | What it’s for |
|---|---|
designs/ |
Your designs, one folder each |
.mcp.json |
Gives Claude Code hitlcad’s tools |
.claude/settings.json |
Pre-approves those tools so the agent doesn’t ask every time |
CLAUDE.md, AGENTS.md |
Point Claude Code and Codex at hitlcad’s skills |
.claude/skills/, .agents/skills/ |
The skills, how to work with designs and how each backend’s code is written |
.gitignore |
Keeps caches and personal settings out of git |
Next, hitlcad asks whether your agents may see what you select and pin in the 3D panel. Say yes unless you have a reason not to, because it’s what makes pointing at the model work. It adds a small prompt hook that puts your current selection and open pins into your next message to the agent.
Where that hook lives depends on the agent. For Claude Code it goes in .claude/settings.local.json, your personal settings for this project, which aren’t committed. Codex has no per-project equivalent, so its hook goes in ~/.codex/hooks.json and adds nothing in folders without designs. Codex also asks you to approve it once, with /hooks, and hitlcad offers to add its server to ~/.codex/config.toml. Nothing you commit contains a path from your machine, so a teammate who clones the project runs hitlcad init once to get their own hook.
Your first design folder
Run hitlcad: New Design, give it a name and choose a backend. Pick build123d for anything with holes, fits and screws, and Blender for organic shapes. A design folder appears under designs/ with a starter design.json, interfaces.py, assembly.py and a parts/ folder, and the 3D panel opens beside the editor.
You can also skip this step and just ask your agent for something. It’ll create the design itself. That’s where Part 3 picks up.
If something’s wrong
- The panel stays empty or says the server is unreachable. Run
hitlcad: Show Server Logs. If port 8000 is taken by something else, sethitlcad.serverUrlto another port and the extension will start the server there. - The agent has no hitlcad tools. Open the project folder itself, the one with
.mcp.jsonin it, not its parent, then restart the agent’s session. For Codex, runhitlcad connectto see the setup commands. - Codex ignores your selections. Approve the hook with
/hooks. - Part files show import errors. Run
Python: Select Interpreterand choose the onehitlcad doctornames.
Model code runs locally in a child process with a memory limit and a timeout, but without filesystem or network isolation. That’s reasonable, because it’s code your own agent wrote, and that agent can already run code on your machine. But keep the server local and single-user, as it’s set up by default.
Comments
Open on GitHubQuestions or corrections about this post? Leave a comment.
Questions or corrections about this post? Leave a comment.
Comments are kept in GitHub Discussions through giscus. Nothing loads from GitHub until you choose to show them, and commenting needs a GitHub account.