Learn

Codex Task Limits 2026: GPT-5.6, Credits, and API Billing

Codex task limits depend on GPT-5.6 model tier, task complexity, rolling five-hour windows, and whether you authenticate via ChatGPT subscription or direct OpenAI API keys.

Clarify the concept first. Use this page when a term, capability, or product label needs a clean definition before you compare tools, plans, or workflows.

UpdatedSeptember 17, 2026
Browse tool profiles

Editorial guide

Guide

Start with the definition, terminology, and context that make the topic legible.

Short answer: why Codex limits are not a static task count

Codex task limits cannot be reduced to a fixed number of completed programming tickets. Because agentic software engineering is an iterative, multi-turn loop involving code reading, AST parsing, tool execution, terminal command verification, and file diff generation, usage consumption is inherently variable. A developer asking Codex to fix a typo in a single function might consume 2,000 tokens of context and a fraction of a compute credit. The same developer asking Codex to refactor an entire database abstraction layer across twelve files with test-driven repairs will consume hundreds of thousands of context tokens, trigger multiple reasoning traces, and burn significant quota within a single session.

OpenAI structures Codex access across five operational variables: the underlying GPT-5.6 model tier (Sol, Terra, or Luna), the subscription plan tier (ChatGPT Plus, Pro, Business, or Enterprise), the task complexity profile, the authentication route (ChatGPT OAuth login versus OpenAI API keys), and workspace governance rules. Understanding these boundaries prevents unexpected rate limits, eliminates billing surprises, and ensures teams deploy the appropriate model tier for each programming objective.

Codex Plan Matrix: Limits, Rolling Windows, and Interfaces

The table below provides a comprehensive breakdown of official rate limits, rolling allocation windows, model availability, and surface access across the Codex operational spectrum.

Plan / Access Tier

Monthly Cost

5-Hour Allocation Window (Sol / Terra / Luna)

Weekly Usage Headroom

Primary Execution Surfaces

Overage & Credit Behavior

Concurrency Limits

Free / Anonymous

$0.00

5–15 messages / 5 hrs (Luna / Mini only)

Hard weekly throttle

Web interface & basic CLI preview

No top-ups; upgrade prompt on exhaustion

1 active task

ChatGPT Plus

$20.00/mo

15–90 Sol / 20–110 Terra / 50–280 Luna

Dynamic weekly sliding ceiling

CLI, Desktop, VS Code / JetBrains, Cloud

Add-on credits purchasable; slow queue fallback

1–2 concurrent tasks

ChatGPT Pro (5x)

$200.00/mo

75–450 Sol / 100–550 Terra / 250–1,400 Luna

High-priority weekly headroom

Full CLI, Desktop, IDEs, Cloud Sandbox

Credit pooling with elevated burst capacity

3–5 concurrent tasks

ChatGPT Pro (20x)

$400.00/mo

300–1,800 Sol / 400–2,200 Terra / 1,000–5,600 Luna

Uncapped professional headroom

Full CLI, Desktop, IDEs, Cloud Sandbox

Enterprise-grade credit limits and priority queues

5–10 concurrent tasks

ChatGPT Business / Team

$25–$30/seat/mo

Standard Plus allocation per seat (15–90 Sol)

Workspace-level credit pooled

Full CLI, Desktop, IDEs, Admin Console

Admin-managed credit reloads and user caps

2 concurrent tasks per seat

API Key Authentication

Metered ($/1M tokens)

No 5-hour window caps (Rate limits tied to Tier)

Bounded only by organization credit balance

CLI (codex), SDKs, CI/CD automated runners

Direct pay-as-you-go billing per token consumed

Configured by OpenAI Tier (Tier 1 to 5)

Task Complexity & Token Burn Analysis

To plan engineering capacity effectively, teams must discard the concept of "prompts" and evaluate Codex tasks based on context accumulation and tool-calling loops. The table below analyzes four distinct software engineering workloads and their empirical token burn profiles.

Task Complexity Profile

Representative Engineering Scenario

Tool Invocations & Subprocess Loops

Context & Reasoning Token Burn

Effective Task Ceiling (Plus 5-hr Window)

Optimization Strategy

Micro-Edit / Patch

