mcpField
C
cli-keys

cli-keys

github.com/diegosouzapwSecurity82.2k949 installsUpdated today
Repository

About cli-keys

cli-keys is an OmniRoute CLI skill for administering API keys and provider OAuth connections. It covers key lifecycle, access policies, usage, expiration, and authentication flows.

Key features

  1. 01Add, list, and reveal API keys
  2. 02Rotate and revoke keys
  3. 03Inspect key scopes and expiration
  4. 04Set rate, cost, and model policies
  5. 05Start and inspect provider OAuth

Use cases

  1. 01Rotating a key with a grace period
  2. 02Restricting keys to selected models
  3. 03Reviewing key usage and expiration
  4. 04Connecting or revoking provider OAuth

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/diegosouzapw/omniroute --skill cli-keys

After installing, type/cli-keysin Claude Code to confirm it loaded.

Details

From the project README

Overview

Create, list, rotate, and revoke OmniRoute API keys from the CLI. Manage OAuth flows for provider authentication and inspect key scopes and expiration.

Quick install

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

Subcommands

keys

Example:

omniroute keys
keys add <provider> [apiKey]

Flags:

  • --stdin

Example:

omniroute keys add <provider> [apiKey]
keys list

Flags:

  • --json

Example:

omniroute keys list
keys remove <provider>

Flags:

  • --yes

Example:

omniroute keys remove <provider>
keys regenerate <id>

Flags:

  • --yes

Example:

omniroute keys regenerate <id>
keys revoke <id>

Flags:

  • --yes

Example:

omniroute keys revoke <id>
keys reveal <id>

Example:

omniroute keys reveal <id>
keys usage <id>

Flags:

  • --limit <n>

Example:

omniroute keys usage <id>
keys policy

Example:

omniroute keys policy
keys show <id>

Example:

omniroute keys show <id>
keys set <id>

Flags:

  • --rate-limit <n>
  • --max-cost <n>
  • --allowed-models <list>
  • --model-access-mode <mode>
  • --unrestricted

Example:

omniroute keys set <id>
keys expiration

Example:

omniroute keys expiration
keys list

Flags:

  • --days <n>
  • --json

Example:

omniroute keys list
keys rotate <id>

Flags:

  • --grace-period <ms>
  • --yes

Example:

omniroute keys rotate <id>
oauth

Example:

omniroute oauth
oauth providers

Example:

omniroute oauth providers
oauth start

Flags:

  • --provider <id>
  • --no-browser
  • --import-from-system
  • --social <s>
  • --timeout <ms>

Example:

omniroute oauth start
oauth status

Flags:

  • --provider <id>

Example:

omniroute oauth status
oauth revoke

Flags:

  • --provider <id>
  • --connection-id <id>
  • --yes

Example:

omniroute oauth revoke

Comments

Markdown supported