Compare · Temporal

Temporal alternative for AI agents

camelRun by camelAI runs durable AI agents with no workflow or worker boilerplate, plus deterministic replay, atSeq forks, and async 202 callbacks.camelRun by camelAI runs durable AI agents with no workflow, activity, or worker boilerplate required—and adds built-in deterministic replay workflows, instant atSeq forks, and async 202 tool callbacks when you want code-driven orchestration.

One run of a research agent shown twice. On Temporal you write the workflow and activities and operate the workers; after a failure, the activity retries and another worker replays the workflow from event history. On camelRun v2 your app calls POST /v2/agents/research/runs over HTTPS; AgentDO commits conversation boundaries in SQLite and emits run_resumed to settle cleanly after a restart.

research-agent · one run
yourscamelRun's

The whole agent

Durable AI agents with no workflow code

Start with plain HTTPS—no workflow, activity, or worker boilerplate required. Upsert a keyed agent with web_search, web_fetch, and optional async 202 webhook tools. When you do want multi-step orchestration, run deterministic replay workflows (POST /v2/agents/:key/workflows) or fork history and camelFS at any atSeq.

index.ts
const BASE = "https://run.camelai.com/v2/agents/research-agent";
const HEADERS = {
  Authorization: `Bearer ${process.env.CAMELRUN_API_KEY}`,
  "Content-Type": "application/json",
};

// Upsert by key: durable SQLite history, built-ins, and async 202 webhook tool.
await fetch(BASE, {
  method: "PUT",
  headers: HEADERS,
  body: JSON.stringify({
    model: "gemini/gemini-4-neon",
    instructions: "Research carefully with web_search and web_fetch. Cite every claim with [n].",
    builtins: ["web_search", "web_fetch", "workflows"],
    tools: [{
      name: "publish_brief",
      url: "https://app.example.com/tools/publish",
      async: true, // answers 202 Accepted; POSTs back with signed callback token
      headers: { "x-tool-secret": process.env.TOOL_SECRET! },
    }],
  }),
});

const run = await fetch(`${BASE}/runs`, {
  method: "POST",
  headers: HEADERS,
  body: JSON.stringify({
    prompt: "What changed in the most recent Node.js LTS release?",
    idempotencyKey: "release-brief-2026-12-01",
    wait: true,
  }),
}).then((r) => r.json());
console.log(run.text);
camelRun does the workruns in your process
replay-workflow.ts
// Optional: deterministic replay workflow (cached in AgentDO step_cache)
await fetch(`${BASE}/workflows`, {
  method: "POST",
  headers: HEADERS,
  body: JSON.stringify({
    idempotencyKey: "lts-audit-v24",
    code: `
      const notes = await wf.agent("Summarize Node 24 LTS changes.");
      await wf.bash("python3 scripts/verify_links.py");
      await wf.commit("record verified brief");
      return notes;
    `,
  }),
});

// Branch agent history + camelFS repo at any event sequence:
await fetch(`${BASE}/fork`, {
  method: "POST", headers: HEADERS,
  body: JSON.stringify({ key: "research-branch", atSeq: 18 }),
});
research-agent
export CAMELRUN_API_KEY=cr_live_...
npx tsx index.ts
npx tsx replay-workflow.ts
→ web_search({"query":"site:nodejs.org/en/blog/release most recent Node.js LTS release"})
→ web_fetch({"url":"https://nodejs.org/en/blog/release/v24.21.0"})
The latest Node.js LTS release is 24.21.0 ("Krypton"). [1]
Sources: [1] https://nodejs.org/en/blog/release/v24.21.0
workflow lts-audit-v24: status=completed (cachedSteps=2, stepsExecuted=1)

Temporal to camelRun

What replaces Temporal workflows, activities and workers

Every primitive you wire by hand to run an agent on Temporal already lives inside camelRun v2—and you still get deterministic replay workflows when you want explicit code steps.

