hexuxiu/m365-copilot2api — explained in plain English
Analysis updated 2026-05-18
Point existing OpenAI or Anthropic compatible tools at your own Microsoft 365 Copilot access.
Get streaming, word by word chat responses from Copilot through a standard API format.
Manage multiple linked Microsoft accounts and API keys from a web admin console.
Connect external tools to Copilot using the Model Context Protocol.
| hexuxiu/m365-copilot2api | gastownhall/wasteland | thephw/claude-meseeks | |
|---|---|---|---|
| Stars | 75 | 76 | 76 |
| Language | Go | Go | Go |
| Last pushed | — | 2026-06-20 | — |
| Maintenance | — | Maintained | — |
| Setup difficulty | moderate | moderate | easy |
| Complexity | 3/5 | 3/5 | 1/5 |
| Audience | developer | developer | vibe coder |
Figures from each repo's GitHub metadata at analysis time.
Requires Go 1.22+ or Docker, plus a Microsoft 365 Copilot account signed in through OAuth.
M365 Copilot2API is a self hosted gateway written in Go that lets you talk to Microsoft 365 Copilot through an API shaped like OpenAI's or Anthropic's own APIs, instead of through Microsoft's own chat interface. Once running, any tool built to talk to an OpenAI or Anthropic style API can be pointed at this gateway and use Copilot's models instead. It supports the familiar chat completions style API, a newer responses style API, and Anthropic's messages format, all with streaming responses so replies appear word by word rather than all at once. Several different Copilot connected models are exposed with different speed and reasoning tradeoffs, including a mode described as having built in web search for real time information. The gateway also includes support for the Model Context Protocol, a standard way for AI models to discover and call external tools, plus the ability to send images as part of a conversation. A built in web based admin console lets you manage multiple linked Microsoft accounts through OAuth sign in, create and revoke API keys, configure proxy servers to rotate network traffic through, and review logs, all from a browser instead of editing config files directly. To run it, you either build it directly from source using Go 1.22 or newer, or use the provided Docker Compose setup. By default it listens only on your own machine at a fixed local address, and you are expected to change the default admin password immediately after your first login. The project's author recommends putting it behind your own TLS certificate and reverse proxy if you plan to expose it beyond your own computer. It is released under the MIT license.
A self hosted gateway that exposes Microsoft 365 Copilot through an OpenAI and Anthropic compatible API, with an admin console for accounts and keys.
Mainly Go. The stack also includes Go, Docker, SSE.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
double-check against the repo, no cap.