SponsorHoxiHoxiHit 429? Hot-swap Codex/Claude mid-session, zero context lost. Native Go · Worktrees · BYOK.MINI GAME🎮Tibo 2048Merge tokens to unlock a 2048 Full Reset.
TiboSay (@thsottiaux)🎉
TiboSay$ npx tibosay

186 here now·Wed 4:55 AM PT

config.tomlQuota CalcErrors FixPlaybooks CLI/API
← Back to Reset Tracker
⚙️ config.toml Converter 🧮 Quota Calculator
🛠️ REAL-WORLD CODEX TROUBLESHOOTING · 12 VERIFIED FIXES

OpenAI Codex Error & Troubleshooting Dictionary — 429, WSL2 Auth, Sandbox & MCP Fixes

12 real, high-frequency OpenAI Codex CLI & IDE errors sourced from official docs and GitHub issues. Paste your terminal error string for a 30-second root-cause diagnosis and copyable fix.

HTTP 429 · QuotaOpenAI Codex Pricing & Quota Docs ↗

Hit Codex Usage Limit (429): Rolling 5h Cap vs Weekly Pool Exhaustion

TERMINAL:You have hit your ChatGPT usage limit (429 Too Many Requests) / rate_limit_exceeded

Root Cause: Plus ($20) and Business share a 5-hour rolling window plus a weekly pool across ChatGPT web, Codex CLI, IDE extension, and cloud tasks. Pro 100/200/500 remove the 5h cap completely.

Verified Fix: 1) Run `/status` in TUI to check exact reset timestamp and enable `tui.status_line` rate_limits; 2) Check `npx tibosay` before burning a Banked Reset if Tibo’s global drop is imminent; 3) Switch to `gpt-6.1-terra` (2X endurance) or set `OPENAI_API_KEY` for emergency pay-as-you-go fallback.

Copyable Fix / config.toml
# 1. Check live global reset forecast before spending a Banked Reset
npx tibosay

# 2. ~/.codex/config.toml — Show live quota & switch to 2X endurance model
model = "gpt-6.1-terra"
[tui]
status_line = ["model", "reasoning_effort", "context", "rate_limits"]
Startup Crash · TOMLCodex Config Reference (approval_policy) ↗

Codex Refuses to Start After Upgrade (`approval_policy = "untrusted"` Retired)

TERMINAL:Error loading config.toml: unknown variant `untrusted`, expected `on-request` or `never`

Root Cause: Recent Codex CLI releases retired `approval_policy = "untrusted"` (and deprecated `"on-failure"`). Old tutorials or dotfiles containing `"untrusted"` now fail strict schema validation on startup.

Verified Fix: Replace `approval_policy = "untrusted"` with `"on-request"` (prompts before outside-sandbox writes/commands) or `"never"`, then run `codex --strict-config` to verify.

Copyable Fix / config.toml
# ~/.codex/config.toml
approval_policy = "on-request"   # Valid scalar values: "on-request" | "never"
sandbox_mode = "workspace-write"

# Verify zero retired or misspelled keys:
# $ codex --strict-config
WSL2 / SSH · AuthGitHub Issue #28108 (WSL2 Auth) ↗

WSL2, Docker, or Remote SSH Login Hangs on `localhost` Callback or Keyring

TERMINAL:Failed to authenticate / Waiting for localhost:1455 OAuth callback / keyring error on WSL2

Root Cause: Headless Linux and WSL2 distributions often lack an unlocked `gnome-keyring` / `secret-service` daemon, or Windows browser OAuth callbacks fail to reach the WSL2 network namespace.

Verified Fix: Set `cli_auth_credentials_store = "file"` in `~/.codex/config.toml` so tokens persist safely in `~/.codex/auth.json` (chmod 600), and use `codex login --device-auth` (or SSH port forwarding `-L 1455:localhost:1455`).

Copyable Fix / config.toml
# 1. ~/.codex/config.toml — Bypass headless DBus/Keyring hangs
cli_auth_credentials_store = "file"
mcp_oauth_credentials_store = "file"

# 2. Authenticate cleanly on WSL2 / Remote SSH without browser port issues
codex login --device-auth
Sandbox · EAI_AGAINGitHub Issue #4934 & Codex Sandboxing Docs ↗

Commands Fail Inside Codex (`npm install`, `cargo fetch`, `curl`, `git push` Network Blocked)

TERMINAL:getaddrinfo EAI_AGAIN / Could not resolve host / npm ERR! network request failed in workspace-write

