Skip to main content

Codex CLI

Codex CLI is a programming terminal agent launched by OpenAI that runs locally on your computer.
  1. Installation
Run the following command in your terminal to install Codex CLI.
macOS users can use Homebrew:
  1. Configure to use platform models (macOS/Linux)
Open ~/.codex/config.toml and add the following configuration:
For more detailed configuration options, refer to the official documentation.
  1. Run Codex CLI
Set your API Key from this site as an environment variable and run codex:

Codex VSCode Extension

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