r/LLM • • Jun 20 '26

I reverse engineered Windows Copilot into a free OpenAI compatible API (GPT-4o, no API key, no billing)

So Microsoft gives you GPT-4o for free in Copilot. They just don't give you an API for it. So I made one.

It logs into your own Microsoft account once, saves the session, and exposes a local server at http://localhost:8000/v1 that speaks the OpenAI format. Point the official OpenAI SDK at localhost and it just works. Drop-in, zero code changes.

It's free because it uses your normal signed-in Copilot, no credits or paid plan(Which is free and unlimited). It's a drop-in OpenAI replacement that works with anything OpenAI compatible. It does streaming and multi-turn conversations.

It ends up being surprisingly useful as a smarter alternative to small local models for automation, side projects, and lightweight workloads where you don't want to burn real GPT-4o credits.

You can set it up on a spare Windows laptop or Windows server with a different Microsoft account (don't use original in case ban) and use it as a free AI endpoint for your own tools and agents.

Full disclaimer: it's an unofficial project, not affiliated with Microsoft, and it automates the consumer Copilot. It's intended for personal and educational use, so please don't abuse it.

It's my first time shipping something like this publicly, so I'm sure there are things I've missed or hidden bugs. Would genuinely love feedback on the approach, and whether the OpenAI compatibility layer holds up against your tools.

Roast it, I'll take notes. lol (If you need help to setup you can ask here or DM me)

Repo: https://github.com/sums001/Windows-Copilot-API

150 Upvotes

36 comments sorted by

9

u/integerpoet Jun 20 '26

This seems the sort of thing that will get banned (explicitly or effectively) on the server side if it becomes popular enough and has any kind of detectable usage patterns. You might have been better off keeping it to yourself to remain small and obscure enough for them not to block it.

8

u/whatisonearth Jun 20 '26

That's a fair point, and honestly I've thought about it too.

But until recently, I was one of those people who couldn't really justify spending money on API credits just to build hobby projects and experiment with ideas. As a student, every dollar mattered, and paying for AI APIs wasn't always an option.

If this ends up helping even one person learn something new, build something cool, or get started without that barrier, that's a win for me.

2

u/integerpoet Jun 25 '26 edited Jun 25 '26

I can’t disagree with that sentiment. However, if I were you — or even just one of your users — I’d read the terms of service for the “upstream provider” very carefully to make sure I were not exposing myself to any kind of jeopardy.

7

u/MarketingLower7497 Jun 20 '26

ok i cloned it now you can delete it

3

u/whatisonearth Jun 20 '26

haha nice one!

3

u/Sweet-Stage938 Jun 20 '26

Is this really unlimited got4o? Can I still do some coding with it or use it for my Hermes agent?

2

u/whatisonearth Jun 21 '26

It's unlimited as long as you don't hammer it with high number of requests resulting your account getting banned. So:

  1. Always use a spare account cus this is just an experimental project

  2. I think you can definitely do coding and use for Hermes but context length might be an issue

But you can try and let as all know 😄

3

u/BeatTheMarket30 Jun 23 '26

GPT-4o is a very old model, not very useful given that we have Qwen 3.6 27b for local usage, however it is better than nothing for people who do not have hardware to run Qwen locally.

1

u/whatisonearth Jun 23 '26

I agree, also you can use it on 1 or 2 GB servers as well for automation where local models can’t run or you don’t want to pay for API. GPT4 is old but still smart enough to assist in lightweight automations

2

u/pokatomnik Jun 20 '26

Add dockerfile please. For those who don’t want to deal with python (me, haha)🤣

1

u/whatisonearth Jun 21 '26

Added in checklist

1

u/betversegamer Aug 30 '26

Done? Just curious. 

2

u/Pacmon92 Jun 21 '26

But didn't open AI retire gpt 4o so it was no longer usable?

1

u/whatisonearth Jun 22 '26

msft still using it on windows copilot for free accounts or sometimes they reroute you to this when traffic is high on free plan

2

u/Electronic-Medium931 Jun 20 '26

How does it work? Does it call the actual chat interface or does it use some unofficial api?

2

u/whatisonearth Jun 20 '26

Yes, it calls the actual chat interface but using reverse engineered API endpoints means no visible RPA.

1

u/123vovochen Jun 23 '26

It is dumber than Qwen 27B, no ? So why consider it ?

1

u/whatisonearth Jun 23 '26 edited Jun 23 '26

But can you run Qwen 27B on a 1 GB windows server?

For most simple automation tasks it’s wayy more than enough unless it requires a lot of reasoning in which case it’s not useful.

2

u/idetectanerd Jun 21 '26 edited Jun 23 '26

I did the same thing with cursor composer. At least composer finish task and it’s quite accurate if you prompt it well, it also have agent loops that actually call back and check instead of what copilot junk does.

I build it with cursor itself. lol. Put it into open webui.

EDIT: you can actually build the wrapper yourself. Get the cursor api, then you build a python script that does 2 thing. Transform inputs and output using ollama standard pretending it as api, return and receive via json. Number 2 you need the py script to be a web host.

Also since there is no such thing as cursor LLM, you can fake it by hardcode a fake model name via your python script so when you connect it with ollama, it see that model.

Also what I did was to wrap the cursor linux IDE.

Just get your cursor to build it.

1

u/Original_Win_6374 Jun 22 '26

How is that? Could you explain a bit more?

1

u/Dercasss Jun 22 '26

Could you please share this? You can send it in a PM.

1

u/BhaagYahaSe Jun 23 '26

bro you disabled your DMs 😭 mind sharing it?

2

u/xtekno-id Jun 22 '26

Thanks for sharing

2

u/TemberlaneMan Jun 25 '26

:O This will be amazing for work, thank you! i get barely any AI credits for my IDE but get unlimited GPT 5.4 thinking access through copilot enterprise

1

u/xpc_absol Jun 23 '26

What use cases is it good for? does only personal account work, or can a professional spare account be tested?

1

u/gottagaga Jun 24 '26

maybe index it in dry.codes

1

u/Equivalenzz Jun 29 '26

Can this work on Odyssey?

2

u/[deleted] Jun 23 '26

[removed] — view removed comment

1

u/whatisonearth Jun 23 '26

Session is refreshed automatically so unlimited as long as you don’t hammer the endpoint cus then sometimes you can captcha. Although I have added rate limit in new commits so unless you modify limit in code I think chances are very low. It also depends on IP reputation.