OpenConstructionDesign

mcp
Security Audit
Warn
Health Warn
  • License — License: AGPL-3.0
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Pass
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Free, open-source CAD-BIM editor in Rust that your AI can drive: drafts with Apply, IFC in/out, MCP, Lua, ERP link.

README.md

OpenConstructionDesign logo

OpenConstructionDesign

A free, open-source CAD-BIM editor that your AI can drive.

Latest release Downloads CI status Licence: AGPL-3.0 Platforms: Windows, Linux, browser Rust 1.89+ IFC 2X3, 4 and 4.3 MCP compatible ERP link Works offline
Website Last commit Stars Open issues Discussions PRs welcome

Download · Install · ERP link · Quickstart · Gallery · Editor · AI and MCP · MEP · Export · Lua · Build

The OpenConstructionDesign editor with a six-storey housing block: project browser, plan and 3D side by side, AI chat, generate and check, and the properties of a selected room

Download

Download for Windows (zip)

v1.0.0 · 62 MB · Windows 10/11 x64 · 8 GB RAM · works offline · no account

Platform Get it Notes
Windows 10/11 x64 Download the zip Full editor. Unzip and run ddc-app.exe.
Browser Online demo Coming soon.
Linux x64 Download the tar.gz (71 MB) Editor ddc-app and ddc CLI. Ubuntu 22.04+, Debian 12+ (glibc 2.35), X11 or Wayland.
macOS Build from source No release build; untested.

All releases · Website · User guide

OpenConstructionDesign is a CAD-BIM editor written in Rust, with its own geometry kernel and file
readers. You describe a building in the built-in chat, over MCP or as a JSON brief; the editor
produces real walls, rooms, doors, stairs and building services as a highlighted preview, and
nothing changes in your model until you press Apply. Bring a cloud model with your own key,
or run a local model through Ollama. The model and its full change history live in one SQLite
file on your machine, and IFC goes in and out.

[!NOTE]
The latest release is v1.0.0. The project file format, the APIs and the interface
can still change between releases. Keep the original of every model you open and keep an IFC
export for long-term storage. See Current limits.

Install in 60 seconds

  1. Download the Windows zip (…-windows-x64.zip) (62 MB).
  2. Unzip anywhere and run ddc-app.exe. Nothing is installed in the system and no account is
    needed. The build is not code-signed yet, so Windows SmartScreen may warn once: choose
    More info → Run anyway, and check the SHA-256 on the release page if you want to be sure.
    If the window does not open or rendering is broken, start ddc-app.exe --safe-graphics.
  3. Make something. Open Ask AI in the ribbon and describe a change, open an IFC file, or
    generate a whole building from the sample brief
    brief.de-residential.json
    (see Quickstart).
Build from source

Needs Git, the MSVC build tools and Rust 1.89+ via rustup; details in
Build from source and docs/BUILDING.md.

git clone https://github.com/datadrivenconstruction/OpenConstructionDesign.git
cd OpenConstructionDesign
cargo build --release -p ddc-app -p ddc-cli
cargo run --release -p ddc-app
CLI quick start: a building from a brief

ddc gen is compiled in with the link feature (cargo build --release -p ddc-cli --features link).

ddc gen --brief crates/io/contract/examples/brief.de-residential.json --out housing.ddc
ddc info housing.ddc
ddc open housing.ddc --export ifc4 housing.ifc

ERP link: change the model, the estimate follows

Flow from an ERP project brief through ddc gen, the editor and ddc publish to an estimate in OpenConstructionERP, next to the estimate screen

OpenConstructionERP estimate built from the housing block model: grand total EUR 3,560,405.95 over seven positions

€3,560,405.95

Estimate of the 6-storey housing block, priced straight from the model.

7 positions · 6,730 elements · 7 levels · quantities from the model, rates from the DE_BERLIN cost database.

Move a wall, add a floor or change a type in the editor, publish, and the quantities, the estimate, the 4D schedule and procurement in OpenConstructionERP update with it.

OpenConstructionERP is the open
construction ERP from the same team. The editor hands it every element with a stable key, its
quantities and its level.

  • Brief in, model out. An ERP project brief goes through ddc gen --brief; you review the
    preview in the editor and press Apply.
  • One revision package. ddc publish writes elements.parquet, quantities, the diff to the
    last revision, sheets and IFC4; the ERP matches keys and updates the estimate, 4D schedule and
    procurement.
  • Files or a live session. Exchange packages as files (offline) or link a session through a
    .ddclink file with the token in the OS key store. Code does the maths, not the AI. An ERP
    edition with the editor built in is in preparation.

