scalr Book a call
← Field notes

Claude Code

Claude Routines vs a Self-Hosted Agent: When Each Makes Sense

Claude routines, now called scheduled tasks, run Claude Code in Anthropic's cloud on a schedule, an API call or a GitHub event. A self-hosted agent like Hermes runs on your own server and talks to you in Telegram. What each one is good at, where they overlap, and how to pick.

A cream cover reading Claude routines or your own agent, with Claude and Hermes Agent logo tiles beside a tilted screenshot of Anthropic's table comparing scheduling options

The short answer: Claude routines, which Anthropic has since renamed scheduled tasks, run a saved Claude Code prompt in Anthropic's cloud on a schedule, when an API call comes in, or when something happens on GitHub. A self-hosted agent such as Hermes Agent runs on a server you rent and talks to you in a chat app. Use routines for work that lives in a code repository and can wait an hour. Use a self-hosted agent for jobs that need to talk to you, check things every few minutes, or reach tools on your own machine.

My own scheduled jobs run on Hermes Agent, on an assistant I call Steve. The routines side of this page is written from Anthropic's own documentation, which I've linked throughout. Both are real ways to get AI working while you're not at the keyboard, and they're good at different jobs.

What are Claude routines?

A routine is a saved Claude Code setup that runs by itself. Anthropic's scheduled tasks page describes it as "a prompt, one or more repositories, and a set of connectors, packaged once and run automatically." It runs on Anthropic's cloud, "so they keep working when your laptop is closed."

The name changed. Anthropic now calls the feature scheduled tasks, and its docs say the old name still shows up in a few places: the web address is still claude.ai/code/routines, some accounts still see a Routines page and a New routine button, and /routines still works in the terminal as another name for /schedule. If you searched for Claude routines, you're in the right place, and the two names mean the same thing.

Each routine has at least one trigger:

  • Schedule. Hourly, nightly, weekly, or once at a set time.
  • API. Your own system sends an HTTP request to the routine's address, with a secret token, and a run starts.
  • GitHub. A pull request opens, a release goes out, and a run starts on its own.

The feature is available on the Pro, Max, Ultra, Team and Enterprise plans, and Anthropic labels it a research preview, so limits and behaviour can still change.

What is a self-hosted agent?

A self-hosted agent is an AI assistant you install on a computer you control, usually a small rented server, that stays switched on. Hermes Agent from Nous Research is the one I use. It's free and open source, you connect it to an AI model from a provider you pay, and you talk to it through Telegram, Slack, WhatsApp, email and more than a dozen other apps.

Its scheduler is part of the same program. You tell it "every Monday at 9am" or "every 2h" in plain words, and Hermes's scheduling docs say its gateway checks for due jobs every 60 seconds and sends the result to whichever chat you name. The catch is in the same docs: the gateway has to be running, which means you're the one keeping the server alive.

How do they compare at a glance?

