Codex 据称已向 ChatGPT 账户开放 GPT-5.6 Sol 的百万级上下文
一则由 Codex 工程师发布的消息称,使用 ChatGPT 账户登录 Codex 的用户现在也可以尝试 GPT-5.6 Sol 的 100 万 token 上下文配置。相关设置需要修改 Codex 配置文件或通过命令行参数临时启用。
消息称,GPT-5.6 Sol 的文档上下文窗口为约 105 万 token,而 Codex 配置示例将会话预算设为 100 万 token,并在约 90 万 token 时触发自动压缩。这样可以让会话在总结旧内容前保留更多代码、工具输出和对话历史。
不过,发布者也提醒,Codex 的默认上下文长度经过了性能与成本方面的调优,扩大窗口可能带来额外资源消耗。用户需要重启客户端并开启新会话,或使用命令行覆盖参数进行单次测试。
目前公开证据存在冲突:一份 GitHub 问题报告称,Codex 当前元数据仍显示约 37.2 万 token 的上下文窗口,并指出更长输入可能进入更高定价区间。因此,百万级配置是否对所有账户和后端环境稳定生效,仍需以官方模型元数据和实际会话结果为准。
来源证据
How to Enable GPT-5.6 Sol’s 1M Context Window in Codexatoms.dev · supportingCommunityAboutPricing Log inSign up All posts # How to Enable GPT-5.6 Sol’s 1M Context Window in Codex • Published on Aug 18, 2026 • 35min read CodeGlitch proposes testing the same large Codex task under the default and one-million-token context, then comparing compactions, repeated work, and corrections. This is a test plan, not a benchmark result — Source Codex can now run GPT-5.6 Sol with a one-million-token context budget through a simple configuration change. The setting works with Codex sessions authenticated through ChatGPT accounts, not only API-key workflows. The configuration is short: toml ``` model = "gpt-5.6-sol" model_context_window = 1000000 model_auto_compact_token_limit = 900000 ``` [...] ### Does GPT-5.6 Sol support one million tokens? Yes. OpenAI’s current model page lists a 1,050,000-token context window for GPT-5.6 Sol. The Codex configuration shown here sets a one-million-token session budget. ### Where is the Codex configuration file? The user-level
1 Million Context to enable professional workloads - Codexcommunity.openai.com · supportingA larger context window lets Codex retain more code, tool output, and conversation history before summarizing older material. You need a model that supports it. GPT-5.6 Sol, for example, has a documented 1,050,000-token context window. Open ~/.codex/config.toml and add or update these settings at the top level, before any [section] headers: `model = "gpt-5.6-sol"` `model_context_window = 1000000` `model_auto_compact_token_limit = 900000` `model = "gpt-5.6-sol"` `model_context_window = 1000000` `model_auto_compact_token_limit = 900000` The first setting selects the model. The second tells Codex to use a one-million-token context budget. The third starts automatic history compaction around 900,000 tokens, leaving some headroom. [...] Restart the Codex client and start a new session after saving. To try the configuration for a single CLI session without changing your defaults: `codex -m gpt-5.6-sol` `-c model_context_window=1000000` `-c model_auto_compact_token_limit=90000
Issue · GitHubgithub.com · supporting### What issue are you seeing? GPT-5.6's default Codex context configuration appears to allow sessions to enter the higher-usage pricing band without the user explicitly opting into a larger context. The current model metadata reports a 372,000-token context window with a 95% effective-context multiplier, yielding an effective window of approximately 353,400 tokens. OpenAI's GPT-5.6 model pricing documentation states that prompts with more than 272K input tokens are priced at 2x input and 1.5x output for the full request. That means the default effective context can extend roughly 81K tokens into the higher-cost band: Raw context: 372,000 Effective context: 353,400 Higher-cost threshold: 272,000 Exposure above threshold: approximately 81,400 tokens [...] Skip to content ## Navigation Menu Sign in Appearance settings Sign in Sign up Appearance settings You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. R
How to Unlock 1M Context in Codex - by Leonardo Gonzaleztrilogyai.substack.com · supportingTibo@thsottiaux GPT-5.6 Sol 1M in Codex. This used to only work for API keys, but we just flipped the switch and works for usage through ChatGPT accounts now too. The same warning applies, there is a reason the current context length is the default, we have tuned it to ~perfection. But you do Tibo @thsottiaux Here is how to enable a 1M-token context window in Codex for GPT-5.6 Sol. Even though we have tuned the context limit in Codex to be set optimally when it comes to performance and cost, this is a common ask, so here it is documented. A larger context window lets Codex retain 12:13 AM · Aug 17, 2026 · 1.57M Views 618 Replies · 253 Reposts · 6.05K Likes The earlier failures, the model catalog, and my long-context tests explain why this guide needs more than one TOML setting. [...] 146 Replies · 5 Reposts · 886 Likes The next day he posted the configuration values for a one-million-token window. They were familiar. I had already tried the same configuration months ago and foun
Tibo on X: "GPT-5.6 Sol 1M in Codex. This used to only work for API keys ...x.com · supporting@thsottiaux Tibo @thsottiaux Aug 16 Here is how to enable a 1M-token context window in Codex for GPT-5.6 Sol. Even though we have tuned the context limit in Codex to be set optimally when it comes to performance and cost, this is a common ask, so here it is documented. A larger context window lets Codex retain 12:13 AM · Aug 17, 20261.6MViews 613 @thsottiaux Tibo @thsottiaux GPT-5.6 Sol 1M in Codex. This used to only work for API keys, but we just flipped the switch and works for usage through ChatGPT accounts now too. The same warning applies, there is a reason the current context length is the default, we have tuned it to ~perfection. But you do you! @thsottiaux Tibo @thsottiaux Aug 16 [...] Log inSign up ## Post # Tibo on X: "GPT-5.6 Sol 1M in Codex. This used to only work for API keys, but we just flipped the switch and works for usage through ChatGPT accounts now too. The same warning applies, there is a reason the current context length is the defau
Is GPT-5.6's Context 1.05M, 500K, or 400K?yage.ai · supportingAt the same time, local configuration changes on the client side cannot reliably unlock a larger window in the cloud; large-context operation still requires cloud-side cooperation. Therefore, standalone API-key calls and Codex client sessions through a ChatGPT subscription do not share the same context quota conventions. [...] When using the ChatGPT subscription channel, users do not directly pay for overages, but this still imposes server-side resource and capacity planning pressure, and 272K happens to coincide with the billing boundary. In the issue #19464 discussion, engineering contributor Eric Traut mentioned that supporting a 1M-level context on the client side requires server-side implementation and capacity planning. This reflects backend resource considerations, but cannot be taken as an official explanation of the motive behind this version adjustment. [...] The underlying API model specification is clear and stable. According to the GPT-5.6 Sol API page and the GPT-5.5 API