Notice
先看证据,再决定买不买

频道每天最多 3 条价格异动与中转状态;具体商品请用机器人设置降价/补货提醒。交流群提问请带预算、模型、工具和使用频率。

View
Community & contactTelegram 群点击加入Telegram 频道每天最多 3 条有效价格情报联系我们tgAIPricedb交流群979789483
Back to news
Products

Codex Can Enable an Approximately 1M-Token Context for GPT-5.6 Sol

Tibo has published configuration steps for enabling an approximately one-million-token context window in Codex with GPT-5.6 Sol. The default limit remains recommended for users who prioritize balanced performance and cost.

82% VERIFIED

According to a post by Tibo (@thsottiaux), users can edit the top level of ~/.codex/config.toml to select gpt-5.6-sol, set the context budget to 1,000,000 tokens, and trigger automatic compaction at 900,000 tokens. The lower threshold is intended to leave headroom before the context limit is reached.

After saving the file, users should restart Codex and begin a new session. A one-session version can also be supplied through CLI overrides. The settings cannot exceed the model's actual supported context size, and a larger window may consume more quota or increase costs. Tibo said Codex's default limit was tuned for a better performance-cost balance.

Source evidence

codex开启1m上下文失败 · Issue #2614 · farion1231/cc-switch · GitHubgithub.com · supporting

所以 App 显示的是 272000 \ 95% = 258400,也就是截图里的 共 258k。model\_auto\_compact\_token\_limit = 900000 只是自动压缩阈值,不能突破实际模型窗口。 验证结果 我做了两个测试: 只用 -c model\_context\_window=1000000 启动,task\_started.model\_context\_window 仍是 258400。 用 model\_catalog\_json 覆盖模型 catalog,把 deepseek-v4-pro.context\_window 设为 1000000 后,task\_started.model\_context\_window 变成 950000。 解决方案 需要增加一个自定义模型 catalog 文件: custom-models.json 然后在 config.toml 里配置: toml model = "deepseek-v4-pro" model\_provider = "custom" model\_catalog\_json = "/Users/luca/.codex/custom-models.json" model\_auto\_compact\_token\_limit = 900000 显示 950k 是因为 Codex 默认保留 5% 安全余量。要显示接近 1m,可以把 custom-models.json 里的 effective\_context\_window\_percent 从 95 改成 100,但默认 95 更稳。 ### Expected Behavior / 期望行为 期望如图这里是900多K接近1M 才表示生效 Image [...] @yangyongyongyong yangyongyongyong opened on May 7, 2026 Issue body actions ### Self Checks / 自检 I have read the FAQ section in README. 我已阅读 README 中的常见问题。 I have searched for existing issues,

Use GPT-5.6 (Sol / Terra / Luna) in Codex CLI: 4-Step Setup Guide | QCode.ccqcode.cc · supporting

~/.codex/config.toml — QCode profile ``` # ~/.codex/config.toml — add the QCode profile # full config reference: # model = "gpt-5.6-terra" # default tier; sol / luna also available # ... keep your QCode provider / auth settings unchanged ``` ## Step 3: Pick a tier with /model (or set it in config) Launch codex and type /model to switch between gpt-5.6-sol / gpt-5.6-terra / gpt-5.6-luna, or set model in config.toml as your default. Rule of thumb: Terra as default, Sol for the hard parts, Luna for volume. Codex session — switching models ``` ● gpt-5.6-terra ← selected ``` ## Step 4: Verify it runs and bills correctly [...] ## Before you start Node.js 18+ and npm (to install / update Codex CLI) A QCode.cc API key (issued when you activate any plan, from $8.57/mo; one key covers Claude / GPT / Gemini) About 5 minutes ## Step 1: Update Codex CLI to the latest version The GPT-5.6 tiers ship built in from releases around July 2026. One global update command does it; confirm with

Will 保哥的技術交流中心 - Codex 終於支援真正的 1M Token 上下文視窗,設定方式如下:🎁...facebook.com · supporting

