· Harness/ Head to head

Claude Code vs Letta

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

Claude Code

Anthropic's coding agent — terminal, IDE and SDK, with hooks, skills and MCP built in.

Proprietary · paid · hosted service only

Configure via .claude/settings.json; drop reusable procedures in .claude/skills/.

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/ 6 of 6 differ
Claude CodeLetta
LicenceProprietaryOpen source
Pricingpaidfreemium
Self-hostableNoYes
LanguagesAny languagePython, TypeScript
Installnpm install -g @anthropic-ai/claude-codepip install letta
Keys requiredANTHROPIC_API_KEYNone
· Common questions/ FAQ

What is the difference between Claude Code and Letta?

The deciding difference is operational: Letta can run on infrastructure you control, Claude Code cannot. If that constraint is real for you, it settles the choice before anything else is considered. Claude Code: Anthropic's coding agent — terminal, IDE and SDK, with hooks, skills and MCP built in. Letta: Stateful agent server where memory is the primary abstraction.

Can Claude Code and Letta be self-hosted?

Claude Code is a hosted service only. Letta can run on your own infrastructure.

Are Claude Code and Letta open source?

Claude Code is proprietary (paid). Letta is open source (freemium).

Build a stack with Claude CodeAll 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/claude-code-vs-letta