Skip to main content

Agent and CLI for operating the Reachy Mini expressive robot — device setup, app management, and runtime ops.

Project description

reachy-mini-cli

Agent and CLI for operating the Reachy Mini expressive robot — device setup, app management, and runtime ops.

What you get

  • An agent-first CLI cited from teken (afi-cli) — the runtime package has no third-party dependencies.
  • A mesh identityculture.yaml (suffix + backend) and the matching prompt file (CLAUDE.md for backend: claude).
  • The canonical guildmaster skill kit (11 skills) under .claude/skills/, vendored cite-don't-import. See docs/skill-sources.md.
  • A build + deploy baseline — pytest, lint, the agent-first rubric gate, and PyPI Trusted Publishing wired into GitHub Actions.

Quickstart

uv sync --extra daemon                # default: + the local reachy-mini-daemon
# uv sync                             # remote profile: HTTP-only, no daemon deps
uv run pytest -n auto                 # run the test suite
uv run reachy whoami                  # identity from culture.yaml
uv run reachy learn                   # self-teaching prompt (add --json)
uv run teken cli doctor . --strict    # the agent-first rubric gate CI runs

CLI

Verb What it does
whoami Report this agent's nick, version, backend, and model from culture.yaml.
learn Print a structured self-teaching prompt.
explain <path> Markdown docs for any noun/verb path.
overview Read-only descriptive snapshot of the agent.
doctor Check the agent-identity invariants (prompt-file-present, backend-consistency).
cli overview Describe the CLI surface itself.

Every command supports --json. Results go to stdout, errors/diagnostics to stderr (never mixed). Exit codes: 0 success, 1 user error, 2 environment error, 3+ reserved.

Robot operations

The daemon, device, app, and move noun groups operate the Reachy Mini.

Install profiles

The Reachy daemon (reachy-mini-daemon) and the in-process SDK ship in reachy-mini. Choose your install by where the daemon runs:

  • Default — with the daemon: pip install 'reachy-cli[daemon]'. Bundles reachy-mini, so reachy daemon start can bring the daemon up locally. This is the profile for a machine with a robot attached.
  • Remote — without the daemon: pip install reachy-cli (bare). The base install keeps zero runtime dependencies (the http transport and the daemon status/stop verbs use only the stdlib). Use it on a control box that only talks to a daemon running elsewhere via --base-url / REACHY_BASE_URL. daemon start here exits 2 with a hint to install the [daemon] extra.

[sdk] (also reachy-mini) adds the in-process --transport sdk client.

Bring the daemon up

device/app/move are clients of a running daemon; daemon is the other half — it manages the local reachy-mini-daemon process.

Verb What it does
daemon start Spawn reachy-mini-daemon in the background, then poll its health route until ready. Idempotent.
daemon stop Stop the daemon this CLI started (SIGTERM, then SIGKILL).
daemon status Reconcile the tracked process (running/stopped/stale) with the HTTP health check.

reachy-mini-daemon defaults to --wake-up-on-start, so daemon start already wakes the robot. Forward daemon args after --, e.g. reachy daemon start -- --sim --no-wake-up-on-start. State (PID + log) lives under $XDG_STATE_HOME/reachy (~/.local/state/reachy).

Transports

The device, app, and move verbs talk to a running daemon through a selectable transport flavor:

  • http (default) — the Reachy daemon's REST API. Uses only the Python standard library, so the default install keeps zero runtime dependencies. Point it at a daemon with --base-url or REACHY_BASE_URL (default http://localhost:8000).
  • sdk — the in-process reachy_mini client. Install the optional extra: pip install 'reachy-cli[sdk]'. Covers motion/state; daemon and app verbs still require http.

Select per command with --transport {http,sdk} (or REACHY_TRANSPORT). Action verbs also accept --timeout. If no daemon is reachable, the command exits 2 with a clean error:/hint: pair — never a traceback.

Verb What it does
device status Daemon status: state, version, wireless/lite, simulation, IP.
device state Live robot state: head pose, antenna positions, body yaw.
app list Available apps (installed and installable).
app status The currently running app, if any.
app start <name> Start an installed app by name.
app stop Stop the currently running app.
move goto Move head/antennas (mm + degrees); see reachy explain move for flags.
move wake Play the wake-up animation.
move sleep Play the go-to-sleep animation.

Each noun also exposes overview (e.g. reachy move overview).

uv run reachy daemon start            # bring the local daemon up (and wake the robot)
uv run reachy device status           # now answers instead of exit-2
uv run reachy app list --json
uv run reachy move goto --z 10 --pitch -5 --duration 2
uv run reachy move wake
uv run reachy daemon stop             # put it back down when you're done

Demo mode — make the robot feel alive

demo-mode runs a continuous loop that streams gentle idle motion to the robot — a slow breathing oscillation, the occasional glance to a new gaze target, and a little antenna sway — so an idle robot looks present rather than frozen. It drives the robot through the same transport, so it needs a running daemon. It is built to run always-on and improve over time, so it has three layers.

