Codex Integration Guide
Codex is an AI programming assistant from OpenAI that runs in the terminal. It interacts through natural language commands, helping developers quickly complete tasks such as code generation, debugging, and refactoring.
1. Obtain API Key
- Refer to Model Activation Help Documentation
2. Install Codex
Prerequisite: Node.js 18.0 or higher version
1: Install Codex
Note: You must install the specified version
0.80.0
npm install -g @openai/codex@0.80.02: Verify Installation
codex --version
3. Configure Access Credentials
The configuration file path depends on the operating system. Please ensure the path is correct, otherwise the configuration will not take effect.
1: Create Configuration File
- macOS / Linux:
~/.codex/config.toml - Windows:
C:\Users\YourUsername\.codex\config.toml
Copy the following content into the configuration file, replacing <OPENAI_API_MODEL> with your activated model name:
Note:
env_keydoes not need to be modified
model_provider = "EazyDevelop"
model = "<OPENAI_API_MODEL>"
[model_providers.EazyDevelop]
name = "EazyDevelop"
base_url = "https://api-maas.eazytec-cloud.com/v1"
env_key = "EAZYDEVELOP_API_KEY"
wire_api = "chat"2: Configure Environment Variables
Replace
<OPENAI_API_KEY>with the API key from EazyDevelop.
macOS / Linux:
Run the following command in the terminal to check the default Shell type:
bashecho $SHELLSet the environment variable based on your Shell type:
Shell Type Command Zsh echo 'export EAZYDEVELOP_API_KEY="<OPENAI_API_KEY>"' >> ~/.zshrcBash echo 'export EAZYDEVELOP_API_KEY="<OPENAI_API_KEY>"' >> ~/.bashrcRun the following command to apply the environment variable:
Shell Type Command Zsh source ~/.zshrcBash source ~/.bashrc
Windows:
Open CMD and run the following command:
Replace
<OPENAI_API_KEY>with your API key
setx EAZYDEVELOP_API_KEY "<OPENAI_API_KEY>"Verify that the environment variable is set:
echo %EAZYDEVELOP_API_KEY%
4. Start Using
After completing the configuration, open a new terminal window and run the following command to start Codex:
codexPlease ignore the red warning

Notes
- You must install the specified version
0.80.0; other versions may not work properly - Do not make mistakes with the configuration file path. You can check the home directory path using
echo $HOME(macOS/Linux) - After setting environment variables on Windows, you need to reopen the terminal window for them to take effect
- The
env_keyinconfig.tomldoes not need to be modified; keep it asEAZYDEVELOP_API_KEY