# Codex

Codex is OpenAI's open-source coding agent that runs in your terminal. It can write and edit code, execute commands, and navigate your codebase through natural language. For full documentation, see the [Codex GitHub repository](https://github.com/openai/codex).

Warp auto-detects Codex when you run it, giving you access to rich input controls, code review, and other integrated features. For a product overview, see [Codex in Warp](https://warp.dev/agents/codex).

For installation, authentication, project configuration, and productivity tips, see the [How to set up Codex CLI](https://docs.warp.dev/guides/integrations/how-to-set-up-codex-cli) guide.

## Setting up notifications

Codex supports native notifications that Warp surfaces as in-app and desktop alerts — such as when Codex completes a task, encounters an error, or needs your input.

First, update Codex to the latest version — support for this setting was recently added. See the [Codex upgrade instructions](https://developers.openai.com/codex/cli#upgrade).

Then add the following to `~/.codex/config.toml`:

```toml
[tui]
notification_condition = "always"
```

Then restart Codex. If this config isn't set, Warp displays a setup chip in the terminal with instructions you can follow directly.

## Supported Warp features

Codex supports the full set of Warp's agent integration features:

* **Agent notifications** - Receive in-app and desktop alerts when Codex needs your attention. Requires a one-time config change (see [Setting up notifications](#setting-up-notifications)).
* **Rich input editor** - Press `Ctrl-G` to open an expanded input editor for composing longer prompts.
* **Code review** - Send inline review comments directly to the agent from Warp's code review panel.
* **Attach code as context** - Select code and send it to the agent as context.
* **Vertical tabs with agent metadata** - Monitor Codex sessions with status indicators in Warp's tab bar.
* **Tab Configs** - Save and restore Codex session configurations.
* **Remote Control** - Share your Codex session with teammates via session sharing.

## Related pages

* [How to set up Codex CLI](https://docs.warp.dev/guides/integrations/how-to-set-up-codex-cli) — step-by-step setup guide
* [Codex in Warp](https://warp.dev/agents/codex) — product overview
* [Third-Party CLI Agents Overview](https://docs.warp.dev/agent-platform/third-party-agents/overview)
* [Claude Code](https://docs.warp.dev/agent-platform/third-party-agents/claude-code)
* [OpenCode](https://docs.warp.dev/agent-platform/third-party-agents/opencode)
