Skip to content
Docs

How TokenNibbler reads your plan limits

TokenNibbler reads your 5-hour and weekly limits from your plans themselves, through the Claude Code and Codex you already have signed in on your computer. Live limits are part of every TokenNibbler plan, Free included, for Claude subscriptions that include Claude Code and ChatGPT plans that include Codex.

TokenNibbler never reads your Claude or ChatGPT sign-in. It reads your plan limits through Claude Code and Codex, in a way that runs no model and uses none of your allowance.

For your Claude plan, TokenNibbler starts Claude Code in the background and sends it two control requests: initialize, then get_usage. It never sends a message, so no model turn runs.

  • How Claude Code starts: hidden, in safe mode, with no tools and no saved session.
  • What comes back: your 5-hour window, your weekly window, and any weekly limit for one model only, each with how much is used and when it resets.
  • Your plan name: the Max tier (5x or 20x) comes from the rate-limit tier in Claude Code’s profile, .claude.json. Claude Code’s credentials file is never opened.
  • API keys stay out: ANTHROPIC_API_KEY and ANTHROPIC_AUTH_TOKEN in your environment are not passed to these checks, so a reading can never bill an API account.
  • In the Microsoft Store version: these checks run Claude Code with its auto-updater off, so a check never updates Claude Code.
  • A recent reading is reused: when Claude Code itself read your usage in the last five minutes, TokenNibbler uses that reading and sends nothing.

For your ChatGPT plan, TokenNibbler starts Codex’s app-server and asks two questions: account/read (which ChatGPT account Codex is signed in with) and account/rateLimits/read (its limits). These are the same numbers chatgpt.com shows under Usage. OpenAI documents the protocol in the Codex app-server docs.

  • Codex’s auth.json is never read.
  • OPENAI_API_KEY, CODEX_API_KEY and OPENAI_BASE_URL are left out of the check, so the reading always uses your ChatGPT sign-in.

You can add a second source for your Claude limits. After each response in an interactive session, Claude Code passes your 5-hour and weekly limits to its status line (Anthropic’s status line docs describe the rate_limits field, for Pro and Max subscribers).

Turn on Settings › Alerts › Claude limits from the status line and TokenNibbler reads them there too, so the Claude card stays current while you work.

  • It is off until you turn it on, and TokenNibbler asks first.
  • Your Claude settings are backed up. Your own status line keeps showing, and is put back when you turn the option off.
  • Only the two limits are sent, and only to TokenNibbler on this computer.
  • The card uses this reading when it is newer than Claude Code’s own, or when the regular reading cannot run.

Under the limits, every plan card says where its numbers came from and how old they are. These are your plan’s own figures, never estimates. When a plan does not answer, the card says why instead of guessing.

LabelWhat it means
Reported by Claude Code · 2 min agoClaude Code read the limits from your Claude account with your existing sign-in. No model runs.
From Claude Code’s status line · …Claude Code passed these limits to its status line after a response.
Reported by Codex · …Codex read the limits from your ChatGPT account with your existing sign-in.
⚠ Last reading 12 min ago · …The latest check could not finish. The card keeps the last good numbers for the same account and shows the reason.

Hover over the label for the full sentence.

  • On screen: the Your plans header shows Checked just now or Checked 3 min ago. Select the refresh button (Check again) to read your limits at once.
  • Reuse: a reading is reused for five minutes. When one of your windows resets, the next reading follows within a minute.
  • In the background: while Claude Code or Codex is in use, TokenNibbler reads your limits every 15 minutes, and hourly otherwise, even with its window closed. This builds the history behind the weekly comparison, alerts, Plan fit and the Drain Detector.
  • Sign-in changes: a change of account in Claude Code or Codex shows up within a minute.