Root Cause: Even when `sandbox_mode = "workspace-write"` allows file edits, Codex blocks outbound internet access inside the Seatbelt/Landlock sandbox by default (`network_access = false`).

Verified Fix: Explicitly enable `network_access = true` under the `[sandbox_workspace_write]` table in `~/.codex/config.toml` while keeping filesystem writes safely scoped to your workspace.

Copyable Fix / config.toml
# ~/.codex/config.toml
sandbox_mode = "workspace-write"
approval_policy = "on-request"

[sandbox_workspace_write]
network_access = true
MCP · IgnoredGitHub Issue #9676 (MCP Config Detection) ↗

MCP Servers in Project `.codex/config.toml` Are Silently Ignored

TERMINAL:MCP servers configured in .codex/config.toml not showing up in /mcp or codex mcp list

Root Cause: Two common traps: 1) Project-scoped `.codex/config.toml` is ignored until the repo is marked `"trusted"` in `~/.codex/config.toml` (security protection against malicious repo MCP commands); 2) Using Claude’s camelCase `[mcpServers]` instead of snake_case `[mcp_servers.<id>]`.

Verified Fix: Trust the project directory or place global MCP servers in `~/.codex/config.toml` using `[mcp_servers.<id>]`, then verify with `codex mcp list`.

Copyable Fix / config.toml
# ~/.codex/config.toml
[projects."/Users/you/code/your-repo"]
trust_level = "trusted"

[mcp_servers.context7]
command = "npx"
args = ["-y", "@upstash/context7-mcp"]
Windows + WSLGitHub Issues #22672 & #23251 ↗

Windows Codex App Cannot Find WSL CLI or Loses `~/.codex` Config Across Environments

TERMINAL:Windows Codex Desktop App cannot locate codex CLI inside WSL / separate CODEX_HOME state

Root Cause: Installing Codex via `nvm`/`fnm` inside `.bashrc` hides the binary from non-interactive `wsl.exe` invocations, and Windows (`%USERPROFILE%\.codex`) vs WSL (`~/.codex`) use separate `CODEX_HOME` directories.

Verified Fix: Symlink the WSL `codex` binary into `/usr/local/bin/codex` so non-login shells find it immediately, keep `CODEX_HOME` on native Linux ext4 (`~/.codex`), and symlink only `config.toml` if sharing rules.

Copyable Fix / config.toml
# Run inside WSL2 Ubuntu/Debian:
sudo ln -sf "$(which codex)" /usr/local/bin/codex
which codex && codex --version
Migration · DocsOpenAI AGENTS.md Discovery Specification ↗

Make Codex Automatically Read Existing `CLAUDE.md` & `.cursorrules` Without Duplicating Files

TERMINAL:Codex ignores existing CLAUDE.md or .cursorrules instructions in mixed-team repositories

Root Cause: By default Codex looks for `AGENTS.override.md` then `AGENTS.md` in each directory up to `project_doc_max_bytes` (default 32 KiB, truncating longer manuals silently).

Verified Fix: Add `project_doc_fallback_filenames = ["CLAUDE.md", ".cursorrules"]` and raise `project_doc_max_bytes = 65536` in `~/.codex/config.toml`.

Copyable Fix / config.toml
# ~/.codex/config.toml — Zero-duplication Claude Code / Cursor compatibility
project_doc_max_bytes = 65536
project_doc_fallback_filenames = ["CLAUDE.md", ".cursorrules", ".github/copilot-instructions.md"]
0.134+ · ProfilesCodex Config Reference (Profiles) ↗

Inline `[profiles.<name>]` in Project `.codex/config.toml` No Longer Works

TERMINAL:codex --profile fast fails or ignores [profiles.fast] inside project .codex/config.toml

Root Cause: Codex moved profiles out of project-level inline tables into dedicated standalone files under `$CODEX_HOME/<profile-name>.config.toml` (e.g. `~/.codex/review.config.toml`).

Verified Fix: Create `~/.codex/audit.config.toml` with top-level keys (`model = "gpt-6.2-astra"`, `sandbox_mode = "read-only"`) and launch via `codex --profile audit`.

Copyable Fix / config.toml
# Save as ~/.codex/audit.config.toml
model = "gpt-6.2-astra"
model_reasoning_effort = "high"
sandbox_mode = "read-only"

# Run with:
# $ codex --profile audit
MCP · Timeout 10sCodex MCP Server Timeout Config ↗

`npx` / `uvx` MCP Server Fails on First Launch (`startup_timeout_sec` Default 10s)

