Free and open source, MIT

What does your AI coding cost?

An open-source cost tracker for Claude Code, Codex, Cursor and Gemini CLI. One command on your machine, or one page for your whole team.

$ npx fiscallm

What Claude Code and Codex cost you, from the logs on your machine. Nothing is sent anywhere.

Terminal · sample output
$ npx fiscallm
AI coding spend, last 30 days: $412.60 over 5,931 model calls (1.2B tokens)

Tool            calls    tokens         cost
Claude Code      4810    988.1M      $351.92
Codex            1121    214.6M       $60.68

Model                 calls    tokens         cost
claude-opus-5-5        3102    731.4M      $298.40
claude-sonnet-5-5      1708    256.7M       $53.52
gpt-5.3-codex          1121    214.6M       $60.68

Project                  calls    tokens         cost
api (Claude Code)         2210    463.0M      $171.33
mobile (Claude Code)      1534    301.2M      $112.04
web (Codex)                801    150.9M       $41.10
…

At API list prices. On a subscription plan you pay the plan, not this.

For your team

Five settings. No proxy.

Claude Code, Codex and Gemini CLI already report their usage with OpenTelemetry, and Cursor is read with a team admin key. FiscaLLM puts every developer on one page. Nothing sits between your tools and the model.

Claude Code · Engineering

Last 30 days

Sample data
AI cost
$1,284.20
Developers
8
Cost per developer
$160.53

Developers, biggest spend first

  • alice@example.com$412.60
  • ben@example.com$268.15
  • chen@example.com$201.40
  • dana@example.com$148.90
  • eli@example.com$119.75
  • farah@example.com$77.30

1. Add this to Claude Code's settings

{
  "env": {
    "CLAUDE_CODE_ENABLE_TELEMETRY": "1",
    "OTEL_LOGS_EXPORTER": "otlp",
    "OTEL_EXPORTER_OTLP_LOGS_PROTOCOL": "http/json",
    "OTEL_EXPORTER_OTLP_LOGS_ENDPOINT":
      "https://fiscallm.com/api/v1/otel/v1/logs",
    "OTEL_EXPORTER_OTLP_LOGS_HEADERS":
      "Authorization=Bearer <FISCALLM_KEY>"
  }
}

In the managed settings your admin distributes, or each developer's ~/.claude/settings.json. Environment variables work too.

2. See who spends what

  • Spend per developer. Model calls and cost for each person, biggest first, with a CSV export.
  • Spend per team. Add team.id to the settings and cost is grouped by team.
  • Budget alerts. Email or Slack when a developer passes an amount in a day or in 30 days, or the whole team passes a daily amount.
  • Runaway warning. An alert when someone uses more tokens in 5 minutes than you allow, which is how a looping agent shows up.

Full setup: teams, names and what is stored →

Privacy by design

Counts, not conversations

Only an ID for the person, the model, token counts and cost are stored. Never prompts, code or responses. Delete any app's data in one click.

Privacy policy →

FAQ

Questions, answered

What does npx fiscallm do?+

It reads the usage logs Claude Code and Codex CLI already write on your machine (~/.claude/projects and ~/.codex/sessions) and prints what the usage cost at API list prices, by tool, model, project and day. It needs no account and makes no network request. Add --by day, --days 7 or --json.

We pay per seat (Pro, Max or Team). What does the cost mean?+

It is what each call would cost at API list prices. On a subscription you pay per seat, so read it as what the usage would have cost on the API: good for comparing developers and projects and for deciding who needs a bigger plan, not a copy of your invoice.

How do I see the whole team?+

Create a free team app, copy its key, and add five settings to Claude Code, Codex or Gemini CLI, in the settings file your admin distributes or as environment variables. Each tool then reports its model calls with the developer, the model and the tokens. Cursor is read with a team admin key. No proxy and nothing to install.

Does it see our prompts or code?+

No. The command line tool reads only usage numbers and sends nothing. The team dashboard keeps only the model-call event: the model, the token counts, the cost and who made the call. Every other event is discarded on arrival.

Doesn't Anthropic already show this?+

Partly. The Claude Console shows estimated spend per user for teams on API keys, and the Enterprise plan has cost by user and group. On the Team plan and with Pro or Max seats there is no per-developer cost view, and none of them covers Codex, Cursor or Gemini CLI next to Claude Code.

Is it really free?+

Yes. Everything is MIT licensed and there are no paid plans. The hosted team dashboard is free under fair use (1,000,000 model calls per month), and you can host it yourself with no limit.

Built by Mayur

FiscaLLM is an independent, open-source side project, written and maintained by one person. The code is MIT licensed and public, so you can read exactly what it collects, or host it yourself. Questions, bugs and ideas are welcome: theaicommit@gmail.com or GitHub issues.

Know what your AI coding costs.

Run npx fiscallm. Free and open source, with no paid plans.

We're looking for our first 10 teams. Tell us which AI tools your team uses and we'll help you set it up, or star it on GitHub. Questions: theaicommit@gmail.com