OpenAI OAuth Setup

Step 1: Run OAuth Login Locally

Run this command on your local machine (requires browser):

npx openai-oauth login

This will open a browser window for ChatGPT authentication.

Step 2: Locate Auth File

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

Step 3: Upload Auth File

Upload your auth.json file to complete the setup:

Step 4: Test the Setup

After successful upload, test the OpenAI API:

curl -H "Authorization: Bearer YOUR_TOKEN" https://openai.app.whyble.space/v1/models