Blog ·
Agents like OpenClaw, Hermes Agent, Claude Code and Codex can clear your inbox before you wake up, watch prices all day and have a pull request waiting in the morning. That only works if the agent is still running at 3 a.m. For most people it isn't.
This guide shows the quickest way to run an AI agent 24/7: give it its own always-on computer with Cubicles, connect it to the chat app you already use, and close the tab.
Why your agent keeps stopping
Agents rarely fail because the model is bad. They stop for everyday reasons:
- The laptop went to sleep. Close the lid and your agent stops with it.
- The terminal closed. Start an agent in a window, close the window, and it's gone.
- It crashed and nothing restarted it. One API timeout and it's down until you notice.
- It lost its logins. Sandboxes and headless browsers forget sessions after a few hours.
- You couldn't reach it. It's on a machine at home and you're on your phone somewhere else.
Running it on your laptop also means it shares your files, saved passwords and home network. One bad instruction from a web page, and it's working with your permissions.
The hard way: build an agent server yourself
The usual DIY answer is to buy a Mac mini or rent a server, then turn it into an agent host. That means turning off sleep and screen lock, running the agent under tmux or a systemd service so it survives crashes and reboots, setting up remote desktop and a VPN so you can check on it, wiring up a Telegram bot so it can message you, and keeping all of it updated.
It works, but it's a weekend of setup and a machine to maintain. A headless server also can't open apps, and a Mac mini sits on your home network. You wanted an agent, not a sysadmin hobby.
The easy way: give your agent its own Cubicles computer
Cubicles gives every agent its own always-on desktop, with a browser, code editor, terminal and any app you install. OpenClaw, Hermes Agent, Claude Code, Codex and the ChatGPT desktop app come installed. When you create an agent, Cubicles sets it up on its own computer with your model and keeps it running. For a full tour, see what is Cubicles?.
| DIY Mac mini or server | Cubicles | |
|---|---|---|
| Always on | After you turn off sleep and lock | Yes, out of the box |
| Agent installed and configured | You install it | Set up for you |
| Keeps running when you disconnect | After you set up tmux or systemd | Yes, close the tab |
| Real desktop and browser | Mac mini yes, server no | Yes |
| Chat with it from your phone | Build your own bot setup | Telegram, Discord, WhatsApp or Signal |
| Watch its screen remotely | Set up remote desktop | Open it in any browser |
| Off your home network | Server yes, Mac mini no | Yes |
| Ready in | A weekend (or weeks to ship) | About a minute |
| Cost | $599 upfront or $40+ a month | First one free, then $24 a month |
How to run an AI agent 24/7 with Cubicles
From sign-up to an agent answering you on your phone takes about five minutes.
1. Create a free account
Sign up. Your first computer is free and no card is needed.
2. Choose your agent
Go to Agents and choose New agent. Pick OpenClaw, Hermes Agent, Claude Code, Codex or OpenCode. Agents is in beta, and new harnesses are added as they mature.
3. Add your model
Choose your provider (Anthropic, OpenAI, Google, OpenRouter, DeepSeek, Mistral and others, or your own endpoint), pick a model and paste your API key. The key is stored encrypted and only goes to your agent's computer.
4. Connect a chat app
This is what makes an agent feel always on. Connect Telegram, Discord, WhatsApp or Signal, depending on the agent, and it answers you there around the clock, straight from its computer. For Telegram, you create a bot with @BotFather and paste its token. For WhatsApp and Signal, you scan a QR code. The agent only answers you, the sender you name.
5. Close the tab
Cubicles creates the computer, installs and configures the agent, and starts it. Then you can walk away. The agent keeps working on its computer, with its own browser, files and logins, while your laptop is closed.
6. Check in from anywhere
Message your agent from your phone. When you want to see what it's doing, open its computer in any browser and watch the screen live. If a site asks for a code, you can step in. You can even share a view-only link to its screen with a teammate or client.
Prefer to set it up by hand? Every Cubicles computer is a normal desktop with a terminal. Open it, start any agent yourself, and it keeps running when you close the tab. Our setup guides walk through it.
What 24/7 looks like
Here's an example day for an agent on Cubicles:
- 07:00 Reads 38 new emails, archives 31 and drafts 3 replies. It messages you on Telegram: “2 need you.”
- 09:00 Signs in to a client's store admin, updates 40 prices and posts in Discord that they're live.
- Every hour Checks competitor pricing and only messages you when something changes.
- 23:10 A coding agent pulls main, fixes two failing tests and opens a pull request for you to review in the morning.
For recurring jobs, just tell your agent in chat, for example “every morning at 7, clear my inbox and send me a summary.” If you'd rather set it up yourself, every computer has a terminal with cron. Our guide to scheduling an AI agent covers both.
Run more than one: one computer per job
Agents work best with narrow jobs and narrow access. On Cubicles, each agent gets its own computer, so your inbox agent, your research agent and each client's agent keep their logins, files and mistakes separate. Adding another takes about a minute. Put an idle one to sleep and its files stay.
Always on, and still safe
- Away from your stuff. The agent's computer is in a data centre, not on your laptop or home Wi‑Fi. A mistake stays on that computer.
- Only the access it needs. Sign it in to the accounts the job requires and nothing else.
- Only you can command it. Chat connections answer the sender you set.
- Watchable. Open its screen any time to see exactly what it's doing.
- Spend under control. Set a monthly budget limit with your model provider, so a runaway loop stops at a number you chose.
No setup can stop an agent from being tricked by something it reads. Its own computer limits what a tricked agent can reach.
Start running your agent 24/7
You don't need a Mac mini, a server or a weekend of setup. You need a computer that never sleeps and an agent you can message. Create your free Cubicles computer and have your agent working around the clock in about five minutes.
Still deciding where to run it? Read our comparison of laptop vs Mac mini vs VPS vs a cloud computer, or what to look for in AI agent hosting.
Frequently asked questions
How do I run an AI agent 24/7?
Give it its own always-on computer instead of your laptop. With Cubicles, choose New agent, pick OpenClaw, Hermes, Claude Code, Codex or OpenCode, add your model's API key, and connect a chat app. Cubicles sets it up on its own cloud computer and keeps it running.
Can I run OpenClaw 24/7 without a Mac mini?
Yes. On Cubicles, OpenClaw runs on its own always-on cloud desktop and answers you on your chat apps. There's no hardware to buy, and it stays off your home network.
Does my agent keep running when I close the browser?
Yes. Closing the tab only closes your view. The agent keeps working on its Cubicles computer, and you can open it again from any device.
Can I talk to my agent from my phone?
Yes. Connect Telegram, Discord, WhatsApp or Signal when you create the agent, depending on which agent you choose, and message it like a contact. You can also open its screen in your phone's browser.
How much does it cost to run an AI agent 24/7?
Your first Cubicles computer is free, with no card needed, and more are from $24 a month. You pay your model provider for usage with your own API key, so set a monthly budget limit with them.
Will websites block my agent?
Your agent uses a real browser with VPN on a real desktop, not a headless bot. Because it runs in a data centre, some sites occasionally ask it to verify, and you can step in from its screen.