Copilot API Proxy is a reverse-engineered proxy for GitHub Copilot’s API. While unofficial and potentially unstable, it exposes Copilot as an OpenAI/Anthropic-compatible service for use with compatible tools.
Key Features
- OpenAI & Anthropic API compatibility
- Claude Code integration with
--claude-code
flag - Web-based monitoring dashboard
- Rate limiting and manual request approval
- Token visibility and flexible authentication
Quick Start
# Install dependencies
bun install
# Run with Docker
docker build -t copilot-api .
docker run -p 4141:4141 copilot-api
# Run with NPX
npx copilot-api@latest start
API Endpoints
- OpenAI:
/v1/chat/completions
,/v1/models
- Anthropic:
/v1/messages
- Monitoring:
/usage
,/status
,/health
Account Types
- Personal subscriptions
- Enterprise licenses
- Educational access
- Open source eligibility