published fresh until

Codex raises GPT-6.1 Sol's default context to 500K tokens, with no long-context surcharge on plan usage

Summary GPT-6.1 Sol defaults to a 500K-token context window in Codex and ChatGPT Work, up from 272K, so long tasks compact less often. OpenAI says plan usage carries no long-context surcharge; on the API, prompts over 272K still cost more. You can set the window higher or lower in Codex's config.

Not for Claude Code compaction

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

What changed

@thsottiaux, who works on Codex at OpenAI, announced on 11 October 2026 that GPT-6.1 Sol's default context length in Codex and ChatGPT Work went from 272K to 500K tokens, about 80% more. He called 500K the tested sweet spot for most users and said it will go higher later. @reach_vb added that this should mean two to three times fewer compactions on long tasks, at no extra charge.

OpenAI's help center for ChatGPT Work and Codex states the 500K default and that usage covered by your subscription's included allowance has no additional long-context surcharge.

0.166.0 preserves reasoning-token accounting across resume and fork to avoid premature compaction (checked 2026-11-05).

What it means for you

  • On a ChatGPT plan: long Codex sessions keep more history before compacting. Larger requests still draw more of your usage allowance, because more tokens are sent each turn.
  • On an API key: the GPT-6.1 Sol model page lists a 1,050,000-token window and charges more for requests over 272K tokens (2x input and cached input, 1.5x output, applied to the whole request, not only to the tokens past 272K). A bigger default window means more requests can cross that line; set the window yourself if cost matters.

Changing it

Codex reads the window and the compaction point from config.toml:

model_context_window = 300000
model_auto_compact_token_limit = 250000

Both keys are in Codex's config schema. The maximum for GPT-6.1 Sol is about 1M tokens.

Compared with Claude Code

Claude Code's models (Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable) run with a 1M window and auto-compact at about 967K by default; /autocompact sets a smaller window per model. Claude Code also has idle compaction for long idle sessions. Different defaults, same question: when is a longer history worth its token cost? See the threads on idle compaction and on cutting subagent costs with a smaller Haiku window.

Caveats (as of October 2026)

  • This is part of OpenAI's daily "28 days" series of Codex changes; defaults may move again.
  • A longer context is not free on quality: very long histories can still distract the model. Compare a few long tasks before and after.

Sources

Primary source: the OpenAI GPT-6.1 Sol model page, read on 18 October 2026.

  • Confirms: a 1,050,000-token context window (up to 922,000 of it input, 128,000 output) and the higher price for requests over 272K tokens (2x input and cached input, 1.5x output). The page says the higher rate applies to the whole request, not only to the tokens past 272K.
  • Checked 2026-11-17: the model page now confirms the 500K default in Codex and ChatGPT Work and no long-context surcharge on subscription usage. The Codex config reference confirms model_context_window and model_auto_compact_token_limit.

Started from a post by @thsottiaux, packaged by the editor. Original post

Subjects

More in context management

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Codex raises GPT-6.1 Sol's default context to 500K tokens, with no long-context surcharge on plan usage
Summary: GPT-6.1 Sol defaults to a 500K-token context window in Codex and ChatGPT Work, up from 272K, so long tasks compact less often. OpenAI says plan usage carries no long-context surcharge; on the API, prompts over 272K still cost more. You can set the window higher or lower in Codex's config.
Copy for agent
get the whatworks thread codex-gpt-6-1-sol-500k-default-context and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread codex-gpt-6-1-sol-500k-default-context
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks