[urgent] Codex CLI shows Pro account with 100% usage remaining, but inference is blocked as Free user

Open 💬 3 comments Opened Jul 3, 2026 by ArcheyChen

What version of Codex CLI is running?

v0.142.5

What subscription do you have?

pro 20x

Which model were you using?

gpt-5.4

What platform is your computer?

Linux 7.0.10-zen1-1-zen x86_64 unknown

What terminal emulator and version are you using (if applicable)?

zsh+ssh+konsole

Codex doctor report

{
  "schemaVersion": 1,
  "generatedAt": "1783049997s since unix epoch",
  "overallStatus": "warning",
  "codexVersion": "0.142.5",
  "checks": {
    "app_server.status": {
      "id": "app_server.status",
      "category": "app-server",
      "status": "ok",
      "summary": "background server is not running",
      "details": {
        "control socket": "/home/ausar/.codex/app-server-control/app-server-control.sock",
        "daemon state dir": "/home/ausar/.codex/app-server-daemon",
        "mode": "ephemeral",
        "pid file": "/home/ausar/.codex/app-server-daemon/app-server.pid (missing)",
        "settings": "/home/ausar/.codex/app-server-daemon/settings.json (missing)",
        "status": "not running",
        "update-loop pid file": "/home/ausar/.codex/app-server-daemon/app-server-updater.pid (missing)"
      },
      "remediation": null,
      "durationMs": 0
    },
    "auth.credentials": {
      "id": "auth.credentials",
      "category": "auth",
      "status": "ok",
      "summary": "auth is configured",
      "details": {
        "auth file": "/home/ausar/.codex/auth.json",
        "auth storage mode": "File",
        "stored API key": "false",
        "stored ChatGPT tokens": "true",
        "stored agent identity": "false",
        "stored auth mode": "chatgpt"
      },
      "remediation": null,
      "durationMs": 0
    },
    "config.load": {
      "id": "config.load",
      "category": "config",
      "status": "ok",
      "summary": "config loaded",
      "details": {
        "CODEX_HOME": "/home/ausar/.codex",
        "config.toml": "/home/ausar/.codex/config.toml",
        "config.toml parse": "ok",
        "cwd": "/home/ausar",
        "enabled feature flags": "shell_tool, unified_exec, shell_snapshot, terminal_resize_reflow, sqlite, memories, hooks, enable_request_compression, multi_agent, apps, tool_search_always_defer_mcp_tools, tool_suggest, plugins, in_app_browser, browser_use, browser_use_full_cdp_access, browser_use_external, computer_use, plugin_sharing, image_generation, resize_all_images, skill_mcp_dependency_install, mentions_v2, steer, guardian_approval, goals, collaboration_modes, tool_call_mcp_elicitation, personality, fast_mode, tui_app_server, auto_compaction, remote_compaction_v2, workspace_dependencies",
        "feature flag overrides": "memories=true",
        "feature flags enabled": "34",
        "log dir": "/home/ausar/.codex/log",
        "mcp servers": "0",
        "model": "gpt-5.5",
        "model provider": "openai",
        "sqlite home": "/home/ausar/.codex"
      },
      "remediation": null,
      "durationMs": 0
    },
    "git.environment": {
      "id": "git.environment",
      "category": "git",
      "status": "ok",
      "summary": "git version 2.54.0",
      "details": {
        "PATH git #1": "/usr/bin/git",
        "PATH git entries": "1",
        "git build options": "git version 2.54.0; cpu: x86_64; built from commit: 94f057755b7941b321fd11fec1b2e3ca5313a4e0; sizeof-long: 8; sizeof-size_t: 8; shell-path: /bin/sh; rust: enabled; gettext: enabled; libcurl: 8.19.0; OpenSSL: OpenSSL 3.6.2 7 Apr 2026; zlib-ng: 2.3.3; SHA-1: SHA1_DC; SHA-256: SHA256_BLK; default-ref-format: files; default-hash: sha1",
        "git exec path": "/usr/lib/git-core",
        "git version": "git version 2.54.0",
        "repo detected": "false",
        "selected git": "/usr/bin/git"
      },
      "remediation": null,
      "durationMs": 6
    },
    "installation": {
      "id": "installation",
      "category": "install",
      "status": "ok",
      "summary": "installation looks consistent",
      "details": {
        "PATH codex #1": "/usr/bin/codex",
        "current executable": "/usr/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin/codex",
        "install context": "npm (package /usr/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl, bin /usr/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin, resources /usr/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-resources, path /usr/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-path)",
        "managed by bun": "false",
        "managed by npm": "true",
        "managed package root": "/usr/lib/node_modules/@openai/codex",
        "npm update target": "/usr/lib/node_modules/@openai/codex"
      },
      "remediation": null,
      "durationMs": 51
    },
    "mcp.config": {
      "id": "mcp.config",
      "category": "mcp",
      "status": "ok",
      "summary": "no MCP servers configured",
      "details": {},
      "remediation": null,
      "durationMs": 0
    },
    "network.env": {
      "id": "network.env",
      "category": "network",
      "status": "ok",
      "summary": "network-related environment looks readable",
      "details": {
        "proxy env vars present": "HTTP_PROXY, HTTPS_PROXY, NO_PROXY, http_proxy, https_proxy, no_proxy"
      },
      "remediation": null,
      "durationMs": 0
    },
    "network.provider_reachability": {
      "id": "network.provider_reachability",
      "category": "reachability",
      "status": "ok",
      "summary": "active provider endpoints are reachable over HTTP",
      "details": {
        "ChatGPT base URL": "https://chatgpt.com/backend-api/ reachable (HTTP 403)",
        "reachability mode": "ChatGPT auth"
      },
      "remediation": null,
      "durationMs": 1425
    },
    "network.websocket_reachability": {
      "id": "network.websocket_reachability",
      "category": "websocket",
      "status": "ok",
      "summary": "Responses WebSocket handshake succeeded",
      "details": {
        "DNS": "1 IPv4, 1 IPv6, first IPv4",
        "auth mode": "chatgpt",
        "connect timeout": "15000 ms",
        "endpoint": "wss://chatgpt.com/backend-api/<redacted>",
        "handshake result": "HTTP 101 Switching Protocols",
        "model provider": "openai",
        "models etag present": "true",
        "provider name": "OpenAI",
        "proxy env vars present": "HTTP_PROXY, HTTPS_PROXY, NO_PROXY, http_proxy, https_proxy, no_proxy",
        "reasoning header": "false",
        "server model present": "false",
        "supports websockets": "true",
        "wire API": "responses"
      },
      "remediation": null,
      "durationMs": 1944
    },
    "runtime.provenance": {
      "id": "runtime.provenance",
      "category": "runtime",
      "status": "ok",
      "summary": "running npm on linux-x86_64",
      "details": {
        "commit": "unknown",
        "current executable": "/usr/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin/codex",
        "install method": "npm (package /usr/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl, bin /usr/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/bin, resources /usr/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-resources, path /usr/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-path)",
        "platform": "linux-x86_64",
        "version": "0.142.5"
      },
      "remediation": null,
      "durationMs": 0
    },
    "runtime.search": {
      "id": "runtime.search",
      "category": "search",
      "status": "ok",
      "summary": "search is OK (bundled)",
      "details": {
        "search command": "/usr/lib/node_modules/@openai/codex/node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl/codex-path/rg",
        "search command readiness": "file exists",
        "search provider": "bundled"
      },
      "remediation": null,
      "durationMs": 0
    },
    "sandbox.helpers": {
      "id": "sandbox.helpers",
      "category": "sandbox",
      "status": "ok",
      "summary": "sandbox configuration is readable",
      "details": {
        "approval policy": "OnRequest",
        "codex-linux-sandbox helper": "/home/ausar/.codex/tmp/arg0/codex-arg0pH0x3w/codex-linux-sandbox",
        "execve wrapper helper": "/home/ausar/.codex/tmp/arg0/codex-arg0pH0x3w/codex-execve-wrapper",
        "filesystem sandbox": "restricted",
        "network sandbox": "restricted"
      },
      "remediation": null,
      "durationMs": 0
    },
    "state.paths": {
      "id": "state.paths",
      "category": "state",
      "status": "ok",
      "summary": "state paths and databases are inspectable",
      "details": {
        "CODEX_HOME": "/home/ausar/.codex (dir)",
        "active rollout files": "576 files, 7386426987 total bytes, 12823657 average bytes",
        "archived rollout files": "0 files, 0 total bytes, 0 average bytes",
        "goals DB": "/home/ausar/.codex/goals_1.sqlite (file)",
        "goals DB integrity": "ok",
        "log DB": "/home/ausar/.codex/logs_2.sqlite (file)",
        "log DB integrity": "ok",
        "log dir": "/home/ausar/.codex/log (dir)",
        "memories DB": "/home/ausar/.codex/memories_1.sqlite (file)",
        "memories DB integrity": "ok",
        "sqlite home": "/home/ausar/.codex (dir)",
        "state DB": "/home/ausar/.codex/state_5.sqlite (file)",
        "state DB integrity": "ok"
      },
      "remediation": null,
      "durationMs": 95
    },
    "state.rollout_db_parity": {
      "id": "state.rollout_db_parity",
      "category": "threads",
      "status": "warning",
      "summary": "rollout files and state DB thread inventory differ",
      "details": {
        "default model provider": "openai",
        "rollout DB active files": "576",
        "rollout DB active rows": "569",
        "rollout DB archive mismatches": "0",
        "rollout DB archived files": "0",
        "rollout DB archived rows": "0",
        "rollout DB duplicate DB paths": "0",
        "rollout DB duplicate rollout thread ids": "0",
        "rollout DB malformed file names": "0",
        "rollout DB missing active rows": "7",
        "rollout DB missing active sample": [
          "/home/ausar/.codex/sessions/2026/04/07/rollout-2026-04-07T07-14-51-019d66cb-48e0-7c22-acaa-e662f9462e09.jsonl",
          "/home/ausar/.codex/sessions/2026/04/07/rollout-2026-04-07T12-14-54-019d67dd-fc7a-7a71-b206-8e1abc08b4ec.jsonl",
          "/home/ausar/.codex/sessions/2026/04/06/rollout-2026-04-06T06-13-19-019d616c-96d6-7a22-bb5e-fb0004b4eadf.jsonl",
          "/home/ausar/.codex/sessions/2026/04/06/rollout-2026-04-06T06-13-23-019d616c-a5ae-7440-99f6-dceff7646fbd.jsonl",
          "/home/ausar/.codex/sessions/2026/04/06/rollout-2026-04-06T06-27-44-019d6179-ca2b-7e40-93f5-0c764957c05f.jsonl"
        ],
        "rollout DB missing archived rows": "0",
        "rollout DB model providers": "openai=557, packycode=12",
        "rollout DB rows": "569",
        "rollout DB scan cap reached": "false",
        "rollout DB scan errors": "0",
        "rollout DB sources": "cli=307, subagent:thread_spawn=237, exec=20, subagent:review=5",
        "rollout DB stale rows": "0"
      },
      "issues": [
        {
          "severity": "warning",
          "cause": "rollout files are missing from the state DB",
          "measured": "7 active, 0 archived",
          "expected": "every rollout file has a matching threads row",
          "remedy": null,
          "fields": []
        }
      ],
      "remediation": null,
      "durationMs": 44427
    },
    "system.environment": {
      "id": "system.environment",
      "category": "system",
      "status": "ok",
      "summary": "OS language C",
      "details": {
        "EDITOR": "not set",
        "LANG": "C.UTF-8",
        "LESS": "set",
        "PAGER": "set",
        "VISUAL": "not set",
        "os": "Arch Linux [64-bit]",
        "os language": "C",
        "os type": "Arch Linux",
        "os version": "Unknown"
      },
      "remediation": null,
      "durationMs": 0
    },
    "terminal.env": {
      "id": "terminal.env",
      "category": "terminal",
      "status": "ok",
      "summary": "terminal metadata was detected",
      "details": {
        "DISPLAY": "present",
        "SSH_CLIENT": "present",
        "SSH_CONNECTION": "present",
        "SSH_TTY": "present",
        "TERM": "xterm-256color",
        "color output": "enabled",
        "effective locale": "C.UTF-8",
        "stderr is terminal": "true",
        "stdin is terminal": "true",
        "stdout is terminal": "true",
        "terminal": "unknown",
        "terminal size": "179x53"
      },
      "remediation": null,
      "durationMs": 0
    },
    "terminal.title": {
      "id": "terminal.title",
      "category": "title",
      "status": "ok",
      "summary": "terminal title default",
      "details": {
        "terminal title activity": "true",
        "terminal title items": "activity, project-name",
        "terminal title project source": "cwd",
        "terminal title project value": "ausar",
        "terminal title source": "default"
      },
      "remediation": null,
      "durationMs": 0
    },
    "updates.status": {
      "id": "updates.status",
      "category": "updates",
      "status": "ok",
      "summary": "update configuration is locally consistent",
      "details": {
        "cached latest version": "0.142.5",
        "check for update on startup": "true",
        "dismissed version": "0.120.0",
        "last checked at": "2026-07-03T03:04:40.756978915Z",
        "latest version": "0.142.5",
        "latest version status": "current version is not older",
        "npm update target": "/usr/lib/node_modules/@openai/codex",
        "update action": "npm install -g @openai/codex",
        "version cache": "/home/ausar/.codex/version.json"
      },
      "remediation": null,
      "durationMs": 2012
    }
  }
}

