Run this command on your local machine (requires browser):
npx openai-oauth login
This will open a browser window for ChatGPT authentication.
After successful login, find your auth file at:
~/.codex/auth.json
On macOS/Linux: /Users/YOUR_USERNAME/.codex/auth.json
On Windows: C:\Users\YOUR_USERNAME\.codex\auth.json
Upload your auth.json file to complete the setup:
After successful upload, test the OpenAI API:
curl -H "Authorization: Bearer YOUR_TOKEN" https://openai.app.whyble.space/v1/models