Clamshell vs Insomnia: no sudoers rule and nothing left on.

By Matyas Rathonyi. Updated November 15, 2026. Guides

Verdict: pick Clamshell for Mac to keep a MacBook awake with the lid closed. It installs with no password and adds no sudoers rule, while Insomnia's installer writes a rule that lets your whole user account switch pmset disablesleep without a password. It is notarized by Apple, runs on macOS 14 and later, and its thermal protection cannot be switched off. Insomnia needs macOS 26 and describes itself as experimental. This page is written by the maker of Clamshell, and it says where Insomnia is the better choice.

No adminNo password, sudo rule or helper
Nothing left onGone after disarm, quit or restart
macOS 14+Insomnia needs macOS 26
Notarized7-day trial, then $9.99 once

Clamshell for Mac keeps a MacBook awake with the lid closed, on power or battery. No admin password, no sudoers rule, no monitor. Free for 7 days, then $9.99 once.

Apple Silicon, macOS 14+. Notarized by Apple. 3.6 MB. Or install with Homebrew: brew install --cask clamshell.

Two closed MacBooks, both awake. Clamshell keeps the closed Mac awake while armed, with no admin rights. Insomnia switches pmset through a sudoers rule. Clamshell no admin Insomnia pmset + sudoers
Same closed lid, no sudoers rule.Clamshell keeps the closed Mac awake only while you have it armed, with no admin rights. Insomnia gets there by switching a system-wide sleep setting through a passwordless sudo rule its installer adds.

Insomnia is a free menu bar app for timed awake sessions, published on GitHub in September 2026 and widely shared in October. You enter days, hours and minutes, and the Mac stays awake until the timer ends. Around that it does a lot: on lid close it can freeze chat apps, mute audio and turn on Low Power Mode, and it can join an iPhone hotspot when the Wi-Fi drops. Clamshell for Mac is built for exactly one job: you arm it, close the lid, and it restores normal lid sleep when you disarm, quit or open the lid after a one-close arm.

For the closed lid itself, that focus is the difference. Clamshell does it without administrator access, and normal lid sleep returns when you disarm or quit. The details below show why.

Side-by-side comparison

Insomnia cells come from its GitHub README, install guide and releases, checked October 12, 2026. "Not stated" means we could not find it on those pages; it does not mean the feature is missing.

Clamshell RecommendedInsomnia
Admin rightsNone. No sudo, admin password, sudoers rule, kernel extension, driver or privileged helper.Password and sudoers rule. The installer needs your password. It adds a sudoers rule that lets your user account, "not just Insomnia", run four pmset commands without a password.
How lid-closed worksNo admin rights. Keeps the Mac awake with the lid closed only while armed; normal lid sleep returns on disarm or quit.Uses pmset. Switches pmset -a disablesleep through the sudoers rule, per its README.
What gets installedOne app.The app, a launchd recovery agent that runs every minute, and the rule at /etc/sudoers.d/insomnia.
When it endsMenu and Option-close arming cover the next close. Right-click and Shortcuts arming last until you disarm. Restores normal lid sleep on disarm or quit; a restart does the same.When the timer you set runs out, or when you end it early. Opening the lid does not end the session.
Thermal safeguardAlways on. Serious or critical thermal pressure disarms toward normal lid sleep and blocks arming until cooled.Heat rules turn on Low Power Mode when the Mac is seriously hot and end the session at critical heat. On by default; Settings can turn them off. They only work while the app runs.
After a crash or force quitA restart restores normal lid sleep. The direct edition can relaunch after an unexpected exit when its crash-recovery agent is permitted.Recovery can fail, per its README. The recovery agent tries to undo the session once its end time has passed, and does not watch battery or temperature.
Your other appsLeft alone. The optional Quiet Close module mutes the Mac while closed.On lid close, apps on the freeze list are paused with SIGSTOP. The list starts with Slack, WhatsApp and Discord. Audio is muted by default.
Built-in displayStays black while closed, and agents can still use the screen with the Agent Screen module. After an armed close it stays dark on reopen until the Mac is locked.Display and keyboard light are set to zero on lid close and restored on lid open.
Lid closed, no displayYes, on power or battery.Yes, on power or battery.
PlatformmacOS 14 or later, Apple Silicon MacBooks.Needs macOS 26 or later, Apple Silicon.
SigningNotarized by Apple.Not notarized. Ad-hoc signed, per its install guide. macOS blocks the first launch until you allow it.
InstallDownload the DMG from clamshell.dev, or get it on Setapp.Paste a prompt into a coding agent, or download a zip with the GitHub CLI, verify it and run install.sh, or build from source.
MaturityVersion 2.0.3, released November 15, 2026. Version 1.0 shipped in May 2026.Labelled experimental. First stable release, 0.1.0, on October 10, 2026, plus nightly prereleases.
Battery safeguardLow-battery disarm at 20% on battery, on by default.Low Power Mode below 40% and session end below 10% by default. Both can be changed.
Agent awarenessOptional. The Agent Status, Agent Notifications and Finish Work, Then Sleep modules follow Claude Code and Codex. Arm from scripts with clamshell://arm and clamshell://disarm, or Shortcuts actions.Not stated. Sessions run on a timer. An optional extra can type continue into a tmux pane you mark after 90 seconds without a network.
PricePaid, closed source. 7-day free trial, then $9.99 once for 1 Mac or $19.99 for 3 Macs. 14-day money-back guarantee.Free.
Source codeClosed source, paid: $9.99 once after a 7-day free trial.Open source, MIT.

