how to run claude code 24/7
a dusk bot with claude code as its engine needs a computer that stays on. your laptop works while it is awake and dusk is open; your own server or dusk cloud can keep the bot available overnight. that does not mean an endless ai allowance or work without supervision. as of 12 november 2026, anthropic also offers its own cloud sessions and scheduled tasks.

three homes for a dusk bot
these are dusk costs as of 12 november 2026. ai usage is separate, and a rented server has its own bill. keeping a machine available does not remove the ai provider's limits.
| home | what stays running | what you pay |
|---|---|---|
| your laptop | dusk and the computer must stay awake | free for personal use (work use needs a work license); your own ai costs12 |
| your own server | a server you maintain; bots can have private desktops there | free for personal use (work use needs a work license); hosting and ai are yours34 |
| dusk cloud | a computer dusk hosts, with daily backups | plus $20 a month; pro $50 a month, including a work license for one person; ai billed separately12 |
available all night is different from working forever
decide what should happen overnight before deciding where it runs. a bounded job has a finish: inspect the files you gave it, write a summary, and stop. a repeating job needs a routine, a time and a place for its result. neither benefits from a vague instruction to keep busy until morning.
in dusk, a bot can keep several threads and you can steer it with another message while it works. if the ai plan runs out, the bot says so. you can wait for its reset or change the ai. the bot retains its chats, files and memory. a computer being on all day cannot create more provider allowance.5
for the general hosting decision, where agents run with the laptop closed covers a spare computer as well.
start with a laptop for work you can watch
a laptop is a reasonable place to try the first few runs. leave dusk open and keep the computer awake. under Settings, Remote access, Keep this computer awake helps when you need to reach it from a paired phone.6
the limit is concrete: local routines do not run during sleep or while the app is closed. if a run was missed by less than 12 hours, dusk runs it once when you return; older missed runs are skipped. do not leave an urgent overnight deadline depending on a sleeping laptop.7
write a small instruction such as: 'each weekday at 7, read the planning document i attached and list decisions i still need to make. put the list in this chat. do not change the document.' watch a run before relying on it.
use a server if you want to maintain the machine
dusk's own-server option needs ubuntu 22.04 or 24.04, at least 2 gb of memory and root or sudo access. the app gives you a line to paste, with setup taking about ten minutes. you do not need a domain or open ports. the app and server communicate through a relay sealed with a key only they hold.3
you look after the server. choose a fresh one rather than an existing machine full of work you did not intend to share. this option fits someone willing to manage the hosting bill and the computer, rather than someone who only wants a morning result. compare your actual quote in the always-on cost calculator.
move to dusk cloud when the laptop should be free to sleep
pick a plan and sign in under Settings, Dusk Cloud. a welcome moves your bots with chats, memory and routines. plus has two bot computers awake at once; pro has five. the machine is yours rather than shared, and dusk handles daily backups.1
pair your phone with that cloud computer if you want to reply while your laptop is off. claude code from your phone explains the difference between this bot chat and anthropic's remote control. the phone is a way to reach the work, not the computer doing it.6
what anthropic says about sign-in and its own cloud
as of 12 november 2026, anthropic's legal page describes an end user signing in to the unmodified claude code binary, including on a hosted platform. it requires running the binary as published, leaving its authentication methods available, and meeting its commercial hosting terms. it also bars developers from offering claude.ai login or intermediating its credentials. those are conditions to read, not a verdict about dusk or another app.8
two more lines matter for anything unattended. anthropic's consumer terms bar reaching its services "through automated or non-human means" except through an anthropic api key or where anthropic explicitly permits it,11 and its login help says it may bill use through certain third-party tools from usage credits rather than your plan's limits.12 for work that runs overnight with nobody watching, an api key is the route those terms name. check anthropic's current terms before you choose.
anthropic's own cloud sessions continue after the laptop closes, and its cloud scheduled tasks can repeat a saved configuration. if your work already fits those options, a second hosted computer may be unnecessary. use the claude scheduler guide to separate cloud tasks, local tasks and an open-session loop.910
questions
how do you run claude code unattended overnight?
give it one bounded task, decide where it may read or write, and leave a route for questions. in dusk, start with Ask for approval for commands and file changes. give connected apps read-only access if the job only needs reading.4 and read anthropic's terms on automated use first: they name an api key as the route for unattended access.11
will dusk cloud remove claude limits?
no. dusk cloud pays for the computer, not your ai usage. the docs suggest a bigger ai plan or an api key for heavy around-the-clock work.1
can i answer an overnight approval from my phone?
yes. approval cards can arrive on a paired phone. pairing to your laptop depends on it staying on; pairing to dusk cloud works with the laptop off. the browser version of the phone app does not send notifications, so open it to check.46
sources
- dusk bot: dusk cloud
- dusk bot: billing
- dusk bot: your own server
- dusk bot: computer and approvals
- dusk bot: bots
- dusk bot: phone
- dusk bot: routines
- anthropic: legal and compliance, checked 12 november 2026
- anthropic: cloud sessions, checked 12 november 2026
- anthropic: cloud scheduled tasks, checked 12 november 2026
- anthropic: consumer terms of service, checked 12 november 2026
- anthropic: log in to your claude account, checked 12 november 2026
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 [email protected].
what does it cost to keep an ai agent running?
where do ai agents run when your laptop is closed?
claude scheduled tasks: which kind are you using?
claude code from your phone: three ways in
claude code routines are now called scheduled tasks
openclaw hosting or a different cloud bot app?