caozhiyuan/copilot-api
GitHub Copilot, OpenAI Codex, OpenCode Go, and third-party AI provider gateway with OpenAI and Anthropic API compatibility.
What it solves
Copilot API is a universal AI gateway that allows developers to use multiple AI providers (such as GitHub Copilot, DeepSeek, Kimi, and OpenRouter) through a single local endpoint. It solves the problem of fragmented API protocols by translating between OpenAI-compatible Chat Completions, OpenAI Responses, and Anthropic Messages formats, enabling a single server to power various AI coding agents and clients.
How it works
The gateway acts as a proxy that routes requests from clients to the appropriate AI provider. It supports three primary client-facing protocols: OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages. Depending on the provider's native capabilities, the gateway translates the request and response formats to ensure compatibility. For example, it can route GitHub Copilot traffic to its native Anthropic-style Messages API to preserve tool-heavy workflows.
Who it’s for
Developers using AI coding assistants like Claude Code, OpenCode, and Codex who want to consolidate their AI model access and switch between different providers without changing client configurations.
Highlights
- Unified API Gateway: Supports OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages from one endpoint.
- Multi-Provider Support: Integrates GitHub Copilot, a built-in Codex provider, and third-party providers like DeepSeek, Kimi, and DashScope.
- Coding Agent Ready: Includes specialized setups and launchers for Claude Code, OpenCode, and Codex.
- Desktop Application: Provides an Electron GUI for managing authentication, provider configuration, and monitoring token usage.
- Streaming Support: Implements SSE streaming across all three client-facing protocols.
Related
- Project
- Project
- Project
- Project
- Project