Installation¶
KiABOM can be used as a standalone Python script, or as an executable by using pyinstaller to build it. The installation instructions below essentially describe setting up these two options so that they can be used from the command line or through KiCad itself. If you already know how to accomplish this then there is nothing more to the installation section other than how to Setup APIs.
For users that aren’t familiar with Python it is recommended to use the executable as that is a much less involved process. An executable is provided for Windows users as are instructions for how to build one for Linux and macOS.
See the corresponding Executable Installation and Python Installation sections for how to install KiABOM. Make sure you also Setup APIs with your API keys.
Executable Installation¶
The currently provided executable is Windows only. Instructions for building KiABOM on Linux and macOS are provided.
Windows¶
Installing the executable for Windows involves placing it in a known location and adding it to the user Path environment variable. Once installation is done, make sure to restart any terminal and KiCAD instances so that the new Path environment variables are loaded.
Download the executable from the releases page or build one yourself.
Place the executable in a known location.
Edit your environment variables by searching
Edit environment variables for your accountin the start menu search, and clicking on the first result.Find the Path variable under User and add the path of the folder containing the KiABOM executable.
To test if it was done correctly, you may open a terminal window and type the command
kiabom --version, and you should be given the usage of the command, along with some nice ASCII art.Now you’re ready to Setup APIs.
Linux¶
Installing the executable on Linux involves building it yourself using pyinstaller.
Create a Python virtual environment (See Python Packaging User Guide here for details on how to do that).
Clone the repo, navigate to the project root directory and install the dependencies in the virtual environment with,
pip install -r src/requirements.txt
Also install pyinstaller and execute the following to build the executable,
pyinstaller src/kiabom.py -F --add-data LICENSE:. --icon images/kiabom-icon.ico
Place this executable somewhere where your system can find it so that it is accessible in every directory.
To test if it was done correctly, you may open a terminal window and type the command
kiabom --version, and you should be given the usage of the command, along with some nice ASCII art.Now you’re ready to Setup APIs.
macOS¶
KiABOM has not been tested on macOS but it believed that the Linux instructions should be very similar and familiar to macOS users.
Python Installation¶
If you would like to call the Python script directly, the the instructions here detail how to do that. In this process it is assumed you have Python 3.11+ and pip installed.
Windows¶
The process below is for using KiABOM through KiCad via Python. The tool can be treated as a regular Python script which does not require this process.
Clone the repo to a known location.
Open the KiCad <VERSION> Command Prompt by searching for it in the start menu OR if you don’t want to use it through KiCad, open any terminal.
Navigate to the repo location and install dependecies with,
pip install -r src/requirements.txt
An optional step would be to place
kiabom.pyin your KiCad installation’sscripting/pluginsfolder, which is where the rest of the shipped generator scripts are.Now you’re ready to Setup APIs.
Linux¶
Clone the repo to a known location.
Navigate to the repo location and install dependecies to a virtual environment (See Python Packaging User Guide here for details on how to do that) with,
pip install -r src/requirements.txt
An optional step would be to place
kiabom.pyand the virtual environment in your KiCad installation’sscripting/pluginsfolder, which is where the rest of the shipped generator scripts are.Now you’re ready to Setup APIs.
macOS¶
KiABOM has not been tested on macOS but it believed that the Linux instructions should be very similar and familiar to macOS users.
Setup APIs¶
To setup the APIs, you can either use the internal variables located at the start of kiabom.py (only possible when using Python to execute the script), or by setting up a config.yaml with the template below. This YAML file must be next to either the source file or executable, depending on what method you use.
DigiKey:
client_id:
client_secret:
sandbox: false/true
Mouser:
key:
API usage is based on the current state of the supplier APIs in June 2026. To get parts data from Mouser you need to sign up for their Search API. For DigiKey you need to go in their developer portal, create an Organisation, then create a Production app using ProductInformation V4. You may be prompted for a login in some APIs like DigiKey.