How to Run Codex CLI with Agents UI

Codex CLI is OpenAI's open-source terminal coding agent. Running it inside Agents UI adds persistent sessions, SSH, file editing, and the ability to run it alongside other agents.

Codex CLI is OpenAI's open-source terminal coding agent. Running it inside Agents UI adds persistent sessions, SSH, file editing, and the ability to run it alongside other agents.

Why run Codex CLI in Agents UI

Codex CLI is open source and scriptable; Agents UI gives it a home with orchestration and an agent control panel.

Run Codex on one task and Claude Code on another, then coordinate them with Orchestrate mode.

How to set it up

Step 1: Install Agents UI

Download the latest macOS release and open it.

Step 2: Install Codex CLI

Install OpenAI's Codex CLI from its repository and authenticate with your account or API key.

Step 3: Open a session

Create a session in Agents UI in your project directory.

Step 4: Run Codex CLI

Start Codex in the session. It behaves as it does in any terminal, with Agents UI's persistence and tooling around it.

Step 5: Run agents side by side (optional)

Open additional sessions to compare Codex with other agents on the same task.

Frequently asked questions

Is Codex CLI free?

The CLI is open source; model usage is billed through your OpenAI account or included in ChatGPT plans.

Can I compare Codex and Claude Code?

Yes — running them side by side in separate sessions is one of the main reasons developers use Agents UI.

Try Agents UI

A native terminal for AI coding agents with persistent sessions, SSH workflows, and built-in editing.