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.

  1. 08:00Cron schedule“Research today's coffee market, save /workspace/reports/2026-10-27.md, and summarize key moves.”
  2. 14:00One-shot runAt“Add today's closing prices to /workspace/reports/2026-10-27.md.”
  3. 17:45Your app“Compare this week's prices with last month's reports.”
Tue Oct 27 · Chicago07:15AsleepNext 08:00 · cron schedule
Asleep · cron scheduleRunning · one-shot runAt

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).
run.camelai.com/console
Console
Agents

morning-brief

Asleepgemini/gemini-4-neon

ForkAbortDelete
ConversationRunsTry itFilesConfigurationSchedules

Add a schedule

Prompt

Research today's coffee market, save /workspace/reports/2026-10-27.md, and summarize key moves.

CadenceCronCron expression0 8 * * 1-5Time zone (REST / MCP)America/Chicago

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 schedule

Schedules

No schedules yet.

POST /v2/agents/morning-brief/schedules
JSON
{
  "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"
}
Weekdays 08:00
Clocks go back Nov 1
Fri Oct 30Fri 30

08:0013:00 UTC

Sat Oct 31Sat 31

No run

Sun Nov 1Sun 1

Back an hour at 02:00

Mon Nov 2Mon 2

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 & REST
/mcp
add_schedule

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.

Alsolist_schedulesdelete_schedule
morning-brief · events
Tue Oct 27
  1. 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" }
  2. 08:34:02tool_call_endadd_schedule · ok: true
  3. 08:39:58run_completed
  4. Asleep from 08:40 to 14:00
  5. 14:00:00run_startedseq: 18 · "Add today's closing prices to /workspace/…"
  6. 14:00:03tool_call_startread /workspace/reports/2026-10-27.md
  7. 14:00:11tool_call_startedit /workspace/reports/2026-10-27.md
  8. 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.

morning-brief on camelRun
Your servers · built-in tools only
Your servers · webhook or MCP toolsan HTTPS call only when the agent needs a tool
nothing running

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.

Flask app · /hooks/agents
Python
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
POST /hooks/agents
your server
  1. 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%."
      }
    }
  2. 14:15:40200run.completed
  3. 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.

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.

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.