Now tracking 2.4M sessions

See where your context budget goes.

Your AI context window is finite. ContextBudget shows you exactly where every token is spent -- system prompts, history, tool calls, and more -- so you can optimize what matters.

contextbudget -- session #1,847
Context Usage 0 / 128K
System prompt 0%
History 0%
Tool results 0%
Current turn 0%

Every token, accounted for.

ContextBudget intercepts your API calls and breaks down exactly where tokens go. No guessing, no surprises on your bill.

System Prompt 0 tokens
15%
Conversation History 0 tokens
40%
Tool Results 0 tokens
30%
Current Turn 0 tokens
15%

S Find the bloat

Most system prompts are 3-5x larger than they need to be. ContextBudget shows you exactly which instructions are eating your window.

H Understand history growth

Watch how conversation history compounds over turns. Know exactly when truncation will kick in and what gets dropped.

T Audit tool responses

Tool results are the hidden cost. One verbose API response can consume 30% of your context. See it, fix it.


One install. Three lines. That's it.

Wrap your existing client. ContextBudget handles the rest.

npm
$ npm install @contextbudget/sdk
pip
$ pip install contextbudget
TypeScript
import { wrap } from '@contextbudget/sdk';
import Anthropic from '@anthropic-ai/sdk';

// Wrap your client. That's it.
const client = wrap(new Anthropic());
Python
from contextbudget import wrap
from anthropic import Anthropic

# Wrap your client. That's it.
client = wrap(Anthropic())

Start free. Scale when ready.

No credit card required. Upgrade when you're hooked.

Free
$0
For trying things out
  • 3 tracked sessions
  • Real-time breakdown
  • Basic dashboard
  • Single project
Get started
Team
$29 / mo
For teams building AI products
  • Everything in Pro
  • 10 seats included
  • Team dashboard
  • SSO / SAML
  • Unlimited projects
  • Priority support
Start free trial

See your first session
in 30s

Install the SDK, make one API call, and watch the breakdown appear in real time. No config. No setup. Just wrap and go.

Get started for free
No credit card required