Compare · camelRun by camelAI
Cloudflare Agents alternative
Built on Cloudflare Durable Objects. Operated as a runtime.
camelRun by camelAI actually runs on Cloudflare Workers, SQLite Durable Objects, R2, Cloudflare Containers, and Browser Rendering. Instead of building and operating the agent loop, compaction, versioned camelFS, containers, and recovery yourself on the Agents SDK, use camelRun managed or self-host the AGPL-3.0 runtime in your own Cloudflare account while your Worker keeps the tools.
- Draft the Q4 roadmapalice
- Fix the flaky billing testbob
- AliceWhat's left for this week?
- Agentasleep
- Alice's message
- model call
- list_todos
- model call
- reply
Cloudflare Workers
Serve AI agent tools from Cloudflare Workers
Call /v2/agents/:key/runs from your Worker over HTTPS, and keep your tools in your Worker behind runtime-authenticated MCP or async 202 webhooks.
// Cloudflare Worker: runtime-auth MCP (/mcp) + async 202 webhook (/tools/export).
import { createRemoteJWKSet, jwtVerify } from "jose";
const JWKS = createRemoteJWKSet(
new URL("https://run.camelai.com/v2/.well-known/jwks.json"),
);
const todos = [
{ id: "t1", owner: "alice", team: "acme", text: "Draft the Q4 roadmap", done: false },
{ id: "t2", owner: "bob", team: "acme", text: "Fix the flaky billing test", done: false },
{ id: "t3", owner: "alice", team: "globex", text: "Another team's to-do", done: false },
];
export default {
async fetch(req: Request, env: Env, ctx: ExecutionContext) {
const { pathname } = new URL(req.url);
if (pathname === "/mcp") {
const jwt = req.headers.get("authorization")?.slice(7) ?? "";
const { payload } = await jwtVerify(jwt, JWKS); // Ed25519: sub + act
const actor = String(payload.act ?? payload.sub);
return handleMcp(req, () => todos.filter((t) => t.owner === actor && t.team === "acme"));
}
if (pathname === "/tools/export" && req.headers.get("x-tool-secret") === env.TOOL_SECRET) {
const { args, callback } = await req.json<any>(); // X-CamelRun-Agent + X-CamelRun-Run
ctx.waitUntil(runExportAndPostCallback(args, callback));
return new Response(null, { status: 202 });
}
return new Response("Not found", { status: 404 });
},
};- tool_call_start
- tool_call_end
[{"id":"t1",
- Scoped browser streaming
- Upsert the user's agent from your Worker, hand the browser its scoped agt_tok_ token, and stream GET /v2/agents/todos-alice/events?after=0 directly over SSE.
GET /v2/agents/todos-alice/events?after=0- Runtime-auth MCP and async 202 webhooks
- Remote MCP servers with auth: { type: "runtime" } receive short-lived Ed25519 JWTs (sub and act). Webhook tools get X-CamelRun-Agent, X-CamelRun-Run, your configured headers, and signed callback tokens on 202.
auth: { type: "runtime" } // JWKS: /v2/.well-known/jwks.json- Schedules, camelFS, and Browser Rendering
- Turn on cron schedules, versioned camelFS repos, Linux container bash, QuickJS codemode, and headless Browser Rendering without maintaining Cloudflare bindings or warm pools yourself.
- Your provider keys and AI Gateway
- Save your provider keys with PUT /v2/providers/:provider and an optional baseUrl to route through Cloudflare AI Gateway, with $0 token charges from camelRun on BYOK.
Agents SDK to camelRun
How Cloudflare Agents SDK ideas map to camelRun
Both run on Cloudflare Durable Objects. The difference is whether your team builds and operates the agent harness, compaction, versioned camelFS, container lifecycle, and recovery—or hands them to camelRun.
Our Cloudflare story
We built on Cloudflare first
Our coding agent started in Durable Objects, taught us what a durable agent runtime needs, and brought camelRun v2 back to run natively on Cloudflare.
- Jul 2026
Our first agent moves to Durable Objects
We took our coding agent off VMs and gave each chat thread its own Cloudflare Durable Object. It got cheaper and faster, and taught us what long-running agents need to survive restarts.
- Sep 2026
v1 tests a standalone runtime
In September we built camelRun v1 off Cloudflare to work out durable agent harnesses, compaction, and debugging for camelCode and camelBot (documented in our September post below).
- v2 · Today
camelRun v2 returns to Cloudflare
We rebuilt camelRun v2 natively on Cloudflare Workers, SQLite Durable Objects, R2, Queues, Containers, and Browser Rendering, and open-sourced it under AGPL-3.0 so you can use ours or deploy to your own Cloudflare account.
“I'd still start almost any project on Cloudflare Workers, because they're the fastest way I know to ship something.”
Agents SDK or camelRun for your Workers app
Pick the Agents SDK
You want to write and operate the agent class, compaction, file storage, container wiring, and restart recovery yourself inside your own Cloudflare Durable Objects.
Pick camelRun
You want the agent harness, compaction, versioned camelFS, pre-warmed Linux containers, Browser Rendering, and recovery operated for you on Cloudflare (or self-hosted under AGPL-3.0) while your Worker keeps the tools.
What Cloudflare developers ask about camelRun
What is Cloudflare Agents SDK?
Cloudflare's open-source TypeScript SDK builds AI agents on Durable Objects in your account, with SQLite storage, WebSockets, and scheduled alarms.
How is camelRun different if it also runs on Cloudflare?
Cloudflare's SDK provides primitives for building an agent runtime. camelRun v2 runs the loop, compaction, file storage, and recovery on Cloudflare and serves a hosted HTTPS API.
Can I use camelRun from Cloudflare Workers?
Yes. Call /v2 with fetch. Issue a scoped agt_tok_ token to serve each user's chat over SSE. Keep tools in your Worker behind runtime-authenticated MCP or async 202 webhooks.
Can I deploy camelRun into my own Cloudflare account?
Yes. Deploy the AGPL-3.0 runtime from qaml-ai/run into your Cloudflare account with Wrangler, or try experimental self-hosting with celld.
What happens to a running agent when I deploy my Worker?
Your deploys leave it alone. The agent runs in camelRun while your Worker serves tools. Long-running webhooks can return 202 Accepted and POST back with a signed callback token.
What does an AI agent per user cost on camelRun?
camelRun is prepaid: $0.05 per active agent-hour, $0 while idle, queued, or parked, and $0.00005 per second ($0.18/hr) for active Linux container bash with free pre-warming. camelFS and history storage are $0 right now; model tokens are $0 from camelRun on BYOK or pass-through on direct providers.
Give each user an AI agent
- ScheduleFriday morning check-in
- AgentMorning, Alice. The Q4 roadmap is still open.
Keep the agent-per-name model you know from Durable Objects without operating the loop, versioned camelFS, or containers yourself. Your Worker keeps its tools.
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.
- camelRunOpen-source durable AI agent runtime on Cloudflare: keyed agents, camelFS, Linux containers, and your tools.
- ConceptsKeyed agents, runs, SSE events, camelFS, and where tools run.
- Source on GitHub (AGPL-3.0)Read the Cloudflare Workers, SQLite Durable Objects, R2, and Containers runtime or deploy to your own account.
- Managed agents comparedCompare managed agent platforms by where agents run, which models they support, how they keep state, and how you can migrate.
- Vercel eve alternativeCompare Vercel eve with camelRun's durable agents on Cloudflare. Define agents over the REST API and give them Linux containers, versioned camelFS repos, and webhook tools.
- Multi-tenant AI agentsGive each user or thread a keyed agent with its own history and workspace. Runtime-authenticated MCP calls carry Ed25519-signed JWTs proving the agent and end-user.
- Code mode for AI agentsRun model-written JavaScript in a QuickJS sandbox that can call tools, including remote MCP tools. Agents can also run bash in a Linux container.
- AWS Bedrock AgentCore alternativeKeep using the AWS SDK for AgentCore Memory through /agentcore. A one-way importer copies supported definitions, memory, and session history into camelRun.
- Background AI agentsWake an agent on a schedule or with an HTTP webhook. It keeps its history and files between runs and costs $0 in agent time while idle.