Cubicles
Cubicles

Where should your AI agent run? Laptop vs Mac mini vs VPS vs a cloud computer

Your agent needs somewhere to live that stays on, stays signed in and can't touch your own files. Here are the five usual options, what each really costs, and how to pick.

Blog ·

Agents like OpenClaw, Hermes Agent, Claude Code and Codex have moved past answering questions. Now they open a browser, sign in to your accounts, write files, run code and message you when they're done. That raises a practical question every agent owner hits within a week: where should this thing actually run?

Most people start on their laptop, then buy a Mac mini, then try a VPS. Each step fixes one problem and causes another. This guide covers all five options so you can skip the detours.

The short answer

  • Trying an agent for an afternoon? Your laptop is fine. Don't sign it in to anything you'd hate to lose.
  • Running scripts with no screen, like API calls, scrapers or bots? A cheap headless VPS works.
  • Running an agent that uses apps and a browser, all day, every day? Give it its own computer with a desktop, off your network. You can buy one (a Mac mini) or rent one in the cloud. Renting is faster to start and cheaper for most people.

What an AI agent needs from a computer

Before comparing options, it helps to know what you're shopping for. An agent that uses a computer the way a person does needs six things:

  1. A real desktop. Computer-use agents read the screen and use the mouse and keyboard. No desktop means no Chrome, no VS Code and no spreadsheet.
  2. Always on. Overnight jobs, scheduled inbox sweeps and long research runs fail if the machine sleeps when you close the lid.
  3. Stays signed in. An agent that loses its logins every few hours can't do recurring work.
  4. Separate from you. Your agent will make mistakes, and it can be tricked by something it reads. It shouldn't be able to reach your personal files, saved passwords or home network.
  5. Watchable. You want to see what it's doing, ideally from your phone, and step in when a site asks for a code.
  6. A good connection. Agents download, browse and upload constantly. Data caps and a slow home upload add up.

Option 1: Your own laptop

This is where everyone starts, and for a first test it's the right call. It costs nothing and you already know the machine.

The problems show up once the agent does real work. It runs with your permissions, so it can read your documents, use your saved browser sessions and see every device on your Wi‑Fi. It stops when the laptop sleeps. And while it's using the mouse and keyboard, you can't.

Verdict: great for a demo, wrong for anything that runs unattended.

Option 2: A Mac mini on your desk

The Mac mini became the default “agent box” in 2026 for good reasons. It's quiet, uses little power and gives the agent a real desktop that stays on. It's also a separate machine, which is a big step up from your laptop.

The trade-offs: it costs about $599 upfront, roughly $25–29 a month over three years before power. It still sits on your home network, so a compromised agent is one hop from your other devices. Watching it from your phone means setting up remote access yourself. And its speed depends on your home connection, especially upload.

Verdict: a solid choice if you want hardware you own and don't mind setup. Get a separate network for it if you can.

Option 3: A headless VPS

A virtual private server is always on, lives in a data centre and is easy to rebuild. It's how most people run bots and APIs. Expect to pay $40 or more a month for 8 GB of RAM from the major providers.

The catch is in the name: a headless server has no screen. Agents that only call APIs or drive a headless browser are fine. Agents that need to open apps, or that work better in a real browser that sites trust, are not. You can bolt a desktop and a VNC server onto a VPS, but now you're maintaining a remote-desktop setup instead of using your agent. Our cloud desktop vs VPS guide shows what that takes.

Verdict: right for scripts and API-only agents, awkward for anything that uses apps.

Option 4: A cloud sandbox

Developer sandboxes spin up a disposable environment, often with a desktop, through an API. They're excellent for what they're built for: short, isolated jobs that start and end in code.

For a long-lived personal agent, they're a poor fit. Sessions usually expire after hours, taking logins and files with them. Billing by the second adds up fast if you leave one running, often $240 or more a month. Setup happens in code, not in a browser tab.

Verdict: great for developers running many short tasks, not a home for an assistant.

Option 5: A cloud computer built for agents

The newest option combines the good parts of the others: a full desktop like a Mac mini, a data-centre home like a VPS, and nothing to buy. Cubicles is one of these. Each computer is an Ubuntu desktop in the cloud with 4 vCPU, 8 GB of RAM and 64 GB of NVMe storage on the Standard plan, and a connection of up to 1 Gbps with no data caps. More in what is Cubicles?.

OpenClaw, Hermes Agent, Claude Code, Codex and the ChatGPT desktop app come installed, alongside Chrome, Firefox, VS Code, a terminal, Docker, Python, Node.js and LibreOffice. You open the desktop in your browser, sign the agent in to its model and the accounts it needs, and start it. Close the tab and it keeps working. Open it from your phone to watch.