Claude routines (scheduled tasks)Self-hosted agent (Hermes)
Where it runsAnthropic's cloudYour own server
Who keeps it runningAnthropicYou
Shortest gap between runs1 hourEvery few minutes (the docs' example is every 5 minutes)
What it works onA fresh copy of your code repository, plus connectorsWhatever is on your server, plus the tools you connect
Where results goA Claude Code session you open, a branch, or a connector such as SlackTelegram, WhatsApp, Slack, email and other chat apps
What it costsComes out of your Claude plan's usageFree software, plus the model and the server you pay for

Anthropic publishes its own comparison of its three scheduling options, cloud, Desktop and /loop, and it's the clearest summary of where routines sit.

Anthropic's docs table comparing Cloud, Desktop and loop scheduling, showing cloud tasks run on Anthropic's cloud, need no machine on, use a fresh clone and have a 1 hour minimum interval
Cloud tasks are what used to be called routines. Screenshot: Claude Code docs, November 2026.

1. Routines need no server, a self-hosted agent needs you to run one

The biggest difference is who looks after the machine. A routine runs on Anthropic's infrastructure, so there's nothing for you to rent, update or restart. You write the prompt, pick the repository and the trigger, and Anthropic handles the rest. If your GitHub connection lapses, the docs say the routine skips runs for up to 72 hours and picks up again once you reconnect.

A self-hosted agent is the opposite. Hermes's README says it can run on "a $5 VPS", a small rented server, and that's cheap, but someone has to set the server up, secure it, keep the software current and notice when it goes down. Its docs are plain about the consequence: if the gateway isn't running, scheduled agent jobs are skipped.

If you've never looked after a server and don't want to start, this one difference can settle it.

2. Routines run at most once an hour, a self-hosted agent can check every few minutes

Anthropic's comparison table gives cloud tasks a minimum interval of one hour, and its routines page says custom schedules, written as cron expressions (the standard shorthand for a repeating time), "that run more often than once per hour are rejected." Runs set exactly on the hour can also start several minutes late, so the docs suggest picking a time like 9:07 instead of 9:00.

Hermes has no such floor in its docs. Its own example of a watchdog job runs "every 5m" and posts to Telegram, and it has a mode built for exactly that kind of check: a script runs on the schedule, says nothing when all is well, and sends a message only when something's wrong.

Hermes Agent docs section No-agent mode, showing a cron job that runs every 5 minutes, delivers to Telegram, and uses no tokens and no model
A five-minute check that never calls the AI model. Screenshot: Hermes Agent docs, November 2026.

That matters for the jobs a small business actually wants watched. A failed post, a new lead or a payment that didn't go through is worth hearing about in minutes, and an hourly ceiling is too slow for that. A nightly report or a weekly summary is fine at once an hour or less, and routines handle those easily.

3. Routines are built around a code repository, a self-hosted agent is built around your chat

Every routine downloads a fresh copy of its repositories on each run, and Claude pushes its work to a branch starting with claude/ unless you say otherwise. Anthropic's examples all sit close to code: reviewing every new pull request against a team's checklist, checking docs for drift each week, investigating an alert and opening a draft fix, porting a change from one code library to another.

The comparison table also notes that a cloud task has no access to your local files, because it works from that fresh clone. It reaches other services through connectors, the claude.ai integrations on your account, and every connector you have is included by default unless you remove it.

Hermes starts from the chat instead. Results go to Telegram, Discord, Slack, WhatsApp, Signal, email or SMS, to a specific chat or topic, and you can reply to a scheduled message to carry on the conversation. That's how mine works: everything Steve does comes to one chat on my phone. If a post fails to go out, I hear about it there, and when a new lead comes in from the free tools on my website, the ping lands in the same place. I listed the ten jobs it does for me separately.

4. Routines bill to your Claude plan, a self-hosted agent bills to whoever you choose

Anthropic says routines "draw down subscription usage the same way interactive sessions do." So a routine is covered by the Claude plan you already pay for, until you hit your usage limit. Past that, runs are rejected until the window resets, unless your account has usage credits turned on, in which case they continue on metered billing. There are also hourly caps on how many runs can start, for example 100 scheduled runs an hour per account.

A self-hosted agent splits the bill differently. Hermes itself costs nothing under the MIT licence. You pay a model provider such as OpenRouter or OpenAI for the AI it uses, and you pay for the server. You choose the model for each job, and Hermes's script-only mode runs with, in its own words, "no tokens, no model, no provider fallback" for checks that don't need any thinking at all.

Neither is free in practice. With a routine you pay through a Claude plan you may already have, so the cost is easy to miss until you hit the limit. With Hermes you get a few small bills each month, one from the model provider and one for the server, and you can see each of them.

5. Both run without asking you for every step, in different ways

A routine starts in what Anthropic calls auto mode, where a separate classifier model allows or blocks each action that would normally wait for your approval. The run still stops and waits if an action matches one of your "ask" rules, or if the classifier keeps blocking it. Anthropic also notes that a routine acts as you: commits carry your GitHub name, and a Slack message from a connector comes from your account.

Hermes asks in the chat. When it wants to do something risky, it sends you the details and waits for a yes, and if no answer arrives within five minutes, the answer is no. If you'd rather set rules once and let a model police them, the routine's approach fits. If you're happy to tap yes on your phone a few times a day, Hermes's approach keeps you closer to each risky step.

Where do they overlap?

They have more in common than the table suggests:

  • Both run with nobody at the keyboard. A routine's own page says it keeps working when your laptop is closed, and a self-hosted agent on a server does the same.
  • Both take a plain-language prompt. You describe the job in words; neither needs you to write code for the job itself.
  • Both can be started from outside. A routine has its own API address, and Hermes jobs can be created, run and managed from its command line or from the chat.
  • Both reach your other tools. Routines use claude.ai connectors; Hermes supports MCP, the same standard many of those connectors are built on.

So in practice, the deciding questions are where the job lives and how fast you need to hear about it.

Which one should you pick?

A developer or a team that works in GitHub: start with routines. Pull request reviews, nightly checks on a repository, a deploy check called from your pipeline: that's what Anthropic built them for, and you skip running a server entirely.

A business owner who wants things handled and reported in a chat: a self-hosted agent fits better. Morning briefs, lead alerts, failed-post warnings and receipts logged from a photo all want a chat app at the other end and, for some of them, checks more often than once an hour.

Someone already paying for Claude who wants one weekly report: try a routine first. It costs nothing extra up to your plan's limit, and you'll learn quickly whether scheduled AI work is useful to you before you take on a server.

My own scheduled jobs are mostly the second kind: small checks and alerts that come to one chat on my phone, where anything risky still waits for my yes. If you're not sure which of your jobs are even worth handing over, the free Time-Back calculator takes the hours your team spends on seven common jobs and estimates how many AI could give back.

The decision rule

Pick a Claude routine when the job lives in a code repository and can wait an hour. Pick a self-hosted agent when the job needs to message you, check something every few minutes, or reach tools that aren't on GitHub. Run both when you have each kind of job, with routines on the code and the agent on the day-to-day business.

FAQ

What are Claude routines?

Claude routines are saved Claude Code setups that run automatically in Anthropic's cloud, on a schedule, through an API call or on a GitHub event. Anthropic has renamed them scheduled tasks, but the routines name still appears in the web address, some app labels and the /routines command.

Are Claude routines free?

Claude routines come with the Pro, Max, Ultra, Team and Enterprise plans and draw on the same usage as your normal Claude sessions. When you hit your usage limit, runs stop until the window resets, unless your account has usage credits turned on.

How often can a Claude routine run?

A Claude routine can run at most once an hour. Anthropic's docs list a one-hour minimum interval for cloud scheduled tasks and say cron expressions that run more often than hourly are rejected.

Do Claude routines need my computer to be on?

No. Claude routines run on Anthropic's cloud, so they keep working when your laptop is closed. They work from a fresh copy of your code repository each run, so they cannot see files that live only on your computer.

Is Hermes Agent a replacement for Claude routines?

Hermes Agent does a different job. It is a free, open-source assistant you run on your own server, which sends results to chat apps like Telegram and can check things every few minutes. Claude routines suit code-centred work that runs hourly or less often.

Extra Resources

WhatsApp us