- name
- cli-keys
- description
- Create, list, rotate, and revoke AIRoute 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 AIRoute API keys from the CLI. Manage OAuth flows for provider authentication and inspect key scopes and expiration.
## Quick install
```bash
npm install -g AIRoute # or: npx AIRoute
AIRoute --version
```
## Subcommands
### `keys`
**Example:**
```bash
AIRoute keys
```
### `keys add <provider> [apiKey]`
**Flags:**
- `--stdin`
**Example:**
```bash
AIRoute keys add <provider> [apiKey]
```
### `keys list`
**Flags:**
- `--json`
**Example:**
```bash
AIRoute keys list
```
### `keys remove <provider>`
**Flags:**
- `--yes`
**Example:**
```bash
AIRoute keys remove <provider>
```
### `keys regenerate <id>`
**Flags:**
- `--yes`
**Example:**
```bash
AIRoute keys regenerate <id>
```
### `keys revoke <id>`
**Flags:**
- `--yes`
**Example:**
```bash
AIRoute keys revoke <id>
```
### `keys reveal <id>`
**Example:**
```bash
AIRoute keys reveal <id>
```
### `keys usage <id>`
**Flags:**
- `--limit <n>`
**Example:**
```bash
AIRoute keys usage <id>
```
### `keys policy`
**Example:**
```bash
AIRoute keys policy
```
### `keys show <id>`
**Example:**
```bash
AIRoute keys show <id>
```
### `keys set <id>`
**Flags:**
- `--rate-limit <n>`
- `--max-cost <n>`
- `--allowed-models <list>`
**Example:**
```bash
AIRoute keys set <id>
```
### `keys expiration`
**Example:**
```bash
AIRoute keys expiration
```
### `keys list`
**Flags:**
- `--days <n>`
- `--json`
**Example:**
```bash
AIRoute keys list
```
### `keys rotate <id>`
**Flags:**
- `--grace-period <ms>`
- `--yes`
**Example:**
```bash
AIRoute keys rotate <id>
```
### `oauth`
**Example:**
```bash
AIRoute oauth
```
### `oauth providers`
**Example:**
```bash
AIRoute oauth providers
```
### `oauth start`
**Flags:**
- `--no-browser`
- `--import-from-system`
- `--social <s>`
- `--timeout <ms>`
**Example:**
```bash
AIRoute oauth start
```
### `oauth status`
**Flags:**
- `--provider <id>`
**Example:**
```bash
AIRoute oauth status
```
### `oauth revoke`
**Flags:**
- `--connection-id <id>`
- `--yes`
**Example:**
```bash
AIRoute oauth revoke
```
View on GitHub