git404hub

what is m365-copilot2api fr?

hexuxiu/m365-copilot2api — explained in plain English

Analysis updated 2026-05-18

75GoAudience · developerComplexity · 3/5LicenseSetup · moderate

tl;dr

A self hosted gateway that exposes Microsoft 365 Copilot through an OpenAI and Anthropic compatible API, with an admin console for accounts and keys.

vibe map

mindmap
  root((M365 Copilot2API))
    What it does
      OpenAI style gateway
      Anthropic style gateway
      Streaming responses
    Tech stack
      Go
      Docker
      SignalR
      MCP protocol
    Use cases
      Reuse existing AI tools
      Manage multiple accounts
      Connect MCP tools
    Audience
      Developers
      Self hosters
      Microsoft 365 users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Point existing OpenAI or Anthropic compatible tools at your own Microsoft 365 Copilot access.

VIBE 2

Get streaming, word by word chat responses from Copilot through a standard API format.

VIBE 3

Manage multiple linked Microsoft accounts and API keys from a web admin console.

VIBE 4

Connect external tools to Copilot using the Model Context Protocol.

what's the stack?

GoDockerSSEWebSocket

how it stacks up fr

hexuxiu/m365-copilot2apigastownhall/wastelandthephw/claude-meseeks
Stars757676
LanguageGoGoGo
Last pushed2026-06-20
MaintenanceMaintained
Setup difficultymoderatemoderateeasy
Complexity3/53/51/5
Audiencedeveloperdevelopervibe coder

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · moderate time til it works · 30min

Requires Go 1.22+ or Docker, plus a Microsoft 365 Copilot account signed in through OAuth.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

in plain english

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.

prompts (copy fr)

prompt 1
Help me build and run this gateway from source using Go 1.22.
prompt 2
Walk me through deploying this project with Docker Compose.
prompt 3
Explain how to change the default admin password after first logging into the console.
prompt 4
Show me an example curl request for streaming a chat completion through this gateway.

Frequently asked questions

what is m365-copilot2api fr?

A self hosted gateway that exposes Microsoft 365 Copilot through an OpenAI and Anthropic compatible API, with an admin console for accounts and keys.

What language is m365-copilot2api written in?

Mainly Go. The stack also includes Go, Docker, SSE.

What license does m365-copilot2api use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is m365-copilot2api to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is m365-copilot2api for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.