← All posts
AI agents and the assistant

How do I run a Claude Code agent 24/7 without my laptop open?

Use Claude Code's cloud scheduled tasks (in Claude Pro at $20 a month), an always-on Mac mini or small server, or a hosted agent that wakes when messages arrive.

WakatoDecember 5, 2026
How do I run a Claude Code agent 24/7 without my laptop open?

There are four ways, and the cheapest is already in your plan: Claude Code's cloud scheduled tasks run on Anthropic's servers with your laptop shut, and they come with Claude Pro at $20 a month as of December 2026. The other three are an always-on machine at home (a Mac mini starts at $899), a small rented server (Hetzner lists cloud servers from €5.49 a month before VAT), or a hosted agent that wakes when a message arrives. Which one fits depends on one question: does the agent need to run on a clock, or answer when something happens?

What does "24/7" mean for a Claude Code agent?

Most people do not need a model thinking every minute of the day. They need two things: jobs that run on time (the 7 a.m. report, the nightly lead cleanup) and work that starts when something happens (a customer email, a form, a failed payment). A schedule covers the first. The second needs something that listens and wakes the agent. Keep those apart and the choice gets easy.

Option 1: Claude Code cloud scheduled tasks

Anthropic's docs describe a cloud scheduled task (formerly a routine) as a saved prompt, one or more repositories and a set of connectors that run on Anthropic-managed cloud, "so they keep working when your laptop is closed." Each task can have three kinds of trigger:

  • Schedule: hourly, daily, weekly or once. Nothing more often than once an hour.
  • API: an HTTP POST to the task's own endpoint with a bearer token, so another tool can start it when an event happens.
  • GitHub: pull requests, releases and similar events.

The limits: up to 100 scheduled runs an hour per account, 30 manual or API runs an hour per task, and every run draws on your plan's usage like a live session. Runs start in auto mode, where a classifier approves or blocks actions, and anything done through a connector appears as you. It is available on Pro, Max, Ultra, Team and Enterprise, and it is still labeled a research preview. One more catch for business use: Claude Code's auto memory is machine-local, and Anthropic says it is not shared with cloud environments. Put what the agent must know in the repository's CLAUDE.md.

If you prefer a window to a terminal, Claude Cowork offers the same idea for office work, and Anthropic says it keeps working in the cloud when your laptop is closed. It is included in paid plans, not Free.

Option 2: an always-on Mac mini at home

This is why so many people asked "why are people buying Mac minis" this year. You install Claude Code on a small computer that never sleeps, start it in tmux so it survives your terminal closing, and steer it from your phone. Claude Code's Remote Control links a session on your machine to the Claude app or claude.ai, and Anthropic says the transcript is stored on its servers so devices stay in sync, while files and commands stay on your machine. Apple's M6 Mac mini starts at $899 (announced August 25, 2026). The upside: your files, your local tools, any MCP server you like. The downsides: power cuts, home internet, macOS updates and security are yours to manage.

Option 3: a small rented server

The same setup on a Linux server costs less up front. Hetzner lists shared cloud servers starting from €5.49 a month before VAT, with US locations in Oregon and Virginia. You install Node and Claude Code, sign in, run it under tmux or a process manager, and use Remote Control from your phone. It is the most flexible option and the most work: firewall, updates, secrets, backups and watching for a stuck process. Be careful with permission modes. An unattended session that skips all checks can do anything its tools allow, so give it a narrow tool list instead.

Option 4: a hosted agent that wakes on messages

The last option hands the always-on part to a service. The agent has its own computer in the cloud, sleeps when idle, and wakes when someone writes to it. That is the model Wakato uses, covered at the end. It fits when the work is mostly reacting to customers rather than running on a clock.

How do the costs compare?

Prices from each company's pricing page, US (Mac mini from Apple's announcement as reported by MacRumors), as of December 2026. Hetzner lists euros before VAT.
OptionWhat you pay on top of your Claude planWakes on new messages?Best for
Laptop left open$0Only if you build itTesting an idea for a week
Claude Code cloud scheduled tasks$0 (in Pro $20, Max $100, Ultra $200)Through an API trigger you wire upReports and cleanups on a clock, at most hourly
Mac mini at homeFrom $899 onceOnly if you build itLocal files and tools, full control
Hetzner cloud serverFrom €5.49/month before VATOnly if you build itDevelopers comfortable running Linux
Wakato agent on your Claude planFree $0 (5 agent hours) or Pro $49 (30 agent hours), about $0.16 an extra hour on a plan; its own work on your Claude plan costs $0 from Wakato; customer replies and calls are paid from the walletYes: messages, mail, calls, schedulesCustomer-facing work and many conversations at once

A worked example

A shop owner wants an agent that writes a morning sales summary and answers supplier and customer emails during the day. With cloud scheduled tasks the summary is free on her $20 Pro plan, but emails wait for the next hourly run, and she would need to build a webhook to fire the task when mail arrives. A Hetzner server at €5.49 a month can listen for mail, but she writes and maintains that listener. On Wakato, the agent runs on her Claude sign-in for its own work, such as the summary, and wakes for each email; the replies it sends to customers are written by Wakato's reply model and paid from the wallet. If it is awake about 2 hours a day, that is about 60 agent hours a month: Pro's 30 included hours plus 30 extra at about $0.16, roughly $53.80 a month, or Business at $99 with 100 hours included. On top of each option sits her Claude plan, whose usage limits apply to the agent's own work, plus a small wallet charge on Wakato for each customer reply.

What to check before you start

  • Your plan's usage limits and terms for long or unattended use.
  • Which connectors and tools the agent can write with when nobody is watching.
  • Where its memory lives, so a cloud run knows what your laptop session learned.
  • How you will hear when a run fails: a message, an email, a log you actually read.
  • Who restarts it after a crash, a power cut or an update.

For what an unattended agent should be allowed to do on its own, see what to let an AI agent do without asking. For the business side of the cost, see what an AI employee costs compared with hiring.

Common questions

Can Claude Code run while my computer is asleep?

A local session cannot, but cloud scheduled tasks run on Anthropic's servers with your laptop closed.

Do I need a Mac mini to run Claude Code all the time?

No; a cloud scheduled task, a small rented server or a hosted agent all work, and a Mac mini is just the option with the most local control.

How often can a Claude Code scheduled task run?

At most once an hour on a schedule, though an API trigger can start it on demand up to 30 times an hour per task.

Does running Claude Code all day use up my plan?

Yes, every run counts toward your plan's usage, so heavy use usually means Max ($100) or Ultra ($200).

If you want a Claude Code agent that is always reachable in Wakato

In Wakato you make an agent and pick Claude Code as its engine, signed in by you with your own Claude plan; Wakato charges nothing for that model work, which covers the agent's own work and answering you. Replies to people outside the business (texts, WhatsApp, customer email, website chat, social messages) are written by Wakato's own fast reply model, GPT-6 Luna by default, paid from the wallet, and phone calls use a voice model billed per minute from the wallet. The agent gets its own Linux computer in Wakato's cloud with its own browser, sleeps a minute after it stops, and wakes when you or a customer write, in about 20 to 35 seconds from cold, so it costs nothing while asleep. It can follow routines on a schedule, keep a heartbeat that only wakes it when something new needs it, and work on many conversations at once, with its memory kept by Wakato across sleep and engines. If your Claude plan hits its limit, it can move down a backup order you set and come back when the limit resets. It does not run on your own laptop, and your plan's usage limits and terms still apply.

See the AI agents page, or start on the free plan.

The only app you need, run by AI agents.

Website, shop, inbox, phone, ads, social, email, calendar and books in one place. Free to start.

Start free