←Pierre Sauvignonlobsterone.ai ↗
Case study · LobsterOne

LobsterOne Case Study

LobsterOne shows developers and teams how they actually use AI coding tools: tokens, cost, sessions, lines of code and quota, across Claude Code, Codex, Cursor and other assistants, with personal dashboards and team and global leaderboards. I designed, built and run the whole system solo, from the first commit in March 2026: a native Mac menu bar app, an AWS serverless ingest and analytics backend, the web dashboard, an admin backoffice and the marketing site.

The LobsterOne web dashboard with weekly tokens, cost, leaderboards and quota
The LobsterOne web dashboard: tokens, cost, quota, activity and leaderboard rank, as shown on lobsterone.ai

At a glance

RoleSole engineer and product owner
PeriodMarch 2026 to today, about 1,320 commits across 6 repositories
ProductmacOS menu bar app plus web dashboard, free for individuals, $4.90 per seat per month for teams
StackAWS serverless (Lambda, API Gateway, SQS FIFO, DynamoDB, Cognito, EventBridge), RDS PostgreSQL, Swift, Next.js 16, Astro
ProvidersClaude Code, Codex, Cursor, Mistral Vibe
AIClaude Opus 4.6 usage advisor, Claude Haiku 4.5 game characters
Scale32 Lambda functions, 5 CDK stacks, 98 SQL migrations, 8 queues, about 70 API routes

Traction

LobsterOne is an invite-led product with heavy users. Since March 2026 it has tracked 1.93 billion tokens of AI coding work, $166k of API-equivalent spend and 4 million AI-written lines of code for 15 developers across the US, Australia and Germany.

MetricValue
Registered accounts39
Accounts that sent usage data15
Active in the last 30 days11
Organizations with team dashboards2
Tokens tracked (input + output, cache excluded)1.93 billion
Cached input tokens read217 billion
API-equivalent cost tracked (Claude Code)$165,800
Claude Code sessions20,525
Lines of code added by AI tools3.98 million
Commits and pull requests made by AI tools13,761 and 1,957
Raw usage records stored (last 90 days)about 176 million
Monthly tokens grew 59x from March to the August peakInput + output tokens tracked per month, cache excluded; active developers under each monthMar 2026: 10M tokens, 4 active developers10MMar4 devsApr 2026: 24M tokens, 3 active developers24MApr3 devsMay 2026: 65M tokens, 5 active developers65MMay5 devsJun 2026: 124M tokens, 5 active developers124MJun5 devsJul 2026: 541M tokens, 14 active developers541MJul14 devsAug 2026: 613M tokens, 14 active developers613MAug14 devsSep 2026: 347M tokens, 12 active developers347MSep12 devsOct 2026: 210M tokens, 10 active developers210MOct10 devsOctober to the 16th
LobsterOne production database · tokens and active developers by month, Mar to Oct 2026

Usage jumped in July 2026, when 17 new accounts signed up and active developers went from 5 to 14. Figures are from the production database on 16 October 2026. One internal admin account is included.

The product

A developer installs the Mac app and signs in with email or GitHub. The app sets up Claude Code to send its usage data to LobsterOne, and reads the local session files that Codex and Mistral Vibe write. The menu bar then shows today's tokens and how much of the plan's quota is used, for example 7.6M / 33%, based on the real 5-hour and weekly limits from Anthropic and OpenAI.

The web dashboard shows usage by day, model and session, plus cost, lines of code, commits and pull requests. A GitHub connection matches commits to AI-assisted sessions. An advisor built on Claude Opus reviews a user's habits and suggests changes.

Leaderboards and achievements are what bring people back. There are 14 leaderboards (global, by organization, country, role and more) and 113 achievements. Teams get a private leaderboard and team analytics, and anyone can opt out of public boards.

The hardest part was the data. Each tool reports usage its own way, some as running totals and some as increments, and users compare every number with what their terminal says. Getting those numbers right took more work than any screen.

Architecture

Every client goes through one gateway; telemetry is queued before PostgresMac menu bar appSwift, Sparkle updatesCodex + Vibe scannersAI coding CLIsClaude Code, CursorOpenTelemetry exportWeb dashboardNext.js 16S3 + CloudFrontBackofficeNext.js admin12 pagesAPI GatewayAPI-key authorizer on a DynamoDB cache, Cognito JWT across 2 user poolsIngest Lambdas/v1/metrics, /v1/logs,/v1/tracesSQS queuesmetrics FIFO per device,events, email, GitHub, DLQsAPI LambdaHono, about 190 handlersdashboard + Mac appScheduled jobsEventBridge, 8 schedules:snapshots, retention,key reconciler, GitHub syncIngest workerstotals to increments,vendor noise filtered,daily rollupsExternal servicesAnthropic API (advisor)GitHub, Postmark emailRDS Proxy, then PostgreSQL on one db.t4g.microraw tables partitioned by month, 90-day retention, daily rollups, leaderboard snapshots
Architecture · 4 clients, 1 gateway, 32 Lambdas, 8 queues, 1 Postgres

