Chromapi
An open-source 12-DoF quadruped robot that I design and build on my own.
Documentation · Examples · Discord · Contributing
Getting started
Three ways in, each detailed on the Chroma website:
- Build the robot: print the parts and order the components from the Bill of Materials, then follow the build guide.
- Set up a robot you have built: flash the Chromapi OS image on a microSD card with Raspberry Pi Imager (installation), then follow the first start steps and drive it from your phone with the web app.
- Program it, with or without a robot: install the SDK below and start in simulation.
Installation
Requires Python 3.12 or later.
pip install "chromapi[all]" # or, in a uv project: uv add "chromapi[all]"
Extras: audio enables sounds on the robot, sim installs MuJoCo for simulation, rl installs ONNX Runtime to run trained policies (coming soon!), and hub downloads moves from Hugging Face datasets.
To contribute or run the examples, install from source instead:
git clone https://github.com/Mowibox/chromapi
cd chromapi
uv sync --all-extras # or: pip install -e ".[all]"
In simulation
from chromapi.chromapi import Chromapi
with Chromapi(backend="mujoco", launch_viewer=True) as robot:
robot.wake_up(wait=True)
robot.walk_distance(0.3) # [m]
robot.rest()
More demos are in examples/. Each example runs on the robot, or in MuJoCo with --sim.
To keep a Chromapi simulation open between runs of your script, start the simulation window on its own, then use backend="sim-server":
chromapi sim # In a terminal: launches the simulation and its window (--headless: no window)
python my_script.py # In another terminal: Chromapi(backend="sim-server")
On the real robot
On the Raspberry Pi, once the motherboard firmware is flashed:
chromapi motors setup # interactive: set each servo's ID, one servo at a time
chromapi calibrate servos --all # find each servo's center from its mechanical stops (lift the robot first)
chromapi calibrate imu # measure the IMU board tilt, robot still on a level floor
chromapi health # what is wrong with the robot, and what to do about it
chromapi version # SDK, firmware and bridge protocol versions
chromapi flash # update the motherboard firmware (lay the robot down first)
chromapi report # support report to attach to a message on Discord
chromapi --help lists every command (python -m chromapi works too).
chromapi run starts the robot and its web app, at https://<robot-name>.local:5000 (or https://<robot-ip>:5000) from a phone or a PC on the same network.
The same code then runs on the robot with Chromapi(backend="hardware"), which talks to the motherboard over UART.
Project overview
| Resource | Description | Location | Status |
|---|---|---|---|
| 📋 Bill of Materials | Complete hardware, electronics, and 3D-printed parts list to build Chromapi from scratch. | Chroma Website | Available |
| 💻 Software API | Python control framework, hardware interfaces, and kinematic solvers. | /src/chromapi |
v1 Available |
| 📐 CAD Model | 3D mechanical design and robot assembly workspace. | Onshape Document | Available |
| 📖 Documentation | Getting started, build guide, SDK tutorials, hardware specifications and communication protocol. | Chroma Website | Available |
| 🛠️ Hardware Utilities | chromapi command: health check, servo setup and calibration tools. |
/src/chromapi/utils |
Available |
| 🤖 Simulation Models | URDF and MJCF models for MuJoCo simulation. | /src/chromapi/model |
Available |
| ⚡ Electronics | Custom PCB files, schematics, and low-level firmware. | chromapi_motherboard repository |
Available |
Authors
| Ousmane THIONGANE |
Sponsors & Acknowledgements
This project has been made possible thanks to the sponsors listed below. Their contributions in manufacturing, assembly, and prototyping have greatly accelerated the development of Chromapi.
Huge thanks to everyone who gave me feedback on Chromapi's design, shared ideas, or simply took the time to brainstorm with me. This project wouldn't be where it is today without your help!
Contributions
Contributions are always welcome!
- Report Issues: Found an error or have a feature request? Create a new issue here.
- Fix Bugs & Add Features: Find out where you can lend a hand by checking out existing issues.
Before opening a pull request, don't forget to run the linters and unit tests: uv run ruff check . && uv run mypy && uv run pytest.
By submitting a contribution, you agree that it is published under the license of the part it belongs to.
Citation
If you use Chromapi in your research, please cite it as below:
@software{othiongane_chromapi,
author = {Thiongane, Ousmane},
title = {Chromapi: an open-source 12-DoF quadruped robot},
month = nov,
year = {2026},
version = {1.0.0},
url = {https://github.com/Mowibox/chromapi},
doi = {10.5281/zenodo.24356978}
howpublished = "\url{https://github.com/Mowibox/chromapi}",
}
License
This repository is multi-licensed:
| Part | Path | License |
|---|---|---|
| Software (Python SDK, tools, tests, Raspberry Pi setup) | /src, /tests, /deploy |
Apache 2.0 |
| Robot description (URDF, MJCF, configuration files) | /src/chromapi/model |
Apache 2.0 |
3D meshes (.stl, .part) |
/src/chromapi/model/*/assets |
CC BY-NC-SA 4.0 |
| Documentation and media (README, images, GIFs) | /assets, this README |
CC BY-NC-SA 4.0 |
Third-party content keeps its own license: meshes of off-the-shelf parts (Raspberry Pi 4, IMX219 camera, Noctua NF-A4x10 fan, WS2812B ring, 18650 battery, speaker, microswitch, power switch, connectors, screws) come from their respective manufacturers. The ENSEA and PCBWay logos in /assets are trademarks of their respective owners.
Metadata
Release files for chromapi 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| chromapi-1.0.1.tar.gz | 10.6 MB | With provenance | Details for chromapi-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chromapi-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for chromapi-1.0.1-py3-none-any.whl |
Total release size: 21.2 MB
Release files / chromapi-1.0.1.tar.gz
| Download URL | chromapi-1.0.1.tar.gz |
|---|---|
| Size | 10.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62864d2a9356a754a4469d7eb4a71936ccdb1849e51f71e014a05701777e6c3f
|
|
BLAKE2b-256 checksum How to use checksums |
22468908ecb58bb8f9ab2f9f1153d471fae753ffeab12a2d3c852c5c75158ee2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logRelease files / chromapi-1.0.1-py3-none-any.whl
| Download URL | chromapi-1.0.1-py3-none-any.whl |
|---|---|
| Size | 10.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
48dcd2a2fd9f4a2a26c831050d1c2874dc266c77830b280838ae860ad4f90403
|
|
BLAKE2b-256 checksum How to use checksums |
37c09279eebc5c1ddd1a496b522bbbf3ae901f1a18a959bac0513642d4de524a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logSecurity for chromapi 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for chromapi-1.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.