An animated MacBook with a coding agent deploying a website from its terminal. The Option key is held and the lid closes: the display goes black, but the Mac stays awake, so a dimmed copy of the terminal keeps working above the closed laptop while its front edge fills with light. When the deploy is done, a pointer shows how to lift the lid. Opening it wakes the Mac to its lock screen, which unlocks to the finished run: deployed, with the live address. The lid can then be opened and closed freely.

How each app keeps a closed MacBook awake

A MacBook has two separate reasons to sleep. Idle sleep happens when nobody touches it; a power assertion, the thing caffeinate and most keep-awake apps hold, stops that. Lid sleep happens the moment the lid closes, and a power assertion alone does not stop it. Why caffeinate does not work with the lid closed covers this in detail.

Clamshell keeps the closed Mac awake with no admin rights, so nothing asks for a password. Insomnia uses the system-wide pmset disablesleep setting. That setting needs root, so Insomnia's installer asks for your password once and writes a sudoers rule that makes these commands passwordless from then on:

/usr/bin/pmset -a disablesleep 1
/usr/bin/pmset -a disablesleep 0
/usr/bin/pmset -b lowpowermode 1
/usr/bin/pmset -b lowpowermode 0

Insomnia's README is open about what that means: the rule covers "your user account, not just Insomnia", and "any program running as you can use that rule too, so review it before you install". Our guide to what pmset disablesleep does explains the setting, and the undo guide shows how to check that it is off.

Clamshell: arming needs no password, and lid sleep returns when you disarm. Clamshell arm no password ends on disarm Insomnia: the installer asks for a password and adds a sudoers rule, and sessions then set pmset disablesleep. Insomnia install password sudoers rule pmset disablesleep
Three steps, no administrator. Clamshell arms with no password and keeps the closed Mac awake only while armed. Insomnia needs an administrator at install and leaves a passwordless sudo rule in place, which is a blocker on a managed work Mac.

Timer or lid: when the session ends

Insomnia is built around a countdown. You pick how long the Mac stays awake, and the README notes that opening the lid does not end the session. If the task takes longer than you guessed, you add time. If it finishes early, the Mac stays awake until the timer runs out or you end it.

Clamshell is built around the lid. Arm it for one close, from the menu, with Option + Option, or by holding Option while closing the lid on supported Macs, and that session ends by itself when you open the lid again. Arm it by right-clicking the menu bar icon or with a Shortcuts action and it stays armed through every open and close until you disarm or quit, and a script can wrap a job with open "clamshell://arm" and open "clamshell://disarm". The Claude Code lid-closed guide has a full script, and the hooks recipe arms it only while a session runs.

Why Clamshell is the better pick

Close the lid without a sudoers rule. Clamshell is free for 7 days, then $9.99 once for one Mac.

Apple Silicon, macOS 14+. Notarized by Apple. 3.6 MB. Or install with Homebrew: brew install --cask clamshell.

Looking at other options? Compare Capsomnia and Sleepless, two more free apps that use pmset disablesleep, or see all of them in the keep-awake roundup.

Frequently asked questions

Does Insomnia for Mac need an admin password?

Yes, at install. Insomnia's README says the installer needs your password because it writes a sudoers rule at /etc/sudoers.d/insomnia. That rule lets your user account run four pmset commands without a password. Clamshell for Mac needs no sudo, admin password or privileged helper.

What is the difference between Insomnia and Clamshell?

Insomnia is a free, open-source menu bar app for timed awake sessions. It switches pmset disablesleep through a sudoers rule, and on lid close it can freeze chosen apps, mute audio and turn on Low Power Mode. Clamshell for Mac is a paid single-purpose app that keeps an Apple Silicon MacBook awake with the lid closed while armed, with no admin rights.

Does Insomnia work on macOS 15 Sequoia or macOS 14 Sonoma?

No. Insomnia's README says it requires macOS 26 or later on an Apple Silicon Mac. Clamshell runs on Apple Silicon Mac laptops with macOS 14 or later.

Is Insomnia notarized by Apple?

No. Insomnia's install guide says its releases are ad-hoc signed and not notarized, and that macOS blocks the first launch of a downloaded copy until you allow it in System Settings. Clamshell is notarized by Apple.

Does Insomnia detect when Claude Code or Codex finishes?

Its README does not say so. Insomnia sessions run on a timer you set in days, hours and minutes, and you can add time or end early. Clamshell's core does not detect agents either, though its optional Agent Status, Agent Notifications and Finish Work, Then Sleep modules show what Claude Code and Codex agents are doing, notify you, and can let them finish before the Mac sleeps; scripts arm and disarm it with clamshell://arm and clamshell://disarm or Shortcuts actions.

Is there an Insomnia alternative with no sudoers rule?

Clamshell for Mac. It keeps a closed Mac awake without Terminal commands, sudo, a sudoers rule, an admin password or a privileged helper, and restores normal lid sleep when you disarm or quit. It costs $9.99 once after a 7-day free trial.

If you are on macOS 26 and want a free, open-source timer that also pauses chat apps and mutes audio while the lid is shut, Insomnia covers that.

Ready to close the lid? Clamshell keeps your MacBook awake with no admin rights. Free for 7 days, then $9.99 once.

Apple Silicon, macOS 14+. Notarized by Apple. 3.6 MB. Or install with Homebrew: brew install --cask clamshell.

Related guides

Sources checked October 12, 2026: Insomnia's GitHub README, install guide, lid-close notes and 0.1.0 release. Insomnia was not installed or run, so nothing here is a hands-on test of it. Projects change; check the repository before deciding. Clamshell details come from its own documentation and changelog. Clamshell is the publisher of this comparison and is not affiliated with Insomnia. Product names belong to their respective owners.