What issue are you seeing?

Title: Codex CLI shows Pro account with 100% usage remaining, but inference is blocked as Free user

Description

Codex CLI appears to correctly recognize my ChatGPT Pro subscription and available usage limits, but any actual inference request is rejected with a Free-user upgrade message.

I previously had a Pro subscription expire briefly, then renewed it immediately. After renewal, Codex CLI shows my account as Pro and shows full available usage. I also used one available usage limit reset successfully. After the reset, /status shows 100% remaining for both the 5h and weekly limits, but any message still fails immediately as if I were a Free user.

This does not look like a normal usage-limit exhaustion issue. It looks like the status/usage endpoint recognizes my Pro entitlement, but the inference/usage gate still treats the account as Free.

Environment

  • OS: Arch Linux
  • Machine/session name: archlinux-5090
  • Codex CLI version: v0.142.5
  • Installation method:
sudo npm install -g @openai/codex
  • Account plan shown by Codex: Pro
  • Model: gpt-5.5 high
  • Reasoning: high
  • Summaries: auto

What I tried

I have already tried:

  1. Logging out and logging back in.
  2. Starting a completely fresh Codex session.
  3. Updating/reinstalling Codex CLI via npm.
  4. Using one available usage limit reset via /usage.

After using one reset, the number of available resets decreased from 4 to 3, and /status showed 100% remaining usage. However, inference still fails immediately.

