Inspect and manage circuit-breaker states, connection cooldowns, quota limits, and backoff levels from the CLI. Reset stuck providers and configure resilience t
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-cli-resilience-372e639b61f0 ,按照其中的说明把「cli-resilience」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Inspect and manage circuit-breaker states, connection cooldowns, quota limits, and backoff levels from the CLI. Reset stuck providers and configure resilience thresholds.
npm install -g omniroute # or: npx omniroute
omniroute --version
quotaFlags:
--provider <id>--jsonExample:
omniroute quota
quota statusShow truthful OmniRoute gateway, quota, pool, and circuit state
Example:
omniroute quota status
quota previewPreview allocation enforcement without an upstream request
Flags:
--tokens <n>Example:
omniroute quota preview
quota ensure <json>Idempotently create or update a quota pool from a JSON object
Example:
omniroute quota ensure <json>
resilienceExample:
omniroute resilience
resilience statusFlags:
--provider <p>Example:
omniroute resilience status
resilience breakersFlags:
--provider <p>Example:
omniroute resilience breakers
resilience cooldownsFlags:
--provider <p>--connection-id <id>Example:
omniroute resilience cooldowns
resilience lockoutsFlags:
--provider <p>--model <m>Example:
omniroute resilience lockouts
resilience resetFlags:
--connection-id <id>--model <m>--all-cooldowns--yesExample:
omniroute resilience reset
resilience profileExample:
omniroute resilience profile
resilience showExample:
omniroute resilience show
resilience set <name>Example:
omniroute resilience set <name>
resilience configExample:
omniroute resilience config
resilience showExample:
omniroute resilience show
resilience setFlags:
--threshold <n>--reset-timeout <ms>--base-cooldown <ms>Example:
omniroute resilience set