cli-keys — Claude Code skill: what it does, how to install
Manages OmniRoute API keys and provider OAuth flows from your terminal. Handy when configuring model access and usage policies.
npx skills add cheaper-inference/OmniRoute --skill cli-keys -a claude-codeWhat cli-keys does
This skill guides your coding agent through the omniroute CLI tool. It handles creating and revoking API keys directly in the workspace. The agent can also trigger OAuth authentication flows for connected providers.
All operations rely on the omniroute package installed via npm or run through npx. You can set spending limits, define allowed models with --allowed-models, or inspect key expiration dates. The skill cannot execute operations if the CLI binary is missing.
What it helps with
- create and revoke OmniRoute API keys
- initiate OAuth flows for external providers
- set rate limits and spending caps on keys
- rotate credentials with a specified grace period
Example prompts for the agent
- List all OmniRoute keys in json format
- Rotate key id with grace period using omniroute
- Start oauth login for the provider without browser
How to install cli-keys
1Skills CLI (Vercel)
npx skills add cheaper-inference/OmniRoute --skill cli-keys -a claude-code2Manually: put the files in place
~/.claude/skills/cli-keys/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/cli-keys/
1Skills CLI (Vercel)
npx skills add cheaper-inference/OmniRoute --skill cli-keys -a codex2Manually: put the files in place
.agents/skills/cli-keys/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add cheaper-inference/OmniRoute --skill cli-keys -a cursor2Manually: put the files in place
.cursor/skills/cli-keys/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install cheaper-inference/OmniRoute cli-keys2Manually: put the files in place
.github/skills/cli-keys/SKILL.md1Skills CLI (Vercel)
npx skills add cheaper-inference/OmniRoute --skill cli-keys -a gemini-cli2Platform CLI
gemini skills install https://github.com/cheaper-inference/OmniRoute --path skills/cli-keysManually: put the files in place
.devin/skills/cli-keys/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add cheaper-inference/OmniRoute --skill cli-keys -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set34
The whole set →Similar
Questions about cli-keys
How to install cli-keys in Claude Code?
Run npx skills add cheaper-inference/OmniRoute --skill cli-keys -a claude-code in your terminal. This registers the skill for Claude Code.
What does cli-keys do?
It provides instructions for managing OmniRoute credentials. The agent can inspect policies, handle OAuth flows, and rotate keys.
What is required to run cli-keys commands?
You need the omniroute CLI on your system. Install it globally with npm install -g omniroute or execute it via npx omniroute.
Source text
SKILL.md · MIT
--- name: cli-keys description: Create, list, rotate, and revoke OmniRoute API keys from the CLI. Manage OAuth flows for provider authentication and inspect key scopes and expiration. --- <!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten --> ## 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 ```bash npm install -g omniroute # or: npx omniroute omniroute --version ``` ## Subcommands ### `keys` **Example:** ```bash omniroute keys ``` ### `keys add <provider> [apiKey]` **Flags:** - `--stdin` **Example:** ```bash omniroute keys add <provider> [apiKey] ``` ### `keys list` **Flags:** - `--json` **Example:** ```bash omniroute keys list ``` ### `keys remove <provider>` **Flags:** - `--yes` **Example:** ```bash omniroute keys remove <provider> ``` ### `keys regenerate <id>` **Flags:** - `--yes` **Example:** ```bash omniroute keys regenerate <id> ``` ### `keys revoke <id>` **Flags:** - `--yes` **Example:** ```bash omniroute keys revoke <id> ``` ### `keys reveal <id>` **Example:** ```bash omniroute keys reveal <id> ``` ### `keys usage <id>` **Flags:** - `--limit <n>` **Example:** ```bash omniroute keys usage <id> ``` ### `keys policy` **Example:** ```bash omniroute keys policy ``` ### `keys show <id>` **Example:** ```bash omniroute keys show <id> ``` ### `keys set <id>` **Flags:** - `--rate-limit <n>` - `--max-cost <n>` - `--allowed-models <list>` - `--model-access-mode <mode>` - `--unrestricted` **Example:** ```bash omniroute keys set <id> ``` ### `keys expiration` **Example:** ```bash omniroute keys expiration ``` ### `keys list` **Flags:** - `--days <n>` - `--json` **Example:** ```bash omniroute keys list ``` ### `keys rotate <id>` **Flags:** - `--grace-period <ms>` - `--yes` **Example:** ```bash omniroute keys rotate <id> ``` ### `oauth` **Example:** ```bash omniroute oauth ``` ### `oauth providers` **Example:** ```bash omniroute oauth providers ``` ### `oauth start` **Flags:** - `--provider <id>` - `--no-browser` - `--import-from-system` - `--social <s>` - `--timeout <ms>` **Example:** ```bash omniroute oauth start ``` ### `oauth status` **Flags:** - `--provider <id>` **Example:** ```bash omniroute oauth status ``` ### `oauth revoke` **Flags:** - `--provider <id>` - `--connection-id <id>` - `--yes` **Example:** ```bash omniroute oauth revoke ```
© cheaper-inference · MIT · cheaper-inference/OmniRoute