OpenConstructionERP on GitHub ·
openconstructionerp.com ·
ERP link on the website ·
Details below

Quickstart

  1. Start ddc-app.exe.
  2. Open Ask AI in the ribbon and pick a model: Ollama on your own computer (no key), or paste
    a key for a cloud provider. The key stays in the Windows credential store.
  3. Describe a change in plain words, for example
    "Add a 2-storey extension on the east side, 12 × 8 m, joined to the corridor on both levels."
  4. Review the highlighted preview in plan and 3D, untick items or change values, then press
    Apply. The whole plan is one undo step. Then keep editing by hand.

A whole building from a brief

For a new building, write a short JSON brief (use, storeys, structure, flat mix) and let the
generator lay it out. The schema is crates/io/contract/schemas/brief.schema.json;
a full example is brief.de-residential.json.

ddc gen --brief brief.json --out housing.ddc
ddc info housing.ddc
ddc open housing.ddc --export ifc4 housing.ifc
Brief excerpt: five-storey housing with a lift (from brief.de-residential.json)
{
  "schema": "ddc-brief/1",
  "name": "Wohnhaus Beispielstraße",
  "norm_pack": "de",
  "use": { "category": "residential_multi", "detail": "Mehrfamilienhaus, ein Treppenhaus" },
  "massing": {
    "floors_above": 5, "floors_below": 1, "floor_height_m": 3.0,
    "footprint": { "width_m": 34.0, "depth_m": 12.0 }, "lift": true
  },
  "programme": {
    "units": [
      { "name": "2-Zimmer", "count": 10, "area_m2": 52,
        "rooms": [{ "kind": "living" }, { "kind": "bedroom" }, { "kind": "kitchen" }, { "kind": "bath" }, { "kind": "hall" }] },
      { "name": "3-Zimmer", "count": 10, "area_m2": 74,
        "rooms": [{ "kind": "living" }, { "kind": "bedroom", "count": 2 }, { "kind": "kitchen" }, { "kind": "bath" },
                  { "kind": "hall" }, { "kind": "storage" }] }
    ],
    "spaces": [{ "kind": "technical", "name": "Technik", "floors": [-1], "area_m2": 40 }]
  },
  "structure": { "system": "masonry", "foundation": "raft" },
  "envelope": { "roof": "flat" }
}

[!NOTE]
ddc gen and ddc publish belong to the ERP link and are compiled in with the link feature:
cargo build --release -p ddc-cli --features link.

What you can build

Each model is regenerated from its source in one command: a brief for the housing block, a Lua
script for the stadium and the tower. Times are wall-clock generation on one laptop with release
0.10; figures come from each run's own summary.

Six-storey U-shaped housing block around a garden court Football stadium bowl under a ring roof, with parking and trees Steel diagrid tower on a podium with a pool terrace and planting
6-storey housing block (brief → ddc gen)
U-shaped block around a garden court with HVAC, water, drainage and electrical.
10,274 elements · 504 walls · 354 rooms · 4,521 MEP runs · 412 circuits · 0 audit errors · 7 min
Football stadium (Lua)
A bowl under a ring roof, with site, parking and planting. Structure and envelope only.
6,441 elements · 12 min
Diagrid tower (Lua)
A steel diagrid tower on a podium, with a mast and a landscaped site. Structure and envelope only.
6,203 elements · 13 min

Known gap in the housing block: 30 kitchen taps are not yet connected to the water network.

Lua recipes that ship with the editor

The recipes live in crates/script/data/recipes (24 files). Six of
them, rendered as they run with their default parameters:

Twisted diagrid tower
twisted_diagrid_tower.lua
24 floors, 90° twist · 768 elements
Stadium roof of cantilever trusses
stadium_roof.lua
32 cantilever trusses round a 60 × 42 m ellipse · 1,536 elements
Timber gridshell dome
timber_gridshell.lua
18 m radius, 7 m rise, glulam diagrid · 320 elements
Facade of rotated aluminium fins
fin_facade.lua
36 × 16 m, fins turned to an attractor · 149 elements
Cable-stayed footbridge
cable_stayed_footbridge.lua
80 m span, 4 m deck, one pylon · 602 elements
Space frame hall on perimeter columns
space_frame_hall.lua
12 × 8 modules of 3 m · 782 elements

