{"repo":"whtsky/copilot2api","free":true,"listed":false,"github":"https://github.com/whtsky/copilot2api","clone":"git clone https://github.com/whtsky/copilot2api.git","description":"Lightweight Go proxy that exposes GitHub Copilot as OpenAI and Anthropic compatible API endpoints","language":"Go","stars":27,"topics":["anthropic-api","api-proxy","claude","copilot","github-copilot","go","llm","openai-api"],"license":"MIT","category":"ai-agents","readme_excerpt":"copilot2api A lightweight Go proxy that exposes GitHub Copilot as OpenAI-compatible, Anthropic-compatible, Gemini-compatible, and AmpCode-compatible API endpoints. Features - OpenAI API Compatible : /v1/chat/completions , /v1/models , /v1/embeddings , /v1/responses - Embeddings Support : Native OpenAI-compatible /v1/embeddings endpoint - Anthropic API Compatible : /v1/messages - Gemini API Compatible : /v1beta/models , /v1beta/models/{model}:generateContent , /v1beta/models/{model}:streamGenerateContent , /v1beta/models/{model}:countTokens - AmpCode Compatible : /amp/v1/ routes for chat, /api/provider/ for provider-specific calls, management proxied to ampcode.com - Streaming Support : Full SSE streaming for both OpenAI and Anthropic formats - Anthropic Routing : Uses native /v1/messages when the model supports it, otherwise routes via /responses or /chat/completions - Auto Authentication : GitHub Device Flow OAuth with automatic token refresh - Usage Monitoring : Built-in /usage endpoint for quota tracking - Models Cache : 5-minute cache for /v1/models and Anthropic model capability lookups Quick Start Docker The volume mount persists your GitHub credentials across container restarts. The examples publish the port on 127.0.0.1 only so the proxy stays local by default. Docker Compose Start it with: Download a release binary Download the asset that matches your platform from GitHub Releases. Published binaries use names like copilot2api-linux-amd64 , copilot2api-linux-arm64 , ","default_branch":null,"files":null,"tree":[],"storefront":"/r/whtsky","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/whtsky/copilot2api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}