Proxy GitHub Copilot as OpenAI/Anthropic API
Top 65.1% on sourcepulse
This project provides a reverse-engineered proxy for the GitHub Copilot API, exposing it as an OpenAI and Anthropic compatible server. It enables users to leverage GitHub Copilot with tools designed for OpenAI or Anthropic APIs, including Claude Code, offering a unified interface for AI-assisted coding.
How It Works
The proxy intercepts requests intended for OpenAI or Anthropic APIs and translates them into calls to the GitHub Copilot backend. It then converts the Copilot responses back into the expected API formats. This approach allows seamless integration with existing AI tooling that relies on these popular API specifications, abstracting away the underlying Copilot communication.
Quick Start & Requirements
npx copilot-api@latest start
Highlighted Details
/v1/chat/completions
, /v1/models
, /v1/embeddings
) and Anthropic compatible endpoints (/v1/messages
).--claude-code
).Maintenance & Community
The project is actively maintained by ericc-ch. Community interaction channels are not explicitly mentioned in the README.
Licensing & Compatibility
The project's license is not specified in the README. Compatibility for commercial use or closed-source linking is not detailed.
Limitations & Caveats
This is a reverse-engineered proxy and is not officially supported by GitHub, meaning it may break unexpectedly. Users should proceed at their own risk.
1 day ago
Inactive