NightpaceSee how fast your Claude Code quota burns, why, when it runs out, and what it would cost on the API. Nightpace measures, from your own history, how your Claude Code plan limits follow your usage, and tells you when this week and this 5-hour window run out at your pace, and how long they last with one to five sessions working at once. Below, one timeline in VS Code: the 5-hour and weekly limits as Claude Code reports them, how many sessions were working at once, and what the requests would have cost at Anthropic's API prices, by model, effort level or token type, and which sessions and projects spent it. The quota is in the status bar too, so you know where you stand without opening anything.
Why Nightpace
FeaturesThis week and this 5-hour windowAt the top, two cards. This week: how much is used, when it resets, and when it runs out at the pace of the last 7 days (or where it will be at the reset), with how many hours of work a day last until the reset with one to five sessions at once, for each kind of session you use. This 5-hour window: how much is used, when it resets, and how long it lasts with one to five sessions at once, on into the next window when this one resets first. The figures are estimated. Nightpace measures how your quota readings follow the API cost of your requests, and says under each card what 1% of the limit is at API prices; and what a session of each model and effort level costs an hour, over the last 14 days. A limit reset by hand is measured from where it was reset. Until it has recorded a few days, the cards say Learning: the figures are rough. At the foot of each card, a small chart follows how much of the limit an hour of your main kind of session took over the last 4 weeks: a point for each 5-hour window, and for each day of the week, once it has used at least 10%. The kind is your own: the model and effort level you worked with most in the last 14 days, so a Sonnet user sees an hour of Sonnet. Until one kind has two hours of work, the chart follows what 1% of the limit is at API prices instead. When Anthropic changes the limits, the points move. They also rise when Claude on the web or on another computer uses the same quota. TimelineRun Nightpace: Show Timeline from the Command Palette for the last 24 hours, 7, 30 or 90 days, all history, or one quota week from your plan's weekly reset to the next, on one time axis:
Hover or use the arrow keys for every value at a time, or switch to a table. Over the quota and sessions lanes, the crosshair takes each point of their lines, between columns too, and the arrow keys go on along them; over the days, a day at a time. Past now, it follows the week ahead to where it runs out and resets. Scroll or pinch over the chart to zoom in and out around the pointer, or drag across part of the range with the right button. Drag the chart with the left button, or Shift + scroll, to move along time, and double-click for the whole range again. Columns get finer as you zoom in, down to a minute, and are counted from your plan's weekly reset, marked with a dashed line, so seven day columns make one quota week. Previous week and Next week go back through the quota weeks, up to four before this one; the cost, the tokens by type and the sessions below follow the week shown. The time range and these buttons stay at the top of the panel as you scroll.
If you had used the APIBeside the timeline, what Claude Code's requests would have cost had you paid per token instead of through your plan: today, the last 7, 30 and 90 days, all history and per active day of the last 30. Tokens by typeBeside the timeline, under the cost, the tokens of the period shown by kind: input, cache writes (5-minute and 1-hour), cache reads and output, with the thinking part of output when Claude Code reports it. Each kind's tokens, API cost and share of both: cache reads are most of the tokens and a fraction of the cost. Above them, how much of the prompt came from the cache, what caching saved at API prices and what the requests would have cost without it. In a narrow panel it moves under the timeline. Where the tokens wentBelow, the sessions or projects of the period shown: when each session started, how long it worked, its requests, API cost, tokens, how much of its prompt came from the cache, its share, and the models and effort levels it used. Point at a row's tokens for them by kind. Sort by any column. Point at a row to see its time on the chart, and click it to zoom the chart to that session or project.
Status barYour plan's 5-hour and weekly usage, with when the 5-hour window resets and how long the week
has left, like More than one Claude accountEach account has a quota of its own, so Nightpace keeps them apart. Every quota reading names the account that answered, and when you sign in to another account Nightpace notices within a minute. Once it has seen a second account, a chooser beside the panel's title shows one account at a time: its quota, its pace and forecasts, and the tokens and cost of the requests made while it was signed in. The status bar shows the account Claude Code in VS Code is signed in to. Accounts kept in separate config folders ( The history Nightpace recorded before it told accounts apart goes to the account that carries on its weekly limit (the one whose weekly reset falls at the same time of the week), or else to the first account it sees afterwards. Getting started
Tokens and sessions show from the logs Claude Code has kept (by default the last 30 days), and Nightpace keeps them after Claude Code deletes those logs, so all history grows from there. The quota line starts when Nightpace is installed, since Claude Code keeps no quota history. PrivacyNightpace reads usage metadata (timestamps, session IDs, models, effort levels, token counts and the folder each session ran in) from Claude Code's local session logs. It never stores your prompts, Claude's replies, tool output or source code. It keeps that metadata in VS Code's storage for the extension, so your history outlasts Claude Code deleting old logs and opens without reading them all again. For the quota, Nightpace asks Claude Code: every 5 minutes while you work and hourly otherwise,
it starts Claude Code briefly and asks for the plan's usage, the same request the Claude Code
extension makes for its own usage view. Claude Code gets the numbers from Anthropic. No prompt
is sent, no quota is used, and Nightpace never reads your credentials. To tell accounts apart,
it keeps the email address and organization name Claude Code reports with each reading. When
Claude Code's config file (
Limitations
ContributingBug reports, ideas and pull requests are welcome; see CONTRIBUTING.md. Please don't attach Claude Code session logs to issues: they contain your prompts and code. LicenseMIT © MBK Dev Studio. Third-party notices: THIRD_PARTY_NOTICES.md. Nightpace is not affiliated with or endorsed by Anthropic. Claude and Claude Code are trademarks of Anthropic. |


