Connect Codex to AvowGate

Last updated: November 25, 2026

Codex will tell you a task is done. AvowGate keeps a checklist of what Codex committed to, links each item to a named test, and answers pass or blocked for the exact version of your code. This page shows how to connect Codex, what you can see about what it did, and the limits.

Before you start

You need an AvowGate account (access is by request while AvowGate is in private beta; ask on the home page). Create an agent token under Settings in the app. The agent token can read and write, and it can never sign off. Keep it in an environment variable, not in a file you commit.

Connect Codex

Put the token in an environment variable, then add AvowGate as an MCP server:

export AVOWGATE_TOKEN=YOUR_TOKEN
codex mcp add avowgate --url https://avowgate.com/api/v1/mcp --bearer-token-env-var AVOWGATE_TOKEN

Restart Codex after changing its settings.

Make it follow the loop

The one-command setup (Set up my agent, in the app) also writes your workspace's agent rules into AGENTS.md in your project. The rules say how to work with AvowGate: start a task, write requirements and tests first, report real results, check the gate. The block is marked "managed by AvowGate" and everything else in the file is kept.

How a task goes

  1. at_task_start with a title and objective, then at_commitment for each thing Codex will make true.
  2. Make the change, then at_create_test and at_link_spec_test to register each test by its exact name and link it to its commitment.
  3. Run the tests and report them with at_report_results, including the commit.
  4. at_check_gate answers pass or blocked with reasons. at_task_close succeeds only when every commitment is settled and the gate passes.

See what Codex did

Agent Watch works with Codex through the one-command setup. It adds a hook to .codex/hooks.json. Codex skips a new hook until you approve it with /hooks.

The hook reports shell commands, file edits and connected-tool calls, but not Codex's own web search. It has run in a live Codex session, where shell commands and file edits were seen in Watch.

What the hook or plugin sends, where it goes and how to remove it are on the Agent Watch safety page.

Limits

Questions

How do I connect Codex to AvowGate?

Create an agent token under Settings in the app, keep it in an environment variable, and add AvowGate as an MCP server at https://avowgate.com/api/v1/mcp using the setup on this page. The token can read and write but can never sign off.

Can Codex sign off its own work in AvowGate?

No. Codex can add and strengthen requirements, report results and read everything. Only a person can sign off a risk, dismiss a finding, promote a rule or retire a test.

Does Agent Watch work with Codex?

Yes, through a hook added by the one-command setup (approve it with /hooks). It reports shell commands, file edits and connected-tool calls, but not Codex's own web search.

Is AvowGate a sandbox for Codex?

No. AvowGate records what was asked and what was reported, and refuses to call a task done without proof. It cannot stop Codex from running a command.

More

Other agents: Claude Code, Cursor, OpenCode. The guide has all four side by side, and pricing lists the plans.