Deploy to the agent hub
These are the terminal twins of the agent hub screens — care deploy,
care deployments, and care 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.
care deploy <chain_id>
Section titled “care 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).
care 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.
care deployments
Section titled “care deployments”List the agents currently on the hub — a readiness badge, URL, version, and run count per deployment.
care deploymentscare deployments --json| Flag | Default | Purpose |
|---|---|---|
--json | off | Emit JSON instead of the badge list. |
care metrics [name]
Section titled “care metrics [name]”Usage / cost metrics. Pass an agent name to read that agent’s /metrics;
omit it to summarise run counts across all deployments.
care metrics weather-risk # one agent's metricscare metrics # run-count summary across the hubcare 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)care 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 hubcare deployments# → ● weather-risk http://127.0.0.1:8080/agents/weather-risk v1 runs=0
# 3. Read its usage metricscare 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