How to enable 1M context window in Codex

soumitrashukla9 · x · 2026-08-17

Guide on enabling a 1M-token context window in Codex for GPT-5.6 Sol by setting modelcontextwindow = 1000000 in the config file. Note that tokens beyond the default limit count double against usage limits.

Related event: Codex Tutorial: Enable 1M Token Context(2 posts)→

Original post →

More from coding & agent

coding & agent channel →