sums001/Windows-Copilot-API ? reverse-engineered prompt
Reverse engineered prompt
Build me a small Python app that lets me use my existing Microsoft Copilot account like a free AI API.
I want to sign in once in a browser with my Microsoft or Google account, save that session locally, and then reuse it automatically on later runs. After that, the app should work in two ways, first as a simple Python client where I can call chat and stream replies, and second as a local web server on localhost that looks like the OpenAI chat API so I can point normal OpenAI tools at it without changing much.
Make it support normal chat, streaming responses, and continuing the same conversation with a conversation id. Add a tiny command line mode for logging in and asking a one off question. It should run locally on Windows, macOS, and Linux, and it would be nice if Docker support works too. Use current docs online if you need to check anything.
Are you gonna build this?
make sure you review the code using coderabbit