What a flat-rate plan actually buys, measured.
Providers sell coding plans as “more usage” and never publish the number. The TokenPylon recorder runs on your machine, records supported coding-tool activity, compares it with list prices, and reads available provider meters. Shared measurements relate observed local calls to meter movement while keeping incomplete coverage explicit.
One developer’s two-week sample
Static sample captured 2026-10-01; the dated windows below do not update automatically.
| Seven days | Calls | Value at list prices | Plan limits reached | Calls refused (429) |
|---|---|---|---|---|
| 2026-09-24 to 2026-10-01 | 21,076 | $1,800 | 5 | 24 |
| 2026-09-17 to 2026-09-24 | 30,702 | $4,242 | 1 | 127 |
94% of prompt tokens were read from cache. Plan windows exhausted in the sample’s later week:
- claude-code 5h window, reached 2026-09-30 03:40 UTC (reset 2026-09-30 07:20 UTC) · also hit per model: claude-haiku-4-5, claude-opus-5, claude-sonnet-5-5, claude-fable-5-1
One developer's own recorder, seven-day windows ending at capture. Usage priced at each model's list rate on the capture date; the developer paid flat-rate subscriptions, not these amounts. Captured 2026-10-01 22:52 UTC.
Observed usage per meter point
How much local work was recorded while a shared subscription meter moved by one percentage point. Calls outside the recorder can consume the same meter. These observations do not measure the full allowance or what a subscription costs.
Checking shared meter evidence…
Only bound subscriptions, unchanged reset windows, known token categories, and nonoverlapping observed installations qualify. Unknown bindings and scoped meters are retained privately. Owner and install thresholds reduce duplicate influence; they do not prove that subscriptions are independent. Five-hour and weekly meters can cover the same calls: do not add them together. View the aggregate API.
What it does
- Runs a local proxy on 127.0.0.1:4141 for Claude Code and API-key-authenticated Codex. Requests routed through it are recorded live, including retries, cancellations and available provider rate-limit headers.
- Warns a session, or asks before it continues, when a plan window is on pace to run out;
tokenpylon guard checkgives the same answer to scripts as an exit code. - Shows spend at list for the session, today and the last hour in the Claude Code status line, and a weekly report with limits reached (
tokenpylon weekly, also as CSV). - Reads Claude Code and Codex local history without a proxy, plus the additional tools listed below. ChatGPT-authenticated Codex uses this passive collection path.
- Has a local dashboard at
http://127.0.0.1:4141/and an MCP server (tokenpylon mcp) any agent can query.
Local history coverage and evidence
Verified means upstream sources or tool-written examples support the stated coverage (audit: 2026-10-02). It does not guarantee every call, account or version.
| Tool | Evidence status | Scope and limits |
|---|---|---|
| Amp | Unverified private format | Token totals, cache counts and credit values depend on an unverified private storage format. |
| Antigravity | Unverified private format | Saved session usage and model attribution depend on an unverified private storage format. |
| Codebuff | Partially verified | Session locations are confirmed; usage fields and complete counting across calls or agents remain unverified. |
| GitHub Copilot CLI | Verified | Counts one selected export; older mixed records require review, and premium-request credits are not dollar costs. |
| Droid | Unverified private format | Saved session token totals rely on a private format that remains unverified. |
| Gemini CLI | Verified | Counts saved chat usage, including cached and reasoning tokens, from supported local history locations. |
| Goose | Verified | Counts session totals without exact timing or separate totals for each model call. |
| Grok CLI | Unverified private format | Saved session locations are known, but usage counts, model breakdowns and dollar amounts remain unverified. |
| Hermes | Verified | Counts session totals with reasoning included; sessions using multiple models cannot be split into per-model calls. |
| Kilo | Verified | Counts saved message usage in supported locations; custom database filenames may be missed. |
| Kimi CLI | Verified | Counts saved step usage; older history may not reliably identify which model or provider handled calls. |
| OpenClaw | Verified | Counts saved local transcripts, including compressed records; separately archived usage is not collected. |
| OpenCode | Verified | Counts saved message usage; totals across copied or forked histories are not fully verified. |
| Pi | Verified | Counts saved usage with reasoning included; verification used tool-written examples, without generating authenticated provider calls. |
| Qwen Code | Verified | Counts standard local chat history; managed environments and custom provider routing remain untested. |
| ZCode | Unverified private format | Saved model usage relies on an unverified private format, including how cached tokens are counted. |
Account meters can include calls from other devices or cloud sessions whose details are missing here. Provider summaries and inventories stay separate from recorded calls.
Older records may still contain counting or attribution errors; reader updates do not automatically repair them.
Install
macOS or Linux:
curl -fsSL https://tokenpylon.com/install.sh | shWindows (PowerShell; the Windows build is not code-signed, so SmartScreen may warn):
& ([scriptblock]::Create((irm https://tokenpylon.com/install.ps1)))The installer checks each download against its SHA-256 checksum. macOS builds are signed and notarized. Then:
tokenpylon setup # checks history, connections and sharing
tokenpylon connect claude-code # optional: route Claude Code through the recorder
tokenpylon up # start it at loginFor Codex signed in with ChatGPT, keep the existing sign-in and use passive local history collection; skip tokenpylon connect codex. That command configures the proxy for API-key authentication and requires OPENAI_API_KEY. Passive history contains only what Codex saves locally; it cannot expose every retry, in-flight request or cloud session.
To add your readings to the shared measurements, create an account, make a key under settings, and paste it into tokenpylon auth set --stdin.
What it shares
Sharing is on by default. Each call sends its metadata: model asked for and served, provider, token counts by kind, cost, timing, status and the provider’s request id. Quota uploads also include the harness, reported plan, meter window and scope, used percentage, reset time (or unknown), observation time, and a captured unit binding when proven. Messages, prompts, provider keys and project names are excluded from ordinary sharing. tokenpylon sharing show prints the exact fields; tokenpylon sharing off or TOKENPYLON_SHARE=0 stops sharing, and everything local keeps working. See the privacy policy.
A personal tool, shared as it is. No support is promised.