Running OpenClaw 2026.4.10 on Hostinger VPS (Ubuntu). ChatGPT OAuth for openai-codex/gpt-5.4 is completely broken:
-
Cloudflare 403 block - chatgpt.com/backend-api returns Cloudflare challenge HTML instead of API responses. Same root cause as #62142 and #66633 - the
originator: piheader andUser-Agent: pi (linux...)trigger bot detection. I patched openai-codex-responses.js manually (commented out originator header, spoofed User-Agent to Chrome) and Haiku fallback started working through the connection. -
OAuth re-auth fails with invalid_scope - when trying
openclaw models auth login --provider openai-codex, the callback returnserror=invalid_scopewith "The OAuth 2.0 Client is not allowed to request scope 'model.request'". OpenAI appears to have revoked this scope from the OpenClaw OAuth app. Cannot get new tokens at all. -
Existing tokens fail with "Failed to extract accountId from token" even after patching the Cloudflare headers.
Net result: openai-codex provider is 100% unusable. Agents fall back to Haiku (Anthropic API key) which works but costs money.
Environment: OpenClaw 2026.4.10, Ubuntu 24, Hostinger VPS, ChatGPT Plus subscription, two agents (Jerry + Barry) via Telegram.
Is there a known workaround or ETA on a fix for the OAuth scope revocation?