explaingit

anshdhawann/claude-plugin-m365-gateway

Analysis updated 2026-05-18

0Audience · ops devopsComplexity · 4/5Setup · hard

TLDR

A self-hosted gateway that lets the Claude for Microsoft 365 add-in connect to any OpenAI-compatible AI provider, including local models, instead of Anthropic's servers.

Mindmap

mindmap
  root((claude-plugin-m365-gateway))
    What it does
      Self-hosted AI gateway
      Connects Office add-in
      Routes to any provider
    Tech stack
      LiteLLM
      Caddy
      Docker
    Use cases
      Local model backend
      Cost control
      Privacy control
    Setup
      VPS and domain
      Docker Compose
      Config file mapping

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 build with it?

USE CASE 1

Use the official Claude for Microsoft 365 add-in with a local model instead of Anthropic's API.

USE CASE 2

Route Word, Excel, PowerPoint, and Outlook AI requests through a self-hosted gateway for cost or privacy control.

USE CASE 3

Connect the Office add-in to any OpenAI-compatible provider such as OpenRouter or a self-hosted vLLM instance.

USE CASE 4

Map different Claude model tiers to different backend models of your choosing.

What is it built with?

LiteLLMCaddyDockerOpenAI API

How does it compare?

anshdhawann/claude-plugin-m365-gateway0verflowme/alarm-clock0xhassaan/nn-from-scratch
Stars00
LanguageCSSPython
Last pushed2022-10-03
MaintenanceDormant
Setup difficultyhardeasymoderate
Complexity4/52/54/5
Audienceops devopsvibe coderdeveloper

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

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires a VPS, a domain name for TLS, Docker Compose, and a working OpenAI-compatible provider backend.

No license information is stated in the README.

In plain English

Claude for Microsoft 365 is an official add-in that brings AI assistance directly into Word, Excel, PowerPoint, and Outlook. By default it routes requests through Anthropic's own servers. This project, claude-plugin-m365-gateway, is a self-hosted bridge that intercepts those requests and redirects them to any compatible AI provider you choose instead, whether that is a local model running on your own hardware, a third-party API service, or Anthropic's API directly. The bridge is built from two pieces running together. Caddy is a web server that handles encrypted HTTPS connections and the security headers the Office add-in requires. LiteLLM sits behind Caddy and acts as a translator: the Office add-in speaks Anthropic's message format, but LiteLLM converts that into whatever format your chosen AI provider expects, then converts the response back. The result is that the Office add-in works without changes while your requests go to the backend you configured. To set it up you need a server, a domain name pointing to that server, and a compatible AI provider. You edit a few configuration files to specify your provider's address and API key, then launch the whole stack with a single Docker command. Docker is a tool that packages software so it runs consistently anywhere. Caddy automatically obtains a security certificate so traffic is encrypted. Once running, you open the Claude add-in inside any Office application, choose the enterprise gateway option on the sign-in screen, and enter your gateway's address. The full README was longer than what was shown, so some configuration details may not appear here.

Copy-paste prompts

Prompt 1
Set up claude-plugin-m365-gateway on a VPS with Docker Compose and connect it to my domain with Caddy handling TLS.
Prompt 2
Configure litellm/config.yaml to map the claude-opus-4-7 model ID to a local DeepSeek model I'm running.
Prompt 3
How do I connect LM Studio running on my laptop to this gateway hosted on a separate VPS using Tailscale?
Prompt 4
Test the gateway's /v1/messages endpoint with curl to confirm it responds like the Anthropic API.

Frequently asked questions

What is claude-plugin-m365-gateway?

A self-hosted gateway that lets the Claude for Microsoft 365 add-in connect to any OpenAI-compatible AI provider, including local models, instead of Anthropic's servers.

What license does claude-plugin-m365-gateway use?

No license information is stated in the README.

How hard is claude-plugin-m365-gateway to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is claude-plugin-m365-gateway for?

Mainly ops devops.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.