· Harness/ Head to head

OpenCode vs Letta

Both are open source harness options with comparable terms, so the choice comes down to which model of the problem you prefer — compare the descriptions below rather than the licence.

OpenCode

Open-source terminal coding agent, provider-agnostic.

Open source · can be self-hosted

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/ 3 of 6 differ
OpenCodeLetta
LicenceOpen sourceOpen source
Pricingopen sourcefreemium
Self-hostableYesYes
LanguagesAny languagePython, TypeScript
Installnpm install -g opencode-aipip install letta
Keys requiredNoneNone
· Common questions/ FAQ

What is the difference between OpenCode and Letta?

Both are open source harness options with comparable terms, so the choice comes down to which model of the problem you prefer — compare the descriptions below rather than the licence. OpenCode: Open-source terminal coding agent, provider-agnostic. Letta: Stateful agent server where memory is the primary abstraction.

Can OpenCode and Letta be self-hosted?

OpenCode can run on your own infrastructure. Letta can run on your own infrastructure.

Are OpenCode and Letta open source?

OpenCode is open source (open source). Letta is open source (freemium).

Build a stack with OpenCodeAll 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/opencode-vs-letta