6e50db144641b72483fca490e39dce8be756104b
✅ Fixed: - Updated .gitignore to allow kicad-ai-assistant*.zip - Added kicad-ai-assistant.zip (36KB) to repository - Users can now download directly from GitHub 📋 Download link now works: https://github.com/jochemkroon/KiC-AI/raw/main/kicad-ai-assistant.zip
KiCad AI Assistant
Intelligent AI assistant for KiCad PCB design with real-time component pricing via Nexar API
🚀 Key Features
- Real-time Component Pricing: Multi-distributor pricing from Digi-Key, Mouser, Farnell, Newark, Arrow, etc.
- AI-Powered Design Assistant: Context-aware suggestions and optimizations
- Free Tier Available: 1,000 API calls/month with Nexar API (no credit card required)
- Seamless Integration: Works directly within KiCad interface
- 🌍 Multilingual Support: Choose from 6 languages (English, Nederlands, Deutsch, Español, Français, Português)
📋 Quick Setup
1. Install Plugin
For most users: Download kicad-ai-assistant.zip and extract to your KiCad plugins directory:
- Windows:
%USERPROFILE%\Documents\KiCad\scripting\plugins\ - macOS:
~/Documents/KiCad/scripting/plugins/ - Linux:
~/.kicad_plugins/
2. Get Free API Access
- Visit https://portal.nexar.com
- Create free account (1K calls/month)
- Create app and get API token
- Set environment:
export NEXAR_TOKEN="your_token"
3. Start Using
Open KiCad → Tools → AI Assistant and start getting real component pricing!
💡 Demo Mode
Works immediately without API token using realistic demo data for testing.
📋 Requirements
- KiCad 9.0+
- Python 3.7+
- Ollama with
llama3.2:3bmodel - requests Python package
🚀 Installation
Method 1: KiCad Plugin Manager (Recommended)
- Download the plugin ZIP: kic-ai-assistant-v1.4.5-final.zip
- Open KiCad → Plugin and Content Manager
- Click Install from File
- Select the downloaded ZIP file
- Restart KiCad
Method 2: Manual Installation
- 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:
🔧 Setup
1. Install Ollama
Download and install Ollama from ollama.ai
2. Install AI Model
ollama pull llama3.2:3b
3. Start Ollama Server
ollama serve
💡 Usage
How to Use KIC-AI Assistant
- 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
Dual Mode Capabilities
📋 Schematic Mode
- Circuit analysis and component review
- Component value validation
- Net connectivity analysis
- Circuit design recommendations
- Component selection advice
🔧 PCB Mode
- PCB layout analysis
- Component placement optimization
- Routing suggestions
- Design rule checking tips
- Manufacturing considerations
AI Interaction Modes
🔍 Analysis Mode (Safe)
- What it does: Analyzes your design and provides recommendations
- Safety: No modifications to your project
- Best for: All users, learning, getting design insights
📋 Advisory Mode (Guided)
- 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
🤖 Assistant Mode (Interactive)
- 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
Example Questions
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?"
🌍 Language Support
The plugin supports 6 languages with native AI responses:
- 🇬🇧 English
- 🇳🇱 Nederlands (Dutch)
- 🇩🇪 Deutsch (German)
- 🇪🇸 Español (Spanish)
- 🇫🇷 Français (French)
- 🇵🇹 Português (Portuguese)
🛠️ Troubleshooting
Common Issues
"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
📁 Project Structure
kic-ai-assistant/
├── plugins/
│ ├── __init__.py # Plugin registration
│ ├── ai_dialog.py # Main dialog and AI integration
│ └── robot_icon.png # Plugin icon
├── screenshots/ # Interface screenshots
├── README.md # This file
├── INSTALL.md # Detailed installation guide
├── CHANGELOG.md # Version history
├── metadata.json # Plugin metadata
└── LICENSE # MIT License
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- 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
Languages
Python
100%