EvanZhouDev/openai-oauth ? reverse-engineered prompt

Reverse engineered prompt

Build me a small TypeScript project that lets people use their ChatGPT account as an AI backend without an API key.

I want a local CLI that can sign the user in, run an OpenAI compatible server on localhost, and keep it running in the background if needed. It should expose the usual chat and responses endpoints, support streaming, tool calls, reasoning traces, and show the models the account can use. If I’m not signed in yet, it should guide me through login and store credentials locally.

Also include a simple SDK for TypeScript so I can call it from code like a normal OpenAI client, plus a React button and helper for “Sign in with ChatGPT” that makes it easy to add login to a web app. If you need to, look up current docs online for the right API details and keep the setup simple for users.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab