Skip to content

[macOS] Weekly quota reached 94% about 30 hours after reset; unclear attribution across models and cached tokens #54587

Open

Description

@didierhk

What version of Codex CLI is running?

The doctor command reports CLI version 0.162.1.
The running background app-server and session metadata report 0.163.0.
Codex desktop app version: 26.1007.30912.

What subscription do you have?

Pro Lite

Which model were you using?

gpt-6.1-sol, gpt-6-astra, gpt-daybreak-blue-latest

What platform is your computer?

macOS 27.0.1, arm64

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

I use the Codex desktop application, not VS Code.

The doctor command was run in iTerm2 with tmux 3.8. The doctor output does not identify the iTerm2 version.

Codex doctor report

{
  "schemaVersion": 1,
  "generatedAt": "1792153403s since unix epoch",
  "overallStatus": "warning",
  "codexVersion": "0.162.1",
  "checks": {
    "app_server.status": {
      "id": "app_server.status",
      "category": "app-server",
      "status": "ok",
      "summary": "background server is running",
      "details": {
        "app-server version": "0.163.0",
        "control socket": "/Users/<username>/.codex/app-server-control/app-server-control.sock",
        "daemon state dir": "/Users/<username>/.codex/app-server-daemon",
        "dedicated pid file": "/Users/<username>/.codex/app-server-daemon/daemon.pid (file)",
        "dedicated update-loop pid file": "/Users/<username>/.codex/app-server-daemon/daemon-updater.pid (file)",
        "mode": "ephemeral",
        "pid file": "/Users/<username>/.codex/app-server-daemon/app-server.pid (missing)",
        "settings": "/Users/<username>/.codex/app-server-daemon/settings.json (missing)",
        "status": "running",
        "update-loop pid file": "/Users/<username>/.codex/app-server-daemon/app-server-updater.pid (missing)"
      },
      "remediation": null,
      "durationMs": 115
    },
    "auth.credentials": {
      "id": "auth.credentials",
      "category": "auth",
      "status": "ok",
      "summary": "auth is configured",
      "details": {
        "auth env vars present": "OPENAI_API_KEY",
        "auth file": "/Users/<username>/.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": "/Users/<username>/.codex",
        "active thread overrides": "not inspected",
        "config.toml": "/Users/<username>/.codex/config.toml",
        "config.toml parse": "ok",
        "configuration load ms": "72",
        "configuration scope": "invocation config, including cloud-managed policy",
        "configured TUI mode": "fullscreen",
        "cwd": "/Users/<username>/projects/<project_folder>",
        "enabled feature flags": "daemon_auto_start, shell_tool, view_image, sleep_tool, unified_exec, unified_exec_tty, unified_exec_zsh_fork, shell_snapshot, content_item_kinds, code_mode_host, instant_interrupt, terminal_resize_reflow, sqlite, memories, write_stdin_approval, api_key_model_discovery, enable_request_compression, unbounded_connection_retries, worktrees, system_proxy_fallback, multi_agent, apps, tool_search_always_defer_mcp_tools, tool_suggest, plugins, in_app_browser, browser_annotation_api, in_app_chat, in_app_dictation, in_app_voice, in_app_local_automation, in_app_updates, browser_use, browser_use_full_cdp_access, browser_use_external, computer_use, remote_plugin, plugin_sharing, image_generation, resize_all_images, item_ids, skill_mcp_dependency_install, skill_search, mentions_v2, steer, guardian_approval, guardian_reuse_parent_compaction, goals, collaboration_modes, tool_call_mcp_elicitation, auth_elicitation, fast_mode, ultrafast_mode, realtime_conversation, tui_app_server, compaction_image_budget, workspace_dependencies",
        "feature flag overrides": "memories=true, hooks=false",
        "feature flags enabled": "57",
        "log dir": "/Users/<username>/.codex/log",
        "mcp servers": "13",
        "model": "gpt-6.1-sol",
        "model provider": "openai",
        "sqlite home": "/Users/<username>/.codex"
      },
      "remediation": null,
      "durationMs": 0
    },
    "desktop.app.version": {
      "id": "desktop.app.version",
      "category": "desktop",
      "status": "ok",
      "summary": "the desktop application is installed",
      "details": {
        "log directory": "$HOME/Library/Logs/com.openai.codex",
        "running": "true",
        "version": "26.1007.30912"
      },
      "remediation": null,
      "durationMs": 0
    },
    "desktop.app_server.handshake": {
      "id": "desktop.app_server.handshake",
      "category": "desktop",
      "status": "ok",
      "summary": "the desktop app-server initialized successfully",
      "details": {},
      "remediation": null,
      "durationMs": 0
    },
    "desktop.security.enforcement": {
      "id": "desktop.security.enforcement",
      "category": "desktop",
      "status": "ok",
      "summary": "the desktop application passed available macos security assessments",
      "details": {
        "gatekeeper": "accepted"
      },
      "remediation": null,
      "durationMs": 0
    },
    "git.environment": {
      "id": "git.environment",
      "category": "git",
      "status": "ok",
      "summary": "git executable found; execution not verified",
      "details": {
        ".git entry": "directory",
        "PATH git #1": "/opt/homebrew/bin/git",
        "PATH git #2": "/usr/bin/git",
        "PATH git entries": "2",
        "git execution": "not inspected (PATH helpers are not executed)",
        "repo detected": "true",
        "repo root": "/Users/<username>/projects/<project_folder>",
        "selected git": "/opt/homebrew/bin/git"
      },
      "remediation": null,
      "durationMs": 0
    },
    "installation": {
      "id": "installation",
      "category": "install",
      "status": "ok",
      "summary": "installation looks consistent",
      "details": {
        "PATH codex #1": "/opt/homebrew/bin/codex",
        "PATH codex #2": "/Users/<username>/.claude/bin/codex",
        "PATH codex entries": "2",
        "current executable": "/opt/homebrew/bin/codex",
        "install context": "brew (package /opt/homebrew/Caskroom/codex/0.162.1, bin /opt/homebrew/Caskroom/codex/0.162.1/bin, resources /opt/homebrew/Caskroom/codex/0.162.1/codex-resources, path /opt/homebrew/Caskroom/codex/0.162.1/codex-path)",
        "managed by Vite+": "false",
        "managed by bun": "false",
        "managed by npm": "false",
        "managed by pnpm": "false",
        "managed package root": "not set"
      },
      "remediation": null,
      "durationMs": 1
    },
    "mcp.config": {
      "id": "mcp.config",
      "category": "mcp",
      "status": "warning",
      "summary": "MCP configuration has optional issues",
      "details": {
        "configured servers": "13",
        "disabled servers": "0",
        "optional reachability failed": "sketch: http://localhost:31126/mcp (HEAD connect failed; GET connect failed)",
        "stdio servers": "8",
        "streamable_http servers": "5"
      },
      "remediation": "Set the missing MCP env vars or disable the affected server.",
      "durationMs": 908
    },
    "network.env": {
      "id": "network.env",
      "category": "network",
      "status": "ok",
      "summary": "network-related environment looks readable",
      "details": {
        "managed proxy": "not configured",
        "proxy env vars": "none",
        "respect system proxy": "disabled",
        "system proxy": "direct"
      },
      "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 inference URL": "https://chatgpt.com/backend-api/<redacted> reachable (HTTP 405)",
        "desktop assets CDN": "https://chatgpt.com/backend-api/<redacted> reachable (HTTP 200)",
        "reachability mode": "ChatGPT auth"
      },
      "remediation": null,
      "durationMs": 441
    },
    "network.websocket_reachability": {
      "id": "network.websocket_reachability",
      "category": "websocket",
      "status": "ok",
      "summary": "Responses WebSocket handshake succeeded",
      "details": {
        "DNS": "2 IPv4, 2 IPv6, first IPv6",
        "auth mode": "chatgpt",
        "connect timeout": "15000 ms",
        "endpoint": "wss://chatgpt.com/backend-api/<redacted>",
        "handshake result": "HTTP 101 Switching Protocols",
        "model provider": "openai",
        "provider name": "OpenAI",
        "proxy env vars": "none",
        "reasoning header": "false",
        "server model present": "false",
        "supports websockets": "true",
        "wire API": "responses"
      },
      "remediation": null,
      "durationMs": 1041
    },
    "runtime.provenance": {
      "id": "runtime.provenance",
      "category": "runtime",
      "status": "ok",
      "summary": "running brew on macos-aarch64",
      "details": {
        "commit": "unknown",
        "current executable": "/opt/homebrew/bin/codex",
        "install method": "brew (package /opt/homebrew/Caskroom/codex/0.162.1, bin /opt/homebrew/Caskroom/codex/0.162.1/bin, resources /opt/homebrew/Caskroom/codex/0.162.1/codex-resources, path /opt/homebrew/Caskroom/codex/0.162.1/codex-path)",
        "platform": "macos-aarch64",
        "version": "0.162.1"
      },
      "remediation": null,
      "durationMs": 0
    },
    "runtime.search": {
      "id": "runtime.search",
      "category": "search",
      "status": "ok",
      "summary": "search command found (bundled); execution not verified",
      "details": {
        "search command": "/opt/homebrew/Caskroom/codex/0.162.1/codex-path/rg",
        "search command readiness": "file exists",
        "search provider": "bundled"
      },
      "remediation": null,
      "durationMs": 0
    },
    "sandbox.filesystem_paths": {
      "id": "sandbox.filesystem_paths",
      "category": "sandbox",
      "status": "ok",
      "summary": "no explicit filesystem paths to probe",
      "details": {},
      "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": "none",
        "denied-read glob rules": "0",
        "denied-read rules": "0",
        "execve wrapper helper": "/Users/<username>/.codex/tmp/arg0/codex-arg06e7tJD/codex-execve-wrapper",
        "filesystem sandbox": "restricted",
        "glob scan max depth": "unbounded",
        "managed filesystem source": "none",
        "network sandbox": "enabled"
      },
      "remediation": null,
      "durationMs": 0
    },
    "security.endpoint": {
      "id": "security.endpoint",
      "category": "security",
      "status": "ok",
      "summary": "no supported endpoint protection detected",
      "details": {
        "endpoint products": "none detected"
      },
      "remediation": null,
      "durationMs": 13
    },
    "state.paths": {
      "id": "state.paths",
      "category": "state",
      "status": "ok",
      "summary": "state paths and databases are inspectable",
      "details": {
        "CODEX_HOME": "/Users/<username>/.codex (dir)",

        "active rollout files": "328 files, 536439556 total bytes, 1635486 average bytes",
        "archived rollout files": "50 files, 124555315 total bytes, 2491106 average bytes",
        "goals DB": "/Users/<username>/.codex/goals_1.sqlite (file)",
        "goals DB integrity": "ok",
        "log DB": "/Users/<username>/.codex/logs_2.sqlite (file)",
        "log DB integrity": "ok",
        "log dir": "/Users/<username>/.codex/log (dir)",
        "memories DB": "/Users/<username>/.codex/memories_1.sqlite (file)",
        "memories DB integrity": "ok",
        "memories v2 DB": "/Users/<username>/.codex/memories_v2_1.sqlite (file)",
        "memories v2 DB integrity": "ok",
        "queue DB": "/Users/<username>/.codex/queue_1.sqlite (file)",
        "queue DB integrity": "ok",
        "sqlite home": "/Users/<username>/.codex (dir)",
        "state DB": "/Users/<username>/.codex/state_5.sqlite (file)",
        "state DB integrity": "ok",
        "thread history DB": "/Users/<username>/.codex/thread_history_1.sqlite (file)",
        "thread history DB integrity": "ok"
      },
      "remediation": null,
      "durationMs": 5803
    },
    "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": "1843",
        "rollout DB active rows": "1839",
        "rollout DB archive mismatches": "0",
        "rollout DB archived files": "289",
        "rollout DB archived rows": "289",
        "rollout DB duplicate DB paths": "0",
        "rollout DB duplicate rollout thread ids": "0",
        "rollout DB malformed file names": "0",
        "rollout DB missing active rows": "4",
        "rollout DB missing active sample": ["[redacted local session filenames]"],
        "rollout DB missing archived rows": "0",
        "rollout DB model providers": "openai=2128",
        "rollout DB rows": "2128",
        "rollout DB scan cap reached": "false",
        "rollout DB scan errors": "0",
        "rollout DB sources": "vscode=1022, cli=984, subagent:thread_spawn=85, exec=23, subagent:other=6, subagent:review=6, unknown=2",
        "rollout DB stale rows": "0"
      },
      "issues": [
        {
          "severity": "warning",
          "cause": "rollout files are missing from the state DB",
          "measured": "4 active, 0 archived",
          "expected": "every rollout file has a matching threads row",
          "remedy": null,
          "fields": []
        }
      ],
      "remediation": null,
      "durationMs": 1036
    },
    "system.disk": {
      "id": "system.disk",
      "category": "disk",
      "status": "ok",
      "summary": "sufficient free disk space (51.7 GiB)",
      "details": {
        "CODEX_HOME available": "51.7 GiB",
        "failure threshold": "1.0 GiB",
        "warning threshold": "5.0 GiB",
        "worktree available": "51.7 GiB"
      },
      "remediation": null,
      "durationMs": 0
    },
    "system.environment": {
      "id": "system.environment",
      "category": "system",
      "status": "ok",
      "summary": "OS language en-MG",
      "details": {
        "EDITOR": "not set",
        "LANG": "en_GB.UTF-8",
        "VISUAL": "not set",
        "os": "Mac OS 27.0.1 [64-bit]",
        "os language": "en-MG",
        "os type": "Mac OS",
        "os version": "27.0.1"
      },
      "remediation": null,
      "durationMs": 5
    },
    "terminal.env": {
      "id": "terminal.env",
      "category": "terminal",
      "status": "warning",
      "summary": "height 22 rows - content may scroll off (recommended >=24)",
      "details": {
        "COLORFGBG": "15;0",
        "COLORTERM": "truecolor",
        "TERMINFO_DIRS entry": [
          "/Applications/iTerm.app/Contents/Resources/terminfo (dir)",
          "/usr/share/terminfo (dir)"
        ],
        "color output": "enabled",
        "effective locale": "en_GB.UTF-8",
        "multiplexer": "tmux 3.8",
        "stderr is terminal": "true",
        "stdin is terminal": "true",
        "stdout is terminal": "true",
        "terminal": "iTerm2",
        "terminal size": "152x22",
        "tmux options": "not inspected (PATH helpers are not executed)"
      },
      "issues": [
        {
          "severity": "warning",
          "cause": "height 22 rows - content may scroll off (recommended >=24)",
          "measured": "152 x 22",
          "expected": ">= 24 rows",
          "remedy": "resize the window to at least 24 rows",
          "fields": [
            "terminal size"
          ]
        }
      ],
      "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": "git repo root",
        "terminal title project value": "<project_folder>",
        "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.162.1",
        "check for update on startup": "true",
        "dismissed version": "0.155.1",
        "last checked at": "2026-10-15T12:16:00.841537Z",
        "latest version": "0.163.0",
        "latest version status": "newer version is available",
        "update action": "brew upgrade --cask codex",
        "version cache": "/Users/<username>/.codex/version.json"
      },
      "remediation": null,
      "durationMs": 404
    }
  }
}