Fixing a regex pattern, updating unit test assertions, adding typed interfaces

1–2 tool calls (read file, patch line)

3,000 – 15,000 tokens

60 – 85 tasks per 5 hours

Use GPT-5.6 Luna; provide targeted file paths

Component Refactor

Migrating an API route to Next.js App Router, refactoring state management

4–8 tool calls (read files, run linter, write changes)

25,000 – 80,000 tokens

15 – 30 tasks per 5 hours

Use GPT-5.6 Terra; isolate dependencies before prompt

Feature Implementation

Building an end-to-end Stripe webhook handler with signature checks and tests

10–25 tool calls (multi-file read/write, bash test execution, auto-fix)

100,000 – 350,000 tokens

3 – 8 tasks per 5 hours

Use GPT-5.6 Sol; utilize prompt caching and concise git diffs

Full Repository Audit

Security vulnerability scan, major version dependency migration across repo

30–70+ tool calls (recursive search, ripgrep, AST parsing, multi-pass review)

500,000 – 1,500,000+ tokens

1 – 2 tasks (frequently exhausts window)

Use API key with batch tier or split into modular tasks

How Credits and Rolling Windows Operate

OpenAI calculates Codex limits through a dual-governance model: rolling five-hour message quotas and account-level credit banks.

The five-hour window functions as a moving rate governor. Unlike a rigid calendar reset that renews at midnight, your quota restores progressively as older messages age past the five-hour mark. If a developer uses 40 messages between 9:00 AM and 10:00 AM on a Plus plan, those 40 messages begin re-entering the available pool starting at 2:00 PM.

When a developer operates at the upper bound of task complexity, the rolling quota alone may be depleted before the five-hour window rolls over. In this scenario, OpenAI provides credit top-ups:

  • Credit Mechanics: Codex credits represent a flexible usage currency anchored directly to token consumption. OpenAI indicates that GPT-5.6 usage averages between 5 and 40 credits per message, heavily dictated by whether reasoning tokens are generated and whether cached prompt tokens are matched.
  • Fast Mode versus Normal Mode: Fast mode accelerates response streaming by provisioning dedicated compute clusters, consuming credits at a 1.5x to 2x multiplier for supported models. Turning off Fast mode extends credit longevity when working on non-urgent background refactoring.
  • Image & Multimodal Consumption: Supplying UI screenshots, architecture diagrams, or Figma mockups to Codex CLI or Desktop draws down credit balances substantially faster than raw source code, as vision encoding introduces fixed token overheads per image tile.

CLI, Desktop, and IDE Surface Mechanics

The developer experience of Codex depends heavily on how the client application interacts with the execution environment. The standalone Codex application is formally transitioning into the unified ChatGPT desktop application, while the CLI (codex) and IDE extensions (VS Code, JetBrains, Cursor-compatible LSP) operate as distinct local execution surfaces.

Authentication Modalities

Developers can authenticate local Codex environments through two separate paths, each carrying fundamentally different financial and governance implications:

  1. ChatGPT Account Authentication (codex login): The CLI authenticates via OAuth with your ChatGPT personal or workspace credentials. Under this mode, all command executions, code inspections, and agentic loops draw from your subscription plan quota and workspace credit pools. No API credit cards are charged.
  2. OpenAI API Key Authentication (export OPENAI_API_KEY=...): The CLI bypasses the ChatGPT subscription layer entirely. Every token consumed is billed directly to your OpenAI Platform developer account according to published API rates ($2.50 to $5.00 per million input tokens, $15.00 to $30.00 per million output tokens for GPT-5.6 tiers).

Local Shell and Sandbox Boundaries

When Codex executes shell commands in CLI or Desktop mode, safety and rate limits intersect:

  • Terminal Execution: By default, Codex CLI executes commands in your local shell environment, inheriting local path configurations, environment variables, and node/python runtime versions. While this enables native test execution, infinite loops or runaway processes can consume hundreds of tokens in terminal log capture.
  • Cloud Sandboxes: In cloud-hosted execution modes, tasks run within isolated container sandboxes subject to execution timeouts (typically 15 to 30 minutes per continuous run) and network egress restrictions. Developers must structure tasks to complete within bounded iterations rather than initiating open-ended daemon watchers.

