AI-powered PCB design assistant plugin for KiCad with Ollama integration and real-time component pricing.
Ready to use:
- 📦 kicad-ai-assistant-v2.3.0-with-config.zip (~31KB) - Latest version with configuration system
For developers:
- 🔧 Clone this repository for complete source code, documentation, and screenshots
🎯 For most users: Download the ZIP file - it's specifically prepared for KiCad's Plugin Manager!
- AI Chat Interface: Interactive dialog for PCB design assistance
- 💰 Real-time Component Pricing: Get current pricing from multiple distributors via Nexar API
- 🔧 Configuration Management: Easy setup with tabbed configuration dialog
- Dual Analysis Modes: Support for both PCB layout and schematic/circuit analysis
- 3 Interaction Levels: Choose from Analysis, Advisory, or Assistant modes based on your needs
- Smart Mode Detection: AI adapts responses based on selected interaction mode
- Design Advice: Get practical suggestions for component placement, routing, and best practices
- Local LLM: Uses Ollama for privacy-focused AI processing
- Conversation Memory: AI remembers context throughout your design session
- 🌍 Multilingual Support: Choose from 6 languages (English, Nederlands, Deutsch, Español, Français, Português)
- Real-time Help: Ask questions about your design and get instant, context-aware answers
- Multi-Distributor Pricing: Real-time pricing from Digi-Key, Mouser, Farnell and more
- Demo Mode: Works immediately without API keys using realistic sample data
- API Key Management: Secure storage of Nexar API keys with encrypted configuration
- Bulk Pricing: Get pricing for all components in your PCB at once
- Smart Component Matching: Automatic matching of component values to distributor parts
- Pricing Tiers: See volume pricing for different quantities
- KiCad 9.0+
- Python 3.7+
- Ollama with
llama3.2:3bmodel - requests Python package
- Nexar API key (optional - demo mode works without it)
- Download the plugin ZIP: kicad-ai-assistant-v2.3.0-with-config.zip
- Open KiCad → Plugin and Content Manager
- Click Install from File
- Select the downloaded ZIP file
- Restart KiCad
- Download and extract the plugin
- Copy to your KiCad plugins directory:
- Windows:
%APPDATA%/kicad/9.0/scripting/plugins/ - macOS:
~/Library/Application Support/kicad/9.0/scripting/plugins/ - Linux:
~/.config/kicad/9.0/scripting/plugins/
- Windows:
Download and install Ollama from ollama.ai
ollama pull llama3.2:3bollama serveFor real-time component pricing, you can configure the Nexar API:
- Get a free API key from Nexar
- Open KIC-AI Assistant in KiCad
- Click the ⚙️ Config button
- Enter your API key in the "API Settings" tab
- Click Save
🎯 Note: The plugin works perfectly in demo mode without any API keys!
- Open your KiCad project in PCB Editor (File → Open → your_project.kicad_pcb)
- Click the KIC-AI robot icon in the PCB Editor toolbar
- Choose analysis mode:
- Schematic/Circuit: Analyze component values, connections, and circuit design
- PCB Layout: Analyze component placement, routing, and board layout
- Select language: Choose from 6 supported languages
- Select AI interaction mode:
- 🔍 Analysis Mode: Safe recommendations only
- 📋 Advisory Mode: Step-by-step guidance with confirmation
- 🤖 Assistant Mode: Interactive assistance and future automation
- Start chatting: Ask questions or click "Analyze" for automatic analysis
- Get component pricing: Click the "💰 Pricing" button for real-time pricing
- Configure settings: Click the "⚙️ Config" button to manage API keys and preferences
- Circuit analysis and component review
- Component value validation
- Net connectivity analysis
- Circuit design recommendations
- Component selection advice
- PCB layout analysis
- Component placement optimization
- Routing suggestions
- Design rule checking tips
- Manufacturing considerations
- What it does: Analyzes your design and provides recommendations
- Safety: No modifications to your project
- Best for: All users, learning, getting design insights
- What it does: Provides step-by-step instructions with user confirmation
- Safety: Guides you through changes with clear steps
- Best for: Users who want detailed guidance
- What it does: Detailed step-by-step instructions and component-specific guidance
- Safety: Advanced features for experienced users
- Best for: Power users, complex design tasks
Schematic Mode:
- "Review the power supply circuit"
- "Check if R1 value is appropriate"
- "Analyze the op-amp configuration"
- "Are there any missing decoupling capacitors?"
PCB Mode:
- "How can I improve the routing on this PCB?"
- "Are there any potential EMI issues?"
- "What's the best way to place these components?"
- "Can you review my power distribution?"
- "Get pricing for all components in this design"
The plugin includes powerful component pricing capabilities:
Demo Mode (No API Key Required):
- Click "💰 Pricing" to get realistic sample pricing
- Uses demo data from major distributors (Digi-Key, Mouser, Farnell)
- Perfect for testing and evaluation
API Mode (With Nexar API Key):
- Real-time pricing from actual distributors
- Up-to-date availability information
- Volume pricing tiers
- Multiple distributor comparison
Example Pricing Workflow:
- Design your PCB with component values
- Click "💰 Pricing" button
- View pricing breakdown by component
- See total BOM cost and availability
The plugin supports 6 languages with native AI responses:
- 🇬🇧 English
- 🇳🇱 Nederlands (Dutch)
- 🇩🇪 Deutsch (German)
- 🇪🇸 Español (Spanish)
- 🇫🇷 Français (French)
- 🇵🇹 Português (Portuguese)
"Cannot connect to Ollama"
- Make sure Ollama is running:
ollama serve - Check if the model is installed:
ollama list
"Requests module not available"
- Install requests:
pip install requests
Plugin doesn't appear in KiCad
- Check plugin installation path
- Restart KiCad completely
- Check KiCad logs for errors
kic-ai-assistant/
├── plugins/
│ ├── __init__.py # Plugin registration
│ ├── ai_dialog.py # Main dialog and AI integration
│ ├── config_manager.py # Configuration management system
│ ├── simple_mcp_client_embedded.py # Embedded MCP client for pricing
│ ├── nexar_server.py # Nexar API server implementation
│ └── robot_icon.png # Plugin icon
├── mcp_servers/ # Model Context Protocol servers
│ └── nexar.py # External Nexar MCP server
├── screenshots/ # Interface screenshots
├── README.md # This file
├── INSTALL.md # Detailed installation guide
├── CHANGELOG.md # Version history
├── CONFIG_UPDATE_v2.3.0.md # Configuration system documentation
├── metadata.json # Plugin metadata
└── LICENSE # MIT License
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Built for KiCad, the amazing open-source PCB design suite
- Powered by Ollama for local AI processing
- Thanks to the KiCad community for their support and feedback