where do ai agents run when your laptop is closed?
nowhere. close the lid and an agent on your laptop stops: the 7am brief doesn't come, your phone can't reach it.
to keep it working, it has to live on a computer that stays on. you have three choices: a spare machine at home, a server you rent and babysit, or a hosted computer like dusk cloud that someone else keeps running.

the four options side by side
dusk bot's own prices only. a spare machine and a rented server cost whatever you or your host charge. every option still uses your own ai plan.
| your laptop | a spare computer at home | a server you rent | dusk cloud | |
|---|---|---|---|---|
| works with the lid shut | no | yes, while it stays on and online | yes | yes12 |
| dusk bot's charge | free for personal use | free for personal use | free; you pay the server | $20 a month (plus) or $50 (pro)23 |
| who keeps it running | you | you: power, updates, wi-fi | you: updates, backups, the bill | we do, with daily backups24 |
| setting it up | install the app | install the app, set it never to sleep | ubuntu, one pasted line, about ten minutes | check out, sign in, about a minute24 |
| your phone reaches it | only while the laptop is awake | while that computer is on | yes | yes, with your computer off5 |
| a browser for each bot | your own screen, on purpose (mac) | your own screen, on purpose (mac) | a private desktop on the server | a desktop per bot: a good amount awake on plus, more on pro for heavy workloads6 |
why your laptop can't be the home
an agent is just a program. programs stop when the computer sleeps.
in dusk bot you feel it two ways:
- routines don't run while the laptop sleeps or the app is closed. missed by less than 12 hours? it runs once when you're back. longer than that, it's skipped.
- your phone can't reach the bots until the laptop wakes up.
Settings, Remote access, Keep this computer awake helps at your desk. it can't help in a backpack.
a spare computer at home
cheap, and it works, until it doesn't. an old laptop that never sleeps can host your bots for the price of its power.
the catch is you're the ops team. a power cut, a flaky router, an update that reboots it at 3am. if it falls over while you're travelling, nothing runs until someone at home pokes it.
a server you rent
great if you like servers. a lost weekend if you don't. your own server is free in dusk bot. you pay the host.
- ubuntu 22.04 or 24.04, 2 gb of memory or more
- paste one line, wait about ten minutes
- no ports, no domain; the app and server talk through a sealed relay
updates, backups and the bill are yours. use a fresh server, never one holding things you wouldn't hand a bot.
dusk cloud
a computer we host and look after. your bots just keep going. it has its own storage no one else can reach, backed up every day.
moving takes a minute: pick a plan, sign in under settings, dusk cloud, and the welcome brings your bots over with their chats, memory and routines. your ai sign-in stays yours. ai usage never lands on the dusk bill.
one honest warning: a bot working around the clock uses your ai plan around the clock. for heavy use, a bigger plan or an api key works out better.
which one fits you
pick by how much you'll miss the work when the lid's shut.
- bots only while you're at your desk? stay on the laptop. it's free.
- want the brief before you wake, or replies from your phone at night? that's the moment to move. most people pick dusk cloud because there's nothing to babysit.
- you already run servers and enjoy it? your own server costs you only the server.
- spare computer that never leaves the house? fine, as long as it stays on.
you can keep more than one and switch from the top of the sidebar. start on the laptop. move the day a missed routine annoys you.
try it in 2 minutes
- open Settings, Remote access and turn on Keep this computer awake for tonight
- set one routine for 7am
- check in the morning whether it ran (Automations shows each run)
- if it didn't, that's your sign to move it off the laptop
mistakes people make
trusting a laptop with a 7am routine
a closed lid means no brief. move routines that must run on time.
a cheap server you never update
budget an hour a month for it, or don't rent one.
forgetting the ai plan runs all night too
watch your usage the first week on an always-on computer.
questions
can an ai agent run while my mac is asleep?
not on that mac. a sleeping computer runs nothing. keep it awake while plugged in, or move the agent to a computer that stays on.
do i need to know linux to keep an agent running 24/7?
no. dusk cloud needs no server skills. running your own server is the option that needs some.
what happens to my bots if i stop paying for dusk cloud?
bots on your own computer carry on. the cloud computer is kept for 30 days after the plan ends, then deleted, and we email you a week before. move your bots back or export a backup first.
is it cheaper to run it on my own server?
dusk bot charges nothing for it, so you pay only your hosting company. it's cheaper if your time looking after a server costs you nothing. the always-on cost calculator puts the numbers side by side.
sources
drafted with ai help from the dusk bot docs and the sources listed on this page, then checked against them. if something here is wrong or out of date, write to hello@dusk.bot.
what does it really cost to keep an ai agent running?
how to run claude code 24/7
claude code from your phone: three ways in
scheduled ai tasks: what runs, where and when
how do always-on ai agents work when your laptop sleeps?
what is a background agent?