Skip to content

Codex Quota Exceeded / using API_KEY instead of Codex #32

Description

@igor9silva

What happened

When running pnpm deepsec process --project-id meseeks with --agent codex, I keep getting this error:

Codex stream error: Quota exceeded. Check your plan and billing details.
    Codex turn failed: Quota exceeded. Check your plan and billing details.
    Codex SDK error: Codex Exec exited with code 1: Reading prompt from stdin...
2026-05-05T08:57:51.769298Z ERROR codex_core::session: failed to record rollout items: thread 019df75b-96a3-76d3-8d21-c94073d77eb0 not found

Even though I have plenty of quota (it literally just reseted):
Image

Reproduction

pnpm deepsec process --project-id meseeks --agent codex

Logs


Batch 1/63: Processing batch 1/63 (5 files, 1 in flight)
Batch 2/63: Processing batch 2/63 (5 files, 2 in flight)
Batch 3/63: Processing batch 3/63 (3 files, 3 in flight)
Batch 4/63: Processing batch 4/63 (4 files, 4 in flight)
Batch 5/63: Processing batch 5/63 (4 files, 5 in flight)
Batch 6/63: Processing batch 6/63 (5 files, 6 in flight)
Batch 7/63: Processing batch 7/63 (3 files, 7 in flight)
  > Investigating 5 file(s) with Codex SDK (gpt-5.5, effort=xhigh)
  > Investigating 5 file(s) with Codex SDK (gpt-5.5, effort=xhigh)
  > Investigating 3 file(s) with Codex SDK (gpt-5.5, effort=xhigh)
  > Investigating 4 file(s) with Codex SDK (gpt-5.5, effort=xhigh)
  > Investigating 4 file(s) with Codex SDK (gpt-5.5, effort=xhigh)
  > Investigating 5 file(s) with Codex SDK (gpt-5.5, effort=xhigh)
  > Investigating 3 file(s) with Codex SDK (gpt-5.5, effort=xhigh)
    Codex stream error: Quota exceeded. Check your plan and billing details.
    Codex turn failed: Quota exceeded. Check your plan and billing details.
    Codex SDK error: Codex Exec exited with code 1: Reading prompt from stdin...
2026-05-05T09:00:16.106122Z ERROR codex_core::session: failed to record rollout items: thread 019df75d-c90f-7d10-9788-dd292ff5d775 not found

    Retrying batch after transient error (attempt 2/3): Codex Exec exited with code 1: Reading prompt from stdin...
2026-05-05T09:00:16.106122Z ERROR codex_core::session: failed to record rollout items: thread 019df75d-c90f-7d10-9788-dd292ff5d775 not found
    Codex stream error: Quota exceeded. Check your plan and billing details.
    Codex turn failed: Quota exceeded. Check your plan and billing details.
    Codex SDK error: Codex Exec exited with code 1: Reading prompt from stdin...
2026-05-05T09:00:19.714257Z ERROR codex_core::session: failed to record rollout items: thread 019df75d-c90f-7f50-b4be-d22a27980e44 not found

    Codex stream error: Quota exceeded. Check your plan and billing details.
    Codex turn failed: Quota exceeded. Check your plan and billing details.
    Codex SDK error: Codex Exec exited with code 1: Reading prompt from stdin...
2026-05-05T09:00:19.918508Z ERROR codex_core::session: failed to record rollout items: thread 019df75d-c90f-7470-9fe7-cb206f1f8862 not found

    Codex stream error: Quota exceeded. Check your plan and billing details.
    Codex turn failed: Quota exceeded. Check your plan and billing details.
    Codex SDK error: Codex Exec exited with code 1: Reading prompt from stdin...
2026-05-05T09:00:19.983154Z ERROR codex_core::session: failed to record rollout items: thread 019df75d-c90f-7ec2-959d-88eeaed47cb5 not found

    Codex stream error: Quota exceeded. Check your plan and billing details.
    Codex turn failed: Quota exceeded. Check your plan and billing details.
    Codex stream error: Quota exceeded. Check your plan and billing details.
    Codex SDK error: Codex Exec exited with code 1: Reading prompt from stdin...
2026-05-05T09:00:20.320745Z ERROR codex_core::session: failed to record rollout items: thread 019df75d-c90f-79e0-b27d-75fed1d3a886 not found

    Codex turn failed: Quota exceeded. Check your plan and billing details.
    Codex SDK error: Codex Exec exited with code 1: Reading prompt from stdin...
2026-05-05T09:00:20.447329Z ERROR codex_core::session: failed to record rollout items: thread 019df75d-c90f-7fb0-a932-1891d3c3198b not found

    Codex stream error: Quota exceeded. Check your plan and billing details.
    Codex turn failed: Quota exceeded. Check your plan and billing details.
    Codex SDK error: Codex Exec exited with code 1: Reading prompt from stdin...
2026-05-05T09:00:20.880829Z ERROR codex_core::session: failed to record rollout items: thread 019df75d-c90f-7bd2-bb34-7d2eea589206 not found

    Retrying batch after transient error (attempt 2/3): Codex Exec exited with code 1: Reading prompt from stdin...
2026-05-05T09:00:19.918508Z ERROR codex_core::session: failed to record rollout items: thread 019df75d-c90f-7470-9fe7-cb206f1f8862 not found
    Codex stream error: Quota exceeded. Check your plan and billing details.
    Codex turn failed: Quota exceeded. Check your plan and billing details.
    Retrying batch after transient error (attempt 2/3): Codex Exec exited with code 1: Reading prompt from stdin...
2026-05-05T09:00:19.983154Z ERROR codex_core::session: failed to record rollout items: thread 019df75d-c90f-7ec2-959d-88eeaed47cb5 not found
    Retrying batch after transient error (attempt 2/3): Codex Exec exited with code 1: Reading prompt from stdin...
2026-05-05T09:00:19.714257Z ERROR codex_core::session: failed to record rollout items: thread 019df75d-c90f-7f50-b4be-d22a27980e44 not found
    Codex SDK error: Codex Exec exited with code 1: Reading prompt from stdin...
2026-05-05T09:00:22.458821Z ERROR codex_core::session: failed to record rollout items: thread 019df75d-e357-7370-97ec-f49ecf2d1f3c not found

    Retrying batch after transient error (attempt 2/3): Codex Exec exited with code 1: Reading prompt from stdin...
2026-05-05T09:00:20.320745Z ERROR codex_core::session: failed to record rollout items: thread 019df75d-c90f-79e0-b27d-75fed1d3a886 not found
    Retrying batch after transient error (attempt 2/3): Codex Exec exited with code 1: Reading prompt from stdin...
2026-05-05T09:00:20.447329Z ERROR codex_core::session: failed to record rollout items: thread 019df75d-c90f-7fb0-a932-1891d3c3198b not found
    Retrying batch after transient error (attempt 2/3): Codex Exec exited with code 1: Reading prompt from stdin...

Activity

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions