How to Schedule AI Agents in the Cloud
An ops playbook for running an AI agent on a schedule, unattended, for recurring business work.
To schedule AI agents in the cloud, you either use a managed service that runs them for you or self-host an agent on a server with cron. Both let an agent do recurring work unattended, like daily reports or monitoring, without your machine on. The right choice depends on control, cost, and how much ops you want to own.
This playbook covers your options, the business jobs worth automating, and the guardrails that keep a scheduled agent safe. It is tool-agnostic, so it applies whether you use Claude Code Routines, Hermes Agent, OpenClaw, or a plain script on a VPS.
What does it mean to schedule an AI agent in the cloud?
Scheduling an AI agent in the cloud means an agent runs on a server on a set cadence or trigger, without a person starting it. The agent reads context, does a task, and delivers a result to a channel like Slack or email.
The cloud part matters because the job must run when you are offline. A laptop that sleeps cannot run a 6 a.m. briefing. A cloud runtime stays up.
A scheduled agent has five parts: a runtime that stays on, model credentials, a trigger, an operating context like memory or skills, and a reliability loop of logs and health checks.
Not sure whether to schedule your recurring reports on a managed routine or self-host an agent on a VPS? We do both daily and will pick the safe, low-maintenance path for your business.
Book a ConsultationWhat are the options for running an agent 24/7?
You have two broad paths: a managed scheduling service or self-hosting the agent yourself. Managed means the vendor runs the infrastructure. Self-hosting means you run the agent on a server you control.
Managed options include Claude Code Routines, which run scheduled cloud agents on Anthropic's infrastructure with no server to manage. Self-hosted options include Hermes Agent and OpenClaw, deployed with Docker on a VPS and fired by system cron or a built-in scheduler.
There is also a middle path. Hermes Agent Cloud offers an always-on hosted deploy, and serverless backends can hibernate an agent between runs so it costs almost nothing when idle.
- **Managed routines:** Claude Code Routines run a prompt on a schedule in the cloud, no server needed.
- **Self-hosted on Docker/VPS:** run Hermes Agent or OpenClaw on your own box, triggered by cron.
- **Hosted deploy of an open agent:** Hermes Agent Cloud or a one-click Railway deploy for always-on access.
- **Serverless:** backends like Modal or Daytona wake the agent on demand and idle cheaply between runs.
Managed routines vs self-hosted scheduling: which is right?
Choose managed when you want the schedule to just work and you are fine with a vendor's limits. Choose self-hosted when you need full control, custom software access, or high run frequency the managed cap will not allow.
The honest cost story favors managed for most small teams. A self-managed VPS looks cheap at $20 to $40 a month, but real cost includes maintenance time. Budget $100 to $200 a month of ops time on top, so true cost lands near $120 to $240 a month.
The table below compares the two paths on the dimensions that decide it.
| Dimension | Managed routines (e.g. Claude Code Routines) | Self-hosted (Hermes Agent / OpenClaw on Docker/VPS) |
|---|---|---|
| Setup effort | Minutes; write a prompt, pick a trigger | Hours; provision a VPS, install Docker, wire cron |
| Who runs the server | The vendor | You |
| Schedule frequency | Minimum interval between runs on Claude Code Routines | As often as cron allows, down to the minute |
| Local file / shell access | Cloud sandbox only | Full access to your server and tools |
| Cost shape | Bundled in subscription usage + daily run cap | VPS fee + LLM tokens + your ops time |
| Reliability | Vendor handles uptime and restarts | You own uptime, restarts, and monitoring |
| Best for | Fast, low-maintenance recurring jobs | Custom, high-frequency, or data-sensitive jobs |
How do you self-host an AI agent on Docker or a VPS?
To self-host, you rent a small always-on VPS, install Docker, run the agent as a container, and trigger it with system cron or the agent's built-in scheduler. The container stays running so the schedule fires even when you are offline.
Hermes Agent ships a built-in cron scheduler and a Docker image, so it can run daily reports or weekly audits and deliver them to Telegram, Slack, or email. OpenClaw runs locally or on a server and connects an LLM to files, shell, and APIs.
A restart policy is the key reliability setting. Running the container with a restart flag brings the agent back after a crash or reboot, so a scheduled job does not silently stop.
- **Provision:** a low-cost VPS from a provider like Hetzner, DigitalOcean, or Hostinger.
- **Install:** Docker, then pull the agent image (Hermes Agent or OpenClaw).
- **Trigger:** the agent's built-in scheduler or a system crontab entry.
- **Persist:** mount a data volume so memory and skills survive restarts.
- **Restart:** run with an unless-stopped restart policy so reboots do not kill the job.
What business jobs should you schedule?
Schedule recurring, bounded jobs where a person reviews the output. The best first candidates read data and summarize it, since they rarely break and carry low risk.
Common wins are daily reports, monitoring, data pulls, and outreach prep. Anything that a smart intern could do overnight and hand you as a draft is a good fit.
Hold back jobs that make irreversible changes or send external messages without review. Those need tighter guardrails before they run unattended.
- **Daily reports:** sales, traffic, or ad-spend summaries delivered at 7 a.m.
- **Monitoring:** watch competitors, uptime, prices, or reviews and alert on change.
- **Data pulls:** fetch numbers from APIs and drop them into a sheet or dashboard.
- **Outreach prep:** draft follow-ups or research a lead list for a human to send.
- **Weekly audits:** SEO, broken links, or docs drift with a review-ready summary.
What safety guardrails does a scheduled agent need?
A scheduled agent needs permission limits, a spend cap, error handling, and human review before it touches anything that matters. Unattended plus powerful is a real risk surface, so scope it tightly.
A self-hosted agent with shell, file, and API-key access is especially sensitive. If it is exposed to the internet, put it behind a VPN or auth, since a background agent with those powers is a serious target.
Set a cost ceiling per run so a runaway loop cannot burn your token budget. Log every run, and keep write actions behind a human approval step until the agent has earned trust.
- **Least privilege:** grant only the files, connectors, and network domains the job needs.
- **Spend cap:** stop a run if it exceeds a token or cost limit, and log the stop.
- **Error handling:** verify the task actually succeeded; a green status is not proof.
- **Human review:** keep customer-facing or irreversible actions behind approval.
- **Secure the host:** never expose a self-hosted agent's control port to the open internet.
How do you keep a scheduled agent reliable?
Keep a scheduled agent reliable with logs, health checks, restarts, and a clear rollback path. Unattended jobs fail quietly, so build the checks that surface a failure fast.
The most common trap is trusting a success signal. On managed routines, a green run means the session finished, not that the task worked. Blocked network calls and task failures still look green, so read the run.
Write self-contained prompts, because no human is there to answer a follow-up question mid-run. Then monitor the first several runs of any new schedule before you leave it alone.
- **Verify output:** confirm the result, not just that the run exited.
- **Self-contained prompts:** state the task and success criteria fully.
- **Health checks:** alert if a scheduled run is missing or empty.
- **Rollback:** know how to undo a change an agent makes.
How should a business decide?
Decide by matching the job's needs to the least-effort option that meets them. If a managed routine can do the job within its limits, start there and skip the server entirely.
Reach for self-hosting only when you need local file access, sub-hourly frequency, custom tools, or data that cannot leave your environment. Accept that you then own uptime and maintenance.
Most small and mid-size teams should begin managed, prove value on one read-only job, and self-host later only if a real constraint forces it.
Frequently Asked Questions
- A managed service like Claude Code Routines is the easiest. You write a prompt, pick a schedule, and the vendor runs it in the cloud with no server to manage. It suits most recurring business jobs that run on a regular cadence rather than every few minutes.
- Use a managed routine platform if the job fits its limits, or a small always-on VPS with Docker if you need full control. The VPS keeps a container running so the schedule fires even when your laptop is off.
- Yes. Self-hosted agents like Hermes Agent and OpenClaw can be triggered by system cron on a server, and Hermes Agent has a built-in scheduler. Managed routines use their own scheduler with a minimum interval between runs.
- Managed routines are bundled into a Claude Code subscription plus usage. A self-hosted VPS runs about $20 to $40 a month, but adding maintenance time pushes the true cost toward $120 to $240 a month. You also pay LLM tokens either way.
- It can be, with guardrails. Use least-privilege access, a per-run spend cap, error handling, and human review for anything irreversible. A self-hosted agent with shell and file access must never be exposed to the open internet.
- Choose managed for speed and low maintenance when the job fits the vendor's limits. Choose self-hosting for local file access, sub-hourly frequency, custom tools, or data that cannot leave your environment. Most teams should start managed.
- Start with read-only jobs a person reviews: daily reports, monitoring, and data pulls. They are low risk and rarely break. Add write actions and outreach only after the agent has earned trust.
- Add logs, health checks, and alerts for missing or empty runs. Do not trust a success status alone, since a run can finish while the task fails. Read the first several runs of any new schedule before leaving it alone.
- Yes. Both run in Docker on a VPS. Hermes Agent has a built-in cron scheduler and delivers results to Slack, Telegram, or email; OpenClaw can be driven on a schedule with system cron. Use a restart policy so reboots do not stop the job.
- Set a cost or token ceiling per run and stop the job when it is exceeded. On managed plans, watch the daily run cap and usage limits. On self-hosted agents, track token count in the run and cap it in code.
Get a scheduled agent running without the ops headache
We schedule and operate AI agents in the cloud every day, managed and self-hosted. Book a consultation and we will pick the safe path for your recurring work.
Book a Consultation