telexed ~ c / abdd8e4b-ccbradar:50 · agent_toolLIVE
← back
NO.
#abdd8e4b
Topic
AGENTS & TOOLS
Source
r/ClaudeAI
Published
2026-05-10 16:05:13
Importance
★ 5/10 — radar 50

`Claude Code` quota proxy exposes live usage limits to the model

A local proxy surfaces hidden rate-limit headers to Claude Code via ~/.claude/usage-status.md. Useful if you lean on long agent runs, but it's still a workaround until Anthropic exposes quota state natively.

[ KEY POINTS ]
  1. ANTHROPIC_BASE_URL can point Claude Code at http://127.0.0.1:4080, letting a local proxy read response headers and write a one-line status file.
  2. The setup feeds ~/.claude/usage-status.md into prompts or a UserPromptSubmit hook, so the agent can warn, downgrade, or refuse work near limits.
  3. Reported headers include anthropic-ratelimit-unified-5h-utilization and ...-7d-utilization; the example shows 5h=9% and 7d=99%.
  4. Testing found one unified pool for Opus and Sonnet, so switching models does not preserve a separate CLI quota despite the extra UI bar.
  5. Implementation is plain Node.js with zero npm dependencies; Windows uses NSSM, while macOS/Linux rely on launchd or systemd.
Originalwww.reddit.com/r/ClaudeAI/comments/1t9ayg8/i_made_claude_code_aware_of_its_own_usage_limits/Read original →

// related