Reference
Command Line Interface
LimitAID ships as a single binary with one subcommand per provider.
Usage
Basic pattern
Run the binary with a provider name and any flags you need.
./limitaid <provider> [options]Available providers
codexCodex / OpenAI rate limitsopenrouterOpenRouter balance and usagezaiZ.ai coding plan limitsallRun every provider in sequenceFlags
Global options
These work on the root command — before you even pick a provider.
| Flag | What it does |
|---|---|
| -h, --help | Print help text and exit |
| -v, --version | Print version (0.1.0) and exit |
| --verbose | Increase log verbosity (stacks) |
| --quiet | Suppress all output except errors |
Flags
Common provider options
Every subcommand accepts these flags.
| Flag | What it does |
|---|---|
| -j, --json | Output raw JSON from the API response |
| -c, --conf <file> | Path to a custom key config file |
| --provider-config '...' | Inject a key directly on the command line |
Flags
Provider-specific options
Some flags only make sense for certain providers.
openrouter and zai only
| Flag | What it does |
|---|---|
| -n, --name <name> | Select a specific named key from your config |
all only
| Flag | What it does |
|---|---|
| --loop <seconds> | Re-run all providers on a timer (minimum 30s) |
Feature
Loop mode
Pass --loop with a number of seconds and LimitAID will clear your terminal and re-draw the output on that interval. Minimum interval is 30 seconds.
./limitaid all --loop 60Press Ctrl+C to stop.
Feature
JSON output
Adding --json skips the formatted display and dumps the raw API response. Pipe it into jq, log it to a file.
./limitaid codex --jsonWorks the same way with openrouter, zai, and all. When combined with --loop, each cycle prints a fresh JSON blob.
Examples
Common invocations
Check every provider at once
./limitaid allQuery a specific OpenRouter key
./limitaid openrouter --name work-keyUse a custom config file
./limitaid zai --conf ./my-keys.confInject a key on the fly
./limitaid openrouter --provider-config 'openrouter::sk-or-v1-abc123'