DEV Community

阿杨
阿杨

Posted on

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

Two agentic developer tools generate the vast majority of login and quota troubleshooting threads right now: OpenAI Codex CLI / Desktop and Google Antigravity. Most failures look mysterious at first glance, yet 90% come down to cached local auth tokens, OAuth localhost callback conflicts, region dual-checks, or rolling quota caps.

Below is a practical, command-ready debugging runbook covering both tools.


1. OpenAI Codex CLI & Desktop Error Runbook

Quick Lookup Table

Symptom / Error Root Cause Direct Fix
Token exchange failed: 403 Forbidden Stale cached token in ~/.codex/auth.json or unsupported egress country Quit all sessions, clear .codex/auth.json, verify supported egress region, re-login
Browser succeeds, CLI hangs / Windows os error 10013 Local OAuth callback port 1455 conflict or WSL localhost isolation Authenticate via codex login --device-auth
Connection failed: error sending request Hung local daemon or 127.0.0.1 loopback intercepted Bypass localhost & 127.0.0.1 in network rules and test codex --no-daemon
429 Too Many Requests / Usage Limit Rolling Codex quota cap hit on Free/Plus plan Wait for sliding-window reset or upgrade to higher Pro tiers for heavy refactors
Redirected to /add-phone Mandatory SMS anti-abuse verification Complete one-time SMS verification using a supported real SIM number

Commands That Solve Most Codex Login Loops

# Clear existing CLI session
codex logout

# Back up and remove stale cached credentials (macOS / Linux / WSL)
mv ~/.codex/auth.json ~/.codex/auth.json.bak 2>/dev/null || true

# Use Device Code Auth to completely bypass localhost:1455 callback & WSL isolation
codex login --device-auth

# If network requests hang due to a stuck background daemon
codex --no-daemon
Enter fullscreen mode Exit fullscreen mode

Windows WSL tip: If you prefer standard browser auth, run codex login on Windows first, then copy C:\Users\<username>\.codex\auth.json into WSL ~/.codex/auth.json.

For deeper Chinese-language walkthroughs (including /add-phone SMS troubleshooting and Plus-to-Pro quota planning), see:


2. Google Antigravity Error Runbook

Quick Lookup Table

Symptom / Error Root Cause Direct Fix
Your current account is not eligible Dual mismatch: both Google account country AND egress IP must be in supported regions Verify policies.google.com/terms country and submit official country association form if mismatched
Browser auth succeeds, desktop client stays stuck Desktop binary not covered by system-wide network route, or local clock drift Enable system-wide network takeover + OS automatic time sync, then 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 and verify you are using an adult personal @gmail.com account
429 / Quota Exceeded Multi-file agent workflows rapidly exhaust Free-tier allowance Switch temporarily to lighter models or move heavy daily coding onto Gemini Pro / Google AI Ultra 5x / 20x
Agent terminated due to error Stale auth session, mid-session region shift, or outdated client version Update Antigravity to the latest build, sign out cleanly, clear cache, and sign back in

Why Region Fixes Often Fail on the First Try

Many developers switch their network region and still see Your current account is not eligible. Google enforces a two-factor region check:

  1. Check https://policies.google.com/terms while signed into the exact same Google account to see the account's associated country.
  2. If it lists an unsupported region, submit Google's official country association form (https://policies.google.com/country-association-form) and wait for the confirmation email (usually 30 minutes to a few hours) before re-launching Antigravity.
  3. Always use an adult personal @gmail.com account rather than corporate Google Workspace or .edu accounts when isolating eligibility issues.

For full Chinese step-by-step checklists, Gemini Pro vs Google AI Ultra 5x/20x quota multipliers, and student verification comparisons, check:

Top comments (0)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.