You don't have to sit at your desk while Claude works. In this tutorial you'll set up a cloud routine that runs with your laptop shut — and, for a long job on your own Mac, keep it awake so it doesn't quit halfway. About ten minutes.
A routine runs on Anthropic's servers. Your laptop can be shut; you can be on holiday. This is remote control: you set it up once, they keep it running.
Best for recurring work that must happen no matter what.A long local job runs on your computer. Your Mac must stay on — and awake, or it stops halfway. So you keep it awake.
Best when Claude needs your own files on your machine.The more autonomous, the less your laptop needs to be on.
Go to claude.ai/code/routines and click New routine. Write the task, pick a time (say daily at 8am), hit Create. You'll see it listed as scheduled — it now runs on Anthropic's servers even with your laptop shut. (Cloud routines run at most once an hour and can't see your local files.)
For a long job on your own Mac, start Claude with a coffee in front of it: type caffeinate -is claude in Terminal. You'll see Claude start as normal — but your Mac won't fall asleep while that session runs. Prefer clicking? Install Amphetamine (free, Mac App Store) and click the pill in your menu bar. Keep the laptop on the charger.
Away from your desk, laptop shut, recurring? → a cloud routine. A long one-off that needs your own files? → run it locally and keep your Mac awake.
Pick one job you'd love to run without you. Cloud or local?
You've set up one cloud routine that runs with your laptop shut — or run one long local job with your Mac kept awake.