Skip to content

Releases: transcentlin/Copilot-API

Release list

v1.0.0

Choose a tag to compare

@transcentlin transcentlin released this 25 Jun 11:30

Release v1.0.0: Initial High-Quality Windows-Friendly Version

We are proud to release v1.0.0 of the Copilot-API!
This project bridges your personal Microsoft Copilot account to an OpenAI-compatible API and a Python library.

Compared to the original upstream repository, this release introduces several critical industrial-grade enhancements specifically designed for Windows environments, proxy networks, and robust automation.


🚀 Key Features & Enhancements (核心特性与独创增强)

  • 🤖 Smart One-Click Startup (PowerShell): Added .\start_service.ps1 and verify_auth.py. It automatically diagnoses cookie validity, auto-launches a browser for re-login if expired, auto-kills any zombie processes holding port 8000, and starts the server with live logs.
  • 🔌 SOCKS5h Proxy Auto-Correction: Automatically converts socks5h:// to socks5:// in WebSocket headers, preventing the notorious WinError 10061 and TLS connection errors on proxy-enabled environments.
  • 🛡️ GBK Console Crash Immunity: Reconfigures standard I/O streams dynamically (sys.stdout.reconfigure(errors="replace")) to prevent UnicodeEncodeError when printing emoji characters in default Windows CMD/PowerShell consoles.
  • ⚡ 0-I/O In-Memory Optimization: Replaced repetitive disk scanning with a single glob scan and fast hash-map dictionary lookup, minimizing file I/O latency (especially in cloud sync folders).
  • 🎭 Three Model Styles: Built-in support for copilot (Balanced), copilot-creative (Creative), and copilot-precise (Precise).
  • 📖 Bilingual Documentation: Fully localized and high-quality documentation in both English (README.md) and Simplified Chinese (README_ZH.md).

📦 Installation (快速安装)

git clone https://github.com/transcentlin/Copilot-API.git
cd Copilot-API
python -m venv venv
# Activate venv, then:
pip install -r requirements.txt
playwright install chromium
python -m copilot login

For Windows users, just run:

.\start_service.ps1

Thanks to all contributors and users. Enjoy your free, OpenAI-compatible Copilot bridge!