[UNTESTED] [yuchanns/copilot-openai-api] 5 endpoint(s)
ChatGPT
API Proxy/ChatGPT
2,279 characters
Status: [UNTESTED]
Endpoints found:
http://localhost:9191/v1/chat/completions
http://localhost:9191/v1/embeddings
http://localhost:9191/v1/responses
http://localhost:9191/v1/models
http://localhost:9191/v1/models/gpt-5.1
Source: https://github.com/yuchanns/copilot-openai-api
# 🤖 Copilot OpenAI API
[](https://www.python.org/downloads/)
[](https://fastapi.tiangolo.com/)
[](https://www.docker.com/)
[](LICENSE)
[](https://ghcr.io/yuchanns/copilot-openai-api)

A FastAPI proxy server that seamlessly turns GitHub Copilot's chat completion/embeddings/responses capabilities into OpenAI compatible API service.
## ✨ Key Features
🚀 **Advanced Integration**
- Seamless GitHub Copilot chat completion API proxy
- Real-time streaming response support
- High-performance request handling
🔐 **Security & Reliability**
- Secure authentication middleware
- Automatic token management and refresh
- Built-in CORS support for web applications
💻 **Universal Compatibility**
- Cross-platform support (Windows and Unix-based systems)
- Docker containerization ready
- Flexible deployment options
## 🚀 Prerequisites
- Python 3.10+
- pip (Python package manager)
- GitHub Copilot subscription
- GitHub authentication token
## 📦 Installation
1. Clone the repository:
```bash
git clone https://github.com/yuchanns/copilot-openai-api.git
cd copilot-openai-api
```
2. Install dependencies:
```bash
# Install PDM first if you haven't
pip install -U pdm
# Install project dependencies using PDM
pdm install --prod
```
## ⚙️ Configuration
1. Set up environment variables:
```bash
# Windows
set COPILOT_TOKEN=your_access_token_here
set COPILOT_SERVER_PORT=9191 # Optional: Server port (default: 9191)
set COPILOT_SERVER_WORKERS=4 # Optional: Number of workers (default: min(CPU_COUNT, 4))
# Unix/Linux/macOS