I chose a serverless setup on one AWS account so that one person could run it cheaply. Six repositories deploy automatically from GitHub Actions on every push to main, and database changes run before each deploy. Everything runs on Lambda except the database. Uploads are accepted quickly and queued, and slower work (converting totals, daily summaries, leaderboard snapshots, email) happens behind the queues. One small PostgreSQL database holds everything, because the load is many tiny writes with little heavy computation.

The ingest pipeline

Uploads are queued, checked and rolled up before any dashboard reads themMac app scannersCodex and Mistral Vibe session filesincrements computed on the MacClaude Code, CursorOpenTelemetry metrics and eventssent straight from the CLIPOST /v1/metricsPOST /v1/logsMetrics FIFO queuein order per device, dead-letter queue + alarmEvents queuedead-letter queue + alarmMetrics workerrunning total or increment, checked per payloada lower total is a reset, not negative usageupserts the daily rollupEvents workerdrops vendor tracing noise by name prefixkeeps per-request tokens and costPostgreSQLraw metrics and events partitioned by month and dropped after 90 days; daily rollups keptLive Today viewraw rows from each user's local midnightDaily snapshot job7 and 30 day leaderboards from the rollups
Ingest pipeline · 2 inbound paths, 2 queues, 1 rollup, 2 read paths

The upload endpoints only check the key and queue the data, so a burst of uploads never hits the database directly. Each device's data is processed in order, because turning running totals into increments only works if the points arrive in sequence. The 7 and 30 day views read daily summaries. Only the Today view reads raw data, so it can start at each user's local midnight.

One data model for every AI tool

Each tool's own metric names map onto one shared set (tokens, cost, sessions, lines of code), so dashboards and leaderboards never depend on a specific vendor. Adding a tool takes a configuration entry, plus a scanner in the Mac app when the tool does not send usage data itself.

ProviderHow usage arrivesWhat it took
Claude CodeUsage data sent straight from the toolDetecting on each upload whether counts are totals or increments, and reading cost and tokens per request
CodexThe Mac app reads Codex's local session logs and sends incrementsSeparating cached from fresh input, rebuilding lines of code from the code changes in the logs, and reading the real rate limits
CursorSame path as Claude CodeA configuration entry only
Mistral VibeThe Mac app reads per-session totals from local filesTurning running totals into increments on the device

What tracking several AI tools taught me:

Making it reliable

Users notice a wrong number faster than a slow page, so most of my work after launch went into accuracy and recovery. Each fix below came from a real production issue.

ProblemFix
A flood of Codex tracing data (85% of rows) filled the 100 GiB databaseIngest now filters that data out, the database has more storage headroom, and I wrote rules for replaying failed messages without counting them twice
An API key that dropped out of the cache was rejected on every upload, permanentlyA job re-syncs the key cache with the database every 5 minutes, and the Mac app requests a new key after repeated rejections
GitHub sign-in worked only once per user, because the original user directory could not update a user's emailA second Cognito user pool that allows email changes, a gradual migration that keeps passwords, and sign-in checks that accept both pools
Australian users saw an empty "today" every morning when the UTC day rolled over"Today" is calculated live from each user's local midnight, and the 7 and 30 day views read precomputed snapshots
Database deadlocks during an upload burst sent about 830 events to the failed-message queue752 were replayed with no errors, and every failed-message queue now raises an alarm on its first message
A session restart resets a running total, which simple subtraction reads as negative usageA lower value is treated as a reset, and each device's data is processed in order

Raw data is kept as received for 90 days, so daily summaries can be rebuilt from it. Every queue has a failed-message queue with an alarm.

Cost, pricing and growth

Running cost. The whole platform costs $70 to $85 a month on AWS, before tax. In June 2026 I cut the bill from $114 to $73 by simplifying the network setup and removing the database read replica. I kept the connection pooler (RDS Proxy), because without the replica it protects the small database from connection spikes when queues burst.

Pricing. Individuals use LobsterOne free. Teams are priced at $4.90 per seat per month for a private leaderboard, team analytics and admin controls.

Acquisition. The lobsterone.ai site has 68 articles on AI coding costs and habits. Invite and referral codes and shareable LinkedIn cards bring in new users, and automated emails cover onboarding, a weekly recap and update reminders. Every push to main builds, notarizes and ships a new Mac app version through automatic updates.

Outcomes

Working alone for seven months, I took LobsterOne from a command-line prototype to an analytics platform that covers four AI coding tools. It has tracked 1.93 billion tokens and $166k of AI spend, for about $80 a month in infrastructure.

What I learned:

  1. The numbers are the product. Users check them against their terminal, so every counting choice (cached tokens, totals or increments, time zone) has to be deliberate and explained.
  2. Treat every vendor's data as unstable. Tools add, rename and flood metrics between releases. Filter at the point of upload, and keep each tool's quirks out of shared code.
  3. Size infrastructure to real load. One micro-sized database, behind a connection pooler, holds about 176 million rows of usage data. The real risks were storage and connection spikes. CPU was never the problem.

Hiring a hands-on product or engineering lead? Let’s talk.

Based in Perth, happy to work remote or on-site.

pierre.sauvignon at gmail dot com
go on, say hi