Agents
Codex CLI
The same tools over MCP, connected with one command. Baton hooks are next.
Codex can call the same Relief MCP server as Claude Code.
Connect it in one command
frontier connect codexRelief shows exactly what it will add, asks [y/N], and only then writes. Add --yes to skip the question in a script. With no terminal and no --yes it stops and changes nothing.
- What it writes. One marked block in Codex's own config,
~/.codex/config.toml(orconfig.tomlinside the folder named byCODEX_HOME). The file is not parsed or rewritten: Relief only adds the block, so every other line stays exactly as you wrote it. - A backup first. If the file exists, a copy is saved next to it, named
config.toml.frontier-backup-followed by the time, before anything changes. - It will not fight you. If the file already has a
[mcp_servers.frontier]table that Relief did not write, Relief stops and says so. - It never opens a login file. Codex keeps its sign in in
auth.json. Relief does not read or touch it.
To take it out again:
frontier disconnect codexThat removes the marked block and nothing else. Connect, then disconnect, gives your file back as it was (a file that lacked a final newline gains one).
Or add it by hand
codex mcp add frontier -- frontier mcp
codex mcp list
codex mcp remove frontierThe shape, codex mcp add <name> -- <command>, follows the same documentation, which was checked on 2026-11-19. The command registers a standard input and output server and writes it into ~/.codex/config.toml, or into .codex/config.toml in a trusted project. Codex's flags and file layout change, so if a command here fails, that page is the source of truth.
Trust each project once
As with Claude Code, a tool that touches a folder needs that folder trusted:
cd your-project
frontier trustWithout it, frontier_task answers FOLDER_NOT_TRUSTED at no model cost. See Trusted folders.
What works
All the tools on MCP tools: a second opinion from a different family with frontier_ask, a delegated task with frontier_task, handoffs, and redaction. Relief's AGENTS.md import means the rules you wrote for Codex also guide Relief's own agent. See Memory files.
What does not exist yet
Coming The baton for Codex, meaning hooks that open a takeover when Codex runs out, is not built. Only Claude Code has baton hooks. frontier continue --baton still works by hand in any folder: it makes a checkpoint and Relief carries on from the files and git state, but it has no Codex conversation to read, so tell it what you want done. See The baton.