About cli-resilience
cli-resilience is an OmniRoute CLI skill for inspecting and managing quota and resilience state. It covers circuit breakers, cooldowns, lockouts, and threshold configuration, including reset operations.
Key features
- 01Inspect quota and gateway status
- 02View breaker, cooldown, and lockout states
- 03Reset provider resilience states
- 04Configure resilience thresholds
- 05Preview quota allocation
Use cases
- 01Diagnose a provider circuit breaker
- 02Clear a stuck cooldown or lockout
- 03Review quota enforcement before a request
- 04Adjust resilience thresholds
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ diegosouzapw/ omniroute --skill cli-resilienceAfter installing, type/cli-resiliencein Claude Code to confirm it loaded.
Details
From the project READMEOverview
Inspect and manage circuit-breaker states, connection cooldowns, quota limits, and backoff levels from the CLI. Reset stuck providers and configure resilience thresholds.
Quick install
npm install -g omniroute # or: npx omniroute
omniroute --version
Subcommands
quota
Flags:
--provider <id>--json
Example:
omniroute quota
quota status
Show truthful OmniRoute gateway, quota, pool, and circuit state
Example:
omniroute quota status
quota preview
Preview allocation enforcement without an upstream request
Flags:
--api-key-id <id>--pool-id <id>--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>
resilience
Example:
omniroute resilience
resilience status
Flags:
--provider <p>
Example:
omniroute resilience status
resilience breakers
Flags:
--provider <p>
Example:
omniroute resilience breakers
resilience cooldowns
Flags:
--provider <p>--connection-id <id>
Example:
omniroute resilience cooldowns
resilience lockouts
Flags:
--provider <p>--model <m>
Example:
omniroute resilience lockouts
resilience reset
Flags:
--provider <p>--connection-id <id>--model <m>--all-cooldowns--yes
Example:
omniroute resilience reset
resilience profile
Example:
omniroute resilience profile
resilience show
Example:
omniroute resilience show
resilience set <name>
Example:
omniroute resilience set <name>
resilience config
Example:
omniroute resilience config
resilience show
Example:
omniroute resilience show
resilience set
Flags:
--threshold <n>--reset-timeout <ms>--base-cooldown <ms>
Example:
omniroute resilience set