SDK installation
If you are a developer or researcher looking to create interactions or experiment with new movements on Chromapi, you are in the right place! Chromapi’s SDK lets you program all kinds of behaviors on the robot in Python.
On the robot, the SDK is already installed in Chromapi OS. This page walks you through installing it on your computer too, to work in simulation or explore the code.
Prerequisites
- Python 3.12 or newer.
- pip (bundled with Python) or uv.
- Some familiarity with using a terminal: a tutorial is available on the site if it is your first time.
To develop in good conditions, it is recommended to install the SDK in a virtual environment. This avoids dependency issues between your projects.
Installing the SDK
There are two ways:
- From PyPI: the simplest way, to use the SDK in your own projects.
- From source: to contribute to the code or run the examples, which are not included in the package.
Extras
The SDK is installed with one or more extras, depending on your needs:
| Extra | What it adds |
|---|---|
sim | MuJoCo, for simulation |
audio | Sound playback |
hub | Downloading moves from Hugging Face |
rl | Running reinforcement learning policies (planned) |
all | All of the above |
For example, for simulation only: pip install "chromapi[sim]" or uv add "chromapi[sim]". Several extras can be combined with a comma: "chromapi[sim,audio]".
Checking the installation
Save this program in a file named my_script.py. It makes the simulated robot stand up then lie down:
from chromapi.chromapi import Chromapi
with Chromapi(backend="mujoco", launch_viewer=True) as robot:
robot.wake_up(wait=True)
robot.rest(wait=True)Then run the script:
If all went well, a MuJoCo window opens and Chromapi stands up.

Congratulations! You are all set to develop on Chromapi! Next, get familiar with the SDK basics.
On the robot
If you want to test movements on a real robot, connect over SSH with the chromapi account and the password chosen during
installation.
ssh chromapi@chromapi.localWarning!
The web app holds the motherboard’s serial port. Before running your own programs on the robot, stop it with Settings › Power › Developer mode. You can restart it with sudo systemctl start chromapi@$USER or on the next power-up.