Because each computer is its own machine, you can give every agent its own computer, such as one for your inbox, one per client and one for code. Logins, files and mistakes stay separate. Idle computers can be put to sleep and keep their files.

Being fair about the limits: it runs in a data centre, so some sites challenge data-centre traffic and your agent may occasionally need you to sign in or pass a check. Only Ubuntu is offered. And like every option here, it can't stop an agent from being tricked by something it reads. It only limits what the agent can reach.

Your first Cubicles computer is free, with no card needed, and more are from $24 a month. Create one and it's ready in about a minute.

Side-by-side comparison

LaptopMac miniHeadless VPSCloud sandboxCubicles
Real desktop for appsYesYesNoYesYes
Stays on and signed inNoYesYesNo, expires in hoursYes
Off your home networkNoNoYesYesYes
Watch from your phoneNeeds setupNeeds setupNothing to watchYesYes
Ready in a minuteYesNo, ships in weeksYesSet up in codeYes
Typical cost$0$599 upfront$40+ a month≈ $240+ a month if left onFirst one free, then $24 a month

Prices are estimates of public pricing as of November 2026.

How to choose

Answer three questions:

  1. Does your agent need a screen? If it only calls APIs, a VPS is enough. If it uses a browser or apps, you need a desktop.
  2. Does it need to run while you sleep? If yes, rule out your laptop and short-lived sandboxes.
  3. Would you be comfortable if it went wrong on your home network? If not, rule out your laptop and a Mac mini without a separate network.

If your answers are yes, yes and no, you want a desktop computer that stays on, off your network. That means a Mac mini on its own network, or a cloud computer.

Setting up an agent on a cloud computer

On Cubicles, getting from nothing to a working agent takes about five minutes:

  1. Sign up and create a computer. It starts right away.
  2. Choose Open computer. The desktop opens in your browser tab.
  3. Open the agent you want. OpenClaw, Hermes, Claude Code and Codex are already installed. Sign it in to your model provider or paste your API key.
  4. Give it a small first task, like “compare five suppliers and save a shortlist with sources”, and check the result.
  5. Only then sign it in to the accounts it needs, one at a time.
  6. Close the tab. Reopen it later, from any device, to check in.

Prefer to skip the manual steps? The New agent form sets the agent up with your model and chat app for you: see AI agent hosting: how to deploy an agent in minutes. To keep it running for weeks without babysitting, with auto-restarts, schedules and alerts, read how to run an AI agent 24/7 with Cubicles.

Step-by-step walkthroughs for a research agent, a personal assistant and a coding agent are in our setup guides. If you'd rather connect from your own AI app or scripts, see the API and MCP docs.

Keeping your agent safe, wherever it runs

  • One agent, one computer. Don't let your inbox agent share a machine with your coding agent.
  • Least access. Sign the agent in only to the accounts the task needs. Use a separate browser profile or account where you can.
  • Assume it can be tricked. Web pages and emails can carry instructions aimed at agents. Keep money, passwords and irreversible actions behind your own approval.
  • Watch the first runs. Watch live for the first few tasks before you let it run overnight.
  • Keep backups of real work. Export what matters before you delete or rebuild a computer.

The bottom line

Your laptop is for trying agents. A VPS is for scripts. Once an agent does real, recurring work with a browser and apps, it deserves its own computer: always on, off your network and easy to watch. Buy a Mac mini if you want hardware you own. Rent a cloud computer if you want it running in a minute.

Frequently asked questions

Can I run OpenClaw without a Mac mini?

Yes. OpenClaw runs on Linux too. A cloud computer such as Cubicles gives it the same always-on desktop a Mac mini would, without buying hardware or putting it on your home network, and OpenClaw comes installed.

Is a VPS enough to run an AI agent 24/7?

For agents that only call APIs or use a headless browser, yes. Agents that use desktop apps or a real browser need a computer with a screen, which a standard headless VPS doesn't have.

Is it safe to run an AI agent on my own laptop?

For short tests with no personal accounts signed in, it's reasonable. For unattended work it's risky: the agent runs with your permissions, near your files, saved logins and home network.

How much does it cost to run an AI agent around the clock?

Apart from the model's own usage, a Mac mini costs about $599 upfront and a headless VPS with 8 GB of RAM about $40 or more a month. Your first Cubicles computer is free, and more are from $24 a month.

Can I watch my agent work from my phone?

On a cloud computer like Cubicles, yes: open the computer in your phone's browser to see its screen live. On a Mac mini or VPS you'd need to set up remote desktop yourself.

Give your agent a computer