In short
- Only totals leave your machine. Prompts, responses and code never do.
- Your profile is private until you publish it, and a private profile looks the same as one that doesn’t exist.
- Pages run only scripts from this server, which draw the site in your browser. The site has two sign-in cookies and no trackers.
- You can remove a machine or your whole account on your dashboard, and it is deleted at once.
What stays on your machine
- Prompts, responses and code
- Commit messages and file paths
- Private repository and organization names
- The token that reads your repositories
GitHub stats are aggregated on your machine first, so no commit-level data is sent. Emails are never uploaded.
oms keeps its own record of your usage, and its sign-in for this server, in ~/.oh-my-stats on each machine. Run oms preview to see exactly what would be uploaded, without sending anything.
What this server stores
Your account
Your GitHub user id, username, name and avatar address, as GitHub gives them when you sign in. Whether your profile is public. Your timezone. What you write in the profile header on your dashboard. When the account was created and last changed, and how many rows it uploaded today, which enforces the daily cap.
The database has no place for an email address, a password or an IP address.
Sign-ins
For each website sign-in and each signed-in machine: a hash of its token, when it was created and when it expires. The tokens themselves are not stored.
Machines
For each machine: an id, its name, its platform, its version of oms, and when it was first and last seen. The id is a hash made on the machine from its hardware id, which itself never leaves it. The name is the machine’s own name unless you give it another.
Usage
For each machine, day, tool and model: input, output, cache-read and cache-write tokens, and the number of model responses. And each tool’s own lifetime figure as that machine last reported it, with its totals per model and per day where the tool gives them.
GitHub aggregates
One set of numbers per account, worked out on a machine. Among them: commits, pull requests, reviews and issues by month and year, when in the week you commit, lines per language, lines added and removed, streaks, times to merge and review, and counts of stars, followers and organizations. It holds no repository names. With it comes your public GitHub profile: name, bio, company, location and status.
It also counts who you co-author commits with. AI assistants are named. Bots are too, except a custom bot in a private repo, because its name can include an organization’s. People are named only if they have a GitHub account and co-authored in a public repo, counting those public commits only, or if you list them in your oms settings. Everyone else is an anonymous count.
Groups
For each group you start: its name, its description, whether it is public, its invite code and when it was made. For each group you are in: that you are a member, and since when.
Not about you
A copy of the public price list, and a note of when one of your machines last took the job of collecting GitHub stats.
What publishing makes public
Nothing is public until you publish. A private profile and a missing one give the same answer: not found.
Publishing shows anyone your GitHub username, name and avatar, your profile header, your token totals per tool, per model and per day with response counts and cost at list price, your GitHub aggregates as described above, your timezone, and your place in the public rankings.
It also lists your profile’s address in this site’s sitemap, where search engines look for pages. Published images can be embedded on other sites, such as a GitHub README.
Machine names and ids are never public, and neither is the split of your usage by machine. A public page says how many machines report a tool, not which.
Provider and model names you upload appear on public pages, so choose public-facing names if you export usage of your own. You can publish and unpublish at any time, on your dashboard or with oms publish and oms unpublish.
Who else is involved
GitHub, to sign in
On the website you are sent to GitHub to approve the sign-in. On a machine, oms login shows a code that you approve at GitHub. Either way the server only ever receives a token that proves who you are. It comes from a GitHub App with no permissions, so it can’t read your repositories. The server uses it once and doesn’t store it, and oms refuses to send a GitHub token with more access than that.
GitHub, for avatars
Pages show avatars straight from GitHub’s avatar server, so your browser asks GitHub for those images. The page tells the browser not to say which page it came from. For the dashboard image, the server fetches the avatar itself, keeps that copy for a day, and draws it in.
GitHub, for oms
The install scripts download oms from this project’s releases on GitHub. oms reads your repositories through GitHub with your own token, on your machine. When you run oms status, oms sync or oms rankings in a terminal, it checks GitHub for a newer release, up to once a day. Set OMS_NO_UPDATE_CHECK=1 to turn that off.
The price list
About once a day the server fetches a public price list from GitHub. The request carries nothing about you.
The host
The server is built to run on Cloudflare Workers with a D1 database. Run that way, Cloudflare carries every request and holds the database, and like any host it sees the IP address a request comes from.
The server’s own code stores no IP address. To slow down floods, it hands the host’s rate limiter that address, or your account’s id when a signed-in oms calls. When a request fails unexpectedly, it logs the page’s path and the error. This project’s deployment settings also turn on the host’s request logs and traces. What those hold, and for how long, is decided by the host and by whoever runs this server, not by this code.
The server makes no other outside requests, and sends your data to nobody else.
What joining a group shows
Joining a group shows its members your GitHub username and your token total for each period its board covers, even while your profile is private. It shows no models, no day-by-day history and no machine names.
A private group is shown to its members only. To anyone else it gives the same answer as a group that doesn’t exist. A public group can be opened by anyone and joined by any signed-in account; people outside it see only the members whose profiles are public.
A group’s name and description are written by its owner and, for a public group, shown to everyone. When you leave a group, your totals stop showing there at once.
Caching and unpublishing
What public profile pages show is cached for 5 minutes by the host, and images for 5 minutes by the host and by browsers.
When you unpublish or delete your account, everything public about you answers “not found” from then on. The server removes your pages, your images and your sitemap entry from the cache at the location that handled the request. Copies at other locations and in browsers can stay visible for up to five minutes.
Copies that others made are beyond this server’s reach. A search engine’s index, or an image proxy such as the one GitHub uses for READMEs, keeps what it fetched by its own rules.
Removing your data
A machine
On your dashboard, under Machines, choose Remove. Its usage, its lifetime figures and its sign-in are deleted from the database at once, and oms on it is signed out at its next sync.
Your account
On your dashboard, under Account, choose “Delete my account and data” and type your GitHub username to confirm. Everything this server holds about the account is deleted at once: usage, lifetime figures, GitHub aggregates, machines, sign-ins, your group memberships, the groups you own and the account itself. This can’t be undone.
What remains
A cached copy of a public page can show the old numbers for up to five minutes. Each machine keeps its local history, so oms login and oms sync bring your usage back. Signing a machine out with oms logout keeps both its local history and what it uploaded.
This code makes no backups. Whether the host keeps recovery copies of the database, and for how long, is up to the host and to whoever runs this server.
How long sign-ins last
A machine’s sign-in expires after 180 days without an upload, and signing in again replaces it. A website sign-in lasts 30 days.
An expired sign-in is refused. A machine’s record of it is removed when the machine signs in again or is removed. A website sign-in’s record, a hash and two dates, is removed when you sign out, and otherwise stays until the account is deleted.
Changes and questions
This page describes the code as of the date above. Its history is public, with the rest of the source.
Whoever runs this server decides how it is hosted. For a question this page leaves open, or a statement that looks wrong, open an issue.