Back to browse
GitHub Repository

Track token usage and API costs for your Claude Code sessions.

4 starsTypeScript

CLI to budget Claude Code session costs

by herrj·May 9, 2026·2 points·0 comments

AI Analysis

●●SolidCozySolve My Problem

Per-task budget tracking for Claude Code when the official CLI lacks cost controls.

Strengths
  • Automatically captures token counts and calculates costs with cache multipliers.
  • Local-first storage means no cloud dependency or API key exposure.
  • Real-time budget progress bars displayed after every prompt in the session.
Weaknesses
  • Only supports Claude Code; no integration with other LLM providers yet.
  • Requires spawning a wrapper command instead of enhancing the native CLI.
Target Audience

Developers using Claude Code API for coding tasks

Similar To

LLM Cost Tracker · Token Meter · Vizro

Post Description

I code on Claude's pay as you go API and started budgeting my token usage with my own CLI wrapper.

Basically I set a budget for a task that I'm working on in my project:

Task: "Fix mobile responsiveness" Budget: $3.00

and the budget updates after each prompt:

Task: "Fix mobile responsiveness" Budget: $2.34 / $3.00 78%

It helps keep an eye on my spending when working on projects.

Similar Projects