[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-93024":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":26,"discoverSource":27},93024,"tokenmaxxing","851-labs\u002Ftokenmaxxing","851-labs","Social leaderboard for LLM token usage — sync your agent usage with the CLI, climb the leaderboard","https:\u002F\u002Ftokenmaxxing.sh",null,"TypeScript",53,9,51,1,0,2,43.2,"MIT License",false,"main",[],"2026-07-22 04:02:07","# tokenmaxxing\n\nThe social leaderboard for LLM token usage. Sync your local agent usage\n(Claude Code, Codex, OpenCode, Gemini CLI, Copilot CLI), climb the board at\n[tokenmaxxing.sh](https:\u002F\u002Ftokenmaxxing.sh).\n\nBuilt on [ccusage](https:\u002F\u002Fgithub.com\u002Fryoppippi\u002Fccusage) for local usage\nparsing, [Effect](https:\u002F\u002Feffect.website) v4 end to end, and deployed to\nCloudflare (Workers + D1) with [Alchemy](https:\u002F\u002Falchemy.run) v2.\n\n## Quick start\n\n```bash\nnpm install -g @851-labs\u002Ftokenmaxxing@latest\ntokenmaxxing login              # sign in with OAuth, approves this device\ntokenmaxxing sync               # parse local usage via ccusage and push it\ntokenmaxxing service install    # optional: sync automatically every 5 minutes\ntokenmaxxing upgrade            # upgrade the global CLI and refresh the service\n```\n\nYou can also install globally with `bun add -g --trust @851-labs\u002Ftokenmaxxing@latest`,\n`pnpm add -g @851-labs\u002Ftokenmaxxing@latest`, or\n`yarn global add @851-labs\u002Ftokenmaxxing@latest`.\n\nThe background service uses the global `tokenmaxxing` binary and syncs every\n5 minutes. It auto-updates through the package manager that installed the\nglobal binary (bun, npm, pnpm, or yarn) when that package manager can be\ndetected.\nAfter an upgrade or auto-update, installed services are refreshed automatically so scheduler\nfiles stay current.\nUse `tokenmaxxing service status` for the last run and `tokenmaxxing service\ndoctor` to inspect scheduler files, auth, auto-update, locks, and recent logs.\n\n`sync` aggregates one row per (day × model × agent) and upserts — run it as\noften as you like, from as many machines as you like; profiles aggregate\nacross all your devices. `--dry-run` shows what would be pushed, `--since\nYYYY-MM-DD` bounds the range, `--sources claude,codex` picks agents.\n\n### What gets uploaded (privacy)\n\nDaily aggregates only: date, model name, agent name, token counts, and the\nAPI-equivalent cost — never prompts, file paths, project names, or session\ncontent. Profiles and the leaderboard are public; device hostnames appear\non your own settings page and in your per-device breakdown.\n\nCLI tokens never expire. Revoke them with `tokenmaxxing logout` or from\n[settings](https:\u002F\u002Ftokenmaxxing.sh\u002Fsettings).\n\n## Layout\n\n- `apps\u002Fapi` — Effect HttpApi server on a Cloudflare Worker (D1)\n- `apps\u002Fwww` — TanStack Start site: leaderboard + profile dashboards\n- `apps\u002Fcli` — `@851-labs\u002Ftokenmaxxing`, the `tokenmaxxing` CLI\n- `packages\u002Fapi-contract` — shared HttpApi contract (end-to-end types)\n- `packages\u002Fdb` — drizzle schema + D1 migrations\n\n## Development\n\n```bash\nbun install\nbun run dev        # alchemy dev: api :8788 + www :3002 on *.tokenmaxxing.localhost\nbun run typecheck\nbun run test\n```\n\nRun local development from the repo root; app-level Vite dev\u002Fpreview scripts are\nintentionally omitted because the web app depends on Alchemy\u002FCloudflare bindings.\n\nCopy `.env.example` to `.env` and fill in the GitHub and Google OAuth pairs.\nDev callbacks are `http:\u002F\u002Fapi.tokenmaxxing.localhost:8788\u002Fauth\u002Fgithub\u002Fcallback`\nand `http:\u002F\u002Fapi.tokenmaxxing.localhost:8788\u002Fauth\u002Fgoogle\u002Fcallback`.\nRun the CLI against the dev stack with\n`TOKENMAXXING_ENV=development bun apps\u002Fcli\u002Fsrc\u002Findex.ts \u003Ccommand>`.\n\n## Deploys\n\nEvery push to `main` deploys via GitHub Actions (typecheck + tests gate\nit). Deploy state lives on a Cloudflare state-store worker\n(`alchemy cloudflare bootstrap`), shared between CI and local machines —\n`bun run deploy` does the same deploy locally, reading the prod OAuth pairs\nfrom `.env.production`. Required repo secrets: `CLOUDFLARE_API_TOKEN`,\n`TMX_GITHUB_CLIENT_ID`, `TMX_GITHUB_CLIENT_SECRET`,\n`TMX_GOOGLE_CLIENT_ID`, `TMX_GOOGLE_CLIENT_SECRET`.\n\n## CLI Releases\n\nThe CLI publishes to npm from the `Release CLI` GitHub Actions workflow.\nPublishing is tag-based: bump `apps\u002Fcli\u002Fpackage.json`, commit the bump to\n`main`, then push a tag named `cli-vX.Y.Z` that exactly matches the package\nversion.\n\n```bash\ngit tag cli-vX.Y.Z\ngit push origin main\ngit push origin cli-vX.Y.Z\n```\n\nBefore the first release from this workflow, configure npm trusted\npublishing for package `@851-labs\u002Ftokenmaxxing` with repository\n`851-labs\u002Ftokenmaxxing` and workflow `.github\u002Fworkflows\u002Frelease-cli.yml`.\n\n## License\n\nMIT\n","tokenmaxxing 是一个面向开发者的 LLM 用量社交排行榜工具，用于追踪、聚合并公开展示个人或团队在本地 AI 编程代理（如 Claude Code、Codex、Gemini CLI 等）中的每日 token 消耗。它通过 CLI 同步本地解析的用量数据（基于 ccusage），上传脱敏后的日粒度聚合指标（含模型名、代理名、token 数及等效 API 成本），不上传原始提示、文件路径或会话内容；后端基于 Effect v4 构建，部署于 Cloudflare Workers + D1，支持自动定时同步与多设备合并统计。适用于关注 AI 使用成本、进行团队用量分析或参与开发者社区排名的场景。","2026-07-11 02:30:42","CREATED_QUERY"]