Copilot meets your coding agents.

Use GitHub Copilot from Claude Code, Codex CLI, and compatible API clients through one compatibility bridge.

30-second animated walkthrough: start, connect, respond.
OpenAI Responses /v1/responses
Anthropic Messages /v1/messages
Chat Completions /v1/chat/completions
Embeddings /v1/embeddings

Claude Code in one command.

Run the proxy, sign in to GitHub, choose your models, and paste the generated launch command.

Terminal
npx copilot-proxy-api@latest start --claude-code

Requires Node.js and an active GitHub Copilot subscription.

Authenticate

Complete GitHub device sign-in with the account that owns your Copilot subscription.

Choose models

Select a primary model and a smaller model for Claude Code background tasks.

Launch

Paste the generated command into a new terminal and work as usual.

Familiar clients. Compatible routes.

Keep your preferred coding interface while the proxy handles translation and model routing.

Claude Code

Anthropic Messages API

POST /v1/messages Setup guide

Codex CLI

OpenAI Responses API

POST /v1/responses Setup guide

API clients

OpenAI-compatible and Anthropic-compatible tools

http://localhost:4141 View endpoints

Built for long agent sessions.

Compatibility is more than matching a route name. The proxy handles the edge cases coding agents depend on.

Two API shapes, one process

Serve OpenAI Responses and Chat Completions alongside Anthropic Messages from the same endpoint.

/v1/responses /v1/messages

Streaming resilience

Keepalives and structured stream cleanup help long-running agent responses finish cleanly.

Context management

Model-aware pruning keeps oversized tool output, images, and message history within upstream limits.

Rich content translation

Translate tool calls, images, PDFs, and structured errors between client and Copilot formats.

Usage controls

Inspect quota data, pace requests, wait on rate limits, or approve requests manually.

Open usage dashboard

Unofficial by design. Responsible by default.

This 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.

Put Copilot behind the tools you already use.

View package on npm