Subscription Quota Governor — AI skill for Claude Code
Provider-neutral subscription quota pacing for Claude Code, Codex, and Z.AI.
How to install Subscription Quota Governor
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open jedarden/subscription-quota-governor and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Subscription Quota Governor does
Provider-neutral subscription quota pacing for Claude Code, Codex, and Z.AI.
Alternatives in AI
- Claudexor — Multi-harness control plane for Claude Code, Codex, Cursor, and OpenCode: quota-aware rotation across multiple 425 ★
- onWatch — Open-source Go CLI that tracks AI API quota usage across 7 providers (Synthetic, Z.ai, Anthropic, Codex, GitHu 397 ★
- Syrtis — AI token usage & quota monitor for the macOS menu bar — native Swift, Liquid Glass, 3D contribution graph 368 ★
README
Subscription Governor
`subgov` is a provider-neutral quota governor for subscription-backed AI coding agents. It observes reset windows, learns quota burn per worker, and publishes or applies a conservative worker target. One process can govern separate `claude-anthropic`, `codex`, and `claude-zai` accounts without confusing the protocol used by an agent with the subscription that pays for it.
The initial release includes native quota collectors for:
- Claude Code's Anthropic OAuth usage surface;
- Codex's documented
account/rateLimits/readapp-server method; - normalized JSON over files, HTTP, or command output for Z.AI and custom integrations.
Why account identity is explicit
An agent speaking the Anthropic protocol may actually consume Z.AI Coding Plan quota. `subgov` therefore keys all policy and state by a configured account name. Fleet labels and provider protocol names have no effect on quota attribution.
Install and try it
cargo install --path .
subgov --config examples/claude-code.yaml check
subgov --config examples/codex.yaml snapshot codex
subgov --config examples/all-three.yaml run --once --observe-only
Run in `--observe-only` mode for at least two polling intervals before enabling actuation. The `linear_to_reset` strategy deliberately holds the current target until it has two observations in the same reset generation; zero observed delta is not treated as free capacity. An empty fleet starts at the configurable `bootstrap_workers` value so the governor can learn an initial burn rate.
Configurable utilization
Utilization is a fraction from `0.0` to `1.0`. Set either a consumption target or a reserve; they are equivalent:
utilization:
target_utilization: 0.85 # consume up to 85% by reset
# reserve_fraction: 0.15 # equivalent; do not set both
strategy: linear_to_reset
stale_after_seconds: 900
stale_behavior: hold
minimum_sample_seconds: 300
windows:
weekly_scoped:
target_utilization:
Related Skills
Tmux LLM Dashboard
Nine-row LLM quota + usage dashboard for a tmux pane — Claude, Codex, GLM, DeepSeek. Provider-neutral, fail-op
Limitlens
Local-first quota intelligence for Codex and Claude: cache-adjusted token attribution, per-model breakdown, an
Redline
Never waste your AI subscription quota. Queues agent jobs and runs them in Claude Code, Codex, or Pi when your
Devie AI Quota Tracker
Dashboard + macOS menu bar for tracking AI subscription quotas in one place (Claude Code, Codex, Gemini CLI, G
Quota Control
Unofficial Windows & Linux port of OpenUsage: track AI coding subscription limits (Claude, Codex, Cursor, more
Ocx Plasma
Every AI coding subscription's remaining quota (Claude, Codex, Gemini/Antigravity, Devin, Command Code) in you
Related Agents
Quota Router
Thin wrapper over ~/.claude/router/state.sh. Reports the router's provider-state verdict (GPT/Claude/Gemini el
Evaluator Physical Agent
Provider-neutral physical-security evaluator — plans bounded coverage and records opaque evidence references w
Kimi Worker
Forward a coding, diagnosis, or review task to Kimi K3 (Moonshot) through the local kimi-worker.sh runtime. Us