How to keep your Mac or PC awake while Claude Code or Codex works

Turn on Allow Remote Access in HB Code. While it's on, HB Code asks the system not to go to sleep when the computer is idle, so a long run keeps going. A closed laptop lid still wins, though.

HB Code is a desktop app for Mac and Windows. It runs Claude Code and Codex on your own computer with your own Claude and ChatGPT plans.

Steps

  1. On the desktop, open Settings › Connections.
  2. Under Mobile Connection, turn on Allow Remote Access. If the app asks, choose your server region and sign in with your HB Code account.
  3. Leave HB Code open. Start the run.
  4. Keep a laptop open and on power. A closed lid can still put it to sleep, and HB Code doesn't override that.
  5. Follow the run from the iPhone or Android app. Send the next message from there.

Notes

  • HB Code blocks idle sleep only while Allow Remote Access is on. Turn it off, and the computer sleeps as usual.
  • The block doesn't need a connected phone. The switch alone is enough.
  • The screen can still turn off. The agents keep running.
  • On a Mac, it's the same kind of block that caffeinate -i makes.
  • A phone needs a working network on both sides. The phone app connects again by itself after a network change.

Questions

Does HB Code keep a MacBook awake with the lid closed?
No. It blocks idle sleep only and doesn't override the sleep of a closed lid. Keep the lid open.
Does the agent stop when the screen turns off?
No. The agent runs on while the computer is awake.
Do I need the phone app for this?
No. You need the Allow Remote Access switch, and that needs an HB Code account. The phone app is optional.
Does it work on Windows?
Yes. On Windows, HB Code asks the system to stay awake in the same way.