Skip to main content

Codex CLI

Codex CLI is a programming terminal agent launched by OpenAI that can run locally on your computer.
  1. Install
Run the following command in your terminal to install Codex CLI:
MacOS users can use Homebrew:
  1. Configure it to use this platform’s models (MacOS/Linux)
Open ~/.codex/config.toml and configure it as follows:
For more detailed configuration options, see the official documentation.
  1. Run Codex CLI
Set this site’s ApiKey as an environment variable and run codex:

Codex VSCode extension

You can also use Codex in VSCode. First configure ~/.codex/config.toml according to the instructions in the previous section, then run the following command:
Then add the following configuration to VSCode settings.json:
Note: please replace /home/path with your actual Home directory path.