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.
LOCAL PROCESSING. ZERO USAGE UPLOADS.
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.
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
Token-based estimate. Not a subscription bill.
01 / Product
Start with your spending. Filter by harness and time, then explore models, activity and individual sessions.
Estimated API cost
$42.80
Sessions
124
Active days
18
Find a session by model, date or identifier. Your prompts stay private.
01
Reported spend and API estimates are shown separately, with pricing coverage. View dashboard totals in USD, CZK or EUR.
02
Compare models and harnesses, inspect activity by day and hour, and search sessions without digging through logs.
03
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
A workspace for exploring. A browser for trying it out. A command for a quick answer.
01
Run the Flutter app, connect local Claude Code and Codex folders in Settings, and sync or import OpenCode data.
Desktop setup02
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 demo03
Run openspent on demand to read local OpenCode, Claude Code and Codex usage. Filter the period, inspect pricing coverage or export JSON.
CLI setup$ 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
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.
Totals cover available local records. Missing logs and cloud-only work are outside the totals. API estimates exclude subscriptions, taxes and extra service charges.
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 guideBuilt by
We build web, mobile and AI products. OpenSpent is our open-source tool for making AI usage easier to understand, with privacy built in.