Token Meter for AI tools that never show the bill until later.

Track prompt tokens, completion tokens, model spend, and workflow cost from Claude, Cursor, OpenAI scripts, local agents, and MCP tool calls. Send usage events with the same HTMLToolz API key your tools already use.

Today $18.42
Claude Code1.8M
Cursor920K
OpenAI API610K
Local agents240K
Highest model
claude-sonnet
Events logged
4,812
Budget pace
under

Works inside AI tools

Wrap calls from Claude Code, Cursor tasks, OpenAI SDK scripts, MCP servers, or internal agents. Each event carries provider, model, workflow, token counts, and optional cost.

Usage you can sell back

Roll up client or team usage by tool and model so AI work can be scoped, budgeted, and reported instead of guessed from invoices.

Same API key

Token Meter uses the existing HTMLToolz bearer key flow, entitlement checks, revocation, and daily limits.

Send a token event

Any AI wrapper can post an event after a model response. Store exact provider costs when you have them, or send only token counts and reconcile later.

curl -s -X POST https://htmltoolz.com/api/v1/tokens/events \
  -H "Authorization: Bearer htk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "anthropic",
    "model": "claude-sonnet",
    "tool": "claude-code",
    "prompt_tokens": 18420,
    "completion_tokens": 2210,
    "cost_usd": 0.071245,
    "metadata": { "project": "client-redesign", "run_id": "build-184" }
  }'

Read the 30-day summary

curl -s https://htmltoolz.com/api/v1/tokens/summary?days=30 \
  -H "Authorization: Bearer htk_live_YOUR_KEY"
Totalsevents, prompt tokens, completion tokens, total tokens, cost
By modelprovider plus model ranked by token volume
By workflowtool labels like Cursor, Claude Code, MCP, CI, or agent name

Sellable as a focused AI add-on

Token Meter is priced separately from the generic formatter suite and includes Pro API/MCP access so customers can wire it directly into their AI stack.