Where it comes from
Every number starts on your own machines. A small program, oms, runs on each computer you sign in. It reads the usage records your AI tools already keep there, and one machine with GitHub access walks your repositories.
oms keeps its own record, so your history survives when a tool deletes its logs. Only totals are uploaded. This server adds up what your machines send, and never sees a prompt, a response or a line of code.
oms finds 17 tools on its own: Claude Code, Codex, Gemini CLI, Amp, Cline CLI, GitHub Copilot CLI, Goose, Hermes Agent, Kilo Code, Kimi Code CLI, Oh My Pi, OpenClaw, OpenCode, Pi, Qwen Code, Roo Code, Zed. Any other tool can be added with a JSONL export.
Tokens
A token total is the sum of four kinds: input, output, cache reads and cache writes. Lifetime totals and rankings include all four.
Tools report these in different ways, and oms sorts them into the same four. For Gemini CLI, for example, cached input is counted once, tool-prompt tokens count as input and thinking tokens count as output. Where a tool gives one figure of its own, such as Codex’s account total, that figure is used as the tool reports it.
The cache hit rate is cache reads as a share of input, cache reads and cache writes together. Response counts, and tokens per response, come only from local logs, with one count per model response.
How machines combine
Adding every number together would be wrong, because the sources have different reach.
| Source | Reach | Combined by |
|---|---|---|
| Claude Code’s lifetime statistics | One machine | Adding across machines |
Codex’s account total, the figure behind /usage | Every device on the account | Counting once |
| Local logs, one count per model response | One machine | Adding across machines |
Usage logged after a tool’s figure was last updated is added on top. Where a machine’s logs add up to more than the tool’s own figure, the larger number is used.
A machine’s id comes from its hardware, so reinstalling oms doesn’t register it twice. An account can have 50 machines.
The split by machine is shown only to its owner. Account-wide tokens with no matching machine record are listed apart, as “No matching device”.
Dated and undated usage
Charts, calendars, weekly figures and rankings over a number of days use dated usage: tokens that belong to a day.
Logged usage is dated in the timezone of the machine that recorded it. Where a tool keeps daily figures of its own, those are used up to the last day they cover and logs fill in after that, because mixing the two would count the same usage twice.
A tool’s lifetime figure can be larger than all its dated days together. The rest is undated: it counts in lifetime totals and the all-time ranking, and appears as “Earlier” in the token card’s table by month, but it is in no chart and no dated period. So a profile can rank on lifetime tokens and show nothing for the last 7 days.
Cost
Cost is what the usage would cost at public API list prices. It is not what was paid: subscription plans pay differently, so read it as a yardstick.
Prices come from LiteLLM’s community-maintained list, which this server fetches about once a day. The lookup covers the Claude, OpenAI and Gemini model families. Any other model still counts as usage and shows no price.
Each kind of token has its own price. Where the list has no cache price for a model, cache reads and writes are priced as input.
Cost is a minimum, marked ≥, whenever some tokens have no known model or price, because those are left out. Codex’s split by model comes from logs, so usage outside them shows as “Model unknown” and adds nothing to cost.
The current list is applied to all usage, old and new. A price change moves the cost of past usage too.
Contributions
GitHub’s contribution API hides the breakdown of private work, even from your own token. So oms counts commits by walking each repository, on your machine, with a token that stays there.
Private work is included because only numbers are uploaded, such as commits per month and lines per language. Private repository and organization names, commit messages and file paths stay on the machine.
The headline count is the one on your GitHub graph. Commits, pull requests, reviews and issues are what could be itemized, and can add up to less: the graph also counts activity GitHub does not list per repository, such as work in repositories that were later deleted.
Only default branches are walked, which matches how GitHub counts contributions. Line counts read the first 300 files of a commit, and a commit over 20,000 lines is treated as a bulk import.
Rankings
Rankings list published profiles only. Setting a profile to private removes it from them immediately.
A profile is ranked when it has positive usage in the period. Equal totals share a place and the next place is skipped: 1, 1, 3.
All time ranks lifetime totals, undated usage included. A period ranks dated usage: the last 7 or 30 days or this month, through today’s date in UTC, or the whole of last month. Your dashboard’s own windows end today in your timezone, so the two can differ by a day.
Account-wide usage counts once in a profile’s score. Ranking by one provider counts that tool alone. On My rankings, a device is credited with the usage attributable to it, and only you see that table.
Sorted by estimated cost, a profile is ranked by what its logged responses in the period would cost at public list prices. Only usage found in logs is priced, so the figure can be lower than the cost on the profile’s own page, and a model without a list price adds no cost.
The providers board counts, for each tool oms reads on its own, the published profiles that used it in the period, and their share of all ranked profiles. The models board does the same from logged responses, and lists a model only when it has a public list price. Both compare a period with the stretch right before it, and give a percentage only when that stretch had at least 25 profiles, because a percentage on a small base says little.
A group’s board ranks its members by the same score as the public rankings.
Rankings rest on what each machine reports. The server checks that an upload is well formed and within limits. It cannot check that the usage happened, so read a ranking as what profiles report, not as an audit.
How fresh it is
oms reads new log lines every 5 minutes and uploads once a day, so numbers can be up to a day behind. A machine that was asleep or offline catches up when it comes back. Run oms sync to update right away.
GitHub numbers are collected by one machine at a time, when it uploads and the last collection is more than six hours old. With the daily upload, that is once a day.
Public profile pages and images are cached for 5 minutes. So are the home page’s preview of the rankings and the rank on a profile page, which can lag by up to five minutes. Your own dashboard is never cached.
Known limits
- Claude Code has no account-wide figure for individual plans, so a machine without
omsisn’t counted. Its statistics file isn’t a public format. If a future version changes it,omskeeps the last known total and uses logs. - Codex’s account total assumes all your machines use one Codex account.
- Tools read from local logs, such as Gemini CLI, and imported usage cover only the machines running
oms. - Hermes and Zed keep running counters, so a first scan, or a gap between scans, can place several days of their usage on one day.
- Copilot sessions without per-request token records, and Amp installations without local thread snapshots, can be incomplete.
- Uploads are capped at 20,000 changed rows per account per day. Anything over that goes through the next day.
Does a number look wrong? Open an issue.