LOCAL PROCESSING. ZERO USAGE UPLOADS.

Your AI coding costs. On your machine.

OpenSpent reads your OpenCode, Claude Code and Codex logs and calculates spending on your device. Explore costs, models and sessions while your usage data stays with you.

  • Processed on your device
  • No usage uploads
  • No account needed

Free and open source. Cost estimates work offline, with no model API calls or API keys.

Sample data

Estimated API cost

$42.80

Last 30 days · USD

OpenCode$18.60
Claude Code$15.20
Codex$9.00

Token-based estimate. Not a subscription bill.

Supported sources OpenCode Claude Code Codex MIT / OPEN SOURCE

01 / Product

From a total to the details.

Start with your spending. Filter by harness and time, then explore models, activity and individual sessions.

Spending overviewSample data

Estimated API cost

$42.80

Sessions

124

Active days

18

Spending over time

30 days agoToday

Recent sessions

OpenCode$0.24
Claude Code$0.18
Codex$0.09

Find a session by model, date or identifier. Your prompts stay private.

Illustrative dashboard preview Explore the interactive demo ↗

01

Know what the numbers mean

Reported spend and API estimates are shown separately, with pricing coverage. View dashboard totals in USD, CZK or EUR.

02

Find the expensive patterns

Compare models and harnesses, inspect activity by day and hour, and search sessions without digging through logs.

03

Local analysis. Private data.

Your device does the processing and stores only allowlisted usage metadata. No hosted analytics service receives your data. Prompts, tool payloads and project paths never enter the dashboard.

02 / Get started

Choose how you work.

A workspace for exploring. A browser for trying it out. A command for a quick answer.

01

On your desktop

Run the Flutter app, connect local Claude Code and Codex folders in Settings, and sync or import OpenCode data.

Desktop setup

02

In your browser

Explore sample data first. Switch to Real to import OpenCode JSON or SQLite, or connect an accessible OpenCode server. Local folder scans require desktop.

Open demo

03

In your terminal

Run openspent on demand to read local OpenCode, Claude Code and Codex usage. Filter the period, inspect pricing coverage or export JSON.

CLI setup
In your terminalSample data
$ openspent --days 30

Harness       API estimate (USD)
OpenCode                   18.60
Claude Code                15.20
Codex                       9.00
TOTAL                      42.80

Example after compiling the CLI. USD estimates use the same offline pricing rules as the app; unknown prices remain unknown.

03 / Privacy

Local by design. Private by default.

The desktop app and CLI read local records, calculate costs offline and keep usage metadata on your device. There is no OpenSpent cloud backend, account or analytics upload. Optional network features fetch usage from your configured OpenCode server or currency exchange rates; they do not upload your local usage.

Prompts storedNever
Raw tool payloadsNever
Project paths displayedNever
Usage storageOn your device

Totals cover available local records. Missing logs and cloud-only work are outside the totals. API estimates exclude subscriptions, taxes and extra service charges.

An OpenCode server for the whole team.

Connect a team-owned OpenCode server and explore its usage from the same local dashboard. Your team keeps control of the server and its data.

Read the data-source guide

Built by

Code Growers s.r.o.

We build web, mobile and AI products. OpenSpent is our open-source tool for making AI usage easier to understand, with privacy built in.

Meet Code Growers