Authenticate
Complete GitHub device sign-in with the account that owns your Copilot subscription.
Use GitHub Copilot from Claude Code, Codex CLI, and compatible API clients through one compatibility bridge.
/v1/responses
/v1/messages
/v1/chat/completions
/v1/embeddings
Run the proxy, sign in to GitHub, choose your models, and paste the generated launch command.
npx copilot-proxy-api@latest start --claude-code
Requires Node.js and an active GitHub Copilot subscription.
Complete GitHub device sign-in with the account that owns your Copilot subscription.
Select a primary model and a smaller model for Claude Code background tasks.
Paste the generated command into a new terminal and work as usual.
Keep your preferred coding interface while the proxy handles translation and model routing.
Anthropic Messages API
POST /v1/messages
Setup guide
OpenAI Responses API
POST /v1/responses
Setup guide
OpenAI-compatible and Anthropic-compatible tools
http://localhost:4141
View endpoints
Compatibility is more than matching a route name. The proxy handles the edge cases coding agents depend on.
Serve OpenAI Responses and Chat Completions alongside Anthropic Messages from the same endpoint.
/v1/responses
/v1/messages
Keepalives and structured stream cleanup help long-running agent responses finish cleanly.
Model-aware pruning keeps oversized tool output, images, and message history within upstream limits.
Translate tool calls, images, PDFs, and structured errors between client and Copilot formats.
Inspect quota data, pace requests, wait on rate limits, or approve requests manually.
Open usage dashboardThis reverse-engineered project is not supported by GitHub and may break as upstream APIs change. Keep it local, avoid excessive automation, and follow GitHub's policies and Copilot terms.