I reverse engineered Windows Copilot into a free OpenAI compatible API (GPT-4, no API key, no billing)
Mirrored from r/LocalLLaMA for archival readability. Support the source by reading on the original site.
So Microsoft gives you GPT-4 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-4 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)
[link] [comments]
More from r/LocalLLaMA
-
Palantir CEO rages against closed models
Jul 2
-
SenseNova-U1-8b-MoT-Infographic-V2 (released yesterday) - An open source SOTA beast for infographic design and image editing.
Jul 2
-
[Benchmark] Kimi K2.7 Code Q3 on Mac Studio M3 Ultra + RTX PRO 6000 over llama.cpp RPC: prefill improves, no changes in token generation/decode
Jul 2
-
They fit! Mostly.... 2x 3090, Thermaltake Core p3
Jul 2
Discussion (0)
Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.
Sign in →No comments yet. Sign in and be the first to say something.