· Harness/ Head to head

Codex CLI vs Letta

The deciding difference is operational: Letta can run on infrastructure you control, Codex CLI cannot. If that constraint is real for you, it settles the choice before anything else is considered.

Codex CLI

OpenAI's terminal coding agent.

Open source · paid · hosted service only

Letta

Stateful agent server where memory is the primary abstraction.

Open source · freemium · can be self-hosted · SDKs for Python and TypeScript

· Side by side/ 5 of 6 differ
Codex CLILetta
LicenceOpen sourceOpen source
Pricingpaidfreemium
Self-hostableNoYes
LanguagesAny languagePython, TypeScript
Installnpm install -g @openai/codexpip install letta
Keys requiredOPENAI_API_KEYNone
· Common questions/ FAQ

What is the difference between Codex CLI and Letta?

The deciding difference is operational: Letta can run on infrastructure you control, Codex CLI cannot. If that constraint is real for you, it settles the choice before anything else is considered. Codex CLI: OpenAI's terminal coding agent. Letta: Stateful agent server where memory is the primary abstraction.

Can Codex CLI and Letta be self-hosted?

Codex CLI is a hosted service only. Letta can run on your own infrastructure.

Are Codex CLI and Letta open source?

Codex CLI is open source (paid). Letta is open source (freemium).

Build a stack with Codex CLIAll harness options
· For agents/ This page, machine-readable

Every page here answers to Accept: text/markdown and returns the same content at roughly a tenth the tokens. No separate site, no toggle — same URL.

curl -s -H "Accept: text/markdown" https://newagent.build/compare/codex-cli-vs-letta