Skip to main content

1. Obtain API Key

Open the Ace Data Cloud application list, enter the available applications and copy the API Key. Obtain Ace Data Cloud API Key

2. Install Codex

3. Set API Key

macOS / Linux:
For long-term effect, add this line to ~/.zshrc or ~/.bashrc. For Windows PowerShell use:
After setting, reopen the terminal.

4. Configure AceDataCloud

Edit ~/.codex/config.toml (for Windows it is %USERPROFILE%\.codex\config.toml), and add:
For Windows, change the last two lines to:
No need to fill in model; after starting, you can select the model in Codex. Existing configurations can be retained, do not create a provider with the same name again.

5. Start

After entering Codex, run /model, confirm the Provider is acedatacloud, and then select the required model. Call records and balance can be viewed in Usage History and Application List. If prompted for a missing Key or returns 401, confirm that the environment variable is set, and completely exit before reopening the terminal and Codex.