BOM Management
The BOM tools let you analyze component usage in your KiCad projects, export BOMs from schematics, estimate project costs, and view BOM data in multiple formats.
Quick reference
Section titled “Quick reference”| Task | Example prompt |
|---|---|
| Analyze components | Analyze the BOM for my KiCad project at /path/to/project.kicad_pro |
| Export a BOM | Export a BOM for my KiCad project at /path/to/project.kicad_pro |
| View formatted report | Show me the BOM report for /path/to/project.kicad_pro |
Analyzing a BOM
Section titled “Analyzing a BOM”Please analyze the BOM for my KiCad project at /path/to/project.kicad_proThe analyze_bom tool:
- Searches for existing BOM CSV files in the project directory
- Parses and analyzes the component data
- Generates a report with component counts, categories, and cost estimates (if available)
Exporting a BOM
Section titled “Exporting a BOM”If you do not have a BOM yet, export one directly:
Export a BOM for my KiCad project at /path/to/project.kicad_proThe export_bom tool:
- Finds the schematic file in your project
- Runs
kicad-cli sch export bomto generate a CSV - Saves the BOM alongside the project
- Returns the path to the generated file
Viewing BOM information
Section titled “Viewing BOM information”Formatted report
Section titled “Formatted report”Show me the BOM report for /path/to/project.kicad_proLoads the kicad://bom/project_path resource, showing total component count, breakdown by type, cost estimates (if available), component table, and optimization suggestions.
Raw CSV data
Section titled “Raw CSV data”Show me the raw CSV BOM data for /path/to/project.kicad_proReturns the raw CSV data from the BOM file, suitable for importing into spreadsheets.
JSON data
Section titled “JSON data”Show me the JSON BOM data for /path/to/project.kicad_proReturns a structured JSON representation for programmatic processing.
Understanding BOM results
Section titled “Understanding BOM results”Component categories
Section titled “Component categories”| Category | Description | Example refs |
|---|---|---|
| Resistors | Current-limiting, voltage-dividing | R1, R2, R3 |
| Capacitors | Energy storage, filtering | C1, C2, C3 |
| ICs | Integrated circuits | U1, U2, U3 |
| Connectors | Board-to-board, board-to-wire | J1, J2, J3 |
| Transistors | Switching, amplifying | Q1, Q2, Q3 |
| Diodes | Unidirectional current flow | D1, D2, D3 |
Cost information
Section titled “Cost information”The analysis extracts cost information if it is available in the BOM file. To include costs, add a “Cost” or “Price” column to your KiCad component fields before exporting.
Tips for BOM management
Section titled “Tips for BOM management”Structuring your exports
Section titled “Structuring your exports”- Use descriptive component values
- Add meaningful component descriptions
- Include footprint information
- Add supplier part numbers where possible
- Include cost information for better estimates
Optimizing component selection
Section titled “Optimizing component selection”Based on BOM analysis, consider:
- Standardizing component values (e.g., using the same resistor values across the design)
- Reducing the variety of footprints
- Selecting commonly available components
- Using components from the same supplier where possible
Keeping BOMs updated
Section titled “Keeping BOMs updated”- Re-export after significant schematic changes
- Compare with previous versions to identify changes
- Verify component availability
- Update cost estimates regularly
Advanced usage
Section titled “Advanced usage”Custom analysis
Section titled “Custom analysis”Looking at the BOM for my project, can you suggest ways to reducethe variety of resistor values while maintaining the same functionality?Comparing revisions
Section titled “Comparing revisions”Compare the BOMs between my projects at /path/to/project_v1.kicad_proand /path/to/project_v2.kicad_proTroubleshooting
Section titled “Troubleshooting”BOM analysis fails
Section titled “BOM analysis fails”- Ensure the BOM file is in CSV, XML, or JSON format
- Check that the file is not corrupted or empty
- Verify the file is in the project directory
- Try exporting a fresh BOM from the schematic
BOM export fails
Section titled “BOM export fails”- Make sure KiCad is properly installed
- Verify the schematic file exists and is valid
- Check write permissions in the project directory
- Look for kicad-cli in your PATH or set
KICAD_CLI_PATH