## Will 保哥的技術交流中心's Post ### Will 保哥的技術交流中心 August 16 at 7:13 PM · Codex 終於支援真正的 1M Token 上下文視窗,設定方式如下:🎁 官方預設的上下文上限已在效能與成本間取得平衡,但因應許多使用者的需求,在此提供操作方式。 更大的上下文視窗能讓 Codex 保留更多程式碼、工具輸出與對話紀錄,避免過早總結歷史資料。以 GPT-5.6 Sol 為例,官方規格支援 1,050,000 Token。 若要進行全域設定,請開啟 ~/.codex/config.toml 檔案。 請在所有 [section] 區段前加入或更新以下內容: model = "gpt-5.6-sol" model\_context\_window = 1000000 model\_auto\_compact\_token\_limit = 900000 第一項指定使用模型。 第二項將上下文上限設為一百萬 Token。 第三項會在達到九十萬 Token 左右時自動壓縮紀錄,保留適當緩衝空間。 存檔後請重啟 Codex 用戶端並建立新工作階段。 若只想在單次 CLI 指令中測試而不修改預設值,可使用以下指令: codex -m gpt-5.6-sol \ -c model\_context\_window=1000000 \ -c model\_auto\_compact\_token\_limit=900000 請依需求評估使用,預設配置仍是目前平衡度最高的選擇。👍 [...] 請依需求評估使用,預設配置仍是目前平衡度最高的選擇。👍 May be an image of text that says '</> 在 Codex 中為 GPT-5.6 GPT-5.6Sol開啟 Sol 開啟 真正的1M 真正的 1M Token 正的1MToken上下文視窗 上下文視窗 官方預設已在效能與成本同取得平衡, 但若有需求 可 可手时開故更大的上下文状 全域設定 ~/.codex/config.toml GPT-5.6 Sol 官方親格支援 1,050 1,050,000 000 Token mode

GPT-5.6 Sol 的 1M context 現在也能用在 ChatGPT 帳號的 Codex 上了。 以前這組設定只對 API key 生效,Tibo 剛把開關打開。模型本身文件寫的是 1,050,000 token window。 在 ~/.codex/config.toml 最上方(任何 [section] 之前)加上: model = "gpt-5.6-sol" model_context_window = 1000000 model_auto_compact_token_limit = 900000 存檔後重啟 Codex,再開新 session。 單次 CLI 不想改預設的話可以直接: codex -m gpt-5.6-sol \ -c model_context_window=1000000 \ -c model_auto_compact_token_limit=900000threads.com · supporting

# Thread 1.1K views sliven0722's profile picture sliven0722 GPT-5.6 Sol 的 1M context 現在也能用在 ChatGPT 帳號的 Codex 上了。 以前這組設定只對 API key 生效,Tibo 剛把開關打開。模型本身文件寫的是 1,050,000 token window。 在 ~/.codex/config.toml 最上方(任何 [section] 之前)加上: model = "gpt-5.6-sol" model\_context\_window = 1000000 model\_auto\_compact\_token\_limit = 900000 存檔後重啟 Codex,再開新 session。 單次 CLI 不想改預設的話可以直接: codex -m gpt-5.6-sol \ -c model\_context\_window=1000000 \ -c model\_auto\_compact\_token\_limit=900000 Translate 7 1 Log in or sign up for ThreadsSee what people are talking about and join the conversation. Log in with username instead

Here is how to enable a 1M-token context window in Codex for GPT ...x.com · supporting

# Tibo on X: "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 more code, tool output, and conversation history before summarizing older material. You need a model that supports it. And GPT-5.6 Sol, for example, has a documented 1,050,000-token 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 ``` The first setting selects the model. The second tells Codex to use a one-million-token context budget. [...] 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 c

Codex支持1M上下文了 !保姆级教程! 附完整步骤截图zhuanlan.zhihu.com · supporting

### 2、界面方式 你也可以通过页面点击方式打开`.codex`去修改。 但是,这个目录默认是隐藏的。 如果是Mac电脑可以使用到你的用户目录。然后按`shift + command + .` 快捷键打开隐藏的目录。 (注意后面是点) Image 6 然后找到`config.toml`这个文件打开即可。 Image 7 打开方式随便选个编程软件,或者是在【其他】里面选个记事本。 Image 8 Windows 电脑,也是到用户目录,可以按下面步骤打开`.codex`目录。 Image 9 ## 配置 然后直接在模型下面加上这2个配置。 Image 10 model_context_window:模型的上下文窗口阈值:1M 也就是100w model_auto_compact_token_limit:上下文多大就开启自动压缩,这里按Tibo推荐配置90w ```text model = "gpt-5.6-sol" # 模型的上下文窗口阈值:1M 也就是100w model_context_window = 1000000 # 上下文多大就开启自动压缩,这里按Tibo推荐配置90w model_auto_compact_token_limit = 900000 ``` ## 测试 随便提问,然后使用`/status`命令,查看上下文占用情况。 Image 11 这里显示只有800多K,应该是系统上下文占了100多K了。 上下文越长,意味着可以承接更多的聊天内容。 如果上下文压缩,肯定会带来一定的信息丢失。 但是需要注意的是! 上下文越长, Token耗得也越快,额度掉的会很快。 我是卡卡罗特,持续分享对于我们的硬核AI教程~ 发布于 2026-08-17 11:38・广东 CODEX ChatGTP [...] Image 1) Image 2: ZhiHu logo []( 关注推荐热榜专栏圈子AI Works Beta故事 ​ 直答 切换模式 登录/注册 Codex支持1M上下文了 !保姆级教程! 附完整步骤截图 切换模式 Image 3: Codex支持1M上下文了 !保姆级教程! 附完整步骤截图 # Codex支持1M上下文了 !保姆级教程! 附完整步骤截图 Im