For Claude Code and Codex CLI

Better sessions.
Before the reset.

Use your included allowance for stronger settings when the week is almost over and the headroom is there.

MIT licensed Runs locally No model calls

surplus status claudesample
weekly windowresets in 24h
40% remaining7 day window
5-hour windowfresh data
80% remainingincluded usage
Next session opusREADY
Illustrative output. Surplus evaluates provider usage on your device.
Local usage checks Normal settings on uncertainty No CLI usage telemetry

A small local decision

One check before a new session.

Surplus reads the usage window the provider exposes, checks your reserve and reset time, then decides whether to apply your stronger settings.

  1. 01

    Read what the provider reports

    Usage and policy state stay on your device. Surplus checks reported allowance, reset time and included-usage permission locally at launch and makes no model call to measure them.

  2. 02

    Apply your policy

    In the last 48 hours, a fresh weekly window needs at least 25% left. A reported five-hour window also needs 25% headroom.

  3. 03

    Keep your normal choices

    Missing or stale data, explicit model choices and non-interactive sessions keep the provider's usual settings.

A 5% reserve and 5% expected-use budget are part of the weekly check. These are routing thresholds, not a cap on a running session. Surplus cannot promise a model-specific quota or prevent paid overage.

Try sample values

Would Surplus upgrade?

Move the controls to see which policy check decides the result. The demo uses sample data and never contacts a provider.

Try a scenario
40%

Needs 25% or more, including the configured reserve and expected-use budget.

80%

When reported, this window needs at least 25% headroom.

24h

The premium window opens in the final 48 hours.

Provider data

Open source · MIT

Start with the source.

Setup instructions and release downloads are in the repository. Check the requirements before installing.

Read setup instructions
OPEN SOURCE Open-source preview

Node.js 22.21+ or 24.10+
Claude Code and/or Codex CLI
zsh or bash

View repository files