cadenza-cli Python package. The client is
standard-library only — it pulls in no third-party dependency and needs no
extras (gym / lora / rl / vla), so it’s safe to add to a lightweight
project.
The standalone
cadenza binary bundles its own Python and is not importable.
To use the SDK from your own code, install the Python package into your project’s
environment.1. Install the package
2. Get a token
Your API key is your Cadenza sign-in token. If you don’t have one, request one by emailing acparekh@stanford.edu, then sign in once so the CLI caches it:apikey:
3. How the key is resolved
MeganTK() finds your key in this order — the first hit wins:
If none resolve, the constructor raises
AuthRequired with a message telling you
how to supply one.
4. Your first decision
Configuration reference
| Setting | How to set it | Default |
|---|---|---|
| API key | MeganTK(api_key=...), CADENZA_API_KEY, CADENZA_TOKEN, or CLI session | — (required) |
| API URL | MeganTK(api_url=...) or CADENZA_API_URL | https://www.api.cadenzalabs.xyz |
| Timeout (s) | MeganTK(timeout=...) | 30.0 |
Point
CADENZA_API_URL (or api_url=) at a locally-running Cadenza API for
development. In production, leave it unset to use the hosted service.Next
Token sessions
The milestone and perception decision paths.
Usage & metering
See exactly what you’ve consumed.