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.
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
Memory
Memory blocks in MemFS: files in a git repository that the agent reads, rewrites and reorganizes, plus a background process Letta calls dreaming.
Where it runs
Letta Cloud, your own machine, or the Letta App Server on a server you run.
Open source
Letta Code is open source under Apache-2.0.
Pricing
API plan: $20 a month, plus $0.10 per active agent a month and $0.00015 per second of tool execution.
Pick Letta if
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.
camelRun
Memory
Full 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
Hosted on run.camelai.com, deployed to your own Cloudflare account with Wrangler, or experimentally self-hosted on your own machines with celld.
Open source
Open source under AGPL-3.0 on GitHub (qaml-ai/run), built on Cloudflare Workers, SQLite Durable Objects, R2, Queues, and Containers.
Pricing
$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.
Pick camelRun if
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.
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.
1importos2frompathlibimportPath3importhttpx45BASE="https://run.camelai.com"6KEY=os.environ["CAMELRUN_API_KEY"]7HEADERS={"Authorization":f"Bearer {KEY}"}89withhttpx.Client(base_url=BASE,headers=HEADERS,timeout=120)asclient:10agent=client.put("/v2/agents/data-analyst-py",json={11"model":"gemini/gemini-4-neon",12"instructions":(13"Analyse data/sales.csv using Python 3 in bash. "14"Write findings to /workspace/out/report.md."15),16"builtins":["files","bash"],17"dreaming":{"enabled":True,"idleSeconds":3600},18}).json()1920repo=agent["repoId"]21client.post(f"/v2/repos/{repo}/write",json={22"puts":[{"path":"data/sales.csv","content":Path("sales.csv").read_text()}],23})24run=client.post("/v2/agents/data-analyst-py/runs",json={25"prompt": "Which regions and products are growing or shrinking? Revenue = units * unit_price.",26"wait":True,27}).json()28print(run["text"])2930report=client.get(f"/v2/repos/{repo}/files",params={"path":"out/report.md"}).json()31Path("report.md").write_text(report["content"])32print("saved report.md")
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
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.
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.
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.
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.
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.
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.