flay-o/arena2api ? reverse-engineered prompt
Reverse engineered prompt
Build me a local tool that lets me use arena.ai models through an OpenAI style API.
I want a small Python server that runs on my machine, plus a browser extension for arena.ai that keeps the connection alive, grabs the login cookies and model list from the page, and sends the needed token info back to the server. Then the server should expose endpoints like a model list and chat completions, and it should work with both streamed and normal replies. If the arena page is not connected or the data is stale, return a clear error instead of hanging.
It should work in Chrome, and if it’s not too much extra work, Firefox too. Make the setup easy, with a README that shows how to start the server, load the extension, open arena.ai, and call the API with curl or an OpenAI client. If you need current docs or browser extension details, look them up online while building it.
Are you gonna build this?
make sure you review the code using coderabbit