π¦ ClawHub
CAD Agent
by @clawd-maf
Send build123d CAD commands via HTTP to render images, allowing visual iteration on 3D models entirely within a containerized CAD environment.
βοΈ Configuration
1. Clone the Repository
git clone https://github.com/clawd-maf/cad-agent.git
cd cad-agent
2. Build the Docker Image
docker build -t cad-agent:latest .
Or using docker-compose:
docker-compose build
3. Run the Server
# Using docker-compose (recommended)
docker-compose up -dOr using docker directly
docker run -d --name cad-agent -p 8123:8123 cad-agent:latest serve
4. Verify Installation
curl http://localhost:8123/health
Should return: {"status": "healthy", ...}
> Docker-in-Docker caveat: In nested container environments (e.g., Clawdbot sandbox), host networking may not workβcurl localhost:8123 will fail even though the server binds to 0.0.0.0:8123. Use docker exec cad-agent python3 -c "..." commands instead. On a normal Docker host, localhost access works fine.
TERMINAL
clawhub install cad-agent