Skip to content
Fluf
Beta

We are actively shipping every day for Fluf.

New things land daily and the product keeps getting better. Tell us what to fix or build next: we read every message.

How to run AI agents 24/7 on a machine you already own

To run AI agents 24/7 you need a machine that never sleeps, a process that restarts itself and a way to reach you. The setup, step by step.

A thinking blue Fluf between a coral Fluf and a plum Fluf, under a teal sky.
On this page

Part of Best OpenClaw alternatives (2026): 5 options compared

To run AI agents 24/7 you need three things: a computer that never sleeps, a process that comes back by itself after a crash or a reboot, and a way for the agents to reach you when they need a decision. Your laptop fails the first test every time you close the lid. This guide shows the setup that passes all three, from the zero-cost version (keep your own machine awake) to the proper one (a small always-on server you already rent or own), with agents you reach from your phone.

What 24/7 actually requires

Most "always-on agent" setups break at one of four points. Check yours against them before you buy anything.

  1. Compute that stays on. A sleeping computer runs nothing. No scheduler, no webhook listener, no agent loop.
  2. Supervision. The agent process has to start at boot and restart after a crash, without you typing anything.
  3. A channel back to you. An agent working at 03:00 will hit a decision it should not make alone. It needs somewhere to ask, and you need to answer from your phone.
  4. Model headroom. Subscription plans come with usage windows. An agent that hits the wall at 02:00 and stops is not running 24/7; it is running until 02:00.

Notice that the model is not on the list as a compute problem. When your agents think through Claude Code, Codex or an API key, the heavy lifting happens at the provider. The machine only runs the agents, their memory, their tools and their schedule. That is why a small CPU server is enough.

  1. 1Pick a machineYour desk, a spare Mac or a Linux server
  2. 2Install and superviseFluf as a service that survives reboots
  3. 3Sign in to your AIThe CLIs you use, plus a key as a fallback
  4. 4Give agents a rhythmRoutines and heartbeats
  5. 5Answer from anywherePhone, Telegram, the app

Your options, from free to always-on

OptionRuns while you sleepRestarts itselfCostBest for
Your own computer, kept awakePartlyPartlyNothing extraOvernight jobs on a desktop that stays plugged in
A spare Mac or home serverYesYesHardware you ownAgents that need Mac apps or your home network
A rented Linux VPSYesYesYour hosting billTrue 24/7, reachable from anywhere
CI runners and vendor cloudsPer taskYesPer runOne-shot jobs triggered by a push or a schedule

CI runners and the vendors' coding clouds are excellent at "run this task in a fresh container and hand back a diff". They do not keep a named agent with a memory, a schedule and an inbox alive between runs. For that you want a machine with state.

1. Keep your own computer awake while agents work

Start here. It costs nothing and covers the most common case: agents finishing a long job overnight on a desktop that stays plugged in.

In Fluf, open App settings › Screen control and turn on Keep this computer awake while agents work. Fluf holds the computer awake while agents are working or a routine is about to run, then lets it sleep as normal. The screen can still turn off.

15 minA routine due this soon keeps the computer awake
2 minExtra awake time after the last agent finishes
20%Battery level below which Fluf lets a laptop sleep
3Missed runs a routine can catch up on after sleep

Turn on Open Fluf when you log in as well, so routines and Telegram come back after a restart. And remember that closing the window is not quitting: Fluf keeps running in the menu bar or tray until you quit it from there.

2. Pick an always-on machine

Any of these works:

  • A spare Apple silicon Mac. A Mac mini under the desk is the classic. Pick it when agents need Mac-only apps or devices on your home network.
  • A Linux home server or old PC. Fine for agents that work through the web, files and the terminal.
  • A rented Linux VPS, x64 or Arm. The cleanest always-on option: a public address, no power cuts, reachable from anywhere.

You do not need a GPU. Size the machine for the browser sessions and tools your agents use, not for the model. If you also want to host local models through Ollama or vLLM, that box can be a different one on your network: Fluf talks to it at an address such as http://192.168.1.20:11434/v1 (see Local models).

3. Install Fluf on the server

Connecting your own server is part of Fluf Pro. From the app on your Mac or PC, open App settings › Computers, choose Add computer, then Your server. There are three ways in:

  • Over SSH. Enter the address and port. Fluf installs and starts itself there. A password is used once and never saved.
  • Install line. Paste one line into the server's terminal, then pair it.
  • Pairing link. For a machine that already runs Fluf.

If you prefer the terminal, the install line is the fluf CLI:

curl -fsSL https://fluf.bot/install.sh | sh
fluf serve

fluf serve runs Fluf headless and prints pairing details. On a fresh Linux box, run fluf browser setup once so agents get a working private browser. Each agent on a headless server gets its own virtual desktop, which you can watch or take over.

The Computers page in Fluf listing this computer and a connected server with their status
App settings › Computers: every machine your agents use, with its health, in one list.

4. Make it survive reboots

A process you started by hand dies with your SSH session. Install Fluf as a service instead:

fluf service install
fluf service status

It now starts at boot and keeps running across logouts. If fluf service status reports a problem, running fluf service install again repairs it. Updates are one command, fluf update, and your agents and data survive an uninstall.

A tmux session running an agent loop is a demo. A service is infrastructure.

5. Sign in to your AI on that machine