All six pass audit{strict = true}. Nothing in the renders was edited by hand.

The editor

Plan and 3D in one window. Whatever the AI proposes, you can open, edit and finish by hand.

3D view of the six-storey housing block with flat 5.1 selected and its properties: area 16.27 m², perimeter 16,850 mm, height 3,000 mm, phases and project parameters
The six-storey housing block in the editor. Select anything in 3D or on the plan; the Properties panel shows the real values and edits them in place.

Level 2 plan of the housing block: numbered flats with names and areas, corridor, stair and lift, with water and ventilation runs
Plans. Rooms are named, numbered and measured, and follow every edit.
Housing block in four layers: architecture, supply air, supply and extract air, fixtures and appliances
MEP services. Ducts, pipes and fixtures run through the same model, layer by layer.
The Generate panel: a short brief, building type, storeys and floor height, with the steps Generate, Check and apply, Drawings, Files
AI generate and review. The AI builds a preview from a brief. Nothing changes until you press Apply.
Generated floor plan sheet of the housing block with rooms, dimensions and services
Drawings. Plans, sections and sheets come out of the model and stay in sync.

Scripted shapes

Twisted diagrid tower Stadium roof of cantilever trusses Timber gridshell dome Cable-stayed footbridge

Lua recipes that ship with the editor, rendered with default parameters. More on the site.

Full feature list

Modelling

  • Levels, grids, reference planes, walls (layered types, automatic joins), floors, ceilings,
    roofs, stairs, railings, ramps, curtain walls, openings, doors, windows, rooms and zones.
  • Own geometry kernel: exact predicates, B-rep solids, CSG, sweeps, NURBS, sketch constraints.
  • Parametric families: components with types and parameters defined inside the model.
  • Every edit is a journaled step with undo, redo, per-change history with its author, and
    version comparison.

Documentation and drawings

  • Plans, sections, elevations, 3D views, schedules, dimensions, tags, text, legends.
  • Sheets with title blocks and views placed at scale; vector PDF and SVG export.

Structure

  • Beams, columns, braces, structural walls and floors, footings, foundation slabs,
    reinforcement that follows its host; steel connections with plates and bolts.

Formats

  • Import IFC2X3, IFC4, IFC4X1 to IFC4X3 and .ifczip; export IFC2X3, IFC4 and IFC4.3.
  • Read .dwg and .dxf with independent decoders. The original file is never modified.
  • Export glTF, STEP, STL, OBJ, 3MF; issues as BCF 2.1/3.0.
  • .rvt through an optional, separately distributed bridge module that speaks the published
    bridge protocol; it is not part of this repository.
  • Clash detection, rule checks and model integrity checks.

Spreadsheets

  • Round-trip element parameters through XLSX; an import is one undo step with a per-cell report.
  • Query elements and open them as an editable table.

Automation

  • JSON edit scripts with preview, and recording of actions into a script.
  • Sandboxed Lua geometry scripts; the headless ddc CLI (open, info, batch, run;
    gen and publish with the ERP link).

AI and MCP

The editor runs no AI service of its own and is not tied to a vendor. It speaks OpenAI-style chat
completions and Anthropic-style messages, plus MCP for external clients. You pay your provider
directly, or nothing with a local model.

AI assistant settings: connection set to an Ollama model on this computer, design depth D1 to D5 per discipline
Connection What you set
Local Ollama on localhost:11434 is found automatically. No key; data stays on the machine.
Cloud An address and a key (Anthropic, OpenAI, Google Gemini, Mistral, DeepSeek and others). The key is kept in the OS secure store, never in the project file.
Custom Protocol, address and headers for your own server. An allow-list says which hosts the editor may call.
MCP Off by default, local only, same Apply rule.

Design depth (D1 to D5) is set per discipline: architecture, structure, MEP, documents.

[!IMPORTANT]
Preview, then Apply. The AI plans on a scratch copy, runs the model checks on its result and
shows it highlighted under a Preview, model unchanged banner, with the quantities it
adds. Nothing reaches your model until you press Apply; an applied plan is one undo step.

MCP server

Turn on MCP server in the editor. It listens on 127.0.0.1:47621 only and copies a client
config with a fresh token; revoke the token with one click.

