Close the lid.
Your agents keep working.

Everything your agents need to keep working with the lid closed, in one free, open-source menu bar app.

  • Stays awake with the lid shut: agents, terminals, browsers, SSH and downloads keep running
  • Watches the CPU temperature and drives the fans while the lid is closed
  • Locks the screen the moment the lid closes
  • Switches itself off before a low battery or high heat becomes a problem
  • A watchdog puts everything back if the app ever stops
  • Latest release
  • Apple Silicon and Intel
  • macOS 13 or later
  • No account, no subscription
agent1:42:07
    Mac
    Awake
    Screen
    Unlocked
    CPU
    58 °C
    Fans
    1,300 rpm
    Try it: close the lid with ClamDown on, then with it off.

    Stop carrying your laptop half-open

    Close a MacBook and macOS puts it to sleep. Your agent stops in the middle of a task, and its session can drop.

    So people walk through airports, offices and kitchens with the lid cracked open and a finger in the hinge. ClamDown lets you close it all the way: the agent keeps working, the screen locks, and the fans keep the Mac cool.

    Someone walking with a laptop held by its front edge, a thumb keeping the lid a few centimeters open, screen light leaking out of the gap.
    Without ClamDown. The lid held open with a thumb, screen on, battery draining.
    The same laptop fully closed and carried under one arm, a mint light glowing along its front edge.
    With ClamDown. Closed and locked. The agent is still working.

    You don’t need someone else’s cloud to close the lid

    The AI companies’ answer to a sleeping laptop is to move your agent onto their servers: cloud sessions that keep going after you close the lid, on their subscription plans.

    Your Mac is already paid for, and your project, tools and keys are already on it. ClamDown keeps the agent running there, for free.

    Question A vendor’s cloud session ClamDown on your Mac
    What it costs A paid plan, sometimes with usage limits Free and open source
    Where your code runs On the vendor’s servers On your Mac, where it already is
    Your setup Rebuilt in a remote sandbox: tools, secrets, network access Everything you already have: local files, databases, VPN, keychain
    Which agents The vendor’s own agent Any agent or tool you run in a terminal

    A closed MacBook goes to sleep. Keep-awake apps can’t stop that.

    Apps like Caffeinate hold a power assertion. It keeps the display and the system awake while the lid is open, and macOS ignores it the moment the lid closes, unless an external display and power are connected.

    And keeping a closed Mac awake is only half the job. macOS keeps a closed MacBook’s fans near idle even when the chip is hot, and on battery nothing stops a long agent run from draining it to empty.

    ClamDown turns on the system setting that does survive a closed lid, pmset disablesleep, and handles the rest: it drives the fans, watches the battery and the heat, and switches itself off in time. Your session keeps its processes, network connections and SSH tunnels.

    • Coding agents that work through a task list on their own
    • Browser sessions and automations your agents drive
    • Terminal sessions that run for hours
    • Builds, test suites and renders
    • Large downloads, uploads and backups
    • Remote access over SSH

    A closed laptop needs rules.
    ClamDown keeps them for you.

    When ClamDown Default
    The battery runs low Switches off and lets the Mac sleep. Only on battery, so a charging Mac stays awake. 10%5–50% or off
    The Mac runs hot Switches off when the system thermal state reaches the cut-off. SeriousFair, Serious, Critical or never
    The lid closes Locks the screen, so opening the lid asks for your password. On
    You run on battery Turns on Low Power Mode, and restores your previous setting when it switches off. On
    The timer ends Switches off. Start a timed session from the menu with Turn On For. Never30 minutes to 8 hours
    The adapter is unplugged Switches off. Off
    The app quits or stops responding The helper notices the missing heartbeat within about 90 seconds and puts sleep, Low Power Mode and the fans back by itself. Always
    It switches itself off Posts a notification that names the reason. On

    Fans that answer the heat, even with the lid shut

    macOS keeps a closed MacBook’s fans near their lowest speed, even when the chip is hot. While the lid is closed, ClamDown drives them from the CPU temperature instead.

    Speed rises at once and falls by at most 150 rpm every 3 seconds, so short dips in load don’t make the fans hunt. Opening the lid hands them back to macOS. Fan control needs Apple Silicon; Intel Macs show the readings.

    Fan speed by CPU temperature Lowest speed up to 60 °C, rising evenly to full speed at 85 °C. Both points are settings.
    Show as a table
    CPU temperatureFan speed
    Up to 60 °CLowest
    65 °C20% of the fan’s range
    70 °C40% of the fan’s range
    75 °C60% of the fan’s range
    80 °C80% of the fan’s range
    85 °C and aboveFull

    Set up in a minute

    1. Install

      Download ClamDown.dmg, open it and drag ClamDown into Applications.

    2. Approve the helper

      Click the switch. macOS asks you to allow ClamDown in System Settings, General, Login Items & Extensions. Turn it on, then click the switch again.

    3. Close the lid

      Your work keeps running. Open the lid and unlock to pick up where it is.

    Open source, notarized and deliberately narrow

    Changing sleep settings needs root, so ClamDown installs a small helper that macOS asks you to approve. The helper can do only this:

    • Turn disablesleep on or off
    • Turn Low Power Mode on or off for the battery profile
    • Read those two values, the temperature sensors and the fans
    • Set fan speeds within each fan’s own range, while the mode is on

    It accepts connections only from the ClamDown app signed by the same developer, and it resets any leftover state every time it starts. The app is signed with Developer ID, notarized by Apple and licensed under Apache 2.0.

    Read the code on GitHub

    Questions

    Can I put my MacBook in a bag with ClamDown on?

    A closed bag traps heat, and no app changes that. The thermal cut-off switches ClamDown off and lets the Mac sleep before it gets dangerous, but keep heavy work for a desk or a stand where air can reach the Mac.

    Does it work on Intel Macs?

    Yes. ClamDown is a universal app. Keeping the Mac awake, the cut-offs and the screen lock work on both. Fan control needs Apple Silicon; on an Intel Mac the Cooling page shows the readings only.

    What happens if ClamDown crashes?

    The app sends the helper a heartbeat about every 30 seconds. If it stops for about 90 seconds, the helper turns sleep and Low Power Mode back to normal and hands the fans to macOS. A restart does the same.

    Is my Mac unlocked while the lid is closed?

    No. By default ClamDown locks the screen when the lid closes. If you turn that setting off, lock the Mac yourself with Control-Command-Q before you leave it.

    How do I uninstall it?

    Switch ClamDown off, quit it and delete the app. If the Mac then refuses to sleep, run sudo pmset disablesleep 0 in Terminal. A restart gives the fans back to macOS.

    What does it cost?

    Nothing. ClamDown is free and open source under the Apache 2.0 license.

    ClamDown app icon

    Close the lid on your next long job.

    Download free for Mac

    Free, for macOS 13 or later.