Compare · camelRun by camelAI

Letta AI alternative

Stateful AI agents with inspectable memory, dreaming, and Linux

camelRun v2 is an open-source runtime for stateful AI agents. Every agent gets SQLite history, versioned camelFS files, idle dreaming into MEMORY.md, instant copy-on-write forks at atSeq, and Linux container bash with Python 3. Run on run.camelai.com, your own Cloudflare account, or experimentally with celld.

Ask the agent

On Letta's retired V1 server? Move your agents

Letta vs camelRun

How Letta and camelRun give AI agents memory

Memory
LettaMemory blocks in MemFS: files in a git repository that the agent reads, rewrites and reorganizes, plus a background process Letta calls dreaming.
camelRunFull SQLite history, versioned camelFS commits your code reads and writes, idle dreaming into MEMORY.md, and instant copy-on-write agent and repo forks at atSeq.
Where it runs
LettaLetta Cloud, your own machine, or the Letta App Server on a server you run.
camelRunHosted on run.camelai.com, deployed to your own Cloudflare account with Wrangler, or experimentally self-hosted on your own machines with celld.
Open source
LettaLetta Code is open source under Apache-2.0.
camelRunOpen source under AGPL-3.0 on GitHub (qaml-ai/run), built on Cloudflare Workers, SQLite Durable Objects, R2, Queues, and Containers.
Pricing
LettaAPI plan: $20 a month, plus $0.10 per active agent a month and $0.00015 per second of tool execution.
camelRun$0.05 per active agent-hour, $0 while idle or parked, $0.00005/sec ($0.18/hr) for active container bash with free pre-warming, and $0 storage right now. Prepaid, no subscription.
Who should pick which
Pick Letta if you want one agent that learns about you and keeps the same memory from your terminal to the web and your chat apps.
Pick camelRun if you're building a product where every customer, ticket or thread gets its own durable agent, and your code needs inspectable history, versioned camelFS files, dreaming, and Linux container bash.

Letta's side is from Letta's own site and docs, checked October 22, 2026.

Letta's pricing pageSource on GitHub

History and files

Read everything your AI agent keeps

This script writes a sales CSV into the agent's versioned camelFS repo. The agent analyzes it with Python 3 in Linux container bash, writes a Markdown report, and consolidates notes into MEMORY.md while idle. Your code reads both back over REST.

  • Idle dreaming into MEMORY.md

    Enable dreaming (or call POST /v2/agents/:key/dream) and the agent consolidates durable lessons into /workspace/MEMORY.md as plain Markdown your code can inspect.

  • Inspectable, versioned camelFS commits

    Every file edit or bash command commits to the agent's content-addressed camelFS repo, so your code can read, diff, or restore any commit over REST.

  • Instant copy-on-write forks at atSeq

    Call POST /v2/agents/:key/fork with an atSeq cursor to branch both conversation history and the camelFS repo instantly—without touching the original agent.

main.py
import os
from pathlib import Path
import httpx

BASE = "https://run.camelai.com"
KEY = os.environ["CAMELRUN_API_KEY"]
HEADERS = {"Authorization": f"Bearer {KEY}"}

with httpx.Client(base_url=BASE, headers=HEADERS, timeout=120) as client:
    agent = client.put("/v2/agents/data-analyst-py", json={
        "model": "gemini/gemini-4-neon",
        "instructions": (
            "Analyse data/sales.csv using Python 3 in bash. "
            "Write findings to /workspace/out/report.md."
        ),
        "builtins": ["files", "bash"],
        "dreaming": {"enabled": True, "idleSeconds": 3600},
    }).json()

    repo = agent["repoId"]
    client.post(f"/v2/repos/{repo}/write", json={
        "puts": [{"path": "data/sales.csv", "content": Path("sales.csv").read_text()}],
    })
    run = client.post("/v2/agents/data-analyst-py/runs", json={
        "prompt": "Which regions and products are growing or shrinking? Revenue = units * unit_price.",
        "wait": True,
    }).json()
    print(run["text"])

    report = client.get(f"/v2/repos/{repo}/files", params={"path": "out/report.md"}).json()
    Path("report.md").write_text(report["content"])
    print("saved report.md")
Terminal
pip install httpx
export CAMELRUN_API_KEY=cr_live_...
python main.py
Comparing revenue in January and June 2026:
- Growing: All North products; South Widget and Gizmo; all West products.
- Shrinking: South Gadget, down 32.1% (from $1,092 to $741).
saved report.md
v2 quickstart on GitHub
run.camelai.com/console/agents/agt_3e9f07a4c1b2…
Agents

agt_3e9f07a4c1b2d5e86f0a91c4

Asleepgemini/gemini-4-neon· files + bashLearn more

/workspaceread-writerepo_8c41f0e2a97b53d6c0e1f4a2Upload
/out
NameSize
report.md362 B

Letta V1 server API

Move your agents off the retired Letta V1 server

Letta retired its V1 API server: the last release, 0.16.8, came out on May 14, 2026. Here is where each part of it lives in camelRun.

Letta's note on GitHub

FAQ

Questions about Letta AI and camelRun

  1. Is Letta AI free?

    Letta has a starter plan and local self-hosting. Paid plans start at $20/month (checked October 22, 2026). camelRun charges $0.05 per active agent-hour and $0.18/hr for active bash with free pre-warming. Idle time and storage cost $0.

  2. Is Letta AI open source?

    Yes. Letta Code is Apache-2.0. camelRun v2 is AGPL-3.0 on GitHub. You can host it yourself on Cloudflare with Wrangler or try experimental self-hosting with celld.

  3. How to use Letta AI vs camelRun?

    For a personal terminal agent on Letta, run npm install -g @letta-ai/letta-code and letta, or use chat.letta.com. To give every user of your product a stateful agent on camelRun, create a cr_live_ key and call PUT /v2/agents/:key over HTTPS, or connect Claude Code or Codex to run.camelai.com/mcp.

  4. Can I move my agents off the Letta V1 server API?

    Yes. Create one keyed agent per Letta agent, import messages with POST /v2/agents/:key/import-history, save memory blocks to MEMORY.md, and connect tools over MCP or webhooks.

  5. How does a camelRun agent remember things between conversations?

    Each agent retains its SQLite history after a long conversation is summarized for the model. Its versioned camelFS stores MEMORY.md notes from idle dreaming. Fork history and files at any atSeq.

  6. Can I take my agent's memory with me if I leave camelRun?

    Yes. Every message is readable through GET /v2/agents/:key/history and every file and commit lives in camelFS under /v2/repos/:repoId. Because camelRun v2 is open source under AGPL-3.0, you can also run the same API in your own Cloudflare account.

Keep reading

More on stateful AI agents

AI agents with memory you can read

Get an API key Read the quickstart

Your first agent takes a few lines.

Connect your coding agent (no key)

claude mcp add --transport http camelrun https://run.camelai.com/mcp

Adds camelRun's hosted MCP server to Claude Code (also works with Codex and ChatGPT). Signing in creates your account automatically.