File contents ---
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.
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
npm install -g AIRoute # or: npx AIRoute
AIRoute --version
Subcommands
keys
Example:
AIRoute keys
keys add <provider> [apiKey]
Flags:
Example:
AIRoute keys add <provider> [apiKey]
keys list
Flags:
Example:
AIRoute keys list
keys remove <provider>
Flags:
Example:
AIRoute keys remove <provider>
keys regenerate <id>
Flags:
Example:
AIRoute keys regenerate <id>
keys revoke <id>
Flags:
Example:
AIRoute keys revoke <id>
keys reveal <id>
Example:
AIRoute keys reveal <id>
keys usage <id>
Flags:
Example:
AIRoute keys usage <id>
keys policy
Example:
AIRoute keys policy
keys show <id>
Example:
AIRoute keys show <id>
keys set <id>
Flags:
--rate-limit <n>
--max-cost <n>
--allowed-models <list>
Example:
AIRoute keys set <id>
keys expiration
Example:
AIRoute keys expiration
keys list
Flags:
Example:
AIRoute keys list
keys rotate <id>
Flags:
--grace-period <ms>
--yes
Example:
AIRoute keys rotate <id>
oauth
Example:
AIRoute oauth
oauth providers
Example:
AIRoute oauth providers
oauth start
Flags:
--no-browser
--import-from-system
--social <s>
--timeout <ms>
Example:
AIRoute oauth start
oauth status
Flags:
Example:
AIRoute oauth status
oauth revoke
Flags:
--connection-id <id>
--yes
Example:
AIRoute oauth revoke
1 --- 2 name: cli-keys 3 description: --- 4 --- 5 --- 6 name: cli-keys 7 description: Create, list, rotate, and revoke AIRoute API keys from the CLI. Manage OAuth flows for provider authentication and inspect key scopes and expiration. 8 --- 9 <!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten --> 10 11 ## Overview 12 13 Create, list, rotate, and revoke AIRoute API keys from the CLI. Manage OAuth flows for provider authentication and inspect key scopes and expiration. 14 15 ## Quick install 16 17 ```bash 18 npm install -g AIRoute # or: npx AIRoute 19 AIRoute --version 20 ``` 21 22 ## Subcommands 23 24 ### `keys` 25 26 **Example:** 27 28 ```bash 29 AIRoute keys 30 ``` 31 32 ### `keys add <provider> [apiKey]` 33 34 **Flags:** 35 36 - `--stdin` 37 38 **Example:** 39 40 ```bash 41 AIRoute keys add <provider> [apiKey] 42 ``` 43 44 ### `keys list` 45 46 **Flags:** 47 48 - `--json` 49 50 **Example:** 51 52 ```bash 53 AIRoute keys list 54 ``` 55 56 ### `keys remove <provider>` 57 58 **Flags:** 59 60 - `--yes` 61 62 **Example:** 63 64 ```bash 65 AIRoute keys remove <provider> 66 ``` 67 68 ### `keys regenerate <id>` 69 70 **Flags:** 71 72 - `--yes` 73 74 **Example:** 75 76 ```bash 77 AIRoute keys regenerate <id> 78 ``` 79 80 ### `keys revoke <id>` 81 82 **Flags:** 83 84 - `--yes` 85 86 **Example:** 87 88 ```bash 89 AIRoute keys revoke <id> 90 ``` 91 92 ### `keys reveal <id>` 93 94 **Example:** 95 96 ```bash 97 AIRoute keys reveal <id> 98 ``` 99 100 ### `keys usage <id>` 101 102 **Flags:** 103 104 - `--limit <n>` 105 106 **Example:** 107 108 ```bash 109 AIRoute keys usage <id> 110 ``` 111 112 ### `keys policy` 113 114 **Example:** 115 116 ```bash 117 AIRoute keys policy 118 ``` 119 120 ### `keys show <id>` 121 122 **Example:** 123 124 ```bash 125 AIRoute keys show <id> 126 ``` 127 128 ### `keys set <id>` 129 130 **Flags:** 131 132 - `--rate-limit <n>` 133 - `--max-cost <n>` 134 - `--allowed-models <list>` 135 136 **Example:** 137 138 ```bash 139 AIRoute keys set <id> 140 ``` 141 142 ### `keys expiration` 143 144 **Example:** 145 146 ```bash 147 AIRoute keys expiration 148 ``` 149 150 ### `keys list` 151 152 **Flags:** 153 154 - `--days <n>` 155 - `--json` 156 157 **Example:** 158 159 ```bash 160 AIRoute keys list 161 ``` 162 163 ### `keys rotate <id>` 164 165 **Flags:** 166 167 - `--grace-period <ms>` 168 - `--yes` 169 170 **Example:** 171 172 ```bash 173 AIRoute keys rotate <id> 174 ``` 175 176 ### `oauth` 177 178 **Example:** 179 180 ```bash 181 AIRoute oauth 182 ``` 183 184 ### `oauth providers` 185 186 **Example:** 187 188 ```bash 189 AIRoute oauth providers 190 ``` 191 192 ### `oauth start` 193 194 **Flags:** 195 196 - `--no-browser` 197 - `--import-from-system` 198 - `--social <s>` 199 - `--timeout <ms>` 200 201 **Example:** 202 203 ```bash 204 AIRoute oauth start 205 ``` 206 207 ### `oauth status` 208 209 **Flags:** 210 211 - `--provider <id>` 212 213 **Example:** 214 215 ```bash 216 AIRoute oauth status 217 ``` 218 219 ### `oauth revoke` 220 221 **Flags:** 222 223 - `--connection-id <id>` 224 - `--yes` 225 226 **Example:** 227 228 ```bash 229 AIRoute oauth revoke 230 ```
jaccen/airoute/tree/main/skills/cli-keys commit 415caa9c8d
Frequently asked questions How do I install the CLI Keys skill? Run npx skillmds@latest add jaccen/cli-keys in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the CLI Keys skill do? --- It is listed under Coding & Dev Tools on SkillMD.
Is CLI Keys safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with CLI Keys? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is CLI Keys free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published CLI Keys? jaccen (@jaccen) published this skill. Their other Agent Skills are listed on their SkillMD profile.