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(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. With chromapi run --sim, it runs on your PC at https://localhost:5000.

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.

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

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.0.2
File Size Uploaded Provenance Actions
chromapi-1.0.2.tar.gz 10.6 MB With provenance Details for chromapi-1.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 21.2 MB

Release files / chromapi-1.0.2.tar.gz

Download URL chromapi-1.0.2.tar.gz
Size 10.6 MB
Tags Source
SHA-256 checksum
How to use checksums
b33df23ed44f2d97da0594361d2b88eaee9a12fc2c2d51b7475028a977e2879c
BLAKE2b-256 checksum
How to use checksums
e24d65e274a8cbf62a91d5bf7ca046239700b95dca6a49f92b5650278934882a
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 26, 2026.

Transparency log

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

Download URL chromapi-1.0.2-py3-none-any.whl
Size 10.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
180827f26c19cbf1633b40c573e137c07a704778d76e84481b79330a9e6b3922
BLAKE2b-256 checksum
How to use checksums
0c0b26a34e5bc528fa53742134f537b120cf6edbc2c7d16d353a6839fc969150
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 26, 2026.

Transparency log

Security for chromapi 1.0.2

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.0.2.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 26, 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