Case Study

What a Team Spends on AI Coding Agents, and How Full Each Subscription Is

A hosted dashboard and a menu-bar desktop app that read the same data. Claude Code and Codex CLI report usage through their own OpenTelemetry export, so there is nothing to install on a developer's machine and no Claude sign-in on the server.

2026
Year
Full-Stack + Desktop
Services
Next.js 16
Tech Stack
Developer Tools / SaaS
Category

Executive Summary

agent-meter shows a small team (5 to 50 developers) what each person spends on Claude Code and Codex CLI, plus how full each person's Claude subscription quota is. The dashboard and the desktop app are one product: the same account signs in to both and they show the same data. It never holds a Claude credential, never calls Anthropic and never receives prompts or responses. It is hosted on Fly.io with a continuously backed-up database.

2
Agents Supported
3
Desktop Platforms
0
Prompts or Credentials Stored
199
Automated Tests
1
SQLite File, Continuously Backed Up
7
Dashboard Pages

The Challenge

AI coding agents are billed in two different ways: per token on the API, and as a flat subscription with weekly and five-hour usage limits. A team lead has no single place to see either, and the agents' own tools only show one person's numbers.

Key Problems Identified:

  • •
    No Team View: Each agent reports usage for one account on one machine, so a lead cannot see spend by person, machine or day
  • •
    Hidden Limits: Subscription quota is only visible inside each developer's own session, so nobody notices a limit until it is hit
  • •
    Two Agents, Two Formats: Claude Code and Codex CLI report differently, and prices and model names change often
  • •
    Trust: A tool that watches coding agents must not collect prompts, file paths or credentials, or ask for a Claude sign-in

Mission Statement:

Give a team one honest view of what its coding agents cost and how close each subscription is to its limit, without ever touching what the developers type or any credential.

That meant using what the agents already emit, keeping the server free of any Claude credential, and labelling every number as reported by the agent or estimated from list prices.

Solution

agent-meter is a Next.js 16 application over a single SQLite database. Developers add a few settings to Claude Code or Codex CLI, and the agents send their own OpenTelemetry usage events to the server with a per-machine token.

Nothing to Install

The agents' own OpenTelemetry export carries usage to the server; a small status-line script adds quota readings

One Account, Two Surfaces

The web dashboard and the menu-bar app sign in with the same account and read the same data

Honest Numbers

Every spend figure says whether the agent reported it or it was estimated from API list prices

The Approach Rested on Three Pillars:

1. Privacy by Construction

  • • Only token counts, model, timestamp, agent, session id, machine name and account email are stored
  • • No prompts, responses, file paths or credentials leave a developer's machine
  • • The server holds no Claude credential and never calls Anthropic

2. Useful Without Setup Overhead

  • • Spend per person, machine, model and day
  • • Subscription quota with history, peaks and a burn-up forecast
  • • A price board, model benchmarks and a news feed

3. Simple to Run and Hard to Lose

  • • One small machine with one volume on Fly.io
  • • Continuous database backup to object storage with Litestream
  • • Invite links for teammates; sign-up closes after the first admin

Target Audience:

Primary: Team leads of 5 to 50 developers who use Claude Code or Codex CLI
Secondary: Individual developers who want to see their own spend and quota in the menu bar
Tertiary: Teams that need a usage view that never sees prompts or credentials

Technical Architecture

Dashboard

  • ✓Next.js 16 (App Router)
  • ✓React
  • ✓TypeScript (strict)
  • ✓Tailwind CSS
  • ✓Own motion kit for interactions

Server & Data

  • ✓SQLite (better-sqlite3) with Drizzle ORM and migrations
  • ✓Better Auth for accounts and sessions
  • ✓OpenTelemetry OTLP/HTTP (JSON) ingest endpoint
  • ✓Per-machine bearer tokens, stored hashed

Desktop App

  • ✓Electron menu-bar and system-tray app for macOS, Windows and Linux
  • ✓Browser sign-in with PKCE on a loopback address; read-only token
  • ✓Installers built in CI for each platform

Hosting

  • ✓Docker image on Fly.io: one machine, one persistent volume
  • ✓Litestream replicating the database to Tigris object storage
  • ✓Custom subdomain with an automatic HTTPS certificate

Key Features & Innovation

Spend by Person, Machine and Day

Costs from Claude Code and Codex CLI, grouped the way a team lead thinks about them.

• By person, agent, model and account
• Reported cost kept apart from list-price estimates

Subscription Quota

How full each person's weekly and five-hour window is, with history and a pace forecast.

• Peaks and limits hit over time
• Burn-up against an even pace to the reset

Menu-Bar and Tray App

The tightest quota at a glance, with a warning when a window passes a threshold.

• Same account and data as the web app
• Contacts only your own server

Price Board, Benchmarks and News

Model prices and capability benchmarks beside the spend, with release and price-change news.

• Public benchmark data, credited to its sources
• Price changes detected from a public model list

Team Management

Invite links, per-machine tokens that can be revoked, and sign-in for each desktop app that can be removed.

• Sign-up closes after the first admin
• Removing a person signs their apps out

Engineering Quality

199
Automated Tests
5
Installers Built in CI
0
Claude Credentials on the Server
4
Main Pages Contrast-Checked in a Real Browser

The server, the ingest parser, the price and quota logic and the desktop app's sign-in and polling are covered by an automated test suite that runs on every change, and the desktop installers for Mac (Apple silicon and Intel), Windows and Linux are built by CI.

Backups were proven by destroying a data volume and restoring the database onto a fresh one. The text on the Usage, Quota, People and Machines pages was checked against contrast thresholds in a real browser.

Outcome

What Shipped

• A hosted dashboard with seven pages
• A desktop app for macOS, Windows and Linux
• Continuous database backup and a restore path
• Usage and quota flowing end to end from a real Claude Code setup

What It Respects

• No prompts, responses or file paths stored
• No Claude credential on the server
• Read-only desktop tokens that can be revoked
• A short reporter script, so developers can read exactly what is sent

agent-meter is running in production on Fly.io and is in use on my own machine today. It is built for small teams and is not yet sold; billing and one workspace per customer are the next planned layers.

See what your coding agents cost, without giving them a new place to leak prompts

Blog and articles

Notes from client work and side projects: architecture decisions, tooling and what shipped.

  • MapleWealth personal finance dashboard for Canadian users

    Modeling TFSA, FHSA and RRSP Rules in Software

    How I model TFSA, FHSA and RRSP contribution room in MapleWealth: ledgers instead of balances, carry-forward, re-contribution timing and the edge cases.

    8 min read
    Read more
  • AlphaAuctions live online auction platform

    Real-Time Bidding Architecture: Lessons from AlphaAuctions

    Server-authoritative bids, countdown clock sync, optimistic UI and reconnection: the architecture behind real-time bidding with Socket.io and PostgreSQL.

    6 min read
    Read more
  • Dev Tools suite of free browser-based developer and design tools

    Building Dev Tools: 59 Free Browser Tools, No Backend

    Why I built 59 free developer and design tools that run entirely in the browser, how one data file drives them, and what I'd change.

    6 min read
    Read more
agent-meter Case Study