Microsoft 365 Copilot switched to OpenAI-compatible API for local deployment

M365 Copilot Gateway is a Windows-local AI gateway tool that converts Microsoft 365 Copilot into an OpenAI-compatible API interface, making it easy to integrate with various AI clients, development tools, and automated workflows.

Supported models:

copilot-auto
copilot-quick
copilot-thinking
gpt-5.5
gpt-5.5-thinking
gpt-5.2
gpt-5.2-thinking

Key features:

  • Supports OpenAI-compatible API calls
  • Supports M365 Copilot text conversations
  • Supports image recognition and image content analysis
  • Supports tool calling, enabling clients to execute local tools, browsers, terminals, and other operations
  • Supports multi-account management and automatic refreshing
  • Supports a local desktop management interface
  • Supports access through LAN interfaces
  • Supports independent packaging and license activation for customers
  • Can integrate with Codex, Hermes, and other software compatible with OpenAI interfaces

Suitable for office Q&A, document processing, coding assistance, image recognition, automated workflow integration, and other scenarios.
Enables unlimited local model calls, with a configurable number of accounts and three accounts by default.
One machine, one code, with deep binding.
Contact me if interested; testing is available.

7 Likes

Is your code legit?

The last person who shared a GitHub project—I found that their OpenAI Python script was full of garbled text because they saved it with a UTF-8 BOM signature.

I previously tried modifying it to call local tools and read local code, but it didn’t work. You can actually do it—impressive!

It’s not that I’m impressive—it’s the AI that’s amazing. Everything was handled with GPT-5.5.

It doesn’t really look like a character set error — I can’t see any obvious reason.

Finally, the wait is over.

Try calling it and see—can it really read your local code project for development?

Right? You say it’s an encoding error, don’t you? Some of the Chinese in it displays normally.

If you say it isn’t an encoding error, then how do you explain this garbled text? The English is perfectly fine.

Can I use my company’s Copilot Premium? I don’t have administrator privileges, but I use GPT cloud models in my day-to-day work.

github link?
not open source?

Request a test—it’s just what I need.

hmmmm, are you talking about me? :ac19:

1 Like

Sure.

He’s talking about you.

Reading works fine; persistence calls are still not fully implemented and are currently being improved.

I already replied to this thread of yours — I said that your code doesn’t even look like it can run properly.

I also posted a CMD screenshot: one was the command according to your Readme, and the other was a command I guessed based on your code structure.

1 Like

I tried before—Microsoft’s version can only chat, it doesn’t actually have any hands-on abilities, so using a reverse proxy doesn’t help either.

There’s a big difference between using the local tool ‘read’ and calling the regular API—test results are pretty poor, not as good as using a relay station.

1 Like

:ac01: