Create, list, rotate, and revoke OmniRoute API keys from the CLI. Manage OAuth flows for provider authentication and inspect key scopes and expiration.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-cli-keys-2da419490226 ,按照其中的说明把「cli-keys」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Create, list, rotate, and revoke OmniRoute API keys from the CLI. Manage OAuth flows for provider authentication and inspect key scopes and expiration.
npm install -g omniroute # or: npx omniroute
omniroute --version
keysExample:
omniroute keys
keys add <provider> [apiKey]Flags:
--stdinExample:
omniroute keys add <provider> [apiKey]
keys listFlags:
--jsonExample:
omniroute keys list
keys remove <provider>Flags:
--yesExample:
omniroute keys remove <provider>
keys regenerate <id>Flags:
--yesExample:
omniroute keys regenerate <id>
keys revoke <id>Flags:
--yesExample:
omniroute keys revoke <id>
keys reveal <id>Example:
omniroute keys reveal <id>
keys usage <id>Flags:
--limit <n>Example:
omniroute keys usage <id>
keys policyExample:
omniroute keys policy
keys show <id>Example:
omniroute keys show <id>
keys set <id>Flags:
--rate-limit <n>--max-cost <n>--allowed-models <list>Example:
omniroute keys set <id>
keys expirationExample:
omniroute keys expiration
keys listFlags:
--days <n>--jsonExample:
omniroute keys list
keys rotate <id>Flags:
--grace-period <ms>--yesExample:
omniroute keys rotate <id>
oauthExample:
omniroute oauth
oauth providersExample:
omniroute oauth providers
oauth startFlags:
--no-browser--import-from-system--social <s>--timeout <ms>Example:
omniroute oauth start
oauth statusFlags:
--provider <id>Example:
omniroute oauth status
oauth revokeFlags:
--connection-id <id>--yesExample:
omniroute oauth revoke