camelRun by camelAI · Background agents
Background AI agents that run on a schedule
camelRun wakes your AI agent on cron with IANA time zones, intervals, one-shot runAt timers, or app calls—at $0 while idle.Give an AI agent a job and a schedule. camelRun wakes it on cron in any IANA time zone, on a repeating interval, on a one-shot runAt timer, or when your app calls—and hibernates it at $0 in between.
- 08:00Cron schedule“Research today's coffee market, save /workspace/reports/2026-10-27.md, and summarize key moves.”
- 14:00One-shot runAt“Add today's closing prices to /workspace/reports/2026-10-27.md.”
- 17:45Your app“Compare this week's prices with last month's reports.”
Scheduled AI agents
Schedule an AI agent from the console, REST, or MCP
Create recurring cron schedules with an IANA time zone, repeating intervals, or one-shot runAt timers. Each run writes durable output to the agent's camelFS repo and reports completion to your signed webhook endpoint.
- Cron expressions with a DST-safe IANA timeZone, repeating intervalSeconds, or a one-shot runAt ISO timestamp.
- Manage schedules via POST /v2/agents/:key/schedules, the console's Schedules tab, or hosted MCP (add_schedule, list_schedules, delete_schedule).
morning-brief
Asleepgemini/gemini-4-neon
Add a schedule
Prompt
Research today's coffee market, save /workspace/reports/2026-10-27.md, and summarize key moves.
Cron schedules accept an IANA timeZone via REST or hosted MCP so local times stay steady through daylight saving changes. Each run saves output to camelFS and notifies your webhooks.
Create scheduleSchedules
No schedules yet.
{
"prompt": "Research today's coffee market, save / workspace/ reports/ 2026-10-27. md, and summarize key moves. ",
"cronExpr": "0 8 * * 1-5",
"timeZone": "America/Chicago"
}08:0013:00 UTC
No run
Back an hour at 02:00
08:0014:00 UTC
One-shot & MCP schedules
Wake again at the right time
Schedule management in v2 lives in REST (/v2/agents/:key/schedules) and camelRun's hosted MCP server at /mcp rather than an automatic built-in tool. Pass runAt with an ISO timestamp to queue a one-shot follow-up, or connect add_schedule via MCP or a webhook tool so an agent can book its own next check.
Hosted MCP tools at https://run.camelai.com/mcp (and REST at /v2/agents/:key/schedules) manage cron expressions with IANA time zones, repeating intervals, and one-shot runAt wake-ups.
- 08:34:02tool_call_startadd_schedule{ "prompt": "Add today's closing prices to /workspace/reports/2026-10-27.md.","runAt": "2026-10-27T14:00:00-05:00" }
- 08:34:02tool_call_endadd_schedule · ok: true
- 08:39:58run_completed
- Asleep from 08:40 to 14:00
- 14:00:00run_startedseq: 18 · "Add today's closing prices to /workspace/…"
- 14:00:03tool_call_startread /workspace/reports/2026-10-27.md
- 14:00:11tool_call_startedit /workspace/reports/2026-10-27.md
- 14:00:15run_completed
Nothing to keep running
Run background agents without keeping a server up
An agent using built-in tools like web_search, web_fetch, files, or bash needs nothing running on your side when it wakes. When it needs your internal data, register an HTTPS webhook tool or remote MCP server—camelRun signs each request and calls your endpoint on demand.
Idle, queued, and parked agents cost $0. Storage is currently unmetered.
Long runs
Long-running AI agents that report back when they finish
Start a run without wait: true and move on. Register your endpoint once at POST /v2/webhooks to receive signed run.completed and run.failed deliveries via X-CamelRun-Signature, and read full usage metrics anytime from GET /v2/agents/:key/runs/:runId.
import hashlib, hmac, os
from flask import Flask, request
@app.post("/hooks/agents")
def hook():
raw = request.get_data()
ts = request.headers.get("X-CamelRun-Timestamp", "")
sig = request.headers.get("X-CamelRun-Signature", "")
mac = hmac.new(os.environ["WEBHOOK_SECRET"].encode(), f"{ts}.".encode() + raw, hashlib.sha256).hexdigest()
if not hmac.compare_digest(sig, f"t={ts},v1={mac}"):
return "", 401
queue.put(request.get_json())
return "", 200- 18:15:02200run.completed
{ "id": "evt_9a4c…", "type": "run.completed", "tenantId": "ten_…", "createdAt": 1793142902000, "data": { "agentId": "agt_…", "agentKey": "morning-brief", "runId": "run_…", "text": "Saved/ workspace/ reports/ 2026-10-27. md. Arabica closed up 1. 4%. " } } - 14:15:40200run.completed
- 08:40:11200run.completed
FAQ
Questions about background AI agents
What is a background agent?
An AI agent that runs asynchronously without anyone waiting on a live connection. On camelRun it wakes on a cron schedule, a repeating interval, a one-shot runAt timer, or a REST call from your app, finishes its work, and hibernates in between—keeping its instructions, history and files intact across runs.
How do I run an AI agent on a schedule?
Open the agent's Schedules tab in the console, call POST /v2/agents/:key/schedules, or use add_schedule through camelRun's hosted MCP server. Provide a 5-field cronExpr with an optional IANA timeZone, a repeating intervalSeconds, or a one-shot runAt timestamp.
Can workflows or agents create one-shot follow-up wake-ups?
Yes. Schedule management lives in the v2 REST API (/v2/agents/:key/schedules) and the hosted MCP server (add_schedule, list_schedules, delete_schedule) rather than an automatic built-in tool. Your app—or an agent wired to a webhook or MCP tool—can schedule one-shot runAt wake-ups or update recurring jobs anytime.
Do I need a server running for a scheduled agent?
No, if it only uses built-in tools like web_search, web_fetch, files, or bash: camelRun wakes it with none of your infrastructure online. If it calls your private APIs, expose an HTTPS webhook tool or remote MCP server so camelRun calls it only when needed.
What does a background agent cost while it sleeps?
Idle, queued, and parked agents cost $0, and storage for conversation logs and versioned camelFS repos is currently unmetered. Active agent time is $0.05 per active agent-hour, active Linux container execution (bash) is $0.00005/sec ($0.18/hr) with free pre-warming, and model tokens are $0 from camelRun on BYOK or billed at the provider's price with no markup on direct providers.
How do I know when a background run has finished?
Register an endpoint at POST /v2/webhooks subscribed to run.completed and run.failed. camelRun signs every delivery with HMAC-SHA256 in X-CamelRun-Signature. Read token counts, active agentMs, and container vmMs from GET /v2/agents/:key/runs/:runId, and route digests to your app or team tools however you want.
Does a scheduled agent follow daylight saving time?
Yes. Pass an IANA timeZone such as America/Chicago alongside cronExpr on POST /v2/agents/:key/schedules or MCP add_schedule. Local times skipped by spring-forward do not fire, and an 08:00 weekday job still fires at 08:00 local time after clocks change.
Can a background agent ask me before it acts?
Yes. Mark sensitive tools with requiresApproval (or enable the human built-in) and the run parks in input_required waiting for approval—for days if needed—at $0 while parked, then resumes as soon as your app submits the decision.
More on camelRun
- Human-in-the-loop AI agentsPause a run for an approval or answer and resume when the person responds. Waiting for input costs $0 in agent time.
- Multi-agent orchestrationUse delegate to hand off a task, or use spawn_agent and wait_agent to run child agents in parallel and collect their results. The parent can park while its children work.
- Durable AI agentsKeyed agents keep their history, versioned camelFS workspaces, and pending runs in camelRun. Fork any agent and its repo instantly at any step (atSeq).
- Telegram AI botConnect a Telegram BotFather token directly to camelRun. Every chat gets a durable agent with streaming replies, history, tools, and approvals.
- Temporal alternative for AI agentsCompare Temporal with camelRun's durable agent runtime. camelRun runs the agent loop and provides workflows that resume through deterministic replay.
- AI agent memoryAutomatic compaction summarizes long conversations for the model and preserves the original history. Idle dreaming can consolidate useful details into MEMORY.md in the agent's repo.
- camelRunCloud hosting for AI agents, from the first one to thousands at once
morning-brief · asleep · next wake-up Wed 08:00morning-brief · asleep · Wed 08:00
Schedule your first AI agent
Create an agent, add a cron or runAt schedule via REST or MCP, and let it work while you're away.
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.