Status output after reset

╭────────────────────────────────────────────────────────────────────────────────────────╮
│  >_ OpenAI Codex (v0.142.5)                                                            │
│                                                                                        │
│ Visit https://chatgpt.com/codex/settings/usage for up-to-date                          │
│ information on rate limits and credits                                                 │
│                                                                                        │
│  Model:                       gpt-5.5 (reasoning high, summaries auto)                 │
│  Directory:                   ~                                                        │
│  Permissions:                 Workspace (Ask for approval)                             │
│  Agents.md:                   <none>                                                   │
│  Account:                     [REDACTED] (Pro)                                         │
│  Collaboration mode:          Default                                                  │
│  Session:                     019f260c-4f1e-7811-8fd4-f24fb46adb78                     │
│                                                                                        │
│  Context window:              100% left (0 used / 400K)                                │
│  5h limit:                    [████████████████████] 100% left (resets 04:35 on 3 Jul) │
│  Weekly limit:                [████████████████████] 100% left (resets 23:35 on 9 Jul) │
│  GPT-5.3-Codex-Spark limit:                                                            │
│  5h limit:                    [████████████████████] 100% left (resets 04:35 on 3 Jul) │
│  Weekly limit:                [████████████████████] 100% left (resets 23:35 on 9 Jul) │
╰────────────────────────────────────────────────────────────────────────────────────────╯

