OpenAI-compatible proxy for Microsoft 365 Copilot — use the Copilot licence you already have as a backend for pi, openclaw and other coding agents. Prompt-emulated tool calling, no extra licence, no MCP.
// momentum
// why it's here
- Active: last commit today
// how to help
// readme
m365-copilot-proxy
Use Microsoft 365 Copilot as an LLM backend for OpenAI-compatible coding agents like pi and OpenClaw. Wraps M365 Copilot’s WebSocket/SignalR API in an OpenAI-compatible interface with tool calling support.
Want the gory protocol details? See docs/m365-copilot-api.md — a full write-up of M365 Copilot’s undocumented WebSocket API: auth, SignalR frames, tones/models, throttling, the “Disengaged” filter, and the Copilot Studio agent trick that makes tool calling work.
How it works
M365 Copilot uses a SignalR WebSocket protocol, not the OpenAI API. This project translates between the two:
- Standalone proxy — HTTP server with
/v1/chat/completionsand/v1/modelsendpoints. Works with any OpenAI-compatible client (pi, OpenClaw, etc.). - OpenClaw plugin — Config generator + setup CLI for OpenClaw’s provider system.