Skip to content
Command line · Claude Code spend

See what every AI querycosts you.

Costellia reads your Claude Code session logs and renders your spending as a night sky: every query is a star, sized and colored by what it cost. Then it tells you where the money is going and what to do about it.

700+ npm downloads

Freenpx costellia · No install, no account, no API key.

insight cards
10
local, logs never leave your machine
100%
Costellia's night sky of query costs with the insights drawer, and the terminal that started it

Every query is a star.

Projects are hubs, sessions branch off them, and every query is a star. Big and red means expensive; small and blue means cheap. One glance tells you which project — and which prompt — is burning the budget.

01

The detail panel

Click any star: the full prompt, the model, a token breakdown (input / output / cache write / cache read), the dollar figure, and a plain-language line explaining why it cost that much.

02

The insights drawer

Ten cards, ranked by what they could save you: cache health, most expensive queries, model mix, heavy sessions, subagent share, this week vs last and the last 14 days by project among them.

03

Same tokens, other models

Re-prices a query, or the whole range, at Opus / Sonnet / Haiku / Fable rates. Token counts are held fixed, so read it as a direction rather than a quote.

04

What tools dragged in

How many characters Read, Bash, WebFetch and friends returned, priced at base input rates. Tool output never appears in a prompt but every character of it becomes context.

05

Spend per commit

Commits from each project's own repo in the same window as the spend. Correlation, not attribution.

06

Search that understands money

>1 for queries over a dollar, <0.05 fix for cheap ones mentioning fix. Export gives one CSV row per query, for anyone who bills the work on.

Everything runs on your machine.

A local process reads local files and serves a local page. Nothing is uploaded, and the tool writes nothing at all — it only reads. A model with no price on file is shown in grey, tokens only; it is never guessed.

Needs Node 20 or newer. Works wherever Claude Code writes its logs — macOS, Linux, WSL.

Costellianpm · costellia
Runnpx costellia
Pricefree and complete
Install, account, API keynone
NeedsNode 20 or newer
Works onmacOS, Linux, WSL
LicenseMIT
View on npm

Press Ctrl-C in the terminal to stop the server. Closing the browser tab leaves it running.