Claude Code model router

Copilot Proxy API

Self-hosted GitHub Copilot bridge for Claude Code and Codex CLI with OpenAI Responses, Anthropic Messages, streaming resilience, and context management.

Install

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

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

From source
git clone https://github.com/voidsteed/copilot-proxy-api.git

From the README

Copilot Proxy API for Claude Code and Codex CLI

Self-hosted GitHub Copilot bridge for Claude Code and Codex CLI with OpenAI Responses, Anthropic Messages, streaming resilience, and context management.

Quick Start

With Node.js and an active GitHub Copilot subscription:

Complete the GitHub sign-in, choose your models, then paste the generated Claude Code command into a new terminal.

Client guides: Claude Code · Codex CLI · Generic OpenAI and Anthropic clients

See It in Action (30 Seconds)

This is an unofficial, reverse-engineered project. Keep the proxy local, never expose it publicly without authentication, and use it responsibly within GitHub's Acceptable Use Policies and Copilot Terms.

Why This Fork?

This fork keeps the original bridge practical for current coding agents:

- Active maintenance for current Copilot models and client compatibility changes.
- First-class Claude Code support through the Anthropic Messages API and an interactive setup command.
- Codex CLI support through the OpenAI Responses API.
- More resilient agent sessions with streaming keepalives, structured error handling, and context management.
- Built-in usage visibility, quota checks, rate limiting, and manual request approval.

Responsible Use

copilot-proxy-api is an unofficial compatibility project. It is not affiliated with or supported by GitHub, and Copilot API changes may break it without notice.
Keep the proxy private, require --api-key for non-local access, and avoid rapid or bulk automation. Activity that triggers GitHub's abuse controls may restrict or suspend Copilot access. Review GitHub's Acceptable Use Policies and Copilot Terms.

Credits

This project is a fork of copilot-api by Erick Christian. Thank you for the original work!

Using OpenCode? Its built-in GitHub…
Read the full README on GitHub

Details

Language
TypeScript
License
MIT
Last updated
30 October 2026
Topics
anthropic-apiclaude-codecodex-cligithub-copilotllm-proxyopenai-responses-api

FAQ

What is Copilot Proxy API?

Self-hosted GitHub Copilot bridge for Claude Code and Codex CLI with OpenAI Responses, Anthropic Messages, streaming resilience, and context management. It is a model router for Claude Code, from voidsteed/copilot-proxy-api on GitHub.

How do I install Copilot Proxy API?

Run npx copilot-proxy-api@latest start --claude-code, then follow the setup in the README.

Is Copilot Proxy API popular?

voidsteed/copilot-proxy-api has 55 GitHub stars and 13 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.