CQTAI

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

  1. Open VS Code and press Ctrl+Shift+X to open the Extensions panel.

  2. Search for Codex, find "Codex - OpenAI's coding agent" (publisher: OpenAI), and install it.

  3. Close and reopen VS Code (a restart is required to activate the extension).

  4. Press Ctrl+, to open Settings, search for codex, and fill in the following:

    SettingValue
    API Base URLhttps://api.cqtai.com/v1
    API Keyyour APIKey
    Modelgpt-5.3-codex
  5. 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/codex for CLI installation.

For command-line usage (including the two ways to store the key in ~/.codex/config.toml and sandbox settings), see "CLI Setup → Codex Setup".