Tool Purpose
get_context Project, levels and the current selection
query_elements Find walls, rooms, doors by any parameter
create_elements Add elements into the preview
run_checks Run the audit on the preview
request_apply Ask the user to press Apply
Client configuration

HTTP clients (for example .cursor/mcp.json):

{ "mcpServers": { "ddc-editor": {
    "type": "http", "url": "http://127.0.0.1:47621/mcp",
    "headers": { "Authorization": "Bearer <token>" } } } }

Command-line clients:

claude mcp add --transport http ddc-editor http://127.0.0.1:47621/mcp \
  --header "Authorization: Bearer <token>"

Clients that need a stdio bridge (for example claude_desktop_config.json):

{ "mcpServers": { "ddc-editor": {
    "command": "npx",
    "args": ["mcp-remote", "http://127.0.0.1:47621/mcp", "--header", "Authorization:${DDC_AUTH}"],
    "env": { "DDC_AUTH": "Bearer <token>" } } } }

More: docs/user/ai-assistant.md.

Building services (MEP)

The generator lays out services together with the building: ducts sized for the air each room
needs, pipes with their fittings, cooling and power for a data centre. They export as real IFC
classes (IfcDuctSegment, IfcPipeSegment, IfcCableCarrierSegment), not as boxes. Each grid
steps from the architecture through a ghosted shell to the service systems.

School in four steps: architecture, ventilation, water, drainage and heating, all services
3-storey school: ventilation, then water, drainage and heating. 276 service runs.
Clinic in four steps: architecture, cold and hot water, drainage and fixtures, all services
4-storey clinic: cold and hot water, drainage and fixtures. 983 service runs. No ventilation yet.
Housing block in four steps: architecture, supply air, supply and extract air, fixtures and appliances
6-storey housing: supply and extract air, fixtures and appliances. 702 service runs.
Data centre in four steps: architecture, chilled water and racks, power, all services
Data centre: chilled water (×2) with the rack rows, then power (×2). 330 service runs.
Process plant Process plant: storage tanks in a bund, a jacketed reactor, a distillation column, pumps and heat exchangers on a steel pipe rack

Process plant, 90 m³/h, from one brief: 29 units, 285 pipe runs, 978 m of pipe, 245 supports.
46 of 69 nozzles are connected so far; the plant check lists every open line.

[!NOTE]
Room-level electrical (boards, circuits, luminaires) is still being completed in the generator,
and the clinic has no ventilation yet. Both appear in the generator's own report.

Export: IFC4 and the ERP link

IFC read and write covers IFC2X3 to IFC4.3. The model is data first: every element carries a
stable key, its parameters and quantities, so an estimating or ERP system can price it. The
editor never invents a cost.

Diagram: a project brief from the ERP generates a model; the editor publishes a revision package with element rows and quantities; the ERP turns it into an estimate, a schedule and procurement

  • ddc gen --brief turns a project brief from the ERP into a model; ddc publish sends a model
    back as a revision package: element rows (elements.parquet), quantities, a diff against the
    parent revision, sheets, IFC and 3D geometry.
  • As files, this works offline and through any file share. A .ddclink file opens a linked
    session straight from the ERP; the project token lives only in the OS key store.

The housing block above, exported to IFC4 and opened in OpenConstructionERP 18.8.2:

OpenConstructionERP BIM viewer with the housing block from IFC4: 6,730 elements on 7 levels
Imported model: 6,730 elements on 7 levels, counted by category and storey. The ERP draws imported geometry as simplified boxes.
Wall 105 selected, with length 12 m, height 3 m, net volume 9.837 m³
Quantities per element: Wall 105 on Level 1, 12 m long, 3 m high, 9.837 m³ net volume.
Dry run of seven quantity rules: 2,060 matched elements and 7 bill positions
A dry run of 7 quantity rules matches 2,060 elements and shows the 7 bill positions it would create.
Estimate with seven positions from the model, such as 2,698.30 m³ of concrete walls
The estimate: seven positions with quantities from the model. Total EUR 3,560,405.95; unit rates are typed in as an example.

The ERP edition with the editor built in is in preparation. Without the ERP the editor works on
its own.

Lua scripting

Some shapes are a rule. A recipe declares its parameters with param, calls a builder and
ends with an audit; change a number and the whole shape rebuilds. Scripts run sandboxed: no
files, network, clock or randomness.

