Category

AI & developer workloads

Guides in the AI & developer workloads category.

Claude Code

Keep Claude Code running when your MacBook is closed

The free pmset trick that actually survives a closed lid, why it's risky to run by hand overnight, and how LidRun adds battery and thermal auto-stop on top of it.

Read
Cursor

Keep a Cursor agent running on your Mac

Stop a closed lid from stalling your Cursor agent or a big re-index — and see exactly where caffeinate and pmset stop covering you.

Read
Docker

Prevent Mac sleep during a Docker build

A sleeping Mac doesn't pause a Docker build, it kills it. Here's the free caffeinate/pmset fix, where it falls short, and how LidRun adds thermal and battery awareness on top.

Read
Keep-awake

Best Mac keep-awake app for AI developers — 2026 guide

A criteria-based comparison of keep-awake options for AI developers — caffeinate, pmset, Amphetamine, KeepingYouAwake, Lungo, Caffeine, and LidRun — for when Claude Code, Cursor, Codex, or Ollama has to keep running unattended.

Read
Ollama

Keep Ollama running on a MacBook

Ollama needs the Mac awake for hours. Here's the free way to do it, where that breaks down overnight, and how LidRun keeps a run alive with real limits in place.

Read
Terminal

Prevent Mac sleep during a long terminal command

caffeinate -i stops idle sleep during a long rsync, build, or script — but closing the lid kills the job anyway. Here's the full picture, flags included.

Read
Auto Mode

Keep your Mac awake only while it's actually working

An open app isn't a working one. Here's how to auto keep awake only while working — CPU thresholds, a holdoff, and how it stacks up against caffeinate and pmset.

Read
Run Command

Run a long command, then let your Mac sleep when it's done

Wrap a job so the Mac stays awake exactly as long as it runs. Covers the free native way first — caffeinate, pmset — then where it stops being enough.

Read
CLI

LidRun CLI: keep a Mac awake from the terminal

Every real lidrun command, how it compares to caffeinate and pmset, and exactly which parts of a terminal session get LidRun's battery and thermal guardrails — and which run bare.

Read
Alerts

Get a ping when your training run or build finishes

Run it under LidRun and get pinged the second it exits — free to your phone via ntfy or Pushover, or to Telegram, Discord, Slack, and your own webhook on Pro.

Read
Reports

Your weekly Mac workstation report: how hard your machine actually ran

A free, on-demand recap of your last seven days — total runtime, your longest session, and a 0-100 Workstation Score — computed locally on your Mac, with a shareable card and nothing uploaded.

Read
Builds

Stop your Mac sleeping during a long Xcode or cargo build

Native compiler and package-manager builds outlast the idle timer. The free caffeinate one-liner, why it runs out of road, and two build-aware ways LidRun keeps the Mac awake until the build is actually done.

Read
Codex

Keep Codex running overnight on a Mac

Start a long Codex run before bed and want it finished by morning. Here is the free caffeinate + pmset trick, where it runs out of guardrails, and how LidRun keeps an overnight Codex session honest about battery and heat.

Read
AI Agents

Keep AI Agents Running While You Sleep

caffeinate and pmset can hold a Mac awake overnight, but neither knows when an AI agent is actually done. The safer, process-tied pattern — and where the free options break.

Read
Diagnostic

What Is Keeping Your Mac Awake? Here's How to Find Out

Find the app holding your Mac awake with pmset -g assertions and Activity Monitor's Energy tab — plus what it means when the list comes back empty.

Read
AI Agents

How AI Agents Changed Laptop Power Management

AI agents run for hours with zero clicks. Here's why macOS reads that as idle, what caffeinate and pmset actually fix, and where they run out.

Read
AI Agents

What Is AI Agent Continuity?

Three Mac failure modes that kill agent runs, the free native ways to fix them, and the safe pattern to keep Claude Code or Cursor running start to finish.

Read
AI Workstation

What Is an AI Workstation Guard?

Process-scoped keep-awake, real battery/thermal limits, alerts, a weekly score, and where caffeinate or pmset alone fall short for unattended AI runs on Mac.

Read

Stop reading. Start running.

Keep your work alive with the lid closed, with safety built in.

Download for macOS

Curious if LidRun is right for you?

Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually thinks about LidRun.