What issue are you seeing?

My weekly Codex usage reached 94% approximately 30 hours after its reset. I would like help determining whether this is expected consumption or an accounting issue.

Observed quota:

  • Approximately 0% on October 15, 2026, at 06:20 UTC.
  • 94% on October 16 at 12:05 UTC.
  • Reported window: 10,080 minutes.
  • Next reset: October 22 at approximately 06:13 UTC.

A local reconstruction using cumulative token-counter differences found:

  • 27 active conversations across 18 project directories.
  • Approximately 1,230 generation steps.
  • 10.37 million uncached input tokens.
  • 195.23 million cached input tokens.
  • 671,093 output tokens.

Daybreak Blue accounted for 81 generation steps: approximately 408,316 uncached input tokens, 9.96 million cached input tokens and 33,374 output tokens. Other models were running concurrently, so changes in the shared quota cannot be attributed to Blue alone.

Current configuration reports service_tier = default. This does not establish the historical speed mode of every request. Enabled fast_mode or ultrafast_mode feature flags in the doctor output do not, by themselves, establish that those modes were used.

Could you clarify:

  1. Is this consumption expected for these models and token volumes?
  2. How do cached tokens and model choice affect the weekly allowance?
  3. Does Daybreak Blue have any additional quota weighting?
  4. Can support reconcile the account-level usage with the local counters?

