Clamshell for Mac. Close the lid. Keep your agents running

Download for Mac

$9.99 once
or $19.99 for 3 Macs

Downloaded 3,300+ times

Free for 7 days. Apple Silicon, macOS 14 or later.

Hold Option.

Then close the lid.

A dark room at night. Through a big window: the moon, thin cloud, a city skyline with a few lit windows, rooftops and a tree. On the desk a MacBook runs a coding agent. Every few seconds its lid closes on its own: status tags above the closed laptop show Claude Code and Codex still running, the clam in the menu bar turns blue, and then the lid opens again.

Keep your MacBook awake with the lid closed.

Stays awake on AC or battery.

The screen goes fully dark.

Wakes the instant you open it.

A long, low building in the night city with three big windows: a closed MacBook whose charger comes out while its agent keeps running, a lid shutting into full darkness, and a lid lifting onto finished work.

30+ modules.

  • Agent Status

    See what your agents are doing from the menu bar.

    A Mac menu bar at night with the Clamshell clam lit blue and its menu open. Claude Code is running, Codex is waiting for you, another Claude Code session is done, and the states change as the agents work.

  • Agent Notifications

    Know when an agent needs you or is done.

    The top right corner of a Mac desktop at night, under the menu bar clock. A Mac notification says Claude Code needs you; it goes away while Claude Code runs, a second one slides in when it is done, and the first slides back in when it needs you again.

  • Finish Work, Then Sleep

    Let your agents finish, then let your Mac sleep.

    A MacBook closes on two agents at work. Codex finishes, then Claude Code, and then the Mac goes to sleep.

  • Sleep Until Reset

    Sleep through a usage limit and wake when it resets.

    A closed MacBook on its charger. Codex hits its usage limit, the Mac sleeps while the wall clock runs on to the reset, then wakes and Codex picks up again.

  • Agent Screen

    Agents can use the screen with the lid closed.

    A closed MacBook and, above it, the screen its agent is using: Codex types into a field, clicks a button, and picks a result on the next page.

  • Battery Budget

    A closed session uses up to 15 percent of battery, then sleeps.

    A closed MacBook on battery while Codex runs. The battery drains from 100 to 85 percent, the share set aside for the session, and then the Mac sleeps.

  • Home Server

    Always armed, lid closed, for a Mac that serves.

    A closed MacBook on a desk at night, cabled to a router beside it. A plate reads Home Server armed. Another computer connects with Remote Login and the router blinks with traffic while the session time runs on. The Mac restarts after a power dip, comes back on its own and is armed again.

  • Keep Awake

    Your Mac stays awake with the lid open.

    An open MacBook on a desk at night. The Clamshell clam in its menu bar is lit and a plate on the screen reads Awake until 4:14. The menu bar clock runs from 2:14 to 4:14 while the screen stays on, then the clam goes plain and the Mac sleeps. Woken again, the Clamshell menu opens on 1 Hour, 2 Hours and 4 Hours, 2 Hours is picked, and the clam lights up again.

Describe a module. Your agent builds it.

Claude CodeOpenAI CodexGrok Build

A tower of the night city, close up. One window is dark. A line types into it: mute slack while my agent runs. A tag under the window shows the agent building, Claude Code, Codex or Grok Build in turn. The new module assembles in the glass, the window lights up with it, and the plate under it reads Quiet Slack.

Free for 7 days.

One-time. Every module included. v1 owners upgrade free.

Downloaded 3,300+ times

Dawn over the mountains: a sea of mist, a stone viaduct, and a train that now and then pulls in, waits a while and leaves again.

Frequently asked questions.

Which Macs and macOS versions?
Apple Silicon Mac laptops on macOS 14 or later. The Option-close gesture (hold Option while you close the lid) needs a lid angle sensor: MacBook Air M2 (2022) or later, or 14-inch / 16-inch MacBook Pro (2021) or later.
Will my agents and terminal sessions keep running?
Yes. Closing the lid only turns the screen off: agents, terminal sessions, builds, and downloads keep running, and the Mac stays on the network for SSH and screen sharing. Running Claude Code or another coding agent overnight? There is a step-by-step guide. While Clamshell is armed, the Mac stays fully awake instead of sleeping and briefly waking, the pattern some Claude Code users report using up their usage limit overnight.
Are modules included?
Yes. Every module is included in the one-time purchase, and v1 owners upgrade to v2 free.
Can I make my own module?
Yes. Describe what you want in a sentence and your own coding agent, like Claude Code or Codex, builds it as a module.
Do I need an external display?
No. macOS normally needs an external display attached before the lid can close; Clamshell removes that. No monitor, no dock, no HDMI dummy plug.
Is this the same as clamshell mode?
Same idea, without the monitor. Clamshell mode is what macOS calls working with the lid closed, and macOS only allows it when an external display is attached. Clamshell removes that requirement: close the lid and the Mac keeps running on its own. Here is the full story on clamshell mode without an external display.
Why doesn't caffeinate or my keep-awake app work with the lid closed?
Most keep-awake tools only prevent idle sleep. Closing the lid uses a different sleep path. The detailed guides explain why caffeinate does not override it and what pmset disablesleep changes. Clamshell keeps the Mac awake through lid close without admin rights, and normal lid sleep returns the moment you disarm.
Will it drain the battery or overheat?
Your Mac runs as it would with the lid open: idle work sips power, heavy work draws what it always draws. It works the same on battery, and Clamshell stays armed through every plug or unplug. A low-battery switch, on by default, lets the Mac sleep when the battery reaches 20%, instead of running flat. If macOS reports serious or critical thermal pressure, Clamshell disarms, the Mac goes back to normal lid-close sleep, and arming stays blocked until it cools. This check is always on.
Does it need admin access?
No. Keeping the Mac awake needs no kernel extension, no driver, no privileged helper and no sudo: Clamshell itself is a normal menu bar app. The optional modules Low Power While Closed, Fan Boost, Agent Light, Sleep Until Reset, Sleep Means Sleep, Stay Off When Opened and Password After Close use a helper you approve once in Login Items; they are off until you turn them on.
What if I quit Clamshell or it crashes?
Disarming or quitting returns the Mac to normal lid sleep, and Clamshell warns you if that does not complete. The direct edition can also relaunch after an unexpected exit when its crash-recovery agent is permitted. Restarting always restores normal lid-close sleep.
Is Clamshell on the Mac App Store?
No. Clamshell for Mac is available only from clamshell.dev and on Setapp. An App Store app with the same name is unrelated.
Is the Setapp version the same?
Yes. The Setapp version has every module, and you can make your own modules there too.
Can I get a refund?
Yes. Every purchase has a 14-day money-back guarantee, for any reason. The details are in the refund policy, or just email support.

For AI agents.

Install
brew install --cask clamshell
Before a long run
open "clamshell://arm"
When it is done
open "clamshell://disarm"
Price
Free for 7 days, then $9.99 once for one Mac.
Full reference
llms.txt, and every page as Markdown.