Tracking Claude and OpenAI API costs: the tools compared
Short answer: pick by the question you need answered.
"What did I spend this month?" Your provider's console, free. "What are my coding tools using?" ccusage (free) or TokenBar. "How is my team's AI app behaving?" Helicone or Langfuse. "What did each API call cost, and did I pay for any of them twice?" That is the gap NeverPayTwice fills.
Side by side
What each tool's own pages say, checked November 17, 2026. "Not stated" means we couldn't find it on their pages, not that the tool can't do it.
| Provider consoles | ccusage | TokenBar | Helicone | Langfuse | NeverPayTwice | |
|---|---|---|---|---|---|---|
| What it is | Usage and cost pages in the Claude Console and OpenAI dashboard | Command-line reports from coding tools' local logs | Mac menu-bar app for coding-tool usage and limits | AI gateway with a request dashboard | Tracing and observability for AI apps | Local meter between your code and the API |
| What it reads | The provider's own billing data | Logs from about 20 coding tools (Claude Code, Codex, Gemini CLI and others) | Claude, Codex, Cursor, Gemini, Copilot usage | Requests sent through its gateway | Traces sent from its SDKs or a gateway | Every API call you route through it, plus Claude Code's logs |
| Where your data goes | Stays with the provider | Stays on your computer | Not stated | Through Helicone's cloud (self-hosting possible: it's open source) | Langfuse cloud, or your own server (open source) | Stays on your computer (the license check sends only your key to Gumroad) |
| Cost of each single request | No: totals by day, model or key | No: totals by day, week, month or session | Not stated | Each request is listed; cost per request not stated on the quick-start page | Token and cost tracking on every plan | Yes, a receipt with request ID |
| Flags charges you paid twice | No | No | Not stated | Not stated | Not stated | Yes: repeats, retries, billed failures, same charge twice |
| Price | Free | Free (MIT) | $15 lifetime (Pro), macOS 14+ | Free up to 10,000 requests a month; Pro $79 a month | Free tier (50k units a month) or self-host free; Core $29 a month | $9.99 to start, then $2.99 a month to keep (your first month is included) |
Provider consoles: start here
The Claude Console and the OpenAI dashboard show cost by day and model, and let you download it. Anthropic also has a Usage and Cost Analytics API with buckets as small as one minute, but it needs an Admin API key, which individual Console accounts don't get. Neither console lists the cost of a single request or tells you that you paid for the same answer twice. Best for: checking the monthly total. Free, and always the number you are billed. Our guides show where to look: Claude, OpenAI.
ccusage: free, for coding tools
A free, open-source command-line tool (npx ccusage@latest) that reads the logs coding tools leave on
your computer and reports tokens and cost by day, week, month or session, with cache writes and reads shown
separately. It covers about 20 tools, Claude Code and Codex included. Calls your own code makes to the API aren't in
those logs, so it doesn't see them. Best for: anyone who mainly wants to know what Claude Code or Codex used.
If that's all you need, use it; you don't need to pay for anything.
TokenBar: coding-tool usage in the Mac menu bar
A Mac app (macOS 14 or later) that shows usage, spending history and limit reset times for Claude, Codex, Cursor, Gemini and Copilot in the menu bar. Its page lists one paid tier, $15 lifetime. Its page doesn't say whether it records individual requests. Best for: Mac users who want their coding-tool limits always in view.
Helicone: a gateway with a dashboard
You point your code at Helicone's AI gateway instead of the provider, and each request shows up in its dashboard within seconds. It's open source, has a free tier (10,000 requests a month) and paid plans from $79 a month with alerts and reports. Your requests pass through its cloud unless you host it yourself. Best for: teams that want a shared dashboard, alerts, caching and fallbacks between models.
Langfuse: tracing for AI apps
Open source and free to self-host, with a free cloud tier and paid plans from $29 a month. You add its SDK (Python, JavaScript, OpenTelemetry) or send traffic through a gateway, and it records traces with token and cost tracking. Best for: teams building and debugging an AI product: prompts, evaluations and costs in one place.
NeverPayTwice: receipts and charges paid twice
We make this one. It's a small app with a live meter on your own computer between your code and the API (Anthropic, OpenAI, Google Gemini and compatible APIs). You change one setting, the API base URL. It never blocks or changes a request. Every call gets a receipt with its exact cost and request ID, and every charge you paid for twice is flagged: the same request sent again, a retry that was processed twice, a failed request that was still billed, or the same charge billed twice. It prints a statement you can send to the provider, keeps a ledger of refund claims, and exports a year-end record for your accountant. It also reads Claude Code's logs and counts each response once.
Not for: teams that need shared dashboards or single sign-on (use Helicone or Langfuse), or people on a flat subscription who never pay per token (there's no per-call bill to check).
Mac, Windows or Linux, $9.99 to start, then $2.99 a month to keep (your first month is included).
Try it on your own Claude and OpenAI API calls, free for 7 days. No card needed.
Not ready to buy? Get the free one-page AI API bill checklist by email: ten checks for a bill that's higher than expected, plus a short note when Claude or OpenAI prices change. A few emails a year, never shared. Prefer no email? Download the PDF.
Sources, checked November 17, 2026: ccusage on GitHub, TokenBar, Helicone pricing and quick start, Langfuse pricing, Anthropic Usage and Cost Analytics API. Prices and features change; check their pages. If we got something wrong about your tool, email [email protected] and we'll fix it.