Skip to main content

CLI platform for physical AI developers to register project repos and clone them on demand.

Project description

cadenza-cli

A command-line platform for physical-AI developers: scaffold a robot project, describe a multi-phase mission as JSON, run it in simulation, and turn the rollouts into fine-tuning data for a vision-language-action policy.

Run cadenza with no arguments for an interactive shell, or pass a command to run it once (cadenza env run my-project --headless).

Commands

Command Description
mkdir <name> Scaffold a project: env.json + main.py + requirements.txt + README.
env init <name> Light scaffold — env.json only.
env show <name> Render the mission's zones, objects, and phases.
env run <name> [--headless] [--policy scripted|lora] [--xml <path>] Execute the mission, log every tick, and run the LLM judge.
env stats <name> Motion + reward analytics across cached runs.
env cache <name> [--keep-last <n>] [--older-than <dur>] [--clear] Show or prune the project's .cadenza-env/ runs.
env finetune <name> <log> [-o <file>] Emit (prompt, action, reward) records from a run log for VLA training.
env train <name> Groq LLM-as-Judge rewrites the project's system prompt (needs GROQ_API_KEY).
env action create <project> <name> [--group --steps '<a,b,c>'] [--custom --frames-file <file>] [--robot <name>] Build an action (group macro or custom keyframes); saved locally + synced to your account. Requires login.
env action list List your account's actions. Requires login.
env action show <project> <name> Inspect a local action.
env action remove <project> <name> Delete a local action.
env lora add <project> "<goal>" --steps '<...>' [--image <path>] Add a goal→action training example.
env lora data <project> [--finetune <path>] Show the training dataset.
env lora finetune <project> [--epochs <n>] [--lr <lr>] [--rank <r>] [--gate] Fine-tune the LoRA action head; --gate runs the governance scorecard.
env lora eval <project> [--promote] Run the governance scorecard on the trained adapter.
env lora decode <project> "<goal>" Decode a goal into actions via the trained adapter.
login <name> <token> Sign in; saves a session to ~/.cadenza/config.json.
logout Forget the saved session.
whoami Show the signed-in account.
apikey [--reveal] Show your token as a megan-tk API key + a snippet to use cadenza as an API in your project. Requires login.
usage [--days <n>] Show your megan-tk API usage: per-route calls + a session/anticipator rollup. Requires login.
help Show the command table.
clear Clear the screen.
--version Print the version and check for updates.

Use cadenza as an API (megan-tk SDK)

Your Cadenza sign-in token doubles as an API key — drop the SDK into any project and drive the hosted megan-tk symbolic governance directly. No Supabase credentials; the server meters every call against your account so usage (CLI) / MeganTK.usage() (SDK) can report it.

from cadenza_cli import MeganTK

tk = MeganTK(api_key="<your-token>")          # or MeganTK() to auto-resolve it

# milestone path — act where the token is focused
with tk.session("pick up the red cube", ["reach", "grasp", "lift"]) as s:
    d = s.step(reached=[0], obstacles=[{"id": "wall", "milestone": 1}])
    if d.adapt:
        handle(d.frontier)

# disturbance anticipator — learn a rhythm, pick a protective action
a = tk.anticipator(actions=["brace", "dodge"])
a.disturbance(t=1.2); a.outcome("brace", saved=True)
p = a.protect(t=3.4)                          # p.should_protect, p.best_action

print(tk.usage())                             # your metered consumption

The key is resolved from the api_key argument, CADENZA_API_KEY / CADENZA_TOKEN, or the signed-in CLI session. See examples/megantk_quickstart.py. Run apikey in the CLI for a ready-to-paste snippet.

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

cadenzalabs-0.1.0.tar.gz (198.3 kB view details)

Uploaded Source

Built Distribution

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

cadenzalabs-0.1.0-py3-none-any.whl (170.7 kB view details)

Uploaded Python 3

File details

Details for the file cadenzalabs-0.1.0.tar.gz.

File metadata

  • Download URL: cadenzalabs-0.1.0.tar.gz
  • Upload date:
  • Size: 198.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for cadenzalabs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8135c35559ce66f1c872032cd185b8758ae37d6c2f14ec3263af335cfcb92050
MD5 7aae4bd7e904cfc9fbbd25526f9d8fb3
BLAKE2b-256 25d6c74a6d6f24e655475c4a0647bf10e2d56a959641afb47c96206228fc3101

See more details on using hashes here.

File details

Details for the file cadenzalabs-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cadenzalabs-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 170.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for cadenzalabs-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fec0bc6c61899bf0d81895d58758c42c0647177cfc1a69a9614c9e7792bbe934
MD5 51a38e4586d3ce5655848fb5240f1f1b
BLAKE2b-256 e6f90f69892e72e26677ce7d9ce04a5444f4efa8762ff5df310f47f83b83a5b3

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