Skip to main content
Glama
3DCraft

3DCraft

README.md
# 3DCraft

**3DCraft is an open-source parametric 3D CAD modeller built with and for AI: every action is a command, and every result is checked.**

*An agent builds. A machine checks. You decide.*

**[3dcraft.dev](https://3dcraft.dev/)**: the website, with the guide and the examples ·
**[Try it in your browser](https://3dcraft.dev/app/)** ·
**[Download](https://github.com/johancoppens/3dcraft/releases/latest)**

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="docs/img/readme-radial-engine-dark.webp">
  <source media="(prefers-color-scheme: light)" srcset="docs/img/readme-radial-engine-light.webp">
  <img src="docs/img/readme-radial-engine-light.webp" alt="The words “Built by an AI agent, command by command.” and, under them, “Seven-cylinder radial engine with its valve train. What you see is one engine cycle, drawn by 3DCraft.” Beside them the engine runs through that cycle, pistons, rods and pushrods moving, its crankcase cut away at the front and two of its finned cylinders opened: the published radial-engine assembly, one of 3DCraft's examples, drawn by 3DCraft 0.2.1">
</picture>

## Three ways to use it

1. **Make models with AI.** Describe a part to an AI agent. It builds the part in the window you are watching,
   step by step; you point at a face, ask for a change, and check the result. Then export it for a 3D printer,
   a laser cutter, a mill or a workshop.
2. **Use a Jig.** A Jig is a finished design with a form: the sizes that matter are fields, the rest follows
   by formulas, and every result is checked. Take the sundial: choose your place, say whether it lies in the
   garden or hangs on a wall and which way that wall faces, and you get a brass dial to laser cut and engrave
   that reads the clock time where you live. No AI needed.
3. **Build your own application on it.** The engine is a Rust library, and every command is also reachable
   from the command line, a JSON control channel and an MCP server. A gear generator, a furniture
   configurator, a CAD interface with buttons: each can be a separate program on top of 3DCraft. The licence
   is MIT.

3DCraft has no toolbar of modelling buttons. You model through commands: an agent sends them, a Jig's form
sends them, or you write them yourself. The window is there to watch, to point and to check. Whoever wants a
classic interface with buttons can build one on top: it would send the same commands.

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="docs/img/readme-window-staircase-dark.webp">
  <source media="(prefers-color-scheme: light)" srcset="docs/img/readme-window-staircase-light.webp">
  <img src="docs/img/readme-window-staircase-light.webp" alt="The 3DCraft window building the spiral-staircase example one command at a time. Each feature, material and check is named over the view as it runs, such as “feature.extrude · Landing collar blank” and “assert.add · One tread per riser below the landing”; the staircase grows in the view, the history in the side panel to 93 features and its checks to 16, all passing. The loop starts and ends on the finished staircase">
</picture>

*The window building the spiral staircase, one of the examples, command by command: the example's own
commands sent one at a time over the control channel, as an agent sends them; a caption over the view names
each feature, material and check as it is added. It ends on 93 features rebuilt and 16 checks, all passing.*

It is written in pure Rust, with its own B-rep kernel, constraint solver, tessellator and renderers: no
OpenCascade, no Parasolid, no third-party geometry of any kind. Licence: [MIT](LICENSE).

## How it started

3DCraft started as an experiment. The occasion was practical: designing a CNC machine, furniture and the
bodies and mechanisms of marionettes, with open software and the help of an AI agent. The open tools of today
did not get there. So the question was turned around: can AI agents write a CAD kernel themselves, if a
machine checks every result?

3DCraft is the answer so far, and it was built the way it works. AI agents wrote it, under tests a machine can
check, while the developer watched. An agent models in it the same way: through commands, under checks, in a
window you are watching. The project is the proof of its own method.

## Where it stands

3DCraft is at version 0.3.0. It does not replace professional CAD today. What it cannot do yet, it refuses,
and says so. The experiment goes on: the kernel is its heart and its hardest part, every refusal is work still
owed, and it is being made better step by step.

## Get started

> **0.3.0 is the current release:** a body cut by planes in one feature, glTF export for web pages and
> renderers, an MCP bundle with every release, and a kernel that refuses some bodies 0.2.x built and answers
> many it refused ([what changed](CHANGELOG.md)). Files saved by 0.3.0 do not open in 0.2.x. Its installers are on
> the [releases page](https://github.com/johancoppens/3dcraft/releases), and the website,
> [3dcraft.dev](https://3dcraft.dev/), has the guide, the examples and the web version.

- **[Install 3DCraft](docs/guide/install.md)**: installers for Windows, macOS and Linux (version
  0.3.0), or the [web version](https://3dcraft.dev/app/) with nothing to install.
- **[Your first five minutes](docs/guide/first-steps.md)**: open an example, play its history, try a
  Jig, export for a 3D printer.
- **[The user guide](docs/guide/README.md)**, 22 chapters in six parts: installing and connecting an AI
  agent, working with one, the window, Jigs, assemblies and files; modelling, sheet metal, surfaces and
  origami; measuring and engineering checks; making Jigs, the command line and programs on 3DCraft;
  troubleshooting and a reference of every command.
- **[The guide's lessons](docs/examples/README.md)**, seven parts that check their own volume, and three
  collections: **[finished parts](https://github.com/johancoppens/3dcraft-examples)**, the
  **[Jigs collection](https://github.com/johancoppens/3dcraft-jigs)** (from a laser-cut box and a GT2 pulley
  to a planetary gearbox and a sundial for your place) and
  **[assemblies](https://github.com/johancoppens/3dcraft-assemblies-examples)**, all in the website's
  [galleries](https://3dcraft.dev/examples/).
- **What changed:** [`CHANGELOG.md`](CHANGELOG.md).
- **A question?** Ask it in [Discussions, Q&A](https://github.com/johancoppens/3dcraft/discussions/categories/q-a);
  a problem, a refusal included, goes in an [issue](https://github.com/johancoppens/3dcraft/issues/new/choose).

## What it does

- **Works with your AI agent.** A built-in MCP server lets Claude or any other MCP client model in the
  window you are watching, once you switch on *Allow AI agents*; the agent reads what you selected, and
  can light up faces, fly the camera and play the history for you. You and the agent leave notes pinned to
  places of the model and answer each other on them.
- **Parametric.** Variables with units and formulas drive everything, with conditions, tables and parts
  switched on and off; sketches solved by 3DCraft's own constraint solver; curves drawn from formulas, such
  as a gear's involute flanks. Change one number and the model rebuilds from the feature it touches.
- **Features.** Extrude, revolve, loft, sweep along a path, a helix or two rails; booleans, mirror and
  patterns; fillets, also fading out to a point, and chamfers; a rounded tip on a body's end; shell, draft,
  offset, move and delete face, thicken; ISO metric threads;
  datums and sheets; text to extrude, emboss or engrave, also wrapped onto a cylinder or a cone.
- **Stable references.** Every face, edge and vertex has a persistent name made of where it came from, so
  a fillet stays on its edge through upstream edits; a feature that loses its edge fails, names what it
  lost and can be repaired, never silently moved.
- **Checked, not hoped.** Volumes, mass, distances, wall thickness and clearances from the exact geometry
  (select two things in the window and their distance or angle shows), and design rules kept in the
  document, checked at every change. The boolean kernel is held to a reference kernel on about twelve
  thousand booleans (four thousand pairs of solids, each united, cut and intersected)
  with none wrong; what it cannot do yet it refuses by name.
- **Sheet metal.** A base with flanges bent by radius and K-factor, reliefs, closed corners, hems and
  louvres; the flat pattern with its bend lines; and a press-brake check that finds an order of bends in
  which punch and die clear the part.
- **Plates and cutting.** Faces given a thickness, with joints between neighbouring plates; plates and
  sheet-metal parts are recognised for cutting, with a cut list and every part's outline on one sheet for
  a laser, kerf included.
- **Unfolding and origami.** Developable surfaces between two curves, unfolded flat at true size; crease
  patterns folded by angles that follow variables, or folded flat with the order of the layers worked
  out, with Kawasaki's and Maekawa's checks.
- **Freeform surfaces.** Surfaces through networks of curves and Coons patches as exact B-splines,
  sheets through grids of points or a table of heights, N-sided fills and trimmed faces; seams held
  tangent or in curvature, their continuity proven; zebra stripes, a curvature map and a draft check
  drawn on the exact surfaces.
- **Assemblies and motion.** Parts placed in a `.3dcraftasm`, by reference or packed into it, joined by
  mates, joints and couplings (gears, racks, screws) solved by 3DCraft's own solver; a mechanism plays
  over a timeline with collisions in red, and any assertion can be checked over the whole motion.
- **Jigs.** Publish a design's sizes as parameters and share it as a `.3dcraftjig`: anyone sets them in a
  form, on the desktop or in the browser, and `check-range` proves the design over its whole range.
- **Files.** `.3dcraft` holds the history, and every file a released version saves opens in every later
  one; STEP import and export, and FreeCAD documents read in; STL, 3MF and OBJ for printing; DXF and SVG
  of outlines, flat patterns, whole cut sheets for a laser, and drawings of the model with hidden lines.
- **A native window and a web version.** egui on wgpu (Vulkan, Metal, DX12 or OpenGL) on the desktop,
  WebGPU or WebGL2 in the browser; a start screen with twenty examples, tabs, a view cube, a section plane
  to drag or lay on a face with its cut hatched, see-through, a history player, colours and materials,
  and a studio look with soft shadows.
- **Errors, not crashes.** A bad file, a bad parameter or a degenerate model gives an error you can act
  on, and an autosave brings your work back after a crash.

<p>
  <img src="docs/guide/images/jig-parameters.png" width="49%" alt="A Jig in the window: the Gridfinity bin on its Parameters tab, its sizes, compartments and options in the form, the bin in the view">
  <img src="docs/guide/images/motion.png" width="49%" alt="An assembly playing: the toggle clamp with its instances and mates in the side panel and the player under them, two parts that collide drawn in red">
</p>

*A Jig on its form (the Gridfinity bin), and an assembly playing its motion, collisions in red (the toggle clamp).*

## Examples

| | | | |
|---|---|---|---|
| [![Moka pot](docs/examples/published/thumbs/moka-pot.png)](https://github.com/johancoppens/3dcraft-examples/tree/main/examples/20-moka-pot)<br>**Moka pot**, a part: ten pieces sized by the physics of brewing, its capacities proven | [![Ship propeller](docs/examples/published/thumbs/ship-propeller.png)](https://github.com/johancoppens/3dcraft-examples/tree/main/examples/17-ship-propeller)<br>**Ship propeller**, a part: blades lofted from the B-series' published tables, its balance proven | [![Flat-pack bookcase](docs/examples/published/thumbs/flat-pack-bookcase.png)](https://github.com/johancoppens/3dcraft-examples/tree/main/examples/22-flat-pack-bookcase)<br>**Flat-pack bookcase**, a part: plywood plates on one CNC sheet, wedged tenons, a cut list | [![Mailer box](docs/examples/published/thumbs/mailer-box.png)](https://github.com/johancoppens/3dcraft-examples/tree/main/examples/09-mailer-box)<br>**Mailer box**, a part: a die-cut blank folded into the box, its cut and crease lines to DXF |
| [![Sheet-metal enclosure](docs/examples/published/thumbs/sheet-metal-enclosure.png)](https://github.com/johancoppens/3dcraft-jigs/tree/main/jigs/13-sheet-metal-enclosure)<br>**Sheet-metal enclosure**, a Jig: a case around your board, flat patterns and bend order proven | [![Sundial](docs/examples/published/thumbs/sundial.png)](https://github.com/johancoppens/3dcraft-jigs/tree/main/jigs/26-sundial)<br>**Sundial**, a Jig: hour lines for your place, in brass to laser cut and engrave | [![Jansen walker](docs/examples/published/thumbs/jansen-walker.png)](https://github.com/johancoppens/3dcraft-assemblies-examples/tree/main/assemblies/02-jansen-walker)<br>**Jansen walker**, an assembly: twelve legs on one crank, many closed loops in one solve | [![Radial engine](docs/examples/published/thumbs/radial-engine.png)](https://github.com/johancoppens/3dcraft-assemblies-examples/tree/main/assemblies/06-radial-engine)<br>**Radial engine**, an assembly: seven cylinders and their valve train over one engine cycle |

These eight are among the twenty examples built into 3DCraft (ten parts, six Jigs, four assemblies). Each
opens from the start screen with one click, offline and in the browser too, and is rebuilt from its history
as it opens; the player then shows how it was built, or plays the assembly's motion. The rest are in
[3dcraft-examples](https://github.com/johancoppens/3dcraft-examples), [3dcraft-jigs](https://github.com/johancoppens/3dcraft-jigs)
and [3dcraft-assemblies-examples](https://github.com/johancoppens/3dcraft-assemblies-examples), and in the
website's [galleries](https://3dcraft.dev/examples/). The examples are MIT, the Jigs and assemblies CC BY 4.0
([licences](docs/examples/published/LICENSE.md)).

How it grew: [the first showcase](docs/showcase/) and the field tests of
[12](docs/field-test/2026-10-12/README.md) and [22 October 2026](docs/field-test/2026-10-22/README.md).

## Build from source

You need [Rust](https://rustup.rs) and, on Linux, the windowing packages the guide lists
([Build from source](docs/guide/install.md#build-from-source)). In a clone of this repository:

```sh
cargo xtask fonts    # once: fetches the built-in fonts, which are not in the repository
cargo build --release -p craft3d -p craft3d-cli
target/release/craft3d-cli run --new '{"units":"mm"}' \
    --cmd variable.set  --params '{"name":"width","expr":"60 mm"}' \
    --cmd feature.block --params '{"size":["width","width * 2 / 3","8 mm"]}' \
    --out part.3dcraft
target/release/craft3d-cli render part.3dcraft --out part.png
target/release/craft3d part.3dcraft
```

To let an AI agent model in the window, start `target/release/craft3d`, switch on **Allow AI agents** in the
start screen's panel *Connect an AI agent*, and add 3DCraft to your AI tool once: for Claude Code with this
line, which the panel's **Copy command** gives with the path filled in (the panel has the configuration for
other MCP clients too, and [the guide](docs/guide/install.md#connect-an-ai-agent-over-mcp) says more):

```sh
claude mcp add 3dcraft -- "$PWD/target/release/craft3d-cli" mcp --bridge
```

Contributors and agents working on 3DCraft: read [`CONTRIBUTING.md`](CONTRIBUTING.md), [`AGENTS.md`](AGENTS.md) and [`docs/`](docs/README.md).

Contributors: [`CONTRIBUTING.md`](CONTRIBUTING.md); agents: [`AGENTS.md`](AGENTS.md); security: [`SECURITY.md`](SECURITY.md). Licence: [MIT](LICENSE).

TDQS

A4.1/5.0

Scored across 6 tools

Disambiguation4/5

The main overlap risk is command_run vs command_batch, but the descriptions explicitly state that one command goes through command_run and several in order go through command_batch, so the boundary is learnable. doc_inspect, doc_render_preview and selection_get each target a clearly different concern (document state, visual output, selection), and command_list is unmistakably the discovery tool.

Naming Consistency4/5

All names follow a domain_action shape (command_*, doc_*, selection_*), which is readable and predictable. Minor deviations: command_batch uses a noun where its siblings use verbs (list, run), and doc_render_preview is a three-token outlier, but nothing is confusing.

Tool Count5/5

Six tools is well within a healthy scope, and the design deliberately funnels the large CAD command surface through command_list/command_run/command_batch rather than inflating the tool count. Each tool has a distinct job: discover, execute, batch, inspect, render, read selection.

Completeness4/5

The domain (create/open/save files, model, inspect, export, notes, assemblies, undo) is covered because nearly everything is reachable as a command, and doc_inspect/selection_get/render_preview cover the read side. The only friction is that no tool surface is self-describing without first calling command_list, and mutating selection or per-feature diagnostics must go through the command escape hatch.

Maintenance

ActivityActive
ResponsivenessOutdated data