Codex connects to Provely through the MCP server, the CLI, the REST API. The agent does the action. Provely verifies the outcome and signs a receipt. Codex never holds the verifier credentials.

A person verified the Codex capabilities on 2026-09-12. Agent products change monthly. Re-verify before you build.

Source: integration profile codex · retrieved 2026-09-12

Which surfaces does Codex use?

SurfaceSupportDetail
MCP serverSupportedtransport stdio, http
CLISupportedRuns through the shell tool of the agent.
SDKNot supported
REST APISupportedAny HTTP call reaches the control plane.

Which guidance files does Codex read?

Provely ships one Agent Skill for this host, so the agent knows to verify an outcome before it claims done. The renderer writes AGENTS.md fragment from one source. A new agent needs a profile, not core code.

Explain: each file, its path and its write mode
FormatPathMode
AGENTS.md fragmentAGENTS.mdappend
CI gate workflow.provely/ci/github-actions.ymlfragment

How is a false completion claim blocked?

Guidance asks. A hook and the CI gate enforce. A host with neither still receives the verdict, and a person reads it before the work ships.

Explain: what each control does on this host
EnforcementSupportDetail
Advisory guidanceSupportedThe instruction files state the rules for every agent.
Lifecycle hooksVerify at implementationPreToolUse, PermissionRequest, PostToolUse, PreCompact, PostCompact, UserPromptSubmit, SubagentStop, Stop, Interrupt, SessionStart, SubagentStart, SessionEnd
CI gateSupportedprovely verify --wait fails the pipeline unless the verdict is VERIFIED.

How do I connect Codex?

Connect Codex to Provely

  1. Install the CLI.Run curl -fsSL https://provely.sh/install.sh | sh. On Windows, run irm https://provely.sh/install.ps1 | iex. Each script verifies the signed checksum before it installs the binary.
  2. Register the MCP server.Add the Provely server. Use provely mcp for stdio, or the hosted HTTP server with a bearer token. The tools are begin, verify, status, and receipt.
  3. Write the guidance files.Run provely init --agent codex. It writes AGENTS.md (append), .provely/ci/github-actions.yml (fragment). The guidance carries one rule: a successful tool call is not completion.
  4. Add the CI gate.Run provely verify --wait <duration> in the pipeline. The step fails unless the verdict is VERIFIED. Exit codes: 0 VERIFIED, 2 PENDING, 3 FAILED, 4 CONTRADICTED, 5 UNVERIFIABLE, 1 error.
  5. Report the verdict exactly as returned.VERIFIED: "The action is verified complete. Receipt: <id>." PENDING: "The action is accepted but not yet verified. Operation: <id>."

What else does the profile state?

  • Verified 2026-09-12: Codex reads AGENTS.override.md, then AGENTS.md, at every level from the git root to the working directory. A deeper file wins. Source: https://learn.chatgpt.com/docs/agent-configuration/agents-md.
  • Verified 2026-09-12: Codex reads [mcp_servers.<name>] from ~/.codex/config.toml and from .codex/config.toml of the project. A stdio entry states command, args, env and cwd. An HTTP entry states url. Source: https://learn.chatgpt.com/docs/extend/mcp.
  • The Codex config is TOML, so this profile states no config_path and init writes no MCP file. Add [mcp_servers.provely] with command = "provely" and args = ["mcp"] by hand, or run codex mcp add.
  • Verified 2026-09-12: a remote Codex MCP server takes auth, bearer_token_env_var and http_headers. The auth field defaults to oauth. Never write a key into the file. Source: https://learn.chatgpt.com/docs/extend/mcp.
  • Verified 2026-09-12: Codex states 12 hook events, and this profile names all 12 in the order of the page. The earlier profile named none. Source: https://learn.chatgpt.com/docs/hooks.
  • Verified 2026-09-12: hooks live in ~/.codex/hooks.json, in <repo>/.codex/hooks.json, or in a [[hooks.EventName]] table of config.toml. Source: https://learn.chatgpt.com/docs/hooks.
  • Verified 2026-09-12: a project hook loads only when the .codex layer of the project is trusted. A fresh checkout therefore runs no hook. Source: https://learn.chatgpt.com/docs/hooks.
  • Verified 2026-09-12: PreToolUse denies a tool call with permissionDecision deny, or with exit code 2. PermissionRequest denies with behavior deny. PostToolUse and UserPromptSubmit answer decision block. Source: https://learn.chatgpt.com/docs/hooks.
  • Verified 2026-09-12: the Stop hook answers decision block with a reason, and Codex starts a continuation prompt that acts as a new user prompt. The hook does not end a turn. Source: https://learn.chatgpt.com/docs/hooks.
  • Verified 2026-09-12: most hooks time out after 600 seconds. SessionEnd and Interrupt time out after 1 second, and 3 seconds is the maximum. Source: https://learn.chatgpt.com/docs/hooks.
  • Verified 2026-09-12: requirements.toml holds allow_managed_hooks_only. A true value drops every user, project, session and plugin hook, and keeps the managed hooks. Source: https://learn.chatgpt.com/docs/hooks.
  • This repository ships no Codex hook script, so hooks.supported stays verify_at_implementation. A yes makes the rendered files claim an enforcement that we do not ship. Read profiles/README.md.
  • The CI gate and the scanner are the enforcement for Codex today. A PreToolUse hook is the next step, and it needs one script and one registration snippet.
  • Needs verification: no page states the Codex version that added hooks. The supported range stays >=0.100.0. Check the installed binary before you register a hook.
  • Cloud Codex tasks read the same AGENTS.md. The CI gate verifies before merge.

Codex keeps its action credentials, and no surface returns the verifier credentials to it. Read the credential boundary. An operation outlives the session that opened it. Read the API reference.

Which host versions does the profile cover?

>=0.100.0. The integrations team last verified the profile with 0.154.0 on 2026-09-12 (npm @openai/codex, the latest tag).