Skip to content

Repository files navigation

PCBGPT Logo

PCBGPT

AI-Powered PCB Design Assistant

Generate KiCad schematics from natural language descriptions

Frontend Docker Build Backend Docker Build Desktop App Build

✨ Features

  • 🔍 Component search from indexed KiCad libraries
  • 📋 Datasheet analysis to extract reference circuits and pin configs
  • Circuit generation with correct connections and values
  • LLM-driven validation loop that checks the design, then iterates on fixes
  • 📤 KiCad export — schematics, netlists, and PDF docs
  • 💬 Modern web UI with real-time streaming chat and tool tracking

🚀 Quick Start

Requirements

  • Python 3.11+
  • Node.js 22+
  • KiCad, including kicad-cli
  • An OpenAI-compatible model provider

Docker (recommended)

git clone https://github.com/tk-king/pcbGPT.git
cd pcbGPT
docker compose up --build

Local development

Install the backend dependencies:

cd backend
uv sync --extra dev

Start the FastAPI backend:

uv run python main.py

In a second terminal, start the frontend:

cd frontend
npm ci
npm run dev

Component data

Datasets/ and datasheets/ contain local runtime data and are excluded from Git. After configuring your KiCad paths in the Parts screen, use Parts → Reindex to build the component search indexes. Datasheet PDFs and page-preview caches are downloaded as needed.

Configure an LLM provider from the Settings screen. Never commit API keys or real provider credentials.

Desktop app (prebuilt)

Download the latest prebuilt desktop app from the releases:

📖 Usage

  1. Configure a provider — open Settings (gear icon) and add your LLM API key + models.

  2. Index parts — click Parts, configure the KiCad library paths, and run Reindex.

  3. Describe a circuit — start a session and type a prompt, e.g.:

    Design a buck converter that converts 12V to 3.3V at up to 1A.
    Use a TI TPS5430 and include input/output filtering.
    
  4. Review & export — the agent searches parts, reads datasheets, generates and validates the circuit, then exports KiCad project files. Download the Netlist (SPICE) or Project (full KiCad files).

Generated designs must be reviewed by a qualified engineer before fabrication or use in safety-critical systems.

📬 Contact

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages