agents-frame CLI is a thin wrapper over the REST API. It’s the
fastest way to feel the router without writing any code, and it’s
useful as glue inside shell pipelines, makefiles, and CI jobs.
Install
agents-frame. Node 18+ is required.
Authenticate
Set your API key as an environment variable:--api-key <key> per call, but env var is the
recommended path for anything beyond a one-off test.
Commands
agents-frame route <intent>
Runs /v1/think and prints the selected framework’s promptMd to
stdout.
| Flag | Default | Description |
|---|---|---|
--lang <en|zh> | auto | Override language detection. |
--top-k <n> | 3 | Number of candidates to consider. |
--recall-k <n> | 16 | pgvector recall pool size. |
--exclude <slug,...> | — | Comma-separated framework slugs to exclude. |
--json | off | Print the raw RouteResult instead of promptMd. |
--api-key <key> | env | Override AGENTS_FRAME_API_KEY. |
Recipes
Pipe the framework prompt straight into another LLM call:Exit codes
| Code | Meaning |
|---|---|
| 0 | Success. |
| 1 | Bad arguments / usage error. |
| 2 | Auth failed (missing/invalid API key). |
| 3 | Quota exceeded (HTTP 429). |
| 10 | Network or server error. |
Source
The CLI is open development atagentsframe/agents-frame-cli. It’s a thin shim — all the routing
logic lives behind the REST endpoint, so the CLI version mostly
tracks UX changes (flags, output formats) rather than engine
changes.