Status: [UNTESTED] Endpoints found: http://127.0.0.1:8080/v1/chat/completions http://127.0.0.1:8081/c/api/start http://127.0.0.1:8080/v1/models Source: https://github.com/6Kmfi6HP/copilot-openai-proxy # copilot-openai-proxy [![CI](https://github.com/6Kmfi6HP/copilot-openai-proxy/actions/workflows/ci.yml/badge.svg)](https://github.com/6Kmfi6HP/copilot-openai-proxy/actions/workflows/ci.yml) [![Release](https://img.shields.io/github/v/release/6Kmfi6HP/copilot-openai-proxy)](https://github.com/6Kmfi6HP/copilot-openai-proxy/releases) [![GHCR](https://img.shields.io/badge/GHCR-ready-black)](https://github.com/6Kmfi6HP/copilot-openai-proxy/pkgs/container/copilot-openai-proxy) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE) Convert Microsoft Copilot WebSocket completions into an OpenAI-compatible HTTP API. This project is useful when you want to point OpenAI SDKs, curl scripts, or existing tooling at a self-hosted proxy endpoint instead of calling Copilot directly. > 中文说明见下方的 [中文使用说明](#中文使用说明) ## Features - OpenAI-compatible endpoints: `POST /v1/chat/completions`, `GET /v1/models` - Streaming SSE responses - Vision input via OpenAI `image_url` data URIs (PNG/JPEG → Copilot attachments) - Dynamic `GET /v1/models` from Copilot's frontend conversation-mode catalog (cached) - Optional bearer-token protection - Multi-arch Docker image publishing to GHCR - GitHub Releases with prebuilt binaries - Docker Compose, Docker Swarm, and K3s deployment examples - Outbound proxy support through environment variables ## Quick Start ### Run a released binary Download a release archive from [GitHub Releases](https://github.com/6Kmfi6HP/copilot-openai-proxy/releases), unpack it, then: ```bash ./copilot-openai-proxy -api-key sk-change-me ``` ### Build from source ```bash git clone https://github.com/6Kmfi6HP/copilot-openai-proxy.git cd copilot-openai-proxy make build ./copilot-openai-proxy -api-key sk-change-me ``` ### Install with Go ```bash go install github.com/6Kmfi6HP/copilot-openai-proxy/cmd/copilot-openai-proxy@latest ``` ### Run with Docker ```bash docker run --rm -p 8080:8080 \ -e API_KEY=