Workflow
On Temporal: Your agent loop, kept deterministic so Temporal can replay it after a failure.
On camelRun: No workflow needed for standard agents—upsert by key and AgentDO keeps SQLite history and camelFS. Want code steps? POST /v2/agents/:key/workflows replays completed steps from step_cache.
Activities for model calls
On Temporal: Each model call wrapped in an activity, retried under policies you configure.
On camelRun: Model calls across 18+ providers run inside AgentDO's durable pi loop, with conversation boundaries saved in SQLite.
Activities for tools
On Temporal: Each tool call wrapped in an activity, kept idempotent and polled on your workers.
On camelRun: Serve tools via runtime-authenticated MCP (Ed25519 JWTs) or webhooks (X-CamelRun-Agent, X-CamelRun-Run). Long jobs return 202 Accepted and POST back with a signed callback token.
Workers
On Temporal: Processes you deploy, monitor, and autoscale to execute workflows and activities.
On camelRun: No agent workers to deploy: camelRun runs on Cloudflare Workers, SQLite Durable Objects, R2, and Containers. Built-ins like web_search, bash, and browser run in the runtime.
Signals
On Temporal: Messages a workflow waits on, such as a human approval or external callback.
On camelRun: Human approvals (requiresApproval: true), client tools, and async 202 webhook callbacks park on durable signals—holding no compute and costing $0 while parked.
Timers and schedules
On Temporal: Durable sleeps inside workflows and scheduled workflow triggers.
On camelRun: Cron schedules with IANA time zones (POST /v2/agents/:key/schedules) wake agents on time, plus idle dreaming into MEMORY.md.
Child workflows & forks
On Temporal: Parent-child workflow trees and manual state branching.
On camelRun: Sub-agents via delegate (parked on durable parent notifications) and instant copy-on-write agent plus camelFS forks at any atSeq.

Already on Temporal

Call a camelRun agent from your Temporal workflow

Keep Temporal for the business processes it already runs, and hand the agent step to camelRun v2. From an activity, call POST /v2/agents/research-agent/runs with an idempotencyKey built from the workflow run ID plus the activity ID. When the activity retries, camelRun returns the existing run instead of starting a duplicate.

Temporal fits when
you orchestrate long business processes across many internal services and want to write and test every step in your own worker codebase.
camelRun fits when
you want durable AI agents keyed per user, thread, or job—with SQLite history, versioned camelFS, Linux bash, deterministic replay workflows, atSeq forks, and async 202 callbacks built in.

Questions

Temporal and camelRun for AI agents, answered

  1. What is a temporal AI agent?

    An AI agent built on Temporal, the open-source durable execution platform. You write the agent loop as a deterministic workflow and run model and tool calls as activities on workers you operate so Temporal can replay event history after a failure.

  2. Do I need to write workflows or activities to use camelRun?

    No. A durable AI agent on camelRun v2 is a key, a model, instructions, and optional builtins or tools. Call POST /v2/agents/:key/runs over HTTPS and camelRun operates the loop, SQLite history, and versioned camelFS—no workflow or worker boilerplate required.

  3. Does camelRun support deterministic replay workflows and forks?

    Yes. When you want code-driven multi-step orchestration, POST /v2/agents/:key/workflows runs a QuickJS workflow script whose wf.agent(), wf.bash(), wf.tool(), and wf.commit() steps cache in AgentDO step_cache for deterministic replay under your idempotencyKey. You can also fork history and camelFS at any atSeq.

  4. How do restarts and long-running async tools work on camelRun v2?

    AgentDO saves conversation boundaries in SQLite before running so restarts resume settlement cleanly (run_resumed) without losing committed history. For long external jobs, webhook tools can answer 202 Accepted, park at $0, and POST results later using their signed callback token (idempotent by callId).

  5. Can I call a camelRun agent from a Temporal workflow?

    Yes. Call POST /v2/agents/:key/runs from a Temporal activity and pass the workflow run ID plus activity ID as idempotencyKey. A retried activity gets back the same run record rather than starting a second run.

  6. How does camelRun's pricing compare with Temporal Cloud?

    Temporal Cloud bills per action ($50 per million on pay-as-you-go, down to $25 with volume) plus compute for your own workers. camelRun is prepaid: $0.05 per active agent-hour, $0 while idle, queued, or parked on approvals or async 202 callbacks, $0.00005/sec ($0.18/hr) for active container bash with free pre-warming, and $0 storage right now. Model tokens are $0 from camelRun on BYOK or pass-through on direct providers.

  7. Is camelRun open source like Temporal?

    Yes. Temporal's server is MIT, and camelRun v2 is open source under AGPL-3.0 on GitHub (qaml-ai/run). Deploy the Cloudflare Workers, SQLite Durable Objects, R2, Queues, and Containers runtime to your own Cloudflare account with Wrangler, or test experimental self-hosting on your own servers with celld.

asked · What changed in the most recent Node.js LTS release?answered · [1] https://nodejs.org/en/blog/release/v24.21.0

Get started

Start an AI agent without a workflow

Create a cr_live_ API key, follow the v2 quickstart over HTTPS, or connect your coding agent directly to run.camelai.com/mcp.

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.