Guides for running Mac work, safely.
Practical, calm reads on keeping a Mac working with the lid closed, and doing it within battery and thermal safety.
How to keep a Mac awake when the lid is closed
Every real way to keep a Mac awake with the lid closed, from a one-line pmset command to a monitored Closed-Lid session — and where each one runs out.
Read guide →Lid-closed & keep-awake
9 articlesHow to keep a Mac awake when the lid is closed
Every real way to keep a Mac awake with the lid closed, from a one-line pmset command to a monitored Closed-Lid session — and where each one runs out.
Read →Lid-closedKeep a MacBook running with the lid closed
Long builds, overnight syncs, unattended agent runs — how to actually keep a MacBook working with the lid shut for hours, and know what happened when you get back.
Read →WorkflowA lid-closed developer workflow for the MacBook
The free pmset and caffeinate tricks for a closed lid, where they run out of road, and the workflow LidRun builds on top — with battery and thermal auto-stop underneath.
Read →Closed-lidClosed-lid mode on macOS, without a kext
The honest technical explainer: what pmset disablesleep actually does, what caffeinate and Apple's own external-display clamshell mode already give you for free, and how LidRun holds the same toggle without leaving it stuck on.
Read →AlarmDoes a Mac alarm go off with the lid closed?
Yes — a Clock alarm set before you close the lid still sounds, because it schedules a system wake instead of checking whether the lid is open. Here's the mechanism, the failure modes, and what to do if you don't want to depend on it.
Read →pmsetA safer alternative to pmset disablesleep
pmset disablesleep works, but it's a global switch that's easy to forget about. Here are the free options worth trying first, then how LidRun pairs the same toggle with a battery and thermal auto-stop that catches what you forget.
Read →ClamshellClamshell mode on MacBook: what it means for AI work
Traditional clamshell mode needs a monitor. Running an AI agent lid-closed with no display needs a completely different mechanism — here's the real one, the free version, and where it breaks.
Read →Closed-lid AIWhat is a Closed-Lid AI Workflow?
What a Closed-Lid AI Workflow actually is, why closing the lid alone kills a running job, and the guardrails — thermal, battery, and timer — that keep it safe on Mac.
Read →ServerCan you use a MacBook as a server with the lid closed?
A closed MacBook can serve local APIs, LLM endpoints, and tunnels for dev sessions. Here's the mechanism that actually matters, the free ways to do it, and where they can bite you.
Read →AI & developer workloads
18 articlesKeep 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 →CursorKeep 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 →DockerPrevent 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-awakeBest 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 →OllamaKeep 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 →TerminalPrevent 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 ModeKeep 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 CommandRun 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 →CLILidRun 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 →AlertsGet 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 →ReportsYour 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 →BuildsStop 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 →CodexKeep 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 AgentsKeep 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 →DiagnosticWhat 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 AgentsHow 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 AgentsWhat 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 WorkstationWhat 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 →Battery & thermal safety
12 articlesMacBook auto sleep on low battery
macOS sleeps a MacBook on its own once the battery is nearly empty, but that floor isn't adjustable and gives no warning. Here's what's native, what caffeinate/pmset don't do, and how to set a real threshold.
Read →ThermalWhen your MacBook gets hot while coding
Why a Mac heats up under sustained load, the free keep-awake tools people already reach for and where they fall short on heat, and what genuinely helps — no magic claims.
Read →CoolingMac fan control for developers
What you can and can't actually control on Intel vs Apple Silicon, the free Terminal commands that show real thermal state, and the thermal-aware workflow LidRun uses instead of promising fan control it can't deliver.
Read →SafetyThe mac keep-awake safety governor: why LidRun lets a hot or idle Mac sleep
The four signals that decide when a keep-awake session should end, the real default thresholds behind them, and what a plain wake lock actually risks left running overnight.
Read →ThermalReading real CPU temperature on Intel and Apple Silicon Macs
Why Activity Monitor shows nothing, how the SMC encodes temperature differently on Intel and Apple Silicon, and why free and paid readers can land degrees apart on the same Mac.
Read →SafetyThe closed-lid heat trap: why a Mac cooks in a bag or car
The physics of trapped heat, the free pmset lever people already use to work around it, why an unguarded wake lock is dangerous there, and the honest limit of what any thermal governor can do.
Read →Smart RulesSmart Rules: if-this-then-that automation for Mac power and cooling
Describe the exact condition — a process running, battery below a percent, the chassis staying hot — and let LidRun react to it, the way a thermostat reacts instead of a light switch.
Read →BatteryKeep a build alive on battery, away from an outlet
A café, a train, no free outlet — how to keep a MacBook build running on battery with native tools and LidRun's silent display dim and battery floor, so the run ends on your terms instead of a dead battery.
Read →SafetyClosed-lid mode safety guide for MacBook workloads
The complete safe pattern for closed-lid MacBook use: why lid-closed sleep happens, the free pmset override and its real risks, five concrete safety rules, and the honest limits of what LidRun's guardrails can and can't watch.
Read →Safe RuntimeWhat Is a Safe Runtime Layer for Mac?
A wake lock keeps your Mac on. A safe runtime layer keeps it on safely — watching battery, heat, and process state, and letting go the moment the job's done or something's wrong.
Read →SafetyDeveloper Runtime Safety for AI Agents
Why a battery floor, a thermal ceiling, and something watching the process matter more than any single keep-awake toggle — and where caffeinate, pmset, and third-party apps fit before LidRun does.
Read →ThermalMacBook fan loud when lid closed: what it means
Why a closed lid makes the fan louder, how to diagnose it in two minutes, and what the popular caffeinate and pmset disablesleep tricks don't protect you from.
Read →Alternatives & comparisons
6 articlesAn Amphetamine alternative for Mac
Amphetamine, caffeinate, pmset, or something with a battery and thermal floor built in — here's the real landscape of Amphetamine alternatives for Mac, and where each one actually fits.
Read →ComparisonA Macs Fan Control alternative for developers
Fan control on Apple Silicon depends on the app, the chip, and the macOS version. Here's how Macs Fan Control, TG Pro, and smcFanControl actually compare — and why LidRun solves a different problem entirely.
Read →caffeinateLidRun vs caffeinate: which keep-awake tool fits your workflow?
caffeinate is free, built into macOS, and excellent for a single watched task. For long, unattended, or lid-closed AI and dev runs, here's the honest comparison — including LidRun's own CLI, real setup cost, and where its safety layer actually lives.
Read →caffeinateWhy caffeinate isn't enough for closed-lid AI workflows
caffeinate is genuinely good — it just answers a different question than the one a closed lid asks. Here's the real gap, the free command that closes it, and what still has to be added on top.
Read →AmphetamineLidRun vs Amphetamine: which tool fits AI and dev work?
Amphetamine nails general keep-awake. Here's exactly where it stops covering AI agents and dev runs — and what LidRun's battery floor, thermal watch, and lid-closed mode add for the rest.
Read →caffeinatecaffeinate on Mac: command examples, limits, and safer AI workflow options
Real caffeinate command examples, the free pmset and external-display workarounds for a closed lid, their risks, and where LidRun's battery/thermal guardrails pick up.
Read →Stop reading. Start running.
Keep your work alive with the lid closed, with safety built in.
Download for macOS