Open-source usage dashboard for copilot-api-proxy. Track requests, tokens, costs, and latency across Claude, GPT, and Gemini — all models routed through your GitHub Copilot API proxy.
- 📈 Usage Overview — Requests (24h), total tokens, estimated cost, active models
- 📊 Trends — Request volume over time with 7d / 30d / 90d views
- 🤖 Model Breakdown — Per-model stats: requests, tokens, latency, cost
- 💰 Cost Estimation — Daily cost tracking with built-in pricing for 15+ models
- ⚡ Latency Analysis — P50/P95/P99 distribution, per-model performance
- 🔑 API Key Tracking — Usage breakdown per API key
- 🌙 Dark/Light Mode — Beautiful UI with theme toggle
- 🔒 Privacy First — Pure frontend, proxy credentials stored in your browser only
Your App → copilot-api-proxy → GitHub Copilot API
↓
audit.jsonl (logs every request with token counts)
↓
/api/usage/* endpoints
↓
Copilot API Meter (reads & visualizes usage data)
No backend database required. Logs auto-cleanup after 30 days.
-
Click the button above or import this repo in Vercel
-
Set environment variables:
Variable Value NEXTAUTH_URLhttps://your-app.vercel.appNEXTAUTH_SECRETRun openssl rand -base64 32GITHUB_IDCreate OAuth App GITHUB_SECRETFrom your OAuth App -
GitHub OAuth App settings:
- Homepage URL:
https://your-app.vercel.app - Callback URL:
https://your-app.vercel.app/api/auth/callback/github
- Homepage URL:
-
Deploy → Sign in → Go to Settings → Connect your proxy
git clone https://github.com/Zchary1106/copilot-api-meter.git
cd ai-meter
npm install
# Create .env.local
cat > .env.local << EOF
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=$(openssl rand -base64 32)
GITHUB_ID=your_github_oauth_client_id
GITHUB_SECRET=your_github_oauth_client_secret
EOF
npm run dev- Deploy copilot-api-proxy (audit logging is enabled by default)
- Sign in to Copilot API Meter
- Go to Settings → Enter your proxy URL and API key
- Dashboard will show real usage data immediately
All models available through GitHub Copilot:
| Provider | Models |
|---|---|
| Anthropic | Claude Opus 4.6/4.5, Sonnet 4.6/4.5/4, Haiku 4.5 |
| OpenAI | GPT-5.4/5.2/5.1/5-mini, GPT-4o, GPT-4.1 |
| Gemini 3.1 Pro, Gemini 3 Flash, Gemini 2.5 Pro |
- Framework: Next.js 14 (App Router)
- Auth: NextAuth.js v4 (GitHub OAuth)
- UI: Tailwind CSS + shadcn/ui
- Charts: Recharts
- Data Fetching: TanStack Query
- copilot-api-proxy — The API proxy that generates the usage data this dashboard visualizes
github-copilot copilot-api usage-dashboard api-proxy token-tracking cost-analysis claude gpt gemini llm-monitoring ai-usage openai anthropic google-gemini nextjs vercel open-source
MIT

