Authenticate
Complete GitHub device sign-in with the account that owns your Copilot subscription.
Use GitHub Copilot from Claude Code, Codex CLI, Antigravity CLI, and compatible API clients through one bridge.
/v1/responses
/v1/messages
/v1/models · /v1beta/models
/v1/chat/completions
/v1/embeddings
Run the proxy, sign in to GitHub, choose your models, and paste the generated launch command. Claude Code talks to Copilot through the Anthropic Messages API.
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.
Codex reaches Copilot through the OpenAI Responses API. Point it at the proxy with a custom model provider, then run Codex as usual.
model = "gpt-5.5"
model_provider = "copilot_proxy"
model_reasoning_effort = "high"
[model_providers.copilot_proxy]
name = "GitHub Copilot via copilot-proxy-api"
base_url = "http://localhost:4141/v1"
wire_api = "responses"
Setting OPENAI_BASE_URL alone is not enough — recent
Codex versions read provider settings from
config.toml.
Run npx copilot-proxy-api@latest start and complete
GitHub sign-in.
Any id your plan advertises at
/v1/models works. Check the list before pinning
one.
Launch codex in a second terminal. The banner
should read provider: copilot_proxy.
Antigravity CLI (agy) reaches Google chat models on
your Copilot plan through the Gemini endpoints. Launch a session
without changing saved settings, or pin
"modelProvider": "gemini" in
~/.gemini/antigravity-cli/settings.json.
GOOGLE_GEMINI_BASE_URL=http://127.0.0.1:4141 \
GEMINI_API_KEY=local-proxy \
agy --settings '{"modelProvider":"gemini"}' \
--model gemini-4-neon --effort xhigh
Requires Antigravity CLI 1.5.12 or later. Omit
/v1 and /v1beta from
GOOGLE_GEMINI_BASE_URL because
agy appends /v1beta/models/... itself.
Run npx copilot-proxy-api@latest start and complete
GitHub sign-in. If you pass --api-key, put the same
key in GEMINI_API_KEY.
Query /v1beta/models or /v1/models
with x-goog-api-key to list the Google chat models
and token limits on your plan.
Run the command for a single session, or add
"modelProvider": "gemini" to
settings.json and export the two variables in your
shell profile.
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
Gemini API (v1 and v1beta)
POST /v1beta/models/{id}:streamGenerateContent
Setup guide
OpenAI, Anthropic, and Gemini 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, Anthropic Messages, and Gemini endpoints from the same port.
/v1/responses
/v1/messages
/v1/models
/v1beta/models
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.