Token Meter

Claude & Codex
cost calculator.

Estimate USD cost from input, output, and cached tokens for Claude (Opus 4.8, Sonnet 4.6, Haiku 4.5, Fable 5) and OpenAI (GPT-5) models. List-price per-million rates, updated 2026-06. No login.

Estimate a cost

$0.00estimated

    List-price estimate only — not your invoice. Flat-fee plans (Claude Max, etc.) are billed differently; this shows the metered-API equivalent.

    Current pricing — USD per million tokens

    ModelInputOutputCache readCache write (5m)

    Anthropic prices from platform.claude.com (Opus 4.6+ is $5/$25; Opus 4.0/4.1 were $15/$75). OpenAI rows are estimates pending official confirmation. Cache read ≈ 0.1× input; 5-minute cache write ≈ 1.25× input.

    Want your actual spend, not an estimate?

    This page estimates cost from numbers you type. Token Meter reads the JSONL logs Claude Code and Codex already write to disk and shows real tokens + USD-equivalent cost per project, model, and MCP tool — 100% offline, MIT-licensed, no account.

    npm install -g @whdrnr2583/token-meter
    token-meter stats 7

    ← Token Meter home · Source on GitHub