# letta-code 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/letta-code-vs-openclaw

## Programmable capabilities

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

## Evidence and memory

| Column | letta-code | openclaw | Marks differ |
|---|---|---|---|
| [Durable evidence](https://ai-agents-review.com/column/durable-evidence.md) | [2 d](https://ai-agents-review.com/cell/letta-code/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: experimental local backend] d](https://ai-agents-review.com/cell/letta-code/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) | [4 s](https://ai-agents-review.com/cell/letta-code/memory-maintenance.md) | [4 s](https://ai-agents-review.com/cell/openclaw/memory-maintenance.md) | no |

## Specialist collaboration

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

## Execution controls

| Column | letta-code | openclaw | Marks differ |
|---|---|---|---|
| [Confinement](https://ai-agents-review.com/column/confinement.md) | [2 s](https://ai-agents-review.com/cell/letta-code/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) | [1 s](https://ai-agents-review.com/cell/letta-code/credential-handling.md) | [2→3 [opt: sandbox docker (env LANG only)] s](https://ai-agents-review.com/cell/openclaw/credential-handling.md) | yes |
| [Budget enforcement](https://ai-agents-review.com/column/budget-enforcement.md) | [2 s](https://ai-agents-review.com/cell/letta-code/budget-enforcement.md) | [1 s](https://ai-agents-review.com/cell/openclaw/budget-enforcement.md) | yes |

## Product integration

| Column | letta-code | openclaw | Marks differ |
|---|---|---|---|
| [Embedding interfaces](https://ai-agents-review.com/column/embedding-interfaces.md) | [4 s](https://ai-agents-review.com/cell/letta-code/embedding-interfaces.md) | [4 s](https://ai-agents-review.com/cell/openclaw/embedding-interfaces.md) | no |
| [Declarative configuration](https://ai-agents-review.com/column/declarative-configuration.md) | [1 s](https://ai-agents-review.com/cell/letta-code/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 d](https://ai-agents-review.com/cell/letta-code/durable-execution.md) | [4 s](https://ai-agents-review.com/cell/openclaw/durable-execution.md) | yes |

## Operations and verification

| Column | letta-code | openclaw | Marks differ |
|---|---|---|---|
| [Service dependencies](https://ai-agents-review.com/column/service-dependencies.md) | [X (+E alt: local backend) s](https://ai-agents-review.com/cell/letta-code/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) | [1 d](https://ai-agents-review.com/cell/letta-code/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/letta-code/result-checks.md) | [2 s](https://ai-agents-review.com/cell/openclaw/result-checks.md) | no |

## Rationales

### Capability interface

- letta-code: Mods and host-injected external tools; per-subagent tool lists; MCP not native; no deferral/search (level 4 unmet)
- openclaw: Plugin registerTool plus MCP; per-agent layered allow/deny; host-executed tool interface not shown (level 4 unmet)

### Reusable computation

- letta-code: Workflow script, args and journal saved, re-run by scriptPath; crons hold prompts, no scheduled workflow or typed params
- openclaw: Cron script payloads re-run as scheduled units; typed params absent by default. unresolved: Lobster run records (engine out of tree)

### Capability transfer

- letta-code: Skill install and MemFS restore are [D]; fork type carries conversation; no dependency checking (level 3 unmet)
- openclaw: ClawHub install; missing binary disables skill; no fork-vs-fresh transfer choice (level 3 unmet)

### Durable evidence

- letta-code: Cloud messages server-side [D] plus client transcript copy; no retention policy; local file rewritten on fork
- openclaw: Default pruning policy exists, but in-place UPDATE and suffix replace rewrite records (level 3 unmet)

### Context recovery

- letta-code: Cloud compaction/search [D] caps D; local mode keeps rows with default BM25 search and recall subagent
- openclaw: Ungated sessions_history/sessions_search over kept rows; spill paths break on restart, no auto injection (level 4 unmet)

### Memory maintenance

- letta-code: MemFS auto-enabled on Cloud (index.ts:1808); reflection every 25 steps; rebase-retry/backoff; git versioning (not Windows/detached headless)
- openclaw: Default nightly dreaming merges/supersedes with 25% loss guard; flush exhausted after 3 failures; versioned skill restore

### Specialist definition

- letta-code: Markdown frontmatter sets tools, model, prompt; L4 unmet: child forced --permission-mode unrestricted, widening when parent interactive
- openclaw: agents.entries set model, tools policy, sandbox, prompt files; L4 unmet: tool policy not intersected, ACP path skips admission

### Continuation

- letta-code: Follow-ups via agent_id reuse child conversation; live state in memory; unresolved: resume of ephemeral API children after restart
- 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

- letta-code: Depth 2, 32 concurrent tasks, process-group cancel; L4 unmet: no tree-wide budget for Task children (messaging server-side [D])
- openclaw: Depth 5, 5 children per requester, cascade cancel; L4 unmet: sessions_send denied to subagents, no tree-wide budget

### Confinement

- letta-code: OS sandbox default-on only for memory subagents; main shell unconfined under unrestricted mode; network never isolated
- 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

- letta-code: Full env inherited plus injected LETTA_API_KEY; only exact-match redaction and Bun keychain; L2 unmet: no denylist
- openclaw: Host exec env minus denylist, *_API_KEY passes; Docker sandbox env defaults to LANG only with secret-name blocking

### Budget enforcement

- letta-code: Workflow maxCostUsd is a per-call parameter of a default tool (R1); post-step, per run; main agent reporting only
- openclaw: Only 48 h timeout, repeat guard and USD display; deep-research plugin counters not a run budget

### Embedding interfaces

- letta-code: Headless stream-json plus a WebSocket app server with typed protocol, abort, `can_use_tool` control requests and an external-tool-call handler
- openclaw: Typed Gateway WS RPC with approval methods plus an ACP stdio bridge shipped in-tree as a second transport (R10)

### Declarative configuration

- letta-code: JSON spread over defaults; no schema; unknown keys pass through
- openclaw: Zod strictObject rejects unknown keys by default, with cross-checks; a `config.schema` RPC serves a machine-readable schema

### Durable execution

- letta-code: Cloud background runs and busy handling are server-side [D], so the evidence cap is 2. Local mode loses runs on a crash
- openclaw: Asynchronous dispatch outlives the client; idempotency keys on input; steer serializes; restart resumes with an explicit no-replay rule

### Service dependencies

- letta-code: Default API mode needs a reachable Letta server every turn; the local backend uses provider endpoints only
- openclaw: Resident Gateway daemon by default, hosting cron, dreaming and channels while idle

### Execution records

- letta-code: Local transcript/debug files; background failures often only in the debug log; tool-error recording unresolved; server records [D]
- openclaw: Terminal failed/aborted phases with codes; optional OTel via in-tree extensions/diagnostics-otel (R12); not tamper-evident

### Result checks

- letta-code: Hooks: exit 2 blocks, but errors and timeouts fail open; Stop-hook re-prompts have no stated cap
- openclaw: `before_agent_finalize` forces up to 3 revisions, fails open, then releases