Agents on the server think with whatever you connect there:

  • Your subscriptions. Install the official CLI on the server (Claude Code, Codex, Gemini CLI and others) and sign in through the vendor's own flow. Fluf runs that installed app with your login; your plan's terms and limits apply. See Use your subscriptions.
  • API keys. Keys from Anthropic, OpenAI, Google, xAI, OpenRouter and 30+ more vendors, stored in the machine's secure store.
  • Local models. Ollama, LM Studio, llama.cpp, vLLM or SGLang.

For true 24/7 work, plan for the usage window. Anthropic's terms are explicit that Pro and Max limits "assume ordinary, individual usage of Claude Code and the Agent SDK" (Claude Code legal and compliance). So give your agents a way to continue. In App settings › AI accounts, turn on Continue on an API key under When an installed app hits its limit. Agents carry on with that key and move back when the window resets. With Pro you can also add a second login of the same app; when one is out, agents move to the next one with usage left, in the same conversation. Cap the pay-per-use side with a daily spend limit (Usage and budgets).

Our pillar on running agents on your Claude subscription covers exactly what Anthropic allows.

6. Move work onto the server

Every account, business, team and agent has a Runs on setting, and each level inherits from the one above. Point a business at the server and its agents, routines and chat apps move there; leave everything else on your laptop. Fluf shows what moves before you confirm. If a machine goes offline, its work waits for it.

A sensible split for a developer: the "Ops" business (overnight error triage, dependency checks, the morning report) lives on the server; the agent you pair with on code during the day stays on your laptop, next to your checkout.

Choosing where a business runs in Fluf, with a server selected under Runs on
Runs on: send a business to the server and keep the rest local.

7. Give agents a rhythm

An always-on machine with idle agents is an expensive space heater. Give them work that runs without you:

  • Routines run on a schedule or a trigger: daily, weekly, every N minutes, cron (30 8 * * 1-5 is 08:30 on weekdays), a webhook another app calls, or when another agent finishes.
  • Heartbeats wake an agent on a rhythm, every 10 minutes to every 4 hours (30 by default), to look for anything new and act only if something changed. One per agent, and they never use a routine slot.

Here is what that looks like the morning after:

Tuesday 07:30
Juno
Overnight: 3 new Sentry errors, 2 are the same null check in checkout. Draft fix and failing test are in the job. The third is a timeout at the payment provider, nothing to change on our side.
Juno wants to open a pull requestfix(checkout): guard missing shipping addressApproveDecline
Approve. And add the timeout to Friday's report.
Juno
Done. PR opened, timeout logged for Friday.

That card is the third requirement from the top of this guide. The agent did the work at night and stopped at the one step you would want to see.

8. Reach your agents from anywhere

Agents on the server answer you the same way they do on your laptop:

  • The app on your computer, connected to the server.
  • Your phone's browser. With Pro, Remote access reaches your agents from any network at app.fluf.bot. Traffic is end-to-end encrypted between your devices; the relay passes it along without being able to read it. On your own network or Tailscale, pairing works on every plan.
  • Chat apps. Give an agent its own Telegram contact, or connect WhatsApp, Slack, Discord and others. Approvals arrive with Approve and Deny buttons.

Asks wait 24 hours before they expire, so an agent never acts on silence. See Phone and remote access.

Approving an agent's request from a phone
Approvals reach your phone wherever the agents run.

Common mistakes

The short version

Running AI agents 24/7 is not a model problem. It is a machine, a supervisor and a channel. Keep your desktop awake for overnight jobs; for real round-the-clock work, put Fluf on a spare Mac or a Linux server you already have, install it as a service, give your agents routines and a fallback key, and answer them from your phone. If you write code for a living, our guide to AI agents for developers lists the night-shift jobs worth starting with, and Claude Code agents shows how to turn the CLI you already use into a team.

Download Fluf and put your first agent on the night shift tonight. The 7-day Pro trial includes your own server.

Questions people ask

Can AI agents run while my laptop is closed?
Not on the laptop itself: a sleeping computer runs nothing. Put the agents on a machine that stays on, such as a spare Mac, a home server or a rented Linux VPS, and reach them from your laptop or phone. In Fluf that is the Computers page, part of Pro.
Do I need a GPU server to run AI agents 24/7?
No. The model runs at your provider, through your Claude Code or Codex login or an API key, so the server only runs the agents, their memory and their tools. A small CPU machine is enough. You only need a GPU if you also want to host local models yourself.
Can I run Claude Code agents 24/7 on my subscription?
You can run the official Claude Code, signed in with your own plan, on a machine you own. Your plan's usage windows still apply, and Anthropic sizes those limits for ordinary individual use. For heavy around-the-clock work, add an API key as a fallback so agents keep going when the window runs out.
What happens to scheduled runs when the machine was off?
In Fluf each routine has a missed-run rule: run once when the machine wakes (the default), skip missed runs, or catch up on each, up to three. Nothing fires silently in the background while the machine is off.
Is a VPS or a spare Mac better for always-on agents?
A Linux VPS is cheapest to keep on and is reachable from anywhere. A spare Apple silicon Mac is better when agents need Mac apps or your local network. Fluf can install itself on either over SSH.

Sources

  1. Claude Code legal and compliance, checked 27 November 2026

TopicsServersAlways onRoutinesDevelopers

    Search every docs page: setup, agents, models, memory, routines, chat apps and reference.