Apple notarized · macOS 13+ · detects 45 AI tools

The Mac command center for the AI era

Dummy plugs sleep on battery, and free keep-awake apps stop at blocking sleep. Lidnight sleeps 10m after Claude Code, Codex, or Antigravity finishes (10% battery and 45°C cutoffs), tracks limits and cost, resumes after resets, and sends approvals to your phone.

Download freeBuy Pro from $9.99

Start free · 14-day Pro trial, no card · $9.99 USD one-time · 14-day no-questions refund.

brew install whereisdw/tap/lidnight

Apple Silicon Mac · macOS 13 or later · closed-lid mode needs a MacBook · version 1.11.87 (15.6 MB) What's new

Lidnight menu bar window: one session waiting for approval and two working, Claude and Codex 5-hour and weekly limits, and CPU, GPU, memory, disk, network and battery with top apps (example data)
Actual app screen · sample data

Finds the AI tools you already use

  • Claude Code
  • Codex
  • Antigravity
  • Gemini CLI
  • Kiro CLI
  • Cursor
  • Copilot CLI
  • OpenCode
  • Aider
  • Cline
  • See all 45

Claude Code, Codex and others report status through official hooks. For the rest, Lidnight infers it from process activity. Token usage works with 13 tools, and 5-hour and weekly limits with Claude and Codex.

See all supported tools

Claude Code · Codex · Kiro CLI · Gemini CLI · Copilot CLI · Cline · Grok Build · Aider · OpenCode · Goose · Cursor Agent · Antigravity CLI · Qwen Code · Continue CLI · Crush · Factory Droid · Kimi Code · Mistral Vibe · Auggie · Kilo CLI · Amp · Warp Agent CLI · OpenHands CLI · Junie CLI · DeepSeek Harness · Cursor · Devin Desktop · Kiro IDE · Zed · Antigravity · Gemini · Trae · Ollama · LM Studio · llama.cpp · MLX · ComfyUI · vLLM · Jan · Msty · LocalAI · KoboldCpp · exo · Open WebUI · Draw Things

Step away, and it keeps going like this

  1. Step away

    Close the lid and walk off. AI work keeps going, and anything that needs your approval waits right there.

    Menu bar window: awake with the lid closed, Claude waiting for approval to run npm run build && npm test (example data)
  2. Approve on your phone

    Tap the alert on your phone, check the command, then allow or deny it. You can also answer a question or send the next instruction.

    Phone status page: Claude Code waiting for approval to run pnpm test, with Allow and Deny (example data)
  3. Done alert, then a recap

    You hear when the work is done, and when you're back, one page shows what finished and the tokens used while the lid was closed.

    Away report: lid closed for 2 h 13 min, 3 tasks finished, 15.0M tokens (example data)

Closed-lid runs and phone approvals are Pro (included in the 14-day free trial). Screens are the actual app and phone status page with sample data.

Your AI work and your Mac, from one menu bar

Every screen below is the actual app, captured with sample data. Click to enlarge.

AI sessions

See who's working and who's waiting on you

