gitwtfhub

wtf is m365-native?

uefi2333/m365-native — explained in plain English

Analysis updated 2026-05-18

32GoAudience · developerComplexity · 3/5LicenseSetup · moderate

TL;DR

A local gateway that lets OpenAI- and Anthropic-style API clients talk to your own authorized Microsoft 365 Copilot account.

Mindmap

mindmap
  root((m365-native))
    What it does
      Translates Copilot to OpenAI API
      Adds Anthropic compatible endpoint
      Manages sessions and tool calls
    Tech stack
      Go
      Docker
      OAuth
    Use cases
      Reuse OpenAI style tools
      Route requests to Copilot
      Self hosted chat gateway
    Audience
      Developers
      M365 Copilot subscribers

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

Why would anyone build with this?

REASON 1

Point existing OpenAI or Anthropic API client code at your own Microsoft 365 Copilot account.

REASON 2

Keep a multi-turn conversation going with a Copilot backend using a stable session key.

REASON 3

Self-host a private gateway that adds tool calling on top of Copilot responses.

REASON 4

Run the gateway in Docker for a reproducible, isolated deployment.

What's in the stack?

GoDockerOAuth

How it stacks up

uefi2333/m365-nativezerozshare/openfriendmc0hardik1/kubesplaining
Stars323233
LanguageGoGoGo
Setup difficultymoderateeasy
Complexity3/53/5
Audiencedevelopergeneralops devops

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

How do you spin it up?

Difficulty · moderate Time to first run · 30min

Requires an authorized Microsoft 365 account, an OAuth login flow, and Go or Docker to build and run.

MIT license: free to use, modify, and distribute, including commercially, as long as the copyright notice is kept.

Wtf does this do

This project is a gateway that sits in front of Microsoft 365 Copilot and translates its API into a format that matches the popular OpenAI and Anthropic chat APIs. In practice, that means if you already have code or tools built to talk to OpenAI's or Anthropic's chat endpoints, you can point them at this gateway instead and have your requests routed through your own Microsoft 365 Copilot subscription. The README is explicit that this is an interoperability tool for accounts and tenants you are already authorized to use, not a way to bypass Microsoft's authentication or access accounts you do not own. The gateway supports streaming responses, sending images and other media alongside text, tool and function calling, and keeping a conversation going across multiple messages using a session key. It exposes several model names such as GPT-5.5, GPT-5.5 reasoning, GPT-5.6 reasoning, and Claude Sonnet, which are aliases that route to whatever Microsoft 365 Copilot makes available to your account. Setting it up requires Go 1.22 or newer if building from source, or Docker if you prefer a container. Either way, you configure an environment file, run the server, and then complete a Microsoft sign-in flow through a web console the gateway provides. From there you generate an API key and use it to authenticate requests to the gateway's chat endpoints, similar to how you would use an OpenAI or Anthropic API key. The README places heavy emphasis on security: the service binds to your local machine by default, stores account credentials and tokens in local files that should never be shared or committed to a repository, and recommends adding TLS and access control before exposing it beyond your own computer. The project is released under the MIT license.

Yoink these prompts

Prompt 1
Walk me through setting up m365-native with Docker Compose on my own server.
Prompt 2
Help me configure the .env file and generate my first API key for this gateway.
Prompt 3
Explain the security steps I should take before exposing this gateway beyond localhost.
Prompt 4
Show me a curl example for calling the OpenAI-compatible chat completions endpoint.

Frequently asked questions

wtf is m365-native?

A local gateway that lets OpenAI- and Anthropic-style API clients talk to your own authorized Microsoft 365 Copilot account.

What language is m365-native written in?

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

What license does m365-native use?

MIT license: free to use, modify, and distribute, including commercially, as long as the copyright notice is kept.

How hard is m365-native to set up?

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

Who is m365-native for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.