AFK
AFK Free · macOS 14+

Lock the Mac.
Not the work.

Step away and your machine is locked — nobody can touch it. But your build keeps compiling, your agent keeps running, your upload keeps uploading. One click, then go.

Free and open source · No permissions needed · Apple silicon & Intel

Locking your Mac shouldn't pause your work

You lock the screen and go to lunch. The screen is secure — and forty minutes later the machine quietly idles to sleep, suspending everything you left running.

🧱

Builds that didn't

You come back to a compile that stopped somewhere in the middle of your break.

🤖

Agents that stalled

A long-running agent or test suite frozen mid-task, with an hour wasted.

🔓

Or you don't lock at all

So you leave it unlocked instead — and now anyone walking past has your machine.

One click, then walk away

you click Go AFK 0:00 locked · screen dark work continues 42:00 you unlock hold released done
Locked and dark the whole time, while every process keeps its CPU.
  1. Click "Go AFK"Or press ⇧⌘L from anywhere.
  2. It locks and holdsYour screen locks immediately and the display goes dark, while system sleep is held open underneath.
  3. Your work carries onEvery running process keeps its CPU. Nothing is suspended, nothing is paused.
  4. You come backUnlock and the hold releases automatically. It tells you what ran while you were gone.

Three ways to end a session

Pick per session from the menu, or set a default.

🔑

Until I unlock

The default. Holds the whole time you are away and releases the moment you come back. Predictable, and never cuts a job short.

✅

Until the work finishes

Watches what is actually running and releases once everything goes quiet — so the Mac sleeps on its own after the job is done.

⏱️

For a set time

A fixed stretch, when you know roughly how long you will be.

Safety rails

A tool that keeps a Mac awake has to be impossible to forget about.

Always ends on its own

Every session has a hard ceiling you set — twelve hours by default. A forgotten session cannot keep a machine awake indefinitely.

Battery floor

Refuses to arm, and stands down mid-session, when the battery drops below your threshold. Respects Low Power Mode.

Dies safely

The hold belongs to the process. If it is force-quit or crashes, normal sleep returns immediately on its own.

Tells you what happened

Come back to a short summary: how long it held, what was running, and whether anything was still going when it ended.

Lid closed, optionally

Shut the laptop and keep going. One-time admin approval, reverted automatically when the session ends.

No permissions

No camera, no Accessibility, no screen recording. It asks for nothing except admin — and only for lid-closed mode.

Questions

How is this different from caffeinate?

caffeinate keeps the Mac awake but does not lock it, does not know when your work is done, and has no safety ceiling. AFK locks first, then holds — and can end itself when the job finishes.

How is this different from WakeHold?

WakeHold is automatic and always on: it infers from activity whether to hold, and may let go when a process looks idle. AFK is deliberate and session-based — you arm it, it locks, and it holds regardless until the condition you chose. They work well together.

Is my Mac actually secure while it is armed?

Yes. It uses the same lock macOS uses, so your password is required to get back in. It changes nothing about the lock itself — only whether the machine may fall asleep behind it.

What if it crashes while holding?

The sleep hold is owned by the process, so it dies with it and normal sleep resumes immediately. The one setting that outlives the app — lid-closed mode — has a watchdog that restores it.

Will it drain my battery?

It can, since the machine stays awake — that is the point. Hence the battery floor and the hard time limit, both on by default.

Does the screen stay on?

No. The display sleeps immediately. Only system sleep is prevented, so you get a dark, locked machine that is still working.

Go to lunch. Leave it running.

Free, and there is nothing to configure.

Download for macOS