# text-to-cad

> Give your agent CAD superpowers

- Type: agent or tool
- Field: IoT & Hardware
- Repository: https://github.com/earthtojake/text-to-cad
- GitHub stars: 27368
- Licence: MIT
- Language: Python
- Last push: 2026-11-25
- Page: https://imutechz.in/agents/text-to-cad

## What it is
text-to-cad is a plugin that gives AI agents CAD capabilities to design physical products. It installs into supported agent applications (Claude Code, Cursor, Gemini CLI, and many others) and lets the agent generate 3D models as Python scripts using build123d and OpenCASCADE, then runs them to produce STEP, STL, 3MF, or GLB files viewable in a local viewer. The plugin also provides PCB design with KiCad, manufacturing and stress checks, engineering drawings, photorealistic renders, fabrication service integration, and robotics simulation exports.

## Features
- Parts and assemblies as Python scripts with build123d/OpenCASCADE, exported to STEP, STL, 3MF, GLB, and DXF profiles
- Circuit board design with KiCad schematics, placement, routing, ERC/DRC checks, and fabrication output
- Manufacturing checks for machining, cutting, bending, molding, and 3D printing against process rules
- Stress analysis with CalculiX showing peak stress, safety factor, and displacement on the model
- Engineering drawings as dimensioned PDF sheets with views, hidden lines, hole callouts, and title blocks
- Photorealistic renders, turntables, and films via Blender with GPU acceleration

## Best for
- Designing mechanical parts and assemblies with AI assistance
- Creating and validating PCB layouts programmatically
- Checking manufacturability before production
- Running structural stress analysis on parts and assemblies

## Pros
- Works with 25+ AI agent applications via plugin/skill system
- Local execution with live viewer for immediate feedback
- Supports multiple export formats for different manufacturing processes
- Includes manufacturing and stress validation built into the workflow

## Cons
- Requires uv package manager (installed automatically if missing)
- Only works with agent apps that support plugins or skills
- Kimi Code requires manual plugin installation

## Install
```
curl -fsSL https://texttocad.dev/install.sh | sh
```

## Usage
```
ask your agent for a part or an assembly: it writes the model as a Python script, runs it to build the model and shows it in the viewer
```

Tags: cad, 3d-modeling, ai-agent, build123d, opencascade, pcb-design, manufacturing, fea
