Code Limit: Copilot Analytics
Intelligent Proxy & Monitoring Dashboard for GitHub Copilot
Role
Full Stack Engineer
Client
Personal Project
Duration
1 month
Team Size
1 person (Solo Developer)
Key Impact
Prevents unexpected token leaks and provides 100% visibility into API consumption in real-time.
Project Overview
Code Limit is a comprehensive ecosystem of tools (CLI & Dashboard) designed to address the 'blind-spot' regarding GitHub Copilot token usage in the terminal. Utilizing a Proxy Middleware architecture, the system intercepts requests, precisely counts tokens using tiktoken, and visualizes the data on an analytics dashboard. The project also features a complex authentication management system supporting Multi-Provider (GitHub & Google Antigravity) via CLI.
Challenges
- 1Lack of native features to monitor token usage (RPM/TPM) on GitHub Copilot CLI.
- 2Risk of quota waste due to 'infinite loops' in AI agents.
- 3Difficulty managing multiple accounts (Multi-Account) without manually modifying .env files.
- 4Complexity in accurately counting tokens from stream responses (SSE).
Solutions
- 1Developed a Custom Proxy Server positioned between the Client and GitHub API for logging.
- 2Implemented OAuth 2.0 Device Flow in the terminal for a secure login experience without manual token copy-pasting.
- 3Built an interactive dashboard with Next.js and Recharts for visualizing usage trends and cost estimation.
- 4Created a dynamic 'Switch Profile' system using encrypted local configuration storage.
Screenshots




“This tool gives 'peace of mind' for developers. I no longer have to worry about running out of tokens unexpectedly because I can see the metrics running on my second screen.”
Key Features
- Real-time Token Monitoring (RPM/TPM)
- Multi-Provider Auth (GitHub Copilot & Google Antigravity)
- Interactive CLI Auth Manager (TUI)
- Cost Estimation & Usage Alerts
- Historical Data Visualization (1h, 24h, 7d)
- Proxy Middleware with Zero-Latency Overhead
- Secure Token Storage Management
- Dark Mode UI with Shadcn/ui
Development Timeline
Research & Architecture
1 weekAnalysis of Copilot communication protocols and Proxy Middleware architecture design.
Core Proxy Development
1 weekImplementation of Node.js server, token counting logic (tiktoken), and Supabase logging.
Dashboard UI Implementation
1 weekNext.js frontend development, Recharts integration, and real-time data fetching (SWR).
Auth System & CLI
1 weekIntegration of OAuth Device Flow, Google Auth, and CLI profile management features.
Polishing & Deployment
3 daysEnd-to-end testing, documentation (README), and production deployment.
Interested in working together?
Let's discuss how I can help bring your project to life.
