cli-keys

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->
<!-- 由 src/lib/agentSkills/generator.ts 生成;手动编辑将被覆盖 -->

Overview

概述

Create, list, rotate, and revoke OmniRoute API keys from the CLI. Manage OAuth flows for provider authentication and inspect key scopes and expiration.
通过 CLI 创建、列出、轮换和吊销 OmniRoute API 密钥。管理用于提供商认证的 OAuth 流程,并检查密钥权限范围和过期时间。

Quick install

快速安装

bash
npm install -g omniroute   # or: npx omniroute
omniroute --version
bash
npm install -g omniroute   # or: npx omniroute
omniroute --version

Subcommands

子命令

keys

keys

Example:
bash
omniroute keys
示例:
bash
omniroute keys

keys add <provider> [apiKey]

keys add <provider> [apiKey]

Flags:
  • --stdin
Example:
bash
omniroute keys add <provider> [apiKey]
选项:
  • --stdin
示例:
bash
omniroute keys add <provider> [apiKey]

keys list

keys list

Flags:
  • --json
Example:
bash
omniroute keys list
选项:
  • --json
示例:
bash
omniroute keys list

keys remove <provider>

keys remove <provider>

Flags:
  • --yes
Example:
bash
omniroute keys remove <provider>
选项:
  • --yes
示例:
bash
omniroute keys remove <provider>

keys regenerate <id>

keys regenerate <id>

Flags:
  • --yes
Example:
bash
omniroute keys regenerate <id>
选项:
  • --yes
示例:
bash
omniroute keys regenerate <id>

keys revoke <id>

keys revoke <id>

Flags:
  • --yes
Example:
bash
omniroute keys revoke <id>
选项:
  • --yes
示例:
bash
omniroute keys revoke <id>

keys reveal <id>

keys reveal <id>

Example:
bash
omniroute keys reveal <id>
示例:
bash
omniroute keys reveal <id>

keys usage <id>

keys usage <id>

Flags:
  • --limit <n>
Example:
bash
omniroute keys usage <id>
选项:
  • --limit <n>
示例:
bash
omniroute keys usage <id>

keys policy

keys policy

Example:
bash
omniroute keys policy
示例:
bash
omniroute keys policy

keys show <id>

keys show <id>

Example:
bash
omniroute keys show <id>
示例:
bash
omniroute keys show <id>

keys set <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>
选项:
  • --rate-limit <n>
  • --max-cost <n>
  • --allowed-models <list>
  • --model-access-mode <mode>
  • --unrestricted
示例:
bash
omniroute keys set <id>

keys expiration

keys expiration

Example:
bash
omniroute keys expiration
示例:
bash
omniroute keys expiration

keys list

keys list

Flags:
  • --days <n>
  • --json
Example:
bash
omniroute keys list
选项:
  • --days <n>
  • --json
示例:
bash
omniroute keys list

keys rotate <id>

keys rotate <id>

Flags:
  • --grace-period <ms>
  • --yes
Example:
bash
omniroute keys rotate <id>
选项:
  • --grace-period <ms>
  • --yes
示例:
bash
omniroute keys rotate <id>

oauth

oauth

Example:
bash
omniroute oauth
示例:
bash
omniroute oauth

oauth providers

oauth providers

Example:
bash
omniroute oauth providers
示例:
bash
omniroute oauth providers

oauth start

oauth start

Flags:
  • --provider <id>
  • --no-browser
  • --import-from-system
  • --social <s>
  • --timeout <ms>
Example:
bash
omniroute oauth start
选项:
  • --provider <id>
  • --no-browser
  • --import-from-system
  • --social <s>
  • --timeout <ms>
示例:
bash
omniroute oauth start

oauth status

oauth status

Flags:
  • --provider <id>
Example:
bash
omniroute oauth status
选项:
  • --provider <id>
示例:
bash
omniroute oauth status

oauth revoke

oauth revoke

Flags:
  • --provider <id>
  • --connection-id <id>
  • --yes
Example:
bash
omniroute oauth revoke
选项:
  • --provider <id>
  • --connection-id <id>
  • --yes
示例:
bash
omniroute oauth revoke