Actual behavior

After the above /status, sending even a trivial message like hello immediately fails:

› hello

■ You've hit your usage limit. To continue using Codex and get access to GPT-5.3-Codex, start a free trial of Plus today (https://chatgpt.com/explore/plus), or try again at Aug 1st, 2026 10:50 PM.

The prompt line still shows full weekly usage remaining:

gpt-5.5 high · ~ · Context 100% left · 019f260c-4f1e-7811-8fd4-f24fb46adb78 · weekly 100% left · Context 0% used

Expected behavior

Since Codex CLI shows:

  • Account: Pro
  • 5h limit: 100% left
  • Weekly limit: 100% left
  • GPT-5.3-Codex-Spark limit: 100% left
  • Context window: 100% left

a normal inference request should be allowed, or at least the error message should match the actual Pro usage state.

It should not show a Free-user upgrade message such as “start a free trial of Plus” when the CLI itself reports the account as Pro.

Why this seems like a bug

The error message is inconsistent with the CLI status:

  • /status recognizes the account as Pro.
  • /status shows full available usage after a successful reset.
  • But the inference request is blocked as if the account were Free.
  • The suggested resolution is “start a free trial of Plus,” which is not applicable to an active Pro account.

This suggests a mismatch between the Codex status/usage endpoint and the actual inference entitlement/rate-limit gate.

