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