Deploy to the agent hub
These are the terminal twins of the agent hub screens — maestro deploy,
maestro deployments, and maestro metrics mirror the TUI’s /deploy,
/deployments, and /metrics. A deployed chain is served as an HTTP agent on
the hub, with its own Swagger UI.
maestro deploy <chain_id>
Section titled “maestro deploy <chain_id>”Deploy a saved chain to the agent hub as an HTTP agent. The command mints an
api_key; the hub then fetches the chain by entity_id on the given channel
and validates that it loads (a rejection surfaces here).
maestro deploy weather-risk --name weather-risk --channel stable| Flag | Default | Purpose |
|---|---|---|
chain_id | — | Memory entity_id of the chain to deploy. |
--name NAME | slug of chain_id | Agent name on the hub. |
--channel C | stable | Channel to deploy — production ships the released version, not the dev tip. |
On success it prints the deployed agent’s name, its URL, and a link to its
/docs (Swagger) page. There is no --json for this command.
maestro deployments
Section titled “maestro deployments”List the agents currently on the hub — a readiness badge, URL, version, and run count per deployment.
maestro deploymentsmaestro deployments --json| Flag | Default | Purpose |
|---|---|---|
--json | off | Emit JSON instead of the badge list. |
maestro metrics [name]
Section titled “maestro metrics [name]”Usage / cost metrics. Pass an agent name to read that agent’s /metrics;
omit it to summarise run counts across all deployments.
maestro metrics weather-risk # one agent's metricsmaestro metrics # run-count summary across the hubmaestro metrics --json| Flag | Default | Purpose |
|---|---|---|
name | — | Agent name (omit to summarise all deployments). |
--json | off | Emit JSON. |
Example: deploy, list, inspect
Section titled “Example: deploy, list, inspect”Deploy a chain on the stable channel, confirm it landed, then read its metrics:
# 1. Deploy the chain (hub must already be running)maestro deploy weather-risk --channel stable# → deployed: weather-risk → http://127.0.0.1:8080/agents/weather-risk (docs: …/docs)
# 2. List what's on the hubmaestro deployments# → ● weather-risk http://127.0.0.1:8080/agents/weather-risk v1 runs=0
# 3. Read its usage metricsmaestro metrics weather-riskSee also
Section titled “See also”- Deploying Agents — the
/deployTUI flow, hub install, config, and autostart - Memory & Library — find a chain’s
entity_idto deploy - Production mode