Changes require container restart to fully apply for some fields (marked Restart). Queue sizes apply live.
Raw .env preview
Codex Login (ChatGPT, no API key)
Codex can use ChatGPT login (no API key). Choose one method below. After login, enable Use Codex CLI in Configuration and set model like gpt-5.1-codex-mini.
VPS Status
Loading…
Option 1: Device Auth (headless)
SSH to VPS and run docker exec -it opencode-service codex login --device-auth – follow URL/code.
Option 2: Local Login + Upload (multi-account)
On your PC: npm i -g @openai/codex && codex login (ChatGPT) → then paste ~/.codex/auth.json below with account name.
Drop auth.json / auth.js here or click to select file
Use codex_account in API: POST /chat {"query":"...","codex_account":"personal"} or set X-Codex-Account header.
Option 3: API Key (automation)
Set OPENAI_API_KEY or CODEX_API_KEY in Configuration → Provider Keys – no browser needed.
Image Generation (Codex + OpenAI)
Generate images via POST /image or /codex/image – uses the logged-in Codex OAuth image account and does not use API keys.
Service Logs
Quick Chat Test
Response:
New Agent
API Key
If your service is protected with X-API-Key, enter it here. It will be stored in local browser storage and sent with every request.