Tokmeter — AI Agent Usage & Cost MCP server
io.github.sriinnu/tokmeter·v1.20.1·1 starsTokens and cost for Claude Code, Codex and 22 more AI coding agents, from local session files.
not scanned yet
1 stars218 downloads/wk
Reviews
Write oneNobody has reviewed Tokmeter — AI Agent Usage & Cost yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Tokmeter — AI Agent Usage & Cost tools
No tool declarations could be read from the package source. They show once the server is installed.
How Tokmeter — AI Agent Usage & Cost compares
Against every graded AI and agents MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 92/100
- higher than 90% of 4,460 AI and agents servers
- GitHub stars
- 1
- more than 50% of 2,711 AI and agents servers
- Downloads a week
- 218
- more than 75% of 1,538 AI and agents servers with a package
Release history: 13 versions in the registry since 2026-09-19, latest 2026-11-03, typically one every 4 days.
Install Tokmeter — AI Agent Usage & Cost in Claude Code, Cursor or VS Code
Runs npx -y @sriinnu/tokmeter-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add tokmeter -- npx -y @sriinnu/tokmeter-mcp
What the publisher says
From the Tokmeter — AI Agent Usage & Cost repository's README, as published. We do not edit it. Read it on GitHub
Tokmeter
Every AI coding agent you run, on one ledger.
Tokmeter reads the session files your agents already write to disk and turns them into token and cost totals by project, model, provider, and day — across Claude Code, Codex, Gemini CLI, Cursor, and a dozen more. No API keys, no telemetry, no account. Your data never leaves the machine.
Why
Every agent bills you separately and shows you its own slice. Claude Code knows what Claude Code cost. Codex knows what Codex cost. Nothing knows what today cost, or which project is quietly burning the most, or whether the model you switched to is actually cheaper for the work you do.
Tokmeter answers that from data already on your disk. It parses each agent's local session logs, prices them against a live model catalog, and keeps an append-only daily ledger so history survives even after the agents rotate their own logs away.
npx @sriinnu/tokmeter --todayWhat it looks like
macOS menubar — today's tokens and cost, always visible
There is also a terminal UI (tokmeter-tui), a local web dashboard, a statusline for Claude Code, and an MCP server so an agent can query its own spending.
Install
Requires Node.js 18+. Reading session files needs no provider credentials; pricing lookups fetch a public catalog, and --light skips them entirely.
# Try it without installing
npx @sriinnu/tokmeter --today
# Install the CLI, and the daemon/MCP server
npm install -g @sriinnu/tokmeter @sriinnu/drishtipackages/core, packages/cli, and packages/tui are private workspace packages bundled into @sriinnu/tokmeter. packages/web is a separate private workspace app run from source.
Claude Code and Codex are the primary validation targets. See provider compatibility for the other parsers and their known limits.
CLI
tokmeter --today
tokmeter models --project my-app --json
tokmeter daily --week
tokmeter projects
tokmeter stats --month
tokmeter digest --period week
tokmeter pricing sonnetFilters include --project, --claude, --codex, --week, --month, and --since YYYY-MM-DD --until YYYY-MM-DD. Use --json for machine-readable output and --light for token-only reports.
- Aliases: merge display names, tag projects, or hide them from lists.
- Backup and restore: portable snapshots, cleanup preview, restore. Cleanup deletes source files; keep the confirmation and backup steps.
- CLI reference: every command with examples.
- How the numbers work: what each bucket means and where estimates enter.
TypeScript API
The root export provides the core API. Convenience query helpers use the /cli subpath.
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Tokmeter — AI Agent Usage & Cost: common questions
- Is Tokmeter — AI Agent Usage & Cost MCP server safe?
- Yes, by our scan: it is graded A (92/100). Read the Tokmeter — AI Agent Usage & Cost safety report
- How do I install Tokmeter — AI Agent Usage & Cost?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Tokmeter — AI Agent Usage & Cost need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Tokmeter — AI Agent Usage & Cost maintained?
- The last commit was 21 days ago (2026-10-14). The latest release is v1.20.1.
- What can I use instead of Tokmeter — AI Agent Usage & Cost?
- Servers from other publishers that do the same job: SuperCompress MCP server, llmtrim MCP server and Emulo MCP server. Compare all Tokmeter — AI Agent Usage & Cost alternatives.
- How does Tokmeter — AI Agent Usage & Cost compare with other AI and agents MCP servers?
- safety score 92/100 (higher than 90% of 4,460 AI and agents servers); github stars 1 (more than 50% of 2,711 AI and agents servers); downloads a week 218 (more than 75% of 1,538 AI and agents servers with a package). Full comparison.
Alternatives to Tokmeter — AI Agent Usage & Cost
Same job from other publishers: the closest match first, then the best rated.
- SuperCompressCompress coding-agent context ~64%. Hosted Neural Keep MCP for Cursor/Claude/Codex.not reviewedEstablishedB
- llmtrimMCP server and proxy that compresses LLM prompts, tool output, and replies to cut token cost.not reviewedEstablishedA
- EmuloMine your AI coding session logs into a you.md profile with dated receipts, for an agent to read.not reviewedEstablishedA
- Serena MCP: the IDE for your agentA powerful toolkit for coding, providing semantic retrieval and editing capabilities.not reviewedWidely usedC
- Figma ContextGive your coding agent access to your Figma data. Implement designs in any framework in one-shot.not reviewedWidely usedB