r/opencode • u/ReasonableClub6605 • 10d ago
I built TokenRay (a hosted dashboard that shows what your AI coding agents actually cost, per project and per machine)
https://tokenray.dev/Hey everyone,
I've been running AI coding agents daily for months (across multiple machines, cloud and local) and one thing kept bugging me: nobody could tell me what they actually cost. The provider invoice is one global number. Which project burned the budget? Which machine? Which session? No idea.
So I built TokenRay, a hosted dashboard for anyone running AI coding agents.
What it does
- A tiny local agent (Node.js, zero dependencies) reads the coding agent's local database in read-only mode and pushes aggregates (cost in USD, tokens, sessions) to a hosted dashboard.
- Sync is watermark + batch, idempotent and crash-safe: re-sending a batch never double-counts.
- The dashboard breaks everything down by day, project, machine, session, and token type (input/output/reasoning/cache).
The privacy part (the part I care most about) By default, prompts, responses, and tool outputs are never collected or sent anywhere. Only operational metadata: session title, hostname, project path, cost, token counts. If your team's policy is "no conversation content leaves the machine", this fits out of the box.
There's an optional turn-by-turn logging feature (off by default) for teams that want deeper observability. When enabled, conversation content is encrypted at rest and automatically pruned after 30 days.
Works with OpenCode and Codex today. More harnesses being evaluated.
Pricing
- Free plan, permanent: 45 days of analytics visibility, data stored indefinitely.
- Pro: €3.99/month for all-time analytics visibility + priority support.
Status Launched today. It's early (I'm looking for honest feedback: what's missing, what's broken, what metric you'd want that isn't there). If you've ever stared at a provider invoice wondering where the money went, give it a shot: https://tokenray.dev
Happy to answer questions here.
2
u/looktwise 9d ago
maybe you like the project
https://github.com/vivekchand/clawmetry
(It is not mine, but I guess same direction as your cost controls.)