# codex vs openclaw

> Levels are per column and must not be summed, averaged or ranked. A level states which written criterion the runtime's source meets. It is not a measure of quality or task success. Higher is not always preferable.

Source: "Agent runtime comparison: ten open-source agent runtimes, source review", study of 2026-11-28. Mark notation: `3` is the level in the default deployment; `1→4 [opt: …]` is level 1 by default and level 4 in the named configuration; `s` source-verified, `d` documented or test only. Service dependencies are classes (E embedded, O on demand, R resident service, X external server required), not levels.

Page: https://ai-agents-review.com/compare/codex-vs-openclaw

## Programmable capabilities

| Column | codex | openclaw | Marks differ |
|---|---|---|---|
| [Capability interface](https://ai-agents-review.com/column/capability-interface.md) | [4 s](https://ai-agents-review.com/cell/codex/capability-interface.md) | [3 s](https://ai-agents-review.com/cell/openclaw/capability-interface.md) | yes |
| [Reusable computation](https://ai-agents-review.com/column/reusable-computation.md) | [2 s](https://ai-agents-review.com/cell/codex/reusable-computation.md) | [3 s](https://ai-agents-review.com/cell/openclaw/reusable-computation.md) | yes |
| [Capability transfer](https://ai-agents-review.com/column/capability-transfer.md) | [3 s](https://ai-agents-review.com/cell/codex/capability-transfer.md) | [2 s](https://ai-agents-review.com/cell/openclaw/capability-transfer.md) | yes |

## Evidence and memory

| Column | codex | openclaw | Marks differ |
|---|---|---|---|
| [Durable evidence](https://ai-agents-review.com/column/durable-evidence.md) | [2 s](https://ai-agents-review.com/cell/codex/durable-evidence.md) | [2 s](https://ai-agents-review.com/cell/openclaw/durable-evidence.md) | no |
| [Context recovery](https://ai-agents-review.com/column/context-recovery.md) | [2→3 [opt: memories feature] s](https://ai-agents-review.com/cell/codex/context-recovery.md) | [3 s](https://ai-agents-review.com/cell/openclaw/context-recovery.md) | yes |
| [Memory maintenance](https://ai-agents-review.com/column/memory-maintenance.md) | [0→3 [opt: memories feature] s](https://ai-agents-review.com/cell/codex/memory-maintenance.md) | [4 s](https://ai-agents-review.com/cell/openclaw/memory-maintenance.md) | yes |

## Specialist collaboration

| Column | codex | openclaw | Marks differ |
|---|---|---|---|
| [Specialist definition](https://ai-agents-review.com/column/specialist-definition.md) | [4 s](https://ai-agents-review.com/cell/codex/specialist-definition.md) | [3 s](https://ai-agents-review.com/cell/openclaw/specialist-definition.md) | yes |
| [Continuation](https://ai-agents-review.com/column/continuation.md) | [3 s](https://ai-agents-review.com/cell/codex/continuation.md) | [2 s](https://ai-agents-review.com/cell/openclaw/continuation.md) | yes |
| [Coordination](https://ai-agents-review.com/column/coordination.md) | [2 s](https://ai-agents-review.com/cell/codex/coordination.md) | [3 s](https://ai-agents-review.com/cell/openclaw/coordination.md) | yes |

## Execution controls

| Column | codex | openclaw | Marks differ |
|---|---|---|---|
| [Confinement](https://ai-agents-review.com/column/confinement.md) | [3 s](https://ai-agents-review.com/cell/codex/confinement.md) | [0→3 [opt: sandbox.mode docker] s](https://ai-agents-review.com/cell/openclaw/confinement.md) | yes |
| [Credential handling](https://ai-agents-review.com/column/credential-handling.md) | [2→3 [opt: shell_environment_policy inherit=core/none] s](https://ai-agents-review.com/cell/codex/credential-handling.md) | [2→3 [opt: sandbox docker (env LANG only)] s](https://ai-agents-review.com/cell/openclaw/credential-handling.md) | no |
| [Budget enforcement](https://ai-agents-review.com/column/budget-enforcement.md) | [1→4 [opt: rollout_budget (under development)] s](https://ai-agents-review.com/cell/codex/budget-enforcement.md) | [1 s](https://ai-agents-review.com/cell/openclaw/budget-enforcement.md) | yes |

## Product integration

| Column | codex | openclaw | Marks differ |
|---|---|---|---|
| [Embedding interfaces](https://ai-agents-review.com/column/embedding-interfaces.md) | [2 s](https://ai-agents-review.com/cell/codex/embedding-interfaces.md) | [4 s](https://ai-agents-review.com/cell/openclaw/embedding-interfaces.md) | yes |
| [Declarative configuration](https://ai-agents-review.com/column/declarative-configuration.md) | [3 s](https://ai-agents-review.com/cell/codex/declarative-configuration.md) | [4 s](https://ai-agents-review.com/cell/openclaw/declarative-configuration.md) | yes |
| [Durable execution](https://ai-agents-review.com/column/durable-execution.md) | [2→3 [opt: app-server daemon recovery] s](https://ai-agents-review.com/cell/codex/durable-execution.md) | [4 s](https://ai-agents-review.com/cell/openclaw/durable-execution.md) | yes |

## Operations and verification

| Column | codex | openclaw | Marks differ |
|---|---|---|---|
| [Service dependencies](https://ai-agents-review.com/column/service-dependencies.md) | [E (+R opt: app-server daemon) s](https://ai-agents-review.com/cell/codex/service-dependencies.md) | [R (+X opt: PostgreSQL) s](https://ai-agents-review.com/cell/openclaw/service-dependencies.md) | yes |
| [Execution records](https://ai-agents-review.com/column/execution-records.md) | [2 s](https://ai-agents-review.com/cell/codex/execution-records.md) | [3 s](https://ai-agents-review.com/cell/openclaw/execution-records.md) | yes |
| [Result checks](https://ai-agents-review.com/column/result-checks.md) | [2 s](https://ai-agents-review.com/cell/codex/result-checks.md) | [2 s](https://ai-agents-review.com/cell/openclaw/result-checks.md) | no |

## Rationales

### Capability interface

- codex: Two or more mechanisms with policy filtering; host-executed dynamicTools (experimental API counts per R8); tool_search deferral
- openclaw: Plugin registerTool plus MCP; per-agent layered allow/deny; host-executed tool interface not shown (level 4 unmet)

### Reusable computation

- codex: Skills with scripts and rules rediscovered; no unit re-run with inputs; code-mode store/load in memory only
- openclaw: Cron script payloads re-run as scheduled units; typed params absent by default. unresolved: Lobster run records (engine out of tree)

### Capability transfer

- codex: Skill MCP dependencies checked with install offer; thread/fork and fork_context give fork-vs-fresh choice; no closure-packaging operation
- openclaw: ClawHub install; missing binary disables skill; no fork-vs-fresh transfer choice (level 3 unmet)

### Durable evidence

- codex: Full JSONL rollouts kept, revert writes new file; no explicit rollout retention policy (logs only) (level 3 unmet)
- openclaw: Default pruning policy exists, but in-place UPDATE and suffix replace rewrite records (level 3 unmet)

### Context recovery

- codex: Rollout stored, default reachable only by file re-read; memories tools list/read/search when enabled
- openclaw: Ungated sessions_history/sessions_search over kept rows; spill paths break on restart, no auto injection (level 4 unmet)

### Memory maintenance

- codex: memories off by default; when on, phase-2 consolidation agent runs; retry/leases only [D] (level 4 unmet)
- openclaw: Default nightly dreaming merges/supersedes with 25% loss guard; flush exhausted after 3 failures; versioned skill restore

### Specialist definition

- codex: Roles set prompt/model and can only disable tools; approval, permission profile copied from parent turn (inherit-only); no widening path
- openclaw: agents.entries set model, tools policy, sandbox, prompt files; L4 unmet: tool policy not intersected, ACP path skips admission

### Continuation

- codex: Child rollout reloaded by resume_agent after restart; L4 unmet: v2 mailbox off by default; unresolved: mailbox durability across crash
- openclaw: Session mode is a per-call choice (R1) keeping the child for follow-ups; in-flight children settled as errors; follow-up after restart unresolved

### Coordination

- codex: Depth 1, 6 concurrent, close_agent cascades below a closed child; no evidence that interrupting the parent stops running children (R5, unresolved)
- openclaw: Depth 5, 5 children per requester, cascade cancel; L4 unmet: sessions_send denied to subagents, no tree-wide budget

### Confinement

- codex: Default-on bwrap/seccomp/Seatbelt for shell and apply-patch, network denied; L4 unmet: MCP stdio servers unsandboxed
- openclaw: Default off. Docker sandbox confines exec and file tools (sandboxed read/write/edit, src/agents/core-coding-tools.ts:19-21), network none; auxiliary-process confinement unresolved

### Credential handling

- codex: Default denylist *KEY*/*SECRET*/*TOKEN*; a named config key gives an allowlisted env (R1); auth.json likely readable
- openclaw: Host exec env minus denylist, *_API_KEY passes; Docker sandbox env defaults to LANG only with secret-name blocking

### Budget enforcement

- codex: Default token_budget only steers, cost display only; rollout_budget is pre-call tree-wide admission, in-flight calls billed
- openclaw: Only 48 h timeout, repeat guard and USD display; deep-research plugin counters not a run budget

### Embedding interfaces

- codex: Full lifecycle, approvals and several transports exist, but app-server is labelled [experimental] (codex-rs/cli/src/main.rs:177), which the L2 anchor names
- openclaw: Typed Gateway WS RPC with approval methods plus an ACP stdio bridge shipped in-tree as a second transport (R10)

### Declarative configuration

- codex: Unknown keys only warn by default, but a documented `--strict-config` meets level 3. Level 4 not met because strictness is not the default
- openclaw: Zod strictObject rejects unknown keys by default, with cross-checks; a `config.schema` RPC serves a machine-readable schema

### Durable execution

- codex: Steer and writer lock serialize input. A crash cold-resumes without closing out the turn; only the opt daemon resumes eligible turns, with no idempotency rule
- openclaw: Asynchronous dispatch outlives the client; idempotency keys on input; steer serializes; restart resumes with an explicit no-replay rule

### Service dependencies

- codex: Single local process with embedded SQLite; MCP children; nothing idle. The daemon is optional
- openclaw: Resident Gateway daemon by default, hosting cron, dreaming and channels while idle

### Execution records

- codex: Rollout JSONL persists TurnAborted, but rollout policy marks Error events transient, so failures are not structured records. Level 3 unmet; mutable
- openclaw: Terminal failed/aborted phases with codes; optional OTel via in-tree extensions/diagnostics-otel (R12); not tamper-evident

### Result checks

- codex: Owner Stop hooks re-prompt with no stated cap. The schema is enforced provider-side only, so level 3's stated-cap/block condition is unmet
- openclaw: `before_agent_finalize` forces up to 3 revisions, fails open, then releases
