Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add cheaper-inference/OmniRoute --skill cli-keys -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/cli-keys/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/cli-keys/

From the same set34

The whole set →
cli-setup cheaper-inference Helps the agent configure OmniRoute, manage autostart, apply CLI updates, and adjust session environment variables. Claude Code CX Codex Cursor +1 1,200installs omni-combos-routing cheaper-inference This skill creates and manages model routing combos with fallback chains, tests, and metrics. Use it when OmniRoute needs configurable provider routing. Claude Code CX Codex Cursor +1 1,200installs omni-inference cheaper-inference Connects OpenAI-compatible inference endpoints for chat, embeddings, audio, and images. Useful for AI agents calling OmniRoute endpoints. Claude Code CX Codex Cursor +1 1,100installs cli-providers cheaper-inference Manage OmniRoute provider connections from the CLI: inspect the catalog, test connections, rotate keys, and view metrics. Useful when provider setup is part of your terminal workflow. Claude Code CX Codex Cursor +1 1,100installs omni-auth cheaper-inference Manage API keys and sessions in OmniRoute. Authenticates requests via Bearer tokens, handles dashboard login with password or OIDC, and controls session access. Claude Code CX Codex Cursor +1 1,100installs cli-routing cheaper-inference Manage model routing combos from the command line with omniroute. Test routing strategies, inspect metrics, and configure fallback chains interactively. Claude Code CX Codex Cursor +1 1,100installs omni-mcp cheaper-inference Connects an agent to the OmniRoute MCP server for request routing, memory, cache, and audit work. Use it when those operations need to be available as MCP tools. Claude Code CX Codex Cursor +1 1,100installs omni-providers cheaper-inference Manages connections to 375 AI providers via REST API: adds keys, tests connections, syncs models. Claude Code CX Codex Cursor +1 1,100installs

Similar

cso garrytan Audits code and infrastructure for security findings, with reproduction and repair candidates in comprehensive mode. Use it when reviewing a project. Claude Code CX Codex Cursor +1 405installs ctf-ai-ml ljagiello Provides AI and machine learning attack techniques for CTF competitions, from adversarial examples to LoRA weight inspection and prompt injection. Claude Code CX Codex Cursor +1 7,700installs nestjs-expert https://github.com/Jeffallan A skill for designing and building NestJS backends in TypeScript: modules, services, controllers, validation, authentication and testing. Use it when building REST APIs or GraphQL services with enterprise patterns. Claude Code CX Codex Cursor +1 5,900installs differential-review trailofbits Reviews code changes for security issues using Git history and test coverage. Use it for commits, diffs, and pull requests that need a written review report. Claude Code CX Codex Cursor +1 8,800installs kr-whois-lookup NomaDamas Queries public registration data for .kr domains, IP addresses, and AS numbers via k-skill-proxy. Read-only tool for coding agents. Claude Code CX Codex Cursor +1 4,200installs fullstack-guardian https://github.com/Jeffallan Builds security-focused full-stack web features across frontend and backend layers. Useful for shipping authenticated APIs, CRUD forms, and database flows. Claude Code CX Codex Cursor +1 5,600installs git-guardrails-claude-code Matt Pocock This skill adds a Claude Code hook that stops risky Git commands before they run. Use it when an agent must not push or discard working-tree changes. Claude Code 499,069installs ponytail-review DietrichGebert ponytail-review reviews a change beyond the diff, checking connected code, bugs, risks, load, tests, speed, and unnecessary code. Use it for PRs and commits. Claude Code CX Codex Cursor +1 56,300installs

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

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor