---
title: "coding.sh quota · coding.sh docs"
description: "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."
canonical: https://coding.sh/docs/cli/quota
human_url: https://coding.sh/docs/cli/quota
markdown_url: https://coding.sh/docs/cli/quota.md
agents_url: https://coding.sh/agents.md
llms_url: https://coding.sh/llms.txt
updated: 2026-11-27
---

# 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

```text
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

```text
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](https://coding.sh/docs/cli) · [Global options](https://coding.sh/docs/cli#global)

To set coding.sh up for a user, follow the agent workflow at [/agents.md](https://coding.sh/agents.md).