These are local observations, not a complete server-side billing audit. I have not established that quota was charged incorrectly.

What steps can reproduce the bug?

I do not have a minimal deterministic reproduction. The observed sequence was:

  1. Begin after the weekly quota reset.
  2. Use multiple Codex conversations with GPT-6.1 Sol, GPT-6 Astra and Daybreak Blue.
  3. Observe the shared weekly usage counter reaching 94% approximately 30 hours later.
  4. Compare the counter with the local token records summarized above.

Uploaded diagnostic thread: 01a141cd-5efc-7f21-a31e-58b798f6b6f6

That thread contains the usage investigation. The reported consumption spans multiple conversations, not only the uploaded thread.

What is the expected behavior?

Quota consumption should match the applicable subscription accounting rules, with enough visibility to understand contributions from each model, cached input and other activity.

Please confirm whether the observed consumption is expected. If it is, a model-level usage breakdown or documented quota weighting would help explain the rapid depletion.

Additional information

I do not use VS Code. However, the inspected session metadata reports source="vscode" and originator="codex-tui". The earlier diagnostic interpretation incorrectly identified my interface as VS Code based on those labels. Please treat that attribution as incorrect.

The doctor output reports CLI 0.162.1, a running app-server at 0.163.0 and desktop app 26.1007.30912. These versions refer to different components.

Daybreak Blue is a possible contributor, not an established cause. Multiple models ran concurrently.

Local totals exclude 2.72 million tokens in imported/summary records without input/output attribution. They may also omit activity on other devices or cloud sessions.

Published credit rates were used only for an approximate model-cost comparison. They were not treated as the formula for subscription quota consumption.

Activity

  1. added
    bug
    on Oct 16, 2026
  2. added
    CLI
    rate-limits
    on Oct 16, 2026
  3. github-actions commented on Oct 16, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. changed the title [-]Weekly quota reached 94% about 30 hours after reset; unclear attribution across models and cached tokens[/-] [+][macOS]Weekly quota reached 94% about 30 hours after reset; unclear attribution across models and cached tokens[/+] on Oct 16, 2026
  5. changed the title [-][macOS]Weekly quota reached 94% about 30 hours after reset; unclear attribution across models and cached tokens[/-] [+][macOS] Weekly quota reached 94% about 30 hours after reset; unclear attribution across models and cached tokens[/+] on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIbugrate-limits

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions