360 Secure SkillHub
360 安全技能中心

cli-keys

该 Skill 提供 omniroute CLI 命令参考,用于创建、列出、轮换、撤销 API 密钥,查看用量与策略,设置限流、模型访问和过期时间,并启动、查看或撤销 OAuth 提供商认证流程。内容以子命令和参数示例为主,未说明密钥存储、错误处理或安全最佳实践。

分类:安全
cheaper-inference
热度 0.00
最近更新 2026-11-06 05:37:11

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add cheaper-inference/omniroute/cli-keys
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
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.

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

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

Subcommands

keys

Example:

omniroute keys

keys add <provider> [apiKey]

Flags:

  • --stdin

Example:

omniroute keys add <provider> [apiKey]

keys list

Flags:

  • --json

Example:

omniroute keys list

keys remove <provider>

Flags:

  • --yes

Example:

omniroute keys remove <provider>

keys regenerate <id>

Flags:

  • --yes

Example:

omniroute keys regenerate <id>

keys revoke <id>

Flags:

  • --yes

Example:

omniroute keys revoke <id>

keys reveal <id>

Example:

omniroute keys reveal <id>

keys usage <id>

Flags:

  • --limit <n>

Example:

omniroute keys usage <id>

keys policy

Example:

omniroute keys policy

keys show <id>

Example:

omniroute keys show <id>

keys set <id>

Flags:

  • --rate-limit <n>
  • --max-cost <n>
  • --allowed-models <list>
  • --model-access-mode <mode>
  • --unrestricted

Example:

omniroute keys set <id>

keys expiration

Example:

omniroute keys expiration

keys list

Flags:

  • --days <n>
  • --json

Example:

omniroute keys list

keys rotate <id>

Flags:

  • --grace-period <ms>
  • --yes

Example:

omniroute keys rotate <id>

oauth

Example:

omniroute oauth

oauth providers

Example:

omniroute oauth providers

oauth start

Flags:

  • --provider <id>
  • --no-browser
  • --import-from-system
  • --social <s>
  • --timeout <ms>

Example:

omniroute oauth start

oauth status

Flags:

  • --provider <id>

Example:

omniroute oauth status

oauth revoke

Flags:

  • --provider <id>
  • --connection-id <id>
  • --yes

Example:

omniroute oauth revoke