Skip to content
2api2api Docs
Open console

Codex

Codex extension (VS Code / Cursor)

The extension reads the same config as the Codex CLI. Set up the CLI first and the extension works right away.

  1. First follow Codex CLI to write ~/.codex/auth.json and ~/.codex/config.toml. These are the two files the extension reads.

  2. Search for Codex in the VS Code or Cursor extension marketplace and install the official extension whose publisher is OpenAI.

  3. Restart the editor and open the Codex panel. If the extension asks you to choose a sign-in method, choose the API key method. When the config files are already written, it usually goes straight in.

  4. Send a message. If it replies normally, the setup is done.