Provides examples of Codex configuration-file and command-line parameters: select gpt-5.6-sol, set a 1,000,000-token context window, and set the automatic compaction threshold to 900,000; the article notes that the default configuration has already been tuned to balance performance and cost.
The following is the visible text extracted from the page during this visit. It includes page navigation, automatic translation, advertisements, and comments; verify against the original URL before citing it.
Press ? to view keyboard shortcuts View keyboard shortcuts Home Explore Notifications Chat Grok Premium History Creator Studio Articles Profile More Post 潦草学者 Scholar.L @liaocaoxuezhe Post See new posts Conversation Spring Hao @SpringHaoAI · 12 minutes ago GPT5.6-sol can manually enable a one-million-token context window; Tibo shows you how to configure it—you can just give the following article to Codex to complete the setup. Quote Tibo @thsottiaux · 12 hours ago Translated from English Here is a guide to enabling a 1M-token context window for GPT-5.6 Sol in Codex.
Although we have tuned Codex's context limit for performance and cost, this is a common request, so we are documenting it here.
A larger context window allows Codex to 1 18 Spring Hao @SpringHaoAI The content you send to Codex can also be in Chinese; help me complete the setup: Here is how to enable a 1-million-token context window in Codex for GPT-5.6 Sol.
Although we have tuned Codex's context limit to an optimal setting for performance and cost, this is a frequently raised request, so we are documenting the relevant details here.
A larger context window lets Codex retain more code, tool output, and conversation history before summarizing earlier content. This requires support from the corresponding model; for example, GPT-5.6 Sol's documentation explicitly states that its context window can reach 1,050,000 tokens.
Open the ~/.codex/config.toml file and, at the top level before all [section] headers, add or update the following settings:
model = "gpt-5.6-sol"
model_context_window = 1000000
model_auto_compact_token_limit = 900000The first setting selects the model, the second tells Codex to use a 1-million-token context budget, and the third automatically starts compacting the history when the context approaches 900,000 tokens, leaving some headroom. After saving the settings, restart the Codex client and start a new session.
To try this configuration in a single CLI session without changing the defaults:
codex -m gpt-5.6-sol \
-c model_context_window=1000000 \
-c model_auto_compact_token_limit=900000Enjoy, but note that we have carefully tuned the default settings! 4:50 PM · August 17, 2026 · 13 View Post your reply
Reply Related users Spring Hao @SpringHaoAI Follow 10-year e-commerce veteran using AI to build wealth. Practical money-making strategies, business growth & real insights. Let’s build together Trending What's happening Entertainment Trends Hayden Trends Heroes, Kairi Rap Trends Blueface Trends Chrisean Entertainment Trends Remember the Titans Trends #Lanterns, Hal Jordan Entertainment Trends Ice Princess Trends Michelle Trachtenberg Show more Terms · Privacy · Cookie · Accessibility · U.S. TIDA · Ad info · More © 2026 X Corp.
GPT-5.6 Sol