amagine-ai/Amagine3D
Amagine3D: From hardware requirements to editable 3D designs
Amagine3D – AI‑driven CAD for hardware enclosures
What it is – An open‑source web application that lets you describe a hardware product (text, reference images, key dimensions) and automatically generates a full 3‑D enclosure design. The output includes editable Python / build123d source, genuine STEP, STL and 3MF files, plus a design‑check report.
Core capabilities
- Natural‑language to CAD – Turn a product description and images into a parametric BRep model.
- Semantic design state – Every part, feature, material and interface is stored in a “scene” that the AI agent can read, modify and version.
- Mechanical validation – Automatic checks for wall thickness, print orientation, interference, motion‑path clearance, and assembly tolerances.
- Editable source – Generated geometry is backed by Python code (build123d) that can be edited and re‑run to update the model.
- Multi‑part assemblies – Handles covers, hinges, latches, and other moving mechanisms, including collision testing.
- Export formats – STEP, STL, and 3MF (with color regions) are produced on demand.
- Vision‑enabled review – Optional image‑perception checks using a configured LLM model to verify visual references.
Example workflow (BUSY Bar enclosure)
- Provide the BUSY Bar product description, reference photos and key dimensions.
- The 3‑D‑native agent creates a multipart enclosure: front display window, top controls, internal mounting layout.
- The system exports build123d source, STEP and STL files, and a validation report.
- Users can tweak parameters in the UI; the source code is re‑executed to update the geometry instantly.
Quick start (for developers)
# clone and install
git clone https://github.com/amagine-ai/Amagine3D.git
cd Amagine3D
npm install
cp .env.example .env
# start the app (sets up a Python venv, installs build123d, OCP, etc.)
npm run dev
- Open
http://127.0.0.1:6160in a modern browser. - Configure an OpenAI‑compatible API key and optional Tavily key in
.env(see the README for the full list of variables). - The backend runs on
http://127.0.0.1:6161.
Architecture at a glance
React/Vite UI → Express API → Codex SDK/runtime → isolated workspace → Python CAD (build123d + OCP)
- UI – React components with Three.js viewer for interactive preview.
- Server – Express routes handle chat streaming, file uploads, and artifact storage.
- Runtime –
@amagine3d/a3d-runtimelaunches a sandboxed Codex thread per session, translating LLM actions into CAD commands. - Workspace – Each session gets its own directory (
workspace/sessions/<id>/) containing source, generated models, reports and previews. - Dependencies – build123d, Open CASCADE (via OCP), Three.js, trimesh, Manifold, lib3mf, and OpenAI Codex for the LLM agent.
Project status
- Active development – Focus on printable BRep geometry, multi‑color parts, and robust manufacturing checks.
- Tested in desktop Chrome/Edge; works without a separate CAD application.
- Documentation includes CAD workflow, threat model, and security policy.
License
Apache License 2.0 (see LICENSE).
Amagine3D aims to let a hardware concept start from simple textual and visual inputs and evolve through a continuous, AI‑guided 3‑D design loop, producing editable CAD and ready‑to‑print files.
Related
- Project
- Project
- Project