Skip to main content

Installation

Download from the official site (macOS)

https://openai.com/codex/

Install via the command line

Environment Variable Configuration

Configure via the config file

  1. Edit your ~/.codex/config.toml file and add the following:
  1. Edit your ~/.codex/auth.json file and update it as follows:

Configure via cc-switch

  1. Launch CC-Switch and add a provider.
Add Provider screen in CC-Switch
  1. From the preset list, choose “Custom Configuration.”
Selecting AiHubMix in the CC-Switch preset list
  1. Fill in the provider name, API key, and endpoint (https://api.harogo.ai/v1), etc. Once everything is filled in, click “Add.”
Entering the API key and saving in CC-Switch
  1. Back on the home screen, select “harogo” and click “Enable” to start using it.
Enabling the AiHubMix provider in CC-Switch

Using Codex

In the terminal

  1. Open a terminal, navigate to your project directory, then run the codex command.
  1. Set permissions as needed.
Setting approval permissions on Codex startup
  1. Type a natural-language prompt — if you get a normal response back, the setup was successful.