Manage provider connections from the CLI: list available/configured providers, add, test, test-all, validate, rotate API keys, and view per-provider metrics.
Scanned 9/8/2026
Install to Claude Code
npx -y skills add jaccen/AIRoute --skill cli-providers --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Cli Providers?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/jaccen-cli-providers)More formats (shields.io, HTML) on the badges page.
---
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."
---
<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->
## 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
```bash
npm install -g AIRoute # or: npx AIRoute
AIRoute --version
```
## Subcommands
### `provider-cmd provider [subcommand]`
Manage provider connections (use
**Example:**
```bash
AIRoute provider-cmd provider [subcommand]
```
### `providers`
**Example:**
```bash
AIRoute providers
```
### `providers available`
Show available providers in the AIRoute catalog
**Flags:**
- `--json`
- `--search <query>`
- `-q, --q <query>`
- `--category <category>`
**Example:**
```bash
AIRoute providers available
```
### `providers list`
List configured provider connections
**Flags:**
- `--json`
**Example:**
```bash
AIRoute providers list
```
### `providers test <idOrName>`
Test a configured provider connection
**Flags:**
- `--json`
**Example:**
```bash
AIRoute providers test <idOrName>
```
### `providers test-all`
Test all active provider connections
**Flags:**
- `--json`
**Example:**
```bash
AIRoute providers test-all
```
### `providers validate`
Validate local provider configuration without calling upstream
**Flags:**
- `--json`
**Example:**
```bash
AIRoute providers validate
```
### `providers rotate <idOrName>`
**Flags:**
- `--new-key <key>`
- `--from-env <VAR>`
- `--oauth`
- `--yes`
- `--skip-test`
- `--dry-run`
**Example:**
```bash
AIRoute providers rotate <idOrName>
```
### `providers status`
**Flags:**
- `--provider <name>`
- `--json`
**Example:**
```bash
AIRoute providers status
```
### `providers metrics`
**Flags:**
- `--provider <id>`
- `--connection-id <id>`
- `--period <p>`
- `--metric <m>`
- `--sort-by <field>`
- `--limit <n>`
- `--watch`
- `--compare <list>`
**Example:**
```bash
AIRoute providers metrics
```
### `providers metric <connectionId> <metric>`
**Flags:**
- `--period <p>`
**Example:**
```bash
AIRoute providers metric <connectionId> <metric>
```
### `test-provider test [provider] [model]`
**Flags:**
- `--all-providers`
- `--json`
- `--latency`
- `--repeat <n>`
- `--compare <models>`
- `--save <path>`
**Example:**
```bash
AIRoute test-provider test [provider] [model]
```
<!-- skill:custom-start -->
<!-- Migrated from skills/AIRoute-cli-providers/SKILL.md (preserved curated content) -->
# AIRoute — CLI Providers & Keys
Requires the `AIRoute` CLI. See [CLI entry-point skill](https://raw.githubusercontent.com/diegosouzapw/AIRoute/main/skills/AIRoute-cli/SKILL.md) for install + global flags.
## Provider catalog (available providers)
```bash
AIRoute providers available # Full AIRoute provider catalog
AIRoute providers available --search openai # Filter by id, name, alias
AIRoute providers available --category api-key # Filter by category
AIRoute providers available --json # Machine-readable JSON
```
Categories: `api-key`, `oauth`, `free`, `local`, `combo`.
## Configured provider connections
```bash
AIRoute providers list # Connections in your DB
AIRoute providers list --json
```
## Testing connections
```bash
AIRoute providers test <id|name> # Test one configured connection
AIRoute providers test-all # Test every active connection (TUI progress)
AIRoute providers validate # Local-only structural validation (no HTTP)
```
`test-all` opens an interactive TUI that shows live pass/fail per connection. Use `--json` to get a machine-readable result:
```bash
AIRoute providers test-all --json
```
## API key management (AIRoute keys)
These manage the AIRoute API keys issued under **API Manager** — not provider credentials.
```bash
AIRoute keys list # List all AIRoute API keys
AIRoute keys add <provider> [apiKey] # Add an API key for a provider
AIRoute keys remove <provider> # Remove an API key
AIRoute keys regenerate <id> # Regenerate (rotate) a key
AIRoute keys revoke <id> # Revoke a key (disables it)
AIRoute keys reveal <id> # Show the full key value
AIRoute keys usage <id> # Show usage stats for a key
AIRoute keys rotate <id> # Rotate + revoke old key atomically
AIRoute keys expiration list # List key expiration times
```
### Key policies
```bash
AIRoute keys policy show <id> # Show rate-limit / permission policy
AIRoute keys policy set <id> \
--rate-limit 100 \
--rate-window minute \
--permissions chat,models # Set policy on a key
```
## Models
```bash
AIRoute models # List all models (all providers)
AIRoute models openai # Filter by provider
AIRoute models --search gpt # Search by name
AIRoute models --json # JSON output
```
## OAuth providers
```bash
AIRoute oauth list # List OAuth-configured providers
AIRoute oauth login <provider> # Start browser-based OAuth flow
AIRoute oauth logout <provider> # Revoke OAuth token
AIRoute oauth status <provider> # Show token state + expiry
AIRoute oauth refresh <provider> # Force token refresh
```
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.
```bash
AIRoute nodes list <provider> # List nodes for a provider
AIRoute nodes add <provider> --api-key <key> # Add a node
AIRoute nodes remove <provider> <nodeId> # Remove a node
AIRoute nodes test <provider> <nodeId> # Test one node
```
## Routing combos (CLI)
Create and manage routing combos from the terminal:
```bash
AIRoute combo list # List all combos
AIRoute combo create <name> \
--strategy priority \
--targets anthropic/claude-opus-4-7,openai/gpt-4o # Create combo
AIRoute combo switch <name> # Activate a combo as default
AIRoute combo delete <name> # Delete a combo
AIRoute combo suggest --task "code review" # Ask AIRoute to recommend a combo
```
For the full REST API for combos see [AIRoute-routing skill](https://raw.githubusercontent.com/diegosouzapw/AIRoute/main/skills/AIRoute-routing/SKILL.md).
## Quota & usage
```bash
AIRoute quota # Provider quota usage + reset times
AIRoute usage # Request + token usage summary
AIRoute cost # Cost breakdown (by provider/model)
```
## Compression (CLI)
```bash
AIRoute compression status # Current compression mode + savings stats
AIRoute compression set --mode rtk # Enable RTK compression
AIRoute compression set --mode stacked # Enable stacked (RTK + Caveman)
AIRoute compression set --mode off # Disable compression
AIRoute compression preview --mode rtk --text "..." # Preview savings for sample text
```
## Health
```bash
AIRoute health # Detailed health: circuit breakers, cache, memory
```
## 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`
<!-- skill:custom-end -->
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!