-- Twisted diagrid tower: steel diagonals in staggered rows, ring beams on every floor, slabs round a concrete core.
local floors = param("floors", 24, {min = 4, max = 80})
local radius = param("radius", "16 m", {min = "8 m", max = "40 m"})
local twist = param("twist", "90 deg", {min = "-180 deg", max = "180 deg"})
local taper = param("taper", 0.8, {min = 0.5, max = 1.2})
tower{floors = floors, floor_h = "4 m", radius = radius, sides = 12, twist = twist,
      taper = taper, system = "diagrid", module = 2, diagonal = "CHS 508x25",
      beam = "I 500x200", name = "tower"}
audit{strict = true}

Run it headless and override a parameter:

ddc run project.ddc crates/script/data/recipes/twisted_diagrid_tower.lua --out tower.ddc --param floors=32

Repository layout

Crate Role
app The desktop editor (ddc-app)
cli Headless CLI (ddc)
ui Application shell on egui: tokens, icons, commands, ribbon, localisation
render wgpu viewport renderer: scene chunks, instancing, camera, picking
model Building model stored in SQLite with an edit journal
ops Serialisable edit language shared by tools, imports, scripts and external clients
geom Geometry kernel
solver Geometric constraint solver for plan points
gen Seed-deterministic building generators and family templates
script Sandboxed Lua geometry scripts that emit one ops envelope
ai AI assistant core: providers, wire protocols, conversation loop, tool catalogue
io Import and export: IFC, DXF, XLSX, PDF, glTF; closed formats via an out-of-process bridge
bridge-proto Neutral interchange frames for out-of-process import bridges
link ERP link client: link file, token, context, lock, revisions
calc Structural analysis job: analytical model and loads to solver input
fem Linear static 3D frame finite elements

Architecture: docs/ARCHITECTURE.md.

Build from source

Windows 10/11 x64 is the primary platform. You need Git, the MSVC build tools ("Desktop
development with C++"; a C compiler is needed for the bundled SQLite and Lua) and Rust via
rustup (stable, MSVC target, 1.89 or newer; CI uses 1.95.0).

rustup component add rustfmt clippy
git clone https://github.com/datadrivenconstruction/OpenConstructionDesign.git
cd OpenConstructionDesign
cargo build --release -p ddc-app -p ddc-cli
cargo run --release -p ddc-app             # the editor
cargo run --release -p ddc-cli -- --help   # the CLI (binary name: ddc)

Tests

cargo test -q -p ddc-model         # one crate
cargo test -q --workspace          # everything (slow)
cargo fmt --all --check
cargo clippy --workspace -- -D warnings

Details and other platforms: docs/BUILDING.md.

Platform Status
Windows 10/11, x64 Supported; primary development platform
Linux Editor and CLI in every release, built on Ubuntu 22.04; library crates tested in CI
macOS Code paths exist; not regularly built or tested
Browser (wasm32) Online demo coming soon; the browser build is not part of this repository yet

Current limits

  • The .dwg and .dxf decoders are independent implementations covering common building
    elements and geometry, not every feature. Compare imports with the source.
  • The AI assistant can make mistakes; always read the preview and diff. Small local models
    handle only simple requests.
  • The structural solver is a library and is not yet exposed in the editor.
  • The project file format is not frozen; keep an IFC export for long-term storage.
  • Very large models can be slow.

Documentation

Document Contents
Getting started First model, files, saving
AI assistant Providers, preview, Apply
Formats Supported formats and IFC round trip
Families Parametric families
User guide Core workflows and shortcuts
Architecture Crates, data flow, journal, AI contract
Building Building and testing
Changelog What shipped

Contributing

Contributions are welcome; read CONTRIBUTING.md. Every contributor signs the
Contributor License Agreement before the first merge and signs off each commit
(git commit -s). Follow the Code of Conduct. Report vulnerabilities
privately as described in SECURITY.md, not in public issues.

OpenConstructionDesign belongs to one family with OpenConstructionERP
(estimates, schedules, procurement) and OpenConstructionAcademy
(courses on data-driven construction).

Licence

GNU Affero General Public License, version 3 only (AGPL-3.0-only). If you run a
modified version as a network service, you must offer its source to that service's users.
Third-party components keep their own licences; see THIRD_PARTY_LICENSES.txt
and NOTICE. A commercial licence is available where the AGPL does not fit; see
COMMERCIAL.md.

Reviews (0)

No results found