Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copy this file to `.env` and fill in your key.
# Get one at: https://platform.claude.com/

ANTHROPIC_API_KEY=your-key-here
28 changes: 21 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,20 @@ requirements.txt # Python dependencies

## Setup

CADSmith uses CadQuery, which needs a conda environment:
CADSmith needs CadQuery and VTK. Either of the following environments works.

**Option A — pip (Linux/macOS, Python 3.10–3.12):**

```bash
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
```

`cadquery` (and its OCCT kernel via `cadquery-ocp`) and `vtk` are pulled in
automatically by `requirements.txt`, so no separate installs are needed.

**Option B — conda (recommended on Windows or if the pip wheels misbehave):**

```bash
conda create -n cadquery python=3.10
Expand All @@ -110,16 +123,17 @@ conda install -c cadquery -c conda-forge cadquery=master
pip install -r requirements.txt
```

VTK is required for the three-view rendering:
```bash
pip install vtk
```
Set your Anthropic API key. Copy the template and fill in your key:

Set your Anthropic API key:
```bash
echo "ANTHROPIC_API_KEY=your-key-here" > .env
cp .env.example .env
# then edit .env and replace `your-key-here` with your real key
```

You can get a key at https://platform.claude.com/. Without a valid key the
agents will fail fast with a clear error message — the pipeline cannot run
without it because every agent (Planner, Coder, Judge, Refiner) is an LLM.

## Usage

### Run on a single prompt
Expand Down
Binary file added assets/hex_bolt_three_view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/powder_doser_assembly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading