Claude Code model router

Copilot Proxy

Turn GitHub Copilot into an OpenAI/Anthropic-compatible server with Claude Code and Codex support.

Install

Install
npm install --global @jer-y/copilot-proxy@latest

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/Jer-y/copilot-proxy.git

From the README

English | 简体中文

Copilot API Proxy

A local reverse proxy that exposes one or more owner-configured GitHub Copilot identities through standard OpenAI- and Anthropic-compatible API endpoints.

Unofficial and reverse-engineered; Copilot changes may break it, and excessive automation may trigger abuse controls. Review the GitHub Acceptable Use Policies and Copilot Terms.
Use loopback for one trusted user. There is no downstream user authentication; remote access requires an authenticated private gateway.

Quick start

Requires a Copilot subscription and Node.js >= 22.19.0. For setup codex, install Codex >= 0.134.0 on PATH.

Replace claude with codex or openai-sdk as needed. Setup may update copilot-proxy's own authentication data; it prints configuration without writing client configuration files or launching the client.

1. Start the proxy in another terminal using the exact command printed by setup.
2. Apply the printed client configuration yourself, then run the client.
3. Check the running service with copilot-proxy doctor.

This document describes its revision; use bundled documentation for a published package and keep CLI commands on the same version. For npx, source installation, or troubleshooting, see Getting started. Existing users should read the upgrade checklist.

Capabilities

- OpenAI-compatible Chat Completions, Responses HTTP/SSE, Models, and Embeddings.
- Anthropic-compatible Messages and token counting.
- Native Responses WebSocket when advertised by the selected model.
- Deterministic multi-account routing, client setup, diagnostics, and native services.

Only native protocols are supported: no cross-protocol translation (e.g. converting between Messages and Responses), account load balancing, or automatic failover. Availability depends on the account,…
Read the full README on GitHub

Details

Language
TypeScript
License
MIT
Last updated
30 October 2026
Topics
anthropic-apianthropic-compatibleapi-proxyclaude-codecodexcodex-clicopilot-apigithub-copilotopenai-apiopenai-compatibleresponses-apireverse-engineering

FAQ

What is Copilot Proxy?

Turn GitHub Copilot into an OpenAI/Anthropic-compatible server with Claude Code and Codex support. It is a model router for Claude Code, from Jer-y/copilot-proxy on GitHub.

How do I install Copilot Proxy?

Run npm install --global @jer-y/copilot-proxy@latest, then follow the setup in the README.

Is Copilot Proxy popular?

Jer-y/copilot-proxy has 45 GitHub stars and 16 forks. It was last updated on 30 October 2026.

More model routers & proxies

Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.