Docs CLI
View as Markdown

coding.sh quota

Plan usage for the 5-hour and weekly windows, per agent, or wait for room. Every option of coding.sh quota and its subcommands, from its own --help.

coding.sh quota --help
coding.sh quota [action]

  Plan usage for the 5-hour and weekly windows, per agent, or wait for room

Commands
  wait          Block until a window resets or its use drops below a threshold

Examples
  coding.sh quota
  coding.sh quota --json
  coding.sh quota wait --window 5h

Notes
  With no subcommand it prints one row per agent and window: the percent used, when the window resets and how old the reading is.
  Claude Code's reading is the one the coding.sh status line saved from the rate_limits Claude Code sends it (Pro, Max and Ultra plans; install it with coding.sh statusline install). Codex's is the last token_count event in its newest rollout under CODEX_HOME/sessions (only the last 256 KB is read).
  Behind a Claude apps gateway, Claude Code also sends a spend limit: the row's window is spend, its use may pass 100%, and --json adds usedUsd, limitUsd and period when the gateway sent them.
  wait reads again at most once a minute and prints what it waits for on stderr; when there is room already, it says so on stderr and returns at once. With several windows it waits until each has room. It exits 0 when there is room, 1 when there is no reading, 2 on a usage error and 130 on Ctrl-C.

coding.sh quota wait

Block until a window resets or its use drops below a threshold.

coding.sh quota wait --help
coding.sh quota wait [options]

  Block until a window resets or its use drops below a threshold

Options
  --agent <AGENT>    Only this agent's windows. One of: claude-code, codex.
  --window <WINDOW>  Only this window (spend: Claude Code's spend limit behind a Claude apps gateway). One of: 5h, 7d, spend.
  --below <PERCENT>  Room is back when use is under this percent (default: 90)

Examples
  coding.sh quota wait
  coding.sh quota wait --agent codex --window 5h --below 80

All commands · Global options