TERMINAL:MCP server startup timed out after 10s (npx / uvx cold package download failed)

Root Cause: Codex defaults `startup_timeout_sec` to `10` seconds. Heavy MCP packages like `@playwright/mcp` or cold `uvx` Python environments often take 12–25s on first download.

Verified Fix: Increase `startup_timeout_sec = 30` and `tool_timeout_sec = 120` on heavy `[mcp_servers.<id>]` blocks, or pre-warm the package cache in terminal.

Copyable Fix / config.toml
[mcp_servers.playwright]
command = "npx"
args = ["-y", "@playwright/mcp@latest"]
startup_timeout_sec = 30
tool_timeout_sec = 120
Git · index.lockCodex Changelog & Multi-Agent Docs ↗

Parallel Codex Sessions Collide on `.git/index.lock` or Overwrite Working Tree Edits

TERMINAL:fatal: Unable to create .git/index.lock: File exists / parallel subagents overwriting edits

Root Cause: Running two interactive `codex` instances in the exact same checkout shares `.git/index` and dirty working files, invalidating prompt caches and corrupting staging.

Verified Fix: Isolate parallel tasks with `git worktree add ../repo-feat -b feat/task` or enable native `[features] multi_agent = true` so Codex manages subagent threads cleanly.

Copyable Fix / config.toml
# Spawn an isolated Git worktree per parallel Codex task:
git worktree add ../myrepo-auth-fix -b fix/auth-session
cd ../myrepo-auth-fix && codex
Context · PrunedCodex CLI 0.167.2+ Context Pruning ↗

Long Session Hits Context Compaction, Loses Constraints, and Burns 2X Extra Quota

TERMINAL:Context window limit reached — older tool outputs pruned / agent repeats failed commands

Root Cause: Running unfiltered repo-wide test suites (`pytest`, `vitest`, `cargo test`) dumps thousands of log lines into conversation history, forcing early compaction and busting warm cache prefixes.

Verified Fix: 1) Add single-file test rules in `AGENTS.md`; 2) Use `/compact` proactively at clean milestone boundaries or start a fresh session per feature PR; 3) Monitor `context` in `tui.status_line`.

Copyable Fix / config.toml
# Inside Codex TUI at a clean milestone boundary:
/compact Keep current branch goal, modified file paths, and remaining failing test names.

# Or resume a clean checkpoint later:
# $ codex resume
TLS · Proxy CertCodex Enterprise & MCP Env Isolation Docs ↗

Corporate TLS Inspection Proxy (Zscaler / Cloudflare Warp) Breaks Codex Rust CLI & Node MCPs

TERMINAL:request error: certificate verify failed: unable to get local issuer certificate (Zscaler / Corp Proxy)

Root Cause: Codex’s Rust binary checks `SSL_CERT_FILE` / OS root store, while `npx` Node-based MCP child servers require `NODE_EXTRA_CA_CERTS` passed explicitly via `env_vars`.

Verified Fix: Export both `SSL_CERT_FILE` and `NODE_EXTRA_CA_CERTS` pointing to your PEM bundle, and whitelist `NODE_EXTRA_CA_CERTS` + `HTTPS_PROXY` in `[mcp_servers.<id>]` `env_vars`.

Copyable Fix / config.toml
# ~/.zshrc or ~/.bashrc
export SSL_CERT_FILE="/path/to/corp-root-ca.pem"
export NODE_EXTRA_CA_CERTS="/path/to/corp-root-ca.pem"

# ~/.codex/config.toml (pass CA & proxy into MCP child processes)
[mcp_servers.context7]
command = "npx"
args = ["-y", "@upstash/context7-mcp"]
env_vars = ["NODE_EXTRA_CA_CERTS", "HTTPS_PROXY", "HTTP_PROXY", "NO_PROXY"]

Powered by @thsottiaux X telemetry & AI classification. Not affiliated with OpenAI.

Tibo, no pressure (try `npx tibosay`).

Want the raw data? Free public CLI (`npx tibosay`), OpenAPI (`/api/codex/v1/status`), Markdown (`/api/codex/markdown`), and Terminal ANSI (`/api/codex/ansi`).

v1.0.36·Changelog →
config.toml·Quota Calc·Errors Fix·Playbooks· 28d ·Support & FAQ·Privacy Policy·Terms of Service
SponsorGoPanelGoPanelStop babysitting Nginx. Self-hosted Go panel: rootless Docker, auto-HTTPS, CI/CD & mobile ops.