~/.codex/config.toml to Ace Data Cloud, Codex in VS Code will use https://api.acedata.cloud/v1.
Application Process
To use Codex, first visit the Ace Data Cloud Console to obtain your API Token for backup.
If you are not logged in or registered, you will be automatically redirected to the login page to register and log in. After logging in or registering, you will be automatically returned to the current page.
A free quota is granted on the first application, allowing you to try Codex services for free.
Install Codex Extension
Search forCodex in the VS Code extension marketplace and install the Codex - OpenAI’s coding agent extension published by OpenAI. Its Marketplace ID is:
Cmd+Shift+P, Windows/Linux: Ctrl+Shift+P), search for and run:
Install Codex CLI (for Verification)
The official documentation states that the Codex VS Code extension and Codex CLI use the same configuration layer. To verify your API Token and model availability before configuring VS Code, it is recommended to install Codex CLI as well. One official recommended method is installing via npm, requiring Node.js 18 or higher:~/.codex/config.toml configuration will be used later.
Configure Ace Data Cloud API
Codex VS Code extension and Codex CLI share the configuration file. By default, Codex prompts to log in with an official OpenAI account or configure the official API Key. To use Ace Data Cloud instead, you need to configure the API Token and~/.codex/config.toml.
Step 1: Set Environment Variable
It is recommended to write the API Token into your shell configuration file, such as~/.zshrc, ~/.bashrc, or ~/.bash_profile:
{token} with the API Token you copied from the Ace Data Cloud console.
After configuration, reopen the terminal or run the corresponding source command to apply the changes immediately:
Step 2: Edit Codex Configuration File
The user-level Codex configuration file is located at~/.codex/config.toml. If the file does not exist, create it:
You can also click the gear icon at the top right of the Codex extension, select Codex Settings > Open config.toml to open this configuration file directly from VS Code.
Project-level Configuration
If you want a different configuration for a specific project, create.codex/config.toml in the project root directory. Codex will prioritize loading project-level configuration, but the project must be marked as trusted for .codex/ configurations to be loaded.
Example:
.codex/config.toml depends on your team’s policy.
Clear Cached OpenAI Login
If you previously logged into the official OpenAI account in the Codex extension, the local official login state might still be retained. Before switching to the Ace Data Cloud proxy, you can run in the terminal:Basic Usage
After configuration, open the Codex panel on the left or right side of VS Code and enter your request directly. For example:@, for example:
Switch Model and Reasoning Effort
The Codex VS Code extension supports switching models and adjusting reasoning effort via the model switcher below the input box. When using a custom provider like Ace Data Cloud, the safest way is to set the defaultmodel in ~/.codex/config.toml first, then switch as needed in the interface. Recommended defaults:
If the model you want is not shown in the interface, you can directly modify the
model field in ~/.codex/config.toml and then restart or reload VS Code. For the full model list, see the Ace Data Cloud OpenAI Service Documentation.
Choose Working Mode
The Codex extension supports different working modes. Common modes:
Daily use is recommended with
Agent mode and keep approval_policy = "on-request". This way, Codex will ask for confirmation before executing sensitive commands or accessing paths outside the workspace or the network.
Verify Configuration
You can first verify Codex works through Ace Data Cloud with the same configuration in the terminal:How It Works
The Codex VS Code extension does not have an independent model configuration. It uses the native Codex CLI and shares Codex’s configuration layer:- The VS Code extension starts Codex and reads the user-level
~/.codex/config.toml. - If the current project is trusted and contains
.codex/config.toml, Codex loads the project-level configuration. - When
model_providerpoints toacedatacloud, Codex reads the API Token fromACEDATACLOUD_API_KEY. - Requests are sent via the OpenAI Responses protocol to
https://api.acedata.cloud/v1/responses. - Ace Data Cloud verifies identity, checks quota, forwards requests, and records usage.

