agentleFS
vikas8520-codervikas8520-coder/nerve/skills/cli-providers/SKILL.md

cli-providers

Skill0 starsChanged 3 months agoMITView on GitHub

Manage provider connections from the CLI: list available/configured providers, add, test, test-all, validate, rotate API keys, and view per-provider metrics.

  • Installs packages

4 other projects use a version of this, 4 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 3 are common, 0 are distinctive, and 0 are very specific to this project.

  • 3

    Common

    Most of the 4 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Common:

    Test a configured provider connection

    line 71
  2. Common:

    Test all active provider connections

    line 85
  3. Common:

    Create and manage routing combos from the terminal:

    line 289

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- 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

npm install -g nerve   # or: npx nerve
nerve --version

Subcommands

provider-cmd provider [subcommand]

Manage provider connections (use

Example:

nerve provider-cmd provider [subcommand]

providers

Example:

nerve providers

providers available

Show available providers in the Nerve catalog

Flags:

  • --json
  • --search <query>
  • -q, --q <query>
  • --category <category>

Example:

nerve providers available

providers list

List configured provider connections

Flags:

  • --json

Example:

nerve providers list

providers test <idOrName>

Test a configured provider connection

Flags:

  • --json

Example:

nerve providers test <idOrName>

providers test-all

Test all active provider connections

Flags:

  • --json

Example:

nerve providers test-all

providers validate

Validate local provider configuration without calling upstream

Flags:

  • --json

Example:

nerve providers validate

providers rotate <idOrName>

Flags:

  • --new-key <key>
  • --from-env <VAR>
  • --oauth
  • --yes
  • --skip-test
  • --dry-run

Example:

nerve providers rotate <idOrName>

providers status

Flags:

  • --provider <name>
  • --json

Example:

nerve providers status

providers metrics

Flags:

  • --provider <id>
  • --connection-id <id>
  • --period <p>
  • --metric <m>
  • --sort-by <field>
  • --limit <n>
  • --watch
  • --compare <list>

Example:

nerve providers metrics

providers metric <connectionId> <metric>

Flags:

  • --period <p>

Example:

nerve providers metric <connectionId> <metric>

test-provider test [provider] [model]

Flags:

  • --all-providers
  • --json
  • --latency
  • --repeat <n>
  • --compare <models>
  • --save <path>

Example:

nerve test-provider test [provider] [model]
<!-- skill:custom-start --><!-- Migrated from skills/nerve-cli-providers/SKILL.md (preserved curated content) -->

Nerve — CLI Providers & Keys

Requires the nerve CLI. See CLI entry-point skill for install + global flags.

Provider catalog (available providers)

nerve providers available                        # Full Nerve provider catalog
nerve providers available --search openai        # Filter by id, name, alias
nerve providers available --category api-key     # Filter by category
nerve providers available --json                 # Machine-readable JSON

Categories: api-key, oauth, free, local, combo.

Configured provider connections

nerve providers list                             # Connections in your DB
nerve providers list --json

Testing connections

nerve providers test <id|name>                   # Test one configured connection
nerve providers test-all                         # Test every active connection (TUI progress)
nerve 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:

nerve providers test-all --json

API key management (Nerve keys)

These manage the Nerve API keys issued under API Manager — not provider credentials.

nerve keys list                                  # List all Nerve API keys
nerve keys add <provider> [apiKey]               # Add an API key for a provider
nerve keys remove <provider>                     # Remove an API key
nerve keys regenerate <id>                       # Regenerate (rotate) a key
nerve keys revoke <id>                           # Revoke a key (disables it)
nerve keys reveal <id>                           # Show the full key value
nerve keys usage <id>                            # Show usage stats for a key

nerve keys rotate <id>                           # Rotate + revoke old key atomically
nerve keys expiration list                       # List key expiration times

Key policies

nerve keys policy show <id>                      # Show rate-limit / permission policy
nerve keys policy set <id> \
  --rate-limit 100 \
  --rate-window minute \
  --permissions chat,models                          # Set policy on a key

Models

nerve models                                     # List all models (all providers)
nerve models openai                              # Filter by provider
nerve models --search gpt                        # Search by name
nerve models --json                              # JSON output

OAuth providers

nerve oauth list                                 # List OAuth-configured providers
nerve oauth login <provider>                     # Start browser-based OAuth flow
nerve oauth logout <provider>                    # Revoke OAuth token
nerve oauth status <provider>                    # Show token state + expiry
nerve oauth refresh <provider>                   # Force token refresh

For OAuth providers (Gemini, Windsurf, Antigravity, etc.) the login command opens the Nerve 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.

nerve nodes list <provider>                      # List nodes for a provider
nerve nodes add <provider> --api-key <key>       # Add a node
nerve nodes remove <provider> <nodeId>           # Remove a node
nerve nodes test <provider> <nodeId>             # Test one node

Routing combos (CLI)

Create and manage routing combos from the terminal:

nerve combo list                                 # List all combos
nerve combo create <name> \
  --strategy priority \
  --targets anthropic/claude-opus-4-7,openai/gpt-4o  # Create combo
nerve combo switch <name>                        # Activate a combo as default
nerve combo delete <name>                        # Delete a combo
nerve combo suggest --task "code review"         # Ask Nerve to recommend a combo

For the full REST API for combos see nerve-routing skill.

Quota & usage

nerve quota                                      # Provider quota usage + reset times
nerve usage                                      # Request + token usage summary
nerve cost                                       # Cost breakdown (by provider/model)

Compression (CLI)

nerve compression status                         # Current compression mode + savings stats
nerve compression set --mode rtk                 # Enable RTK compression
nerve compression set --mode stacked             # Enable stacked (RTK + Caveman)
nerve compression set --mode off                 # Disable compression
nerve compression preview --mode rtk --text "..."  # Preview savings for sample text

Health

nerve 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 -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.