
If you’re deploying AI agents that need to run continuously, your MacBook can serve as an always-on workhorse — no dedicated server required. Most people don’t realize you can keep a Mac running with the lid closed, turning your laptop into a portable agent hub that works while you sleep.
Understand Why This Matters for Agent Productivity
Imagine having multiple AI agents — browsing, researching, executing tasks — running around the clock on your laptop. You go to bed, and they keep working. You toss your laptop in a bag and head to a coffee shop, and they’re still running.
This article is part of the Content Factory system.
|
PRODUCE Record • Capture |
➔ |
PROCESS Transcribe • Edit |
➔ |
POST Publish • Link |
➔ |
PROMOTE Ads • Share |
This is how we multiply productivity at BlitzMetrics: let the agents grind while you focus on strategy. We currently run multiple Claude agents around the clock across several MacBooks — producing articles, running audits, and managing client deliverables while the team sleeps. On a heavy day, that translates to 50+ pieces of content published without a single human touching the keyboard overnight. The Claude Max plan makes this economically viable at scale.
Run These Terminal Commands to Disable Sleep
Open Terminal on your Mac and run these commands:
1. Prevent sleep entirely (including lid closed):
sudo pmset -a disablesleep 1
The -a flag applies to both battery and power adapter.
2. Disable display and disk sleep for good measure:
sudo pmset -a sleep 0
sudo pmset -a displaysleep 0
sudo pmset -a disksleep 0
3. Verify your settings:
pmset -g
You should see disablesleep 1, sleep 0, and displaysleep 0 in the output.
To undo it later:
sudo pmset -a disablesleep 0
Watch Out for These Important Warnings
- Keep it plugged in. Running 24/7 on battery will drain it, and the system may force-shutdown at 0%.
- Watch for heat. A closed lid with no sleep generates heat — place it on a hard surface with airflow, ideally a laptop stand. Never bury it under papers or on a couch cushion.
- Disable auto-updates. Go to System Settings → General → Software Update → Automatic Updates and turn off “Install macOS updates” to prevent surprise reboots. Just remember to update manually on a regular basis.
- Crashes won’t auto-recover. If Chrome or another app crashes, nothing restarts it automatically. For more resilience, you’d set up a launch agent or shell script — but that’s a separate project.
Control Your Agents Remotely With Claude Dispatch
Here’s where it gets even better. Anthropic launched Claude Dispatch, a feature in the Claude iOS app that lets you assign tasks to your Mac from your phone. You pair your phone with your desktop by scanning a QR code, and a persistent conversation thread connects both devices.
This means you can be at dinner, on a walk, or commuting — and text Claude on your phone to organize files, compile reports, or run tasks using everything on your desktop. Your Mac does the actual processing; your phone is just the remote control. Approval gates still work too, so destructive actions require your confirmation before executing.
Dispatch is available on Max plans and expanding to Pro plans — check claude.ai for the latest availability.
Put It All Together
Combine always-on sleep prevention with Claude Dispatch, and you’ve got a portable AI command center. Your laptop runs agents while you sleep, and you can check in or assign new tasks from your phone while you’re out. No dedicated home server needed — just your MacBook, a power cable, and good airflow.
If you want to go deeper on how we use AI agents to multiply output at BlitzMetrics, start with the economics — then scale from there.
