尚未检测到更新。GitHub 发布版本后会显示在这里。
正在加载完整 README。 以下为已保存的摘录。
Public AI usage dashboard for Claude Code, Codex, OpenCode, and Kimi.
Copy the example env files and fill them in:
• DATABASE_URL
• SYNC_SECRET
• SYNC_URL at the repo root
• PUBLIC_SITE_TITLE
Dry-run the local usage import without writing to the server:
Push a real sync batch to the deployed API:
The local sync script reads usage data from your machine, normalizes provider and model names, and posts the batch to SYNC_URL with SYNC_SECRET.查看完整 README ↗Public AI usage dashboard for Claude Code, Codex, OpenCode, and Kimi.
bun install
Copy the example env files and fill them in:
cp .env.example .env
cp apps/web/.env.example apps/web/.env
Required env vars:
DATABASE_URLSYNC_SECRETSYNC_URL at the repo rootPUBLIC_SITE_TITLERun migrations after DATABASE_URL is set:
bun run db:migrate
Dry-run the local usage import without writing to the server:
bun run sync --dry-run
Push a real sync batch to the deployed API:
bun run sync
The local sync script reads usage data from your machine, normalizes provider and model names, and posts the batch to SYNC_URL with SYNC_SECRET.
The public page is server-rendered by Astro and read-only. The protected write path is POST /api/sync, and it requires a valid SYNC_SECRET bearer token.
The Astro app uses the official Vercel adapter for SSR. Set the same production env vars in Vercel:
DATABASE_URLSYNC_SECRETPUBLIC_SITE_TITLESYNC_URLIf you change the deployed API route, update SYNC_URL to match the new endpoint.