# The Quota audit for Claude Code

Source: https://quotaplug.com/audit
Updated: 2026-12-02

> Run npx quotaplug audit in any terminal where you use Claude Code. In about 15 seconds it reads your local session logs, prices every request at API list rates, and shows where your plan went: very long sessions, long sessions, background agents and everything else. It then estimates what QuotaPlug would have saved. No account, and nothing leaves your machine.

One command reads the logs Claude Code already keeps on your machine and tells you, in dollars, where your last 7 days of usage went and how much of it was avoidable.

```bash
npx quotaplug audit
```

## What the audit shows you

- **Your real spend, in API dollars.** Your plan is not billed in dollars, but your limits drain on the same drivers. Pricing every request at list price is the clearest way to see which habits cost the most.

- **Very long sessions.** How much of the week went to your longest sessions, which cost far more per step than fresh ones.

- **Background agents.** How many you ran and what share of spend they took.

- **Hidden waste.** Work that burned usage without helping you.

- **Your heaviest conversations and projects**, with peak session size, so you know exactly where to look.

- **The estimate.** The same week with QuotaPlug on. The result is a multiplier: how much longer your plan would have lasted.

## What we found on our own logs

QuotaPlug started as the fix for our own bill. On our heaviest week of November 2026, the audit priced the week at $3,936 of API-equivalent usage, with 62% of it spent in very long sessions. With QuotaPlug the same week came to $1,837: **2.1 times less**. On a week dominated by background agents, 68% of spend came from 195 of them.

A week after we optimized our own setup, the audit found only 1.34x left to gain. That is the point: the audit tells you honestly when you are already lean.

## How it works

- It lists the session logs Claude Code writes under `~/.claude/projects` (or `CLAUDE_CONFIG_DIR`) for the last 7 days, including background agents.

- It reads the token counts Claude Code records on every request (input, cache read, cache write, output), and removes duplicates by request id.

- It prices each request at the model's public API rate.

- It estimates what each conversation would have cost with QuotaPlug on, and compares.

The full method, with its assumptions and what it does not count, is in [how savings are measured](https://quotaplug.com/docs/how-savings-are-measured).

## Privacy

The audit runs entirely on your computer. It does not need an account, it does not upload anything, and it never reads the text of your prompts or code for analysis: only the usage numbers Claude Code stores next to each request. You can run it offline.

## Options

- `npx quotaplug audit --days 14` looks further back (up to 30 days, as far as your logs go).

- `npx quotaplug audit --json` prints raw numbers for your own scripts.

## When the audit says you can save a lot

Let QuotaPlug handle it and keep it handled: `npx quotaplug login` connects this computer to your subscription. Subscribe first at [quotaplug.com/signup](https://quotaplug.com/signup) (7-day money-back guarantee).

## Frequently asked questions

### Does the Quota audit need an account?

No, and it never will. It is how most people decide whether QuotaPlug is worth it for them.

### Does the audit send my code or prompts anywhere?

No. It runs locally and reads only the token counts Claude Code stores next to each request. Nothing is uploaded.

### Why does it show dollars if I pay a flat plan?

Plan limits drain on the same things that cost money on the API. Dollars at list price are the clearest common unit to compare habits.

### What do I need to run it?

Node.js 18 or newer and Claude Code logs on the same machine. It works on macOS, Linux and Windows.

## Keep reading

[How savings are measuredDocs](https://quotaplug.com/docs/how-savings-are-measured)[How to check Claude Code usagePlan limits](https://quotaplug.com/guides/check-claude-code-usage)[QuotaPlug pricingQuotaPlug](https://quotaplug.com/pricing)
