Skip to main content

Chromapi logo

Chromapi

An open-source 12-DoF quadruped robot that I design and build on my own.

Documentation · Examples · Discord · Contributing

Chromapi software Python 3.12+ CI: Linters CI: Unit Tests Issues DOI Stars

Chromapi dancing

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(sim=True) as robot:  # starts the simulation if none runs
    robot.wake_up(wait=True)
    robot.walk_distance(0.3)  # [m]
    robot.rest()

Chromapi() drives the simulation open on your PC (chromapi sim), else the robot on your network: the same script runs on both.

More demos are in examples/ (run chromapi sim first to stay in simulation).

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 update                   # install the latest release of the SDK, then restart Chromapi
chromapi flash                    # flash 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).

At boot, chromapid (the daemon that owns the robot) and chromapi run (the web app, at https://<robot-name>.local:5000) start. Your scripts run with the app on, from the robot or a PC of its network. chromapi run --sim serves the web app on your PC, on the simulation.

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.

PCBWay ENSEA
PCBWay ENSEA
PCB Manufacturing & Assembly 3D Printing & Prototyping

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.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chromapi 1.1.0
File Size Uploaded Provenance Actions
chromapi-1.1.0.tar.gz 10.7 MB With provenance Details for chromapi-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chromapi 1.1.0
File Interpreter ABI Platform Actions
chromapi-1.1.0-py3-none-any.whl Python 3 none any Details for chromapi-1.1.0-py3-none-any.whl

Total release size: 21.3 MB

Release files / chromapi-1.1.0.tar.gz

Download URL chromapi-1.1.0.tar.gz
Size 10.7 MB
Tags Source
SHA-256 checksum
How to use checksums
2a1a740f814c5b957c2aa19faa3f6a05ab0b43f18d7f6582bf368f0052a2ba89
BLAKE2b-256 checksum
How to use checksums
652dfb8b7cfc14c9abeb7c9432fe672a3b074099c81642213d614be508ec4368
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 29, 2026.

Transparency log

Release files / chromapi-1.1.0-py3-none-any.whl

Download URL chromapi-1.1.0-py3-none-any.whl
Size 10.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
75a3e6babfdba87f0e1a20c1bff3ad25e11d46bc90d5b30b80d52cc2f0dec582
BLAKE2b-256 checksum
How to use checksums
9a638f202f1e9f9f7626132f381a253ceebce562b31846ca084fb38eca8644db
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 29, 2026.

Transparency log

Security for chromapi 1.1.0

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.

Select from 2 files

Attestation for chromapi-1.1.0.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 29, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page