Business Workspaces and Organizational Ownership

For engineering managers and CTOs, managing Codex limits across a team requires centralizing governance through ChatGPT Business, Team, or Enterprise workspaces rather than reimbursing individual personal subscriptions.

Workspace Credit Pooling

Standard Business workspaces provide each seat with individual Plus-level baseline quotas. However, teams frequently encounter asymmetric utilization: senior architects and backend engineers burn through limits rapidly, while front-end designers or product managers use minimal quota.

To solve this, Business workspaces allow administrators to enable Workspace Credit Pooling:

  • Automatic Monthly Reloads: Admins configure an aggregate monthly credit balance that is shared across all workspace seats once individual quotas are reached.
  • Seat-Level Hard Caps: Admins can set maximum monthly credit expenditure per user (e.g., capping junior developers at $50/mo in overages while allocating $200/mo to core infrastructure engineers).
  • Seat Migration Governance: As of June 24, 2026, standalone "Codex-only" seats are formally restricted to legacy workspaces holding pre-existing agreements; all new business deployments utilize unified ChatGPT Business seats encompassing both conversational and agentic capabilities.

Audit Logs and Zero Data Retention

Enterprise deployments must safeguard intellectual property. Organization-level Codex accounts enforce strict data boundaries: code inspected by Codex is excluded from foundational model training by default, and audit logs capture every CLI command execution, file modification, and model routing event for compliance review.

The API Boundary: When to Decouple from Subscriptions

While ChatGPT-backed Codex access is ideal for interactive developer pair programming, it is structurally unsuited for automated continuous integration, background cron agents, or repository-wide batch processing.

Developers should decouple from ChatGPT subscriptions and migrate to API-based execution when:

  1. Automated CI/CD Pipelines: Triggering code reviews, automated PR generation, or lint repairs inside GitHub Actions or GitLab CI requires non-interactive, predictable machine authentication via OPENAI_API_KEY.
  2. High-Concurrency Batch Migrations: Running concurrent refactoring scripts across dozens of microservice repositories simultaneously will instantly trigger the 5-hour rolling limit on a personal subscription, but executes cleanly against API Tier 4/5 rate limits.
  3. Strict Budget Allocation by Project: API keys can be segmented by project ID, billing department, and spend limit, allowing precise accounting of generative AI expenses against client deliverables.

By aligning your workload with the appropriate model tier (Sol for complex architecture, Terra for balanced engineering, Luna for high-volume tasks) and selecting the correct authentication route, teams can eliminate workflow interruptions and maximize the engineering return on Codex.

Evidence boundary

Official sources

Editorial guidance grounded in official product sources.

FAQ

Common questions

Does free Codex access have task limits?

Yes. OpenAI includes Codex across ChatGPT plans, including Free, but free access is positioned for quick coding tasks and usage limits vary by plan. Free and Go users who need more Codex usage are prompted to upgrade rather than add Codex credits.

Do paid Codex plans remove task limits?

No. Paid routes raise or change the ceiling, but they still have usage limits unless the workspace is on a flexible-credit setup where usage scales with purchased credits. Pro raises local-message allowance above Plus, and credits can extend eligible usage after included limits.

Is there a fixed number of Codex tasks per month?

No. OpenAI explains that message count varies with model choice, task size, complexity, local versus cloud execution, and context needs. A small script can use much less allowance than a large repository task or long-running session.

Does an API key bypass ChatGPT Codex limits?

It moves usage into a different billing route. API-key Codex usage follows OpenAI API pricing instead of included ChatGPT plan credits, and some ChatGPT workspace or cloud-based Codex features may be limited or unavailable.

How should a Business workspace budget Codex use?

Start with standard Business seats, workspace credits, and shared Work/Codex usage. Only a workspace with a Codex seat before June 24, 2026 or a pending invite as of June 24 should include that legacy seat type. Keep API billing separate.

Where can I see my remaining Codex limits?

OpenAI points users to the Codex usage dashboard for current limits and credit balance. During an active CLI session, the `/status` command can show remaining limits for that session.

Next steps

Open the products behind the concept

Open the tools, product pages, or follow-up guides that sit behind the concept once the language is clear.

View all tools