| name | cli-providers |
| description | Manage provider connections from the CLI: list available/configured providers, add, test, test-all, validate, rotate API keys, and view per-provider metrics. |
Overview
Manage provider connections from the CLI: list available/configured providers, add, test, test-all, validate, rotate API keys, and view per-provider metrics.
Quick install
npm install -g AIRoute
AIRoute --version
Subcommands
provider-cmd provider [subcommand]
Manage provider connections (use
Example:
AIRoute provider-cmd provider [subcommand]
providers
Example:
AIRoute providers
providers available
Show available providers in the AIRoute catalog
Flags:
--json
--search <query>
-q, --q <query>
--category <category>
Example:
AIRoute providers available
providers list
List configured provider connections
Flags:
Example:
AIRoute providers list
providers test <idOrName>
Test a configured provider connection
Flags:
Example:
AIRoute providers test <idOrName>
providers test-all
Test all active provider connections
Flags:
Example:
AIRoute providers test-all
providers validate
Validate local provider configuration without calling upstream
Flags:
Example:
AIRoute providers validate
providers rotate <idOrName>
Flags:
--new-key <key>
--from-env <VAR>
--oauth
--yes
--skip-test
--dry-run
Example:
AIRoute providers rotate <idOrName>
providers status
Flags:
Example:
AIRoute providers status
providers metrics
Flags:
--provider <id>
--connection-id <id>
--period <p>
--metric <m>
--sort-by <field>
--limit <n>
--watch
--compare <list>
Example:
AIRoute providers metrics
providers metric <connectionId> <metric>
Flags:
Example:
AIRoute providers metric <connectionId> <metric>
test-provider test [provider] [model]
Flags:
--all-providers
--json
--latency
--repeat <n>
--compare <models>
--save <path>
Example:
AIRoute test-provider test [provider] [model]
AIRoute — CLI Providers & Keys
Requires the AIRoute CLI. See CLI entry-point skill for install + global flags.
Provider catalog (available providers)
AIRoute providers available
AIRoute providers available --search openai
AIRoute providers available --category api-key
AIRoute providers available --json
Categories: api-key, oauth, free, local, combo.
Configured provider connections
AIRoute providers list
AIRoute providers list --json
Testing connections
AIRoute providers test <id|name>
AIRoute providers test-all
AIRoute providers validate
test-all opens an interactive TUI that shows live pass/fail per connection. Use --json to get a machine-readable result:
AIRoute providers test-all --json
API key management (AIRoute keys)
These manage the AIRoute API keys issued under API Manager — not provider credentials.
AIRoute keys list
AIRoute keys add <provider> [apiKey]
AIRoute keys remove <provider>
AIRoute keys regenerate <id>
AIRoute keys revoke <id>
AIRoute keys reveal <id>
AIRoute keys usage <id>
AIRoute keys rotate <id>
AIRoute keys expiration list
Key policies
AIRoute keys policy show <id>
AIRoute keys policy set <id> \
--rate-limit 100 \
--rate-window minute \
--permissions chat,models
Models
AIRoute models
AIRoute models openai
AIRoute models --search gpt
AIRoute models --json
OAuth providers
AIRoute oauth list
AIRoute oauth login <provider>
AIRoute oauth logout <provider>
AIRoute oauth status <provider>
AIRoute oauth refresh <provider>
For OAuth providers (Gemini, Windsurf, Antigravity, etc.) the login command opens the AIRoute dashboard OAuth flow in your browser.
Provider nodes (multi-account routing)
Provider nodes let you attach multiple API keys / accounts to one logical provider for round-robin or failover.
AIRoute nodes list <provider>
AIRoute nodes add <provider> --api-key <key>
AIRoute nodes remove <provider> <nodeId>
AIRoute nodes test <provider> <nodeId>
Routing combos (CLI)
Create and manage routing combos from the terminal:
AIRoute combo list
AIRoute combo create <name> \
--strategy priority \
--targets anthropic/claude-opus-4-7,openai/gpt-4o
AIRoute combo switch <name>
AIRoute combo delete <name>
AIRoute combo suggest --task "code review"
For the full REST API for combos see AIRoute-routing skill.
Quota & usage
AIRoute quota
AIRoute usage
AIRoute cost
Compression (CLI)
AIRoute compression status
AIRoute compression set --mode rtk
AIRoute compression set --mode stacked
AIRoute compression set --mode off
AIRoute compression preview --mode rtk --text "..."
Health
AIRoute health
Errors
providers test <id> fails with 401 → API key stored for that provider is wrong; use keys remove + keys add to reset it
oauth login opens but doesn't complete → the OAuth token endpoint may be firewalled; use API key auth instead
combo create fails with strategy unknown → use one of: priority, weighted, round-robin, fill-first, least-used, cost-optimized, auto, random, strict-random, p2c, reset-aware, lkgp, context-optimized, context-relay