Process (tracked background loop; PID + log under $REACHY_STATE_DIR / $XDG_STATE_HOME/reachy):

Verb What it does
demo-mode start Spawn the feel-alive loop in the background (idempotent; preflights the daemon first).
demo-mode stop Stop the loop this CLI started (SIGTERM eases the robot back to neutral, then SIGKILL).
demo-mode restart Apply an update — restart the service if active, else relaunch the background loop.
demo-mode status Loop process state + systemd unit state + whether the daemon answers.
demo-mode run Run the loop in the foreground (what start/the service launch); Ctrl-C to stop.

Config — persisted tuning at $XDG_CONFIG_HOME/reachy/demo-mode.json, read by run/start (CLI flags override per-invocation):

uv run reachy demo-mode config                       # show resolved config
uv run reachy demo-mode config --init                # write defaults
uv run reachy demo-mode config --set energy=0.8 interval=3

Keys: transport, base_url, timeout, interval (tempo), energy (liveliness 0n), interpolation, seed, wake, settle.

Service — run it always-on as a systemd --user unit (auto-restart on crash, start on boot):

uv run reachy demo-mode install      # write the reachy-demo-mode.service unit
uv run reachy demo-mode enable       # enable --now + linger (survives reboot)
uv run reachy demo-mode disable      # stop + disable
uv run reachy demo-mode uninstall    # remove the unit

The full flow:

uv run reachy daemon start                    # something for the loop to drive
uv run reachy demo-mode config --set energy=0.7
uv run reachy demo-mode start                 # robot starts feeling alive
uv run reachy demo-mode restart               # apply config/code updates
uv run reachy demo-mode stop                  # eases back to neutral

As you make the motion richer over time, edit reachy/alive.py (or the config) and demo-mode restart to apply it.

Behaviors — compose motion on a 50 Hz engine

behavior runs a 50 Hz engine that composes named behaviors on a per-channel contention model (head / antennas / body_yaw), with feel-alive as a passive base layer. Push behaviors onto the running engine from separate commands:

uv run reachy behavior engine start            # bring the 50 Hz loop up
uv run reachy behavior run speak --duration 8  # head bobs like speech
uv run reachy behavior status --json
uv run reachy behavior stop all                # keeps the feel-alive base layer

See reachy explain behavior for the full catalog, channels, and contention model.

Listen — orient the head toward sound

listen is sound-reactive: it reads the mic array's Direction of Arrival (DoA) from the daemon and turns the head toward a sustained, off-axis sound, holds there briefly, then eases back to center after silence. Unlike the behavior engine (which streams immediate set_target poses, jerky for big reorienting turns), it drives the daemon's smooth minjerk goto planner and runs one move at a time through a serial motion queue — so turns are soft and never conflict.

uv run reachy daemon start                     # something for the loop to drive
uv run reachy listen run                        # foreground, any sound (Ctrl-C to stop)
uv run reachy listen start                      # background, tracked process
uv run reachy listen status --json
uv run reachy listen stop                       # eases back to center

Tune the feel with --dwell (persist before turning), --hold (stay before reconsidering), --speed (deg/s), --deadband, and --gain; --speech-only reacts only to speech. It degrades gracefully: no mic / no daemon DoA ⇒ no reaction, no crash. Don't run it at the same time as demo-mode or the behavior engine — only one thing should drive the robot at a time. See reachy explain listen for details.

Make it your own

  1. Rename the package reachy/ and the reachy-mini-cli CLI/dist name throughout pyproject.toml, the package, tests/, and sonar-project.properties.
  2. Edit culture.yaml with your suffix and backend.
  3. Rewrite CLAUDE.md for your agent and run /init.
  4. Re-vendor only the skills you need from guildmaster (see docs/skill-sources.md).

See CLAUDE.md for the full conventions (version-bump-every-PR, the cicd PR lane, deploy setup).

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reachy_cli-0.7.0.tar.gz (317.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reachy_cli-0.7.0-py3-none-any.whl (107.3 kB view details)

Uploaded Python 3

File details

Details for the file reachy_cli-0.7.0.tar.gz.

File metadata

  • Download URL: reachy_cli-0.7.0.tar.gz
  • Upload date:
  • Size: 317.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for reachy_cli-0.7.0.tar.gz
Algorithm Hash digest
SHA256 541446cb006fb5168dc084fe731d222595acdc8c2d00995a333a5a9e6d03037b
MD5 b95af448131e104c4967d885c4e8b0a1
BLAKE2b-256 d37195e4b0ebdce1204e3fc32958dd52f6d9dd6d6e342b783d48d80cb7bc6611

See more details on using hashes here.

File details

Details for the file reachy_cli-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: reachy_cli-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 107.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for reachy_cli-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 284e7ae42f0a9d612674a63767aeec522099b7ca62537b1d1f83f2a6955007b0
MD5 091147b6d6de8b66e7ca238f5d74b597
BLAKE2b-256 49baed82bb3f36f76420097430ae90968d69552d61aaa0afad44d9f53f573641

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page