What steps can reproduce the bug?

Title: Codex CLI shows Pro account with 100% usage remaining, but inference is blocked as Free user

Description

Codex CLI appears to correctly recognize my ChatGPT Pro subscription and available usage limits, but any actual inference request is rejected with a Free-user upgrade message.

I previously had a Pro subscription expire briefly, then renewed it immediately. After renewal, Codex CLI shows my account as Pro and shows full available usage. I also used one available usage limit reset successfully. After the reset, /status shows 100% remaining for both the 5h and weekly limits, but any message still fails immediately as if I were a Free user.

This does not look like a normal usage-limit exhaustion issue. It looks like the status/usage endpoint recognizes my Pro entitlement, but the inference/usage gate still treats the account as Free.

Environment

  • OS: Arch Linux
  • Machine/session name: archlinux-5090
  • Codex CLI version: v0.142.5
  • Installation method:
sudo npm install -g @openai/codex
  • Account plan shown by Codex: Pro
  • Model: gpt-5.5 high
  • Reasoning: high
  • Summaries: auto

What I tried

I have already tried:

  1. Logging out and logging back in.
  2. Starting a completely fresh Codex session.
  3. Updating/reinstalling Codex CLI via npm.
  4. Using one available usage limit reset via /usage.

After using one reset, the number of available resets decreased from 4 to 3, and /status showed 100% remaining usage. However, inference still fails immediately.

Status output after reset

╭────────────────────────────────────────────────────────────────────────────────────────╮
│  >_ OpenAI Codex (v0.142.5)                                                            │
│                                                                                        │
│ Visit https://chatgpt.com/codex/settings/usage for up-to-date                          │
│ information on rate limits and credits                                                 │
│                                                                                        │
│  Model:                       gpt-5.5 (reasoning high, summaries auto)                 │
│  Directory:                   ~                                                        │
│  Permissions:                 Workspace (Ask for approval)                             │
│  Agents.md:                   <none>                                                   │
│  Account:                     [REDACTED] (Pro)                                         │
│  Collaboration mode:          Default                                                  │
│  Session:                     019f260c-4f1e-7811-8fd4-f24fb46adb78                     │
│                                                                                        │
│  Context window:              100% left (0 used / 400K)                                │
│  5h limit:                    [████████████████████] 100% left (resets 04:35 on 3 Jul) │
│  Weekly limit:                [████████████████████] 100% left (resets 23:35 on 9 Jul) │
│  GPT-5.3-Codex-Spark limit:                                                            │
│  5h limit:                    [████████████████████] 100% left (resets 04:35 on 3 Jul) │
│  Weekly limit:                [████████████████████] 100% left (resets 23:35 on 9 Jul) │
╰────────────────────────────────────────────────────────────────────────────────────────╯

Actual behavior

After the above /status, sending even a trivial message like hello immediately fails:

› hello

■ You've hit your usage limit. To continue using Codex and get access to GPT-5.3-Codex, start a free trial of Plus today (https://chatgpt.com/explore/plus), or try again at Aug 1st, 2026 10:50 PM.

The prompt line still shows full weekly usage remaining:

gpt-5.5 high · ~ · Context 100% left · 019f260c-4f1e-7811-8fd4-f24fb46adb78 · weekly 100% left · Context 0% used

Expected behavior

Since Codex CLI shows:

  • Account: Pro
  • 5h limit: 100% left
  • Weekly limit: 100% left
  • GPT-5.3-Codex-Spark limit: 100% left
  • Context window: 100% left

a normal inference request should be allowed, or at least the error message should match the actual Pro usage state.

It should not show a Free-user upgrade message such as “start a free trial of Plus” when the CLI itself reports the account as Pro.

Why this seems like a bug

The error message is inconsistent with the CLI status:

  • /status recognizes the account as Pro.
  • /status shows full available usage after a successful reset.
  • But the inference request is blocked as if the account were Free.
  • The suggested resolution is “start a free trial of Plus,” which is not applicable to an active Pro account.

This suggests a mismatch between the Codex status/usage endpoint and the actual inference entitlement/rate-limit gate.

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