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, Windowsos error 10013on port1455, WSL callback hang,429 Usage Limit) and Google Antigravity (Your current account is not eligible, stuck onSetting Up Your Account,429 Quota Exceeded, andAgent 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
- Windows WSL tip: If you prefer standard browser auth, run
codex loginon the Windows host first and copyC:\Users\<username>\.codex\auth.jsoninto WSL~/.codex/auth.json. - For the full Chinese troubleshooting breakdown (including
/add-phoneSMS verification and Plus → Pro upgrade paths), see OpenAI Codex 403 / Login / Quota Troubleshooting Guide and Codex Phone Verification Guide.
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
- Sign in to the exact same Google account and visit
https://policies.google.com/termsto verify the displayed country at the top of the page. - If your account country is outside the supported list, submit Google's official country association form at
https://policies.google.com/country-association-formand wait for the confirmation email before relaunching Antigravity. - Always use an adult personal
@gmail.comaccount rather than a university or corporate Google Workspace domain when troubleshooting eligibility errors. - For step-by-step region form fields and Gemini Pro vs Google AI Ultra 5x/20x quota comparisons, see:
- Google Antigravity Error, Stuck Loading & 429 Fix Guide (ZH)
- Google Antigravity Official Region Change Guide (ZH)
- Gemini Pro vs Google AI Ultra 5x & 20x Quota Breakdown
- Complete Bilingual AI Troubleshooting Index (aiytw.com/guide)