Skip to content
AI SI Daily
中文

Search the site

↑↓ Select · Enter Open · Esc Close

● Hands-on

GPT-6.2 missing in VS Code's built-in Codex? Try CLI 0.172.0

Point VS Code's Codex Agent Host at CLI 0.172.0 with sdkRoot. Includes install, log checks, and rollback. Verified on macOS, not Windows or Linux.

滴滴点到Tested: macOS (Apple Silicon); Windows and Linux integration not verified

On macOS with Apple Silicon, I ran into a model-picker problem in VS Code Stable 1.147.0. The OpenAI Codex extension showed GPT-6.2 for my ChatGPT account, but the built-in Chat view stopped at GPT-6.1 when I selected Codex → ChatGPT. After I switched the built-in Agent Host runtime to Codex CLI 0.172.0, both GPT-6.2 Astra and Sol appeared. Sol also answered a test prompt. I completed this check on November 25, 2026. Issue report · My verification notes

Why updating the Codex extension did not update built-in Chat

The built-in Codex Agent Host and the OpenAI Codex extension each launch their own runtime. In the Agent Host output, I found that this version of VS Code launched 0.163.0 from its SDK cache. I queried the model list in an isolated directory with the same ChatGPT account. The older version did not return GPT-6.2. After the switch to 0.172.0, the built-in Chat view also listed the new models.

A VS Code maintainer explains that Agent Host pins a Codex version so it can pass security checks before shipping. The advanced chat.agentHost.codexAgent.sdkRoot setting lets you temporarily point it at a local installation. The workaround is to install a separate copy of Codex and change one user setting. The maintainer also warns that a newer version could introduce an incompatible integration change. Maintainer’s explanation

1. Install a separate copy of Codex 0.172.0

Make sure npm is available in your terminal. I installed Codex under my home directory and included the version number in the path so I could switch versions or roll back later.

macOS and Linux

npm install --registry https://registry.npmjs.org \
  --prefix "$HOME/.vscode-codex-sdk/0.172.0" \
  --no-save --no-package-lock @openai/[email protected]

Windows PowerShell

npm install --registry https://registry.npmjs.org --prefix "$env:USERPROFILE\.vscode-codex-sdk\0.172.0" --no-save --no-package-lock @openai/[email protected]

I verified the complete procedure only on macOS. The Windows and Linux commands use the installation syntax for those platforms. I have not verified the VS Code integration on either platform.

2. Change the VS Code user setting

Open the Command Palette and run Preferences: Open User Settings (JSON). Merge this entry into your existing settings.json. Replace the example path with the absolute path of the directory you installed into.

{
  "chat.agentHost.codexAgent.sdkRoot": "/Users/yourname/.vscode-codex-sdk/0.172.0"
}

On Windows, you can use forward slashes, for example C:/Users/yourname/.vscode-codex-sdk/0.172.0. Point the setting at the installation root. That directory should contain node_modules/@openai/codex.

VS Code Stable may label the entry Unknown Configuration Setting. The maintainer explains that this advanced setting is hidden in the Stable settings UI. Setting details

3. Restart and verify

  1. Run Developer: Restart Local Agent Host from the Command Palette.
  2. Open the Output panel and select Agent Host. Find the latest [Codex] spawning app-server from entry. Its path should include .vscode-codex-sdk/0.172.0.
  3. Open the built-in Chat view, select Codex, and choose ChatGPT in the model menu. Check whether GPT-6.2 Astra and GPT-6.2 Sol appear.
  4. To check that a model can respond, select Sol in an empty window and send a short test prompt. I asked it to reply only with CODEX_172_OK and received that response. I confirmed that Astra appeared in the menu, but did not test an Astra response separately.

Roll back to the VS Code-managed version

If the ChatGPT tab disappears or Agent Host fails to start, remove the chat.agentHost.codexAgent.sdkRoot entry you added. Then run Developer: Restart Local Agent Host again. You can also remove the override once VS Code ships a runtime that supports GPT-6.2. VS Code will return to its own managed Codex version. Maintainer’s explanation

Sources and verification scope

This article records my macOS results. It does not establish the same behavior on Windows, Linux, or later VS Code versions. I confirmed Astra’s presence in the menu and tested an actual response only with Sol.

Related posts

More in Guides →