Windows Copilot API is an unofficial Python project that exposes the consumer Microsoft Copilot web experience through a programmable interface. It can be used directly as a Python library or launched as a local server compatible with the OpenAI API format. The client supports streamed responses, multi-turn conversations, and conversation identifiers. Browser-based sign-in stores a reusable session and refreshes it automatically for later requests. Because compatible applications can target the local endpoint, existing OpenAI SDK workflows require few changes. The project runs on Windows, macOS, and Linux and also includes Docker configuration, tests, examples, and command-line tools. It relies on automation of the signed-in Copilot website and is not affiliated with Microsoft.
Features
- Direct Python library interface
- OpenAI-compatible local REST server
- Streaming response support
- Multi-turn conversation tracking
- Reusable browser-authenticated sessions
- Docker and cross-platform operation