Installation
Official Download (macOS Version)
https://openai.com/en/codex/Install via Command Line
Environment Variable Configuration
Configure Using Configuration Files
- Modify the
~/.codex/config.tomlconfiguration file to add the following settings:
- Modify the
~/.codex/auth.jsonconfiguration file to change the following settings:
Configure via cc-switch
- Run CC-Switch and add the provider.

- Select “AiHubMix” from the preset list.

- Enter your key in the “API Key” field and click “Add” to save the settings.

- Return to the home page, select “AiHubMix” from the provider list, and click “Enable” to start using it.

Using Codex
Using in the Terminal
- Open the terminal, navigate to your project directory, and run the
codexcommand.
- Set permissions as needed.

- Select the model you need based on your requirements.

- Input natural language; if you receive a normal response, the configuration is successful.

Using in the Codex Desktop Application
- Open the Codex desktop application and select the working directory.
- Enter the task in the input box; if you receive a normal response, the configuration is successful.
