Codex Setup (VS Code)
Besides the command line, you can also install the official Codex extension in VS Code to use CQT AI directly in the editor.
We recommend completing the CLI setup first (see "CLI Setup → Codex Setup" and write
~/.codex/config.toml); the VS Code extension reuses the same config.
Prerequisites
- You've obtained a CQT AI APIKey (created in the console under "APIKey Management").
- You've installed VS Code.
Setup steps
-
Open VS Code and press
Ctrl+Shift+Xto open the Extensions panel. -
Search for Codex, find "Codex - OpenAI's coding agent" (publisher: OpenAI), and install it.
-
Close and reopen VS Code (a restart is required to activate the extension).
-
Press
Ctrl+,to open Settings, search forcodex, and fill in the following:Setting Value API Base URL https://api.cqtai.com/v1API Key your APIKey Model gpt-5.3-codex -
After filling it in, restart VS Code again for the config to take effect.
Available models
gpt-5.3-codex: the currently available model—fast and suited to everyday coding.
FAQ
- Can't find the Codex option / config doesn't take effect: After confirming the extension is enabled, fully close VS Code and reopen it (click the × in the top-right to close, not minimize); the config requires two restarts (once after install, once after filling it in).
- 401 Unauthorized (authentication failed): Check the API Key is correct with no extra spaces, and confirm the APIKey hasn't expired or been disabled.
- 503 model_not_found: Confirm Model is set to
gpt-5.3-codex, spelled exactly. - macOS install permission error: Use
sudo npm install -g @openai/codexfor CLI installation.
For command-line usage (including the two ways to store the key in
~/.codex/config.tomland sandbox settings), see "CLI Setup → Codex Setup".