See which sessions are working, waiting on an approval or answer, or done. Allow or deny approval requests right from the menu bar window, read a session's conversation, and send the next instruction now or queue it for when the current task ends. Approval requests come from Claude Code by default and from Codex while you're away (a setting adds them while you're at your Mac). Kiro and Gemini join once you turn them on in Settings.

It tells you about approval waits, 15 minutes with no output while keep-awake is on, the same failure repeating, and token use more than 3× your usual pace (last 14 days). It never ends a session on its own.

Free · approving from the notch is Pro

Approval request in the menu bar window: allow or deny npm run build && npm test (example data)Session window: conversation, next instruction and one queued instruction (example data)
Actual app screen · sample data

Service map

What each session started, and what it costs, on one map

It unfolds AI, project, session, then subagents and MCP servers, with CPU, GPU, memory, tokens and cost for each. Sessions waiting on you show in orange, token surges and repeated actions in red, and you can answer or stop the session right there.

Messages between sessions show as lines; their content isn't stored. Cost is an estimate at API prices.

Free

Service map: projects and sessions under Claude Code and Codex, approval-needed markers, today's cost, and the selected session's limit impact, CPU, GPU and memory (example data)
Actual app screen · sample data

Limits and cost

When your limits run out, and what you've used

See Claude and Codex 5-hour and weekly usage with reset times and a run-out estimate at your current pace. Past periods stay on record.

Input, output and cache tokens across 13 tools by AI, model and project, with CSV export. Costs are at API prices, so they won't match your subscription bill.

Free · resuming after a reset is Pro

Limits panel: Claude and Codex weekly and 5-hour usage, hourly pace, run-out estimate and past closes (example data)Usage and cost: 810M tokens over 7 days, API price equivalent, by day, AI, model and project (example data)
Actual app screen · sample data

Phone approvals

Away from your desk? Approve and reply from your phone

When an approval comes in, you get a push in the free ntfy app. Tap it to open the status page, then allow or deny, answer a question or send the next instruction.

By default, hard-to-undo commands can only be approved on the Mac, and conversations and anything you type are encrypted.

Pro · included in the 14-day free trial

Phone remote page: Claude Code asks to run pnpm test with Allow and Deny, Mac status and next instruction (example data)
Actual phone status page · sample data

Mac resources

What's weighing your Mac down, top 3 that add up

For CPU, GPU, memory, disk, network and battery, it shows the top three apps plus ‘Other and system’, so the rows add up to the total. Disk shows free space alongside read and write speed.

Charts cover the last hour to the last 30 days, with per-app usage on its own tab.

Free

Mac resources: top three apps plus other and system for CPU, GPU, memory, disk, network and battery, 180 GB free with read and write speed, and 24-hour charts (example data)
Actual app screen · sample data

AI cleanup

Clear out the caches and processes AI tools leave behind

It finds rebuildable caches from Claude Code, Codex, Cursor, Kiro, Xcode and package managers, plus processes left running after their session ended, and shows how much space each takes. Caches only go to the Trash, after a last check that nothing is using them.

Conversation history, settings, credentials and model weights are never touched. You preview and confirm before anything moves.

Sizes and one-at-a-time cleanup are free · one-click cleanup and ending leftover processes are Pro

AI cleanup: 18 GB reclaimable, space by tool (Xcode, package managers, Claude desktop and more), four leftover processes and a Clean up button (example data)
Actual app screen · sample data

Lid closed, still working

Awake while agents work, asleep when they're done

While AI work is running, your Mac stays awake with the lid closed, even on battery. When all work has been quiet for 10 minutes, it restores your settings and lets the Mac sleep.

It stops at 10% battery (the default) or if the Mac gets too hot, and if the power cuts out, sleep settings are restored at the next boot.

Pro · Free works with the lid open (AI Auto has no time limit once you start it)

Keep-awake panel and settings: start with AI, sleep 10 minutes after, up to 8 hours, keep AI running with the lid closed (example data)
Actual app screen · sample data

Recap

When you're back: what got done, and what it used

One page with what you asked for and how it went, files changed, test results and errors, and the tokens used. If the logs don't show a result, it won't say the tests passed.

Free

Away report: lid closed for 2 h 13 min, 3 tasks finished, 15.0M tokens, and what each project did (example data)
Actual app screen · sample data

Updates

Updates install quietly, and what changed is right there

New versions install quietly while the window is closed and you're not using it, and if a new version can't start, it steps back to the previous one on its own. Click the version at the bottom of the menu bar window to see what's new, right there.

Prefer to do it yourself? Turn off auto-update in Settings and update with the button.

Free

What's new screen: three changes in this version and an update button for the new version (example data)
Actual app screen · sample data
  • Dashboard: a one-line summary of what's going on, plus charts from the last hour to the last 30 days
  • Health checks: battery, heat, memory, disk and connections, plus the lidnight doctor command
  • History: compare awake time and AI replies with the previous period, and make a share card with no conversations or code (Free: today; Pro: 7 and 30 days)
  • Menu bar: task count per AI, a dot when something's waiting on you, and a line for your remaining limit. Changing the runner and custom runners are Pro

Tools you used to install one by one, in a single app

  • Closed-lid keep-awake

    Keeps the Mac awake only while agents work, then lets it sleep.Pro

  • Charge limit

    Set the built-in macOS charge limit from Lidnight.macOS 26.4+

  • Fan control

    On Macs with fans, spins them up earlier than macOS based on chip temperature.Pro

  • Mac resource monitor

    CPU, GPU, memory, disk, battery and network, live and over time, plus per-app usage.

  • Cleanup

    Moves only rebuildable caches to the Trash, and flags processes left over from finished Claude Code sessions.

  • AI agent monitoring

    Alerts on runaway, stalled and waiting agents, and shows limits and token use.

Planned for v2.0 Automation that follows your alerts · Safe paste for secrets (not released yet)

What should come first? Tap one. It's anonymous and only counts taps.

What actually happens while you're away

One approval, stalled until morning

An agent that asks for permission waits until someone answers. Close the lid and the Mac sleeps, so even that stops. Claude Code's own docs note that closing the laptop lid still puts it to sleep.

Claude Code docs · Scheduled tasks

It keeps going on its own

One report: turns kept coming with no prompt, and the 5-hour limit went from 28% to 52% in about two hours.

claude-code #108536 · 2026-11-09

You find out about the cost later

Another report: with nothing to stop a loop in unattended runs, about $9,364 went out over six days.

claude-code #107256 · 2026-11-04

Lidnight doesn't stop your agents on its own. It watches from outside them, in the menu bar, tells you when one stalls or runs away, and leaves the call to you. When you're back, the record of what happened is waiting.

Watching is free. Pro is for when you step away

Try every Pro feature free for 14 days from first launch or 5 lid-closed runs of 10+ minutes on a MacBook, whichever comes first. No card required, and the free features keep working after.

Free $0

When you're at your Mac

  • Session status, approval and failure-loop alerts, plus stall alerts while keep-awake is on
  • Read the session and send instructions or images
  • 5-hour and weekly limits with a run-out estimate
  • Today's tokens and cost
  • Work reports
  • Dashboard and service map
  • Mac resources
  • Cache cleanup
  • Menu bar indicators
  • Stay awake with the lid open: AI Auto with no time limit once you start it, or a timer up to 1 hour (battery and heat protection included)
Download free

Pro $9.99

$9.99 for 1 Mac · $14.99 for 3 Macs (USD, about $5/Mac)

When you step away

Away

  • Alerts on your phone, plus approve, reply and send quick instructions
  • Optional auto-continue after a limit reset, and a heads-up when it's dropping fast
  • Approve from the notch
  • 7- and 30-day history comparisons
  • Clean up leftover Claude Code processes

MacBook

  • Keep working with the lid closed, even on battery
  • Turns on when work starts, runs until a set time, fan control
Buy Pro from $9.99

one-time payment

Billed once in USD, no subscription, all 1.x updates included. Full refund within 14 days, no questions asked. Regional tax may be added at Creem checkout. Team Control Plane pilot (from $19/seat/mo planned) ›

Why pay when free keep-awake apps exist?

  • No forgotten toggles or AC-only plugsDummy plugs sleep when unplugged, and coding agents keep the terminal open after a turn ends. Lidnight sleeps 10m after the turn finishes, stops at 10% battery or 45°C on battery, and restores sleep on boot.
  • More than blocking sleepMost free MIT apps stop at keeping the lid awake. Lidnight adds encrypted phone approvals and replies, token and battery tracking across 13 tools, and auto-resume after limit resets.
  • Apple notarized · macOS 13+No unnotarized Gatekeeper prompts or macOS 26-only limits. Try every Pro feature free for 14 days with no card, backed by a 14-day no-questions refund.
Is a free fix like caffeinate or pmset enough?

Two Claude Code issues report requests breaking off while the Mac slept, then being sent again and eating into usage limits (#102780, #103233). To see whether it happens on your Mac, start with the free, open-source lid-check. It counts the requests and tokens recorded while the Mac was asleep.

  • Leaving the lid open? A free one-liner is enough. caffeinate -i -w <agent PID> blocks idle sleep until that process exits, then lets go. Close the lid, though, and the Mac sleeps.
  • Lid closed, on battery? People usually reach for sudo pmset -a disablesleep 1. Forget to set it back to 0 and the Mac stays awake after the work is done, with nothing watching battery or temperature.

Lidnight Pro switches that setting on and off for you. It turns on when an agent starts working, and when all work has been quiet for 10 minutes it restores normal sleep and puts the Mac to sleep. It stops when the battery reaches 10% (the default) or the Mac gets too hot, and sleeps if the battery passes 45°C while running on battery with the lid closed. If the power cuts out, the sleep setting is restored at the next boot. That is also why approving from your phone works: the Mac is still awake to carry on.

When another tool fits better

  • Only need limits and usage? The free, open-source CodexBar is enough.
  • Want your agents in the notch? Vibe Island ($19.99) is built for exactly that.
  • Only need free closed-lid keep-awake on macOS 26+? Check the MIT open-source Adrafinil (macOS 26.4+, hook-based with thermal cutoff) or manual-timer StayAwake (macOS 26+, unnotarized).
  • Only need the lid closed, without giving an admin password? Clamshell ($9.99) says it runs without admin rights. Lidnight asks for your admin password once for closed-lid mode.
  • Work that doesn't need your Mac's files? Claude Code cloud sessions keep going with the laptop closed (official docs).

Lidnight fits when you want one app to watch several AI sessions from the menu bar, keep them going with the lid closed while you're away, and approve from your phone. Prices and claims checked on each site on 2026-12-05.

Compare MacBook lid-closed options
Ways to keep your Mac awake, compared
FeatureLidnightClaude Code alone
Claude desktop app
“Keep awake while working”
Manual power settings
Other keep-awake apps
15+ free and paid
Keep going with the lid closed, on battery tooLidnightYes ProClaude Code alone—Claude desktop app—Manual power settingsYesOther keep-awake appsSome
Sleeps on its own when the work endsLidnightYesClaude Code alonePer turnClaude desktop appYesManual power settings—Other keep-awake appsSome
Safe if you forget to turn it off, and restored after a crash or restartLidnightYesClaude Code aloneYesClaude desktop appYesManual power settings—Other keep-awake appsSome
Codex, Gemini CLI and other agents tooLidnightYesClaude Code alone—Claude desktop app—Manual power settingsManualOther keep-awake appsSome
Approve and answer questions from your phoneLidnightYes Pro · Codex while you're away, Kiro and Gemini once turned onClaude Code aloneClaude only Remote Control, while the Mac is awakeClaude desktop appClaude only while the Mac is awakeManual power settings—Other keep-awake appsSome notify
A recap when you're back, with results, pending questions, errors and tokensLidnightYesClaude Code alone—Claude desktop app—Manual power settings—Other keep-awake appsSome activity summary
Sessions and limits at a glance in the menu barLidnightYesClaude Code alone—Claude desktop app—Manual power settings—Other keep-awake appsSome
Battery and heat protectionLidnightYesClaude Code alone—Claude desktop app—Manual power settings—Other keep-awake appsSome

In the Claude desktop app, open Settings, then Claude Code and enable “Keep computer awake while Claude works”. This only prevents idle sleep; closing the lid still puts your Mac to sleep. Phone approvals use Remote Control, require a Claude Pro or Max sign-in and work only with Claude sessions. Claude Code itself also only prevents idle sleep while a turn is running.

Closed-lid running, phone approvals, auto-start and resuming after a limit reset are Pro features (free trial included). "Some" means it depends on the product or setting. "—" means we couldn't confirm it, not that it's unsupported.

Checked on 2026-10-25 against Claude desktop app settings, Claude Code documentation (Remote Control and hooks) and macOS power-management manuals.

Why it's safe to install

Your records stay on your Mac

Your records stay on your Mac. If you turn on phone alerts, the notification text is sent. When you read or approve from your phone, that content is encrypted before it passes through our relay. Read about security

Notarized by Apple

Signed with a Developer ID and notarized by Apple. No sign-up, no account.

Pay once, 14-day refund

No subscription, and every 1.x update is included. Refunds within 14 days, no questions asked. Payment and tax are handled by Creem, the merchant of record.

Who makes it

A one-person app from Dawon Labs. Every version's changes are in the public changelog, and lid-check, a tool that counts the tokens a sleeping Mac used, is MIT open source. Questions: support@dawonlabs.com.

What it reads and what it sends

What it reads

Lidnight reads session status, limits, token counts and process resource use from your AI tools. It also reads local conversation records to show conversations and work reports.

Storage and transmission

Records stay on your Mac. Message content between sessions isn't stored, though a handoff may leave a short, redacted request summary. Conversations viewed on your phone, approvals and anything you type are encrypted in transit. Usage counts are anonymous.

Permissions

On first launch it adds hooks to your AI tools’ settings so it knows when tasks start and finish (undo in Settings › AI integration). Closed-lid mode on a MacBook asks for your admin password once via “Allow lid closed”. Notifications are optional.

Read about security

Frequently asked questions

What is Lidnight?

It's a command center for your Mac in the AI era. See the sessions, approvals, limits and cost of AI coding agents like Claude Code and Codex from the menu bar, and use the service map to check the subagents and resources each session started. Mac resources and disk, cache cleanup, charge limit and fan control live in the same app. With Pro, alerts reach your phone so you can approve there, and your MacBook keeps working with the lid closed until the job is done.

Does it work on a Mac mini, Mac Studio or iMac?

It's built for any Apple Silicon Mac. Session monitoring, the service map, limits, usage, reports and phone alerts are all available; only lid and battery features need a MacBook. Most of our testing so far has been on an M1 Pro MacBook, so if it doesn't work on your desktop Mac, get a refund within 14 days.

What's included for free?

Everything you need while you're at your desk: session status, the session window, limits with run-out estimates, today's usage, the dashboard, service map, Mac resources and work reports. Phone alerts and approvals, resuming after a limit, 7- and 30-day history comparisons, and lid-closed running on a MacBook are Pro. Free keeps your Mac awake with the lid open: AI Auto runs with no time limit once you start it, and timers go up to 1 hour.

Does Lidnight itself slow my Mac down?

It's built to stay light: it only re-reads what changed and cuts back updates for hidden views. Every release goes through CPU and memory checks, and you can see Lidnight's own usage in diagnostics.

My Mac sometimes slows down while I build with AI tools

macOS security scanning (XProtect) can use a lot of CPU when it rechecks every program your developer tools build and run. When Lidnight spots this, it shows which app is behind it in the Mac resources view and opens the Developer Tools pane in System Settings for you. After you add that app and relaunch it, Lidnight measures the scan CPU before and after so you can see it actually dropped. Programs run by an app you mark as a developer tool skip some security checks, so only add apps you trust.

Does my code or conversation leave my Mac?

Your records stay on your Mac. If you turn on phone alerts, the notification text is sent. When you read or approve from your phone, that content is encrypted before it passes through our relay. Read about security

What do I actually pay?

Free features cost nothing. Pro is a one-time $9.99 USD for 1 Mac or $14.99 USD for 3 Macs. Creem bills in USD and may add tax depending on where you live, with a full refund within 14 days, no questions asked.

What happens when the trial ends?

The Pro trial lasts 14 days from first launch or 5 lid-closed runs of 10+ minutes on a MacBook, whichever comes first. No card required and no automatic charge. Free features keep working after the trial.

Is the displayed cost my actual bill?

No. It estimates input, output and cache tokens at API prices, so it differs from your subscription bill.

How accurate is the run-out estimate?

It's an estimate based on your average pace since the current window started. If your pace changes, so does the time.

Is it safe to approve from my phone?

Approval content and text you type are encrypted in transit. Each approval button works only for that request. By default, risky commands can only be approved on the Mac.

Why does it need my admin password?

Closed-lid mode on a MacBook needs a small helper that changes power settings. You don't need it for monitoring. The helper only runs a fixed set of sleep, power and fan commands. Reinstalling also asks for authentication. Learn about permissions

Can I put it in my bag? What about heat?

Keep your Mac on a hard surface with airflow while it works. Don't leave it in a bag or under a blanket. Battery and heat protection are a last resort.

Don't Claude Code and Codex already keep the Mac awake?

Each tool's keep-awake behavior depends on its settings and power state. Preventing idle sleep differs from keeping a MacBook running with its lid closed. Compare the options

Put it in your menu bar and get started

  1. Download it, drag it to Applications and open it. It's notarized by Apple.
  2. Click “Connect installed AIs” and Lidnight finds and connects Claude Code, Codex and the rest.
  3. On a MacBook, click the menu bar icon, then Allow lid closed once. That’s it. It asks for your admin password once.

Download free and try all of Pro. No card required.

Download free

The Pro trial lasts 14 days from first launch or 5 lid-closed runs of 10+ minutes on a MacBook, whichever comes first.

Start free. Pro is a one-time $9.99 USD, with a 14-day no-questions refund.