# openclaw vs pi

> 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/openclaw-vs-pi

## Programmable capabilities

| Column | openclaw | pi | Marks differ |
|---|---|---|---|
| [Capability interface](https://ai-agents-review.com/column/capability-interface.md) | [3 s](https://ai-agents-review.com/cell/openclaw/capability-interface.md) | [3→4 [config: activate built-in tool_search] s](https://ai-agents-review.com/cell/pi/capability-interface.md) | yes |
| [Reusable computation](https://ai-agents-review.com/column/reusable-computation.md) | [3 s](https://ai-agents-review.com/cell/openclaw/reusable-computation.md) | [2 s](https://ai-agents-review.com/cell/pi/reusable-computation.md) | yes |
| [Capability transfer](https://ai-agents-review.com/column/capability-transfer.md) | [2 s](https://ai-agents-review.com/cell/openclaw/capability-transfer.md) | [2 d](https://ai-agents-review.com/cell/pi/capability-transfer.md) | no |

## Evidence and memory

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

## Specialist collaboration

| Column | openclaw | pi | Marks differ |
|---|---|---|---|
| [Specialist definition](https://ai-agents-review.com/column/specialist-definition.md) | [3 s](https://ai-agents-review.com/cell/openclaw/specialist-definition.md) | [1 s](https://ai-agents-review.com/cell/pi/specialist-definition.md) | yes |
| [Continuation](https://ai-agents-review.com/column/continuation.md) | [2 s](https://ai-agents-review.com/cell/openclaw/continuation.md) | [0→3 [alt: pi-durable checkpointed child tasks] s](https://ai-agents-review.com/cell/pi/continuation.md) | yes |
| [Coordination](https://ai-agents-review.com/column/coordination.md) | [3 s](https://ai-agents-review.com/cell/openclaw/coordination.md) | [0→1 [alt: pi-durable] s](https://ai-agents-review.com/cell/pi/coordination.md) | yes |

## Execution controls

| Column | openclaw | pi | Marks differ |
|---|---|---|---|
| [Confinement](https://ai-agents-review.com/column/confinement.md) | [0→3 [opt: sandbox.mode docker] s](https://ai-agents-review.com/cell/openclaw/confinement.md) | [0→2 [alt: Docker / OpenShell / Gondolin (documented)] d](https://ai-agents-review.com/cell/pi/confinement.md) | yes |
| [Credential handling](https://ai-agents-review.com/column/credential-handling.md) | [2→3 [opt: sandbox docker (env LANG only)] s](https://ai-agents-review.com/cell/openclaw/credential-handling.md) | [1 s](https://ai-agents-review.com/cell/pi/credential-handling.md) | yes |
| [Budget enforcement](https://ai-agents-review.com/column/budget-enforcement.md) | [1 s](https://ai-agents-review.com/cell/openclaw/budget-enforcement.md) | [1→2 [alt: pi-durable maxTurns] s](https://ai-agents-review.com/cell/pi/budget-enforcement.md) | yes |

## Product integration

| Column | openclaw | pi | Marks differ |
|---|---|---|---|
| [Embedding interfaces](https://ai-agents-review.com/column/embedding-interfaces.md) | [4 s](https://ai-agents-review.com/cell/openclaw/embedding-interfaces.md) | [4 s](https://ai-agents-review.com/cell/pi/embedding-interfaces.md) | no |
| [Declarative configuration](https://ai-agents-review.com/column/declarative-configuration.md) | [4 s](https://ai-agents-review.com/cell/openclaw/declarative-configuration.md) | [1 s](https://ai-agents-review.com/cell/pi/declarative-configuration.md) | yes |
| [Durable execution](https://ai-agents-review.com/column/durable-execution.md) | [4 s](https://ai-agents-review.com/cell/openclaw/durable-execution.md) | [2→3 [alt: pi-durable] s](https://ai-agents-review.com/cell/pi/durable-execution.md) | yes |

## Operations and verification

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

## Rationales

### Capability interface

- openclaw: Plugin registerTool plus MCP; per-agent layered allow/deny; host-executed tool interface not shown (level 4 unmet)
- pi: Extensions, built-in MCP client, host-registered SDK tools (R8), per-session set; tool_search registered but inactive by default

### Reusable computation

- openclaw: Cron script payloads re-run as scheduled units; typed params absent by default. unresolved: Lobster run records (engine out of tree)
- pi: Skills with scripts persist; codemode scripts not saved; pi-durable journal replay is not unit re-run (level 3 unmet)

### Capability transfer

- openclaw: ClawHub install; missing binary disables skill; no fork-vs-fresh transfer choice (level 3 unmet)
- pi: Pi package install (npm/git/local) documented [D]; fork/clone exist; no dependency checking (level 3 unmet)

### Durable evidence

- openclaw: Default pruning policy exists, but in-place UPDATE and suffix replace rewrite records (level 3 unmet)
- pi: Append-only JSONL trees with tool calls; no retention policy, manual delete only (level 3 unmet)

### Context recovery

- openclaw: Ungated sessions_history/sessions_search over kept rows; spill paths break on restart, no auto injection (level 4 unmet)
- pi: Originals in JSONL; recovery via file lists and temp-file paths only; no transcript search tool (level 3 unmet)

### Memory maintenance

- openclaw: Default nightly dreaming merges/supersedes with 25% loss guard; flush exhausted after 3 failures; versioned skill restore
- pi: No learned-memory facility and no maintenance instruction; AGENTS.md and skills are guidance files

### Specialist definition

- openclaw: agents.entries set model, tools policy, sandbox, prompt files; L4 unmet: tool policy not intersected, ACP path skips admission
- pi: Subagents exist only as shipped example extension; example code does not count toward B

### Continuation

- 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
- pi: No subagents in core CLI (example only); pi-durable checkpointed children with restart limit 5

### Coordination

- openclaw: Depth 5, 5 children per requester, cascade cancel; L4 unmet: sessions_send denied to subagents, no tree-wide budget
- pi: No subagents in core CLI; pi-durable children and signals exist; unresolved: pi-durable depth/concurrency caps, cancellation

### Confinement

- 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
- pi: No approvals or OS boundary in the CLI; documented alternative deployments count at B but are capped at 2 (rule 1)

### Credential handling

- openclaw: Host exec env minus denylist, *_API_KEY passes; Docker sandbox env defaults to LANG only with secret-name blocking
- pi: Full env to bash; only inheritEnv:false for MCP and !command keychain lookups; L2 unmet: no denylist

### Budget enforcement

- openclaw: Only 48 h timeout, repeat guard and USD display; deep-research plugin counters not a run budget
- pi: CLI reports usage only with a 3-retry cap; the pi-durable stack enforces a maxTurns work limit when set (R3); no cost admission

### Embedding interfaces

- openclaw: Typed Gateway WS RPC with approval methods plus an ACP stdio bridge shipped in-tree as a second transport (R10)
- pi: In-process `createAgentSession` (with customTools) plus RPC JSONL with prompt/steer/follow_up/abort/fork; typed events

### Declarative configuration

- openclaw: Zod strictObject rejects unknown keys by default, with cross-checks; a `config.schema` RPC serves a machine-readable schema
- pi: Settings files explicitly not validated at runtime despite published schemas; only `models.json` is type-checked

### Durable execution

- openclaw: Asynchronous dispatch outlives the client; idempotency keys on input; steer serializes; restart resumes with an explicit no-replay rule
- pi: CLI rejects concurrent prompts; orphaned calls get only synthetic transform-time errors, not recorded. pi-durable resumes or settles failed; unresolved: disconnect

### Service dependencies

- openclaw: Resident Gateway daemon by default, hosting cron, dreaming and channels while idle
- pi: Single Node process, no daemon or DB; MCP and fd/rg run as children

### Execution records

- openclaw: Terminal failed/aborted phases with codes; optional OTel via in-tree extensions/diagnostics-otel (R12); not tamper-evident
- pi: JSONL includes tools, failures and retries, but the telemetry contract ships no exporter, so level-3 optional telemetry is unmet

### Result checks

- openclaw: `before_agent_finalize` forces up to 3 revisions, fails open, then releases
- pi: Extension hooks can block or force another turn, with no stated cap; arguments are validated structurally
