Fixing OpenAI Codex CLI 403 / Port 1455 Errors & Google Antigravity Stuck Loading / 429 Quota Issues (2026)

Practical engineering runbook for two of the most frequent agentic IDE/CLI failures in 2026: OpenAI Codex CLI (Token exchange failed: 403 Forbidden, Windows os error 10013 on port 1455, WSL callback hang, 429 Usage Limit) and Google Antigravity (Your current account is not eligible, stuck on Setting Up Your Account, 429 Quota Exceeded, and Agent terminated due to error).

Part 1: Fixing OpenAI Codex CLI Login, 403 & Callback Failures

Quick Error Matrix

Error Message Most Likely Root Cause Direct Fix
Token exchange failed: 403 Forbidden Stale cached token in ~/.codex/auth.json or unsupported IP country Quit all sessions, remove ~/.codex/auth.json, ensure supported region, re-authenticate
Browser succeeds, CLI hangs / os error 10013 Local OAuth callback port 1455 conflict or WSL localhost isolation Switch to device code flow: codex login --device-auth
Connection failed: error sending request Stale local daemon or localhost loopback routed incorrectly Bypass 127.0.0.1 / localhost in system network rules and test codex --no-daemon
429 Too Many Requests / Usage Limit Rolling Codex quota exhausted on Free/Plus tier Wait for sliding window reset or move heavy multi-file work to higher Pro tiers
Redirected to /add-phone Mandatory SMS anti-abuse verification triggered Complete one-time SMS check with a supported real SIM number

Step-by-Step Recovery Commands

# 1. Clear stale auth state
codex logout

# On macOS / Linux / WSL: back up and clear cached auth.json if 403 persists
mv ~/.codex/auth.json ~/.codex/auth.json.bak 2>/dev/null || true

# 2. Authenticate via Device Auth (avoids port 1455 conflicts & WSL localhost isolation)
codex login --device-auth

# 3. If requests still time out on a stuck background daemon, run without daemon
codex --no-daemon

Part 2: Fixing Google Antigravity Stuck Loading, Region & 429 Errors

Quick Error Matrix

Symptom / Error Root Cause Direct Fix
Your current account is not eligible Dual mismatch: Google account region AND IP must both be in supported regions Check policies.google.com/terms; submit official region association form if needed
Browser login works, desktop app hangs Desktop process bypasses system network route, or system clock drift breaks OAuth Enable system-wide network takeover + automatic clock sync; restart client
Stuck on Setting Up Your Account Pending Google device verification or Workspace/EDU/under-18 account restriction Open g.co/verifyaccount in browser; switch to an adult personal @gmail.com account
429 / Quota Exceeded Agentic multi-file refactors rapidly exhaust Free tier quota Switch to lighter model temporarily, or upgrade to Gemini Pro / Google AI Ultra 5x / 20x
Agent terminated due to error Expired session token, region drift, or outdated Antigravity client build Update to latest client build, sign out cleanly, clear cache, and sign back in

Region Dual-Check Checklist

  1. Sign in to the exact same Google account and visit https://policies.google.com/terms to verify the displayed country at the top of the page.
  2. If your account country is outside the supported list, submit Google's official country association form at https://policies.google.com/country-association-form and wait for the confirmation email before relaunching Antigravity.
  3. Always use an adult personal @gmail.com account rather than a university or corporate Google Workspace domain when troubleshooting eligibility errors.
  4. For step-by-step region form fields and Gemini Pro vs Google AI Ultra 5x/20x quota comparisons, see:

Related Guides & References