Security & privacy

What gets installed, what data is used, and how to remove it — all in one place.

October 3, 2026 · Direct download from lidnight.app

What is installed

Install by moving Lidnight.app from the DMG into Applications (/Applications/Lidnight.app).

Setting up permission to keep the Mac awake with the lid closed asks for administrator authentication and installs these four files.

/Library/PrivilegedHelperTools/lidnight-power
Helper for the allowed power commands
/Library/PrivilegedHelperTools/lidnight-smc
Fan-control helper
/etc/sudoers.d/lidnight
Rule allowing the installing user to run the power helper
/Library/LaunchDaemons/app.lidnight.reset-sleep.plist
Boot-time task that clears the sleep-disable setting

App preferences use the macOS app.lidnight.Lidnight preferences domain; records and integration files live in ~/.lidnight/.

Enabling agent integration adds Lidnight hooks to ~/.claude/settings.json and ~/.codex/hooks.json. Existing files get a one-time backup beside them with the .lidnight-backup extension; the original Claude status-line setting is also saved for restoration on disconnect.

Choosing to install the terminal command creates ~/.lidnight/bin/lidnight and, if ~/.local/bin/ exists, a lidnight link there.

What uses administrator permission

Administrator authentication is handled by the macOS dialog. After installation, the app invokes the power helper through sudo -n; the helper allows the following operations.

This allowlist applies to the privileged helper. Separately, the app reads power settings with pmset -g and pmset -g custom, and sleeps the display or Mac with pmset displaysleepnow and pmset sleepnow. It uses nettop to read per-process byte counts.

Installation and removal use file-copy and permission-setting commands; app updates use tools including hdiutil, ditto, codesign and spctl to open the disk image and check its signature and notarization.

Data read and kept locally

Lidnight does not directly retrieve AI-service login tokens or browser cookies. It does use the Keychain for its own license. Its license key and activation instance ID are stored and read under app.lidnight.Lidnight.license.

Usage counting reads AI tools’ local log files, which may contain conversations, and extracts metadata such as token counts, models and projects. Limits come from supported tools’ logs or status lines, or the Claude CLI’s /usage result. This does not mean files containing prompts are never read. The usage code does not analyze prompt text or include it in phone alert messages. The one exception is the lid-open recap window: when you open it, Lidnight reads only the end of each finished Claude Code session’s log to show that task’s last request, the first line of the last reply, the names of files it edited and whether its test commands passed, on this Mac’s screen. Nothing is stored or sent, and turning off Settings › Alert types › “Recap shows asks & results” stops it.

~/.lidnight/usage.json keeps aggregates and metadata such as models, projects and per-file read positions. File paths are stored as hashed keys. history.json keeps activity records such as tasks and durations. Hooks record events, times, process IDs and working folders in sessions/; for Claude Code sessions they also record that session's messaging socket path and session token, in files only your user can read, so Lidnight can continue the task after a limit reset (removed when the session ends).

The Claude status-line integration saves the entire status JSON containing rate_limits to ~/.lidnight/claude-status.json. It does not filter individual fields before saving, and forwards the same input to an existing status-line command if one was configured.

Work detection checks running processes, some command arguments, CPU and GPU activity, and network byte counts. Network usage detection does not inspect packet contents. The resources panel and card read CPU, memory, disk, battery (cycles, temperature, capacity), network rates, local IP and interface name from this Mac’s public APIs for display only (every 2 s while open, every 10 s while closed for the trend), and never store or send them.

What goes over the network

Updates and pricing: the app retrieves version and sales status from lidnight.app/version.json, and API prices from lidnight.app/pricing.json. The update-check URL includes a timestamp; these requests do not attach AI logs or usage totals.

Wi-Fi name and attached images: Location permission is requested only when you press the button, and is used only so macOS shares the Wi-Fi name. Your location is never read or stored. Images attached in the session window are saved to ~/.lidnight/attachments on this Mac, deleted after 7 days, and read by the AI tool that receives the path.

Anonymous counts (can be turned off): when one of twenty-one fixed events happens (phone alerts first turned on, first launch on a new install, purchase screen opened, buy button, first lid-closed use, Mac slept on lid close on Free, trial ended, first AI work noticed, power permission first installed, first automatic start for AI work, the four hold-off reasons on the purchase screen, phone app interest shown, phone app interest tapped, automatic error retry sent, departure check opened, next instruction sent from the recap, still running 3 and 7 days after first launch on a new install), the app sends just that event name to lidnight.app/api/count. Each Mac sends it at most once a day (the “first” events, trial end and the 3- and 7-day events only once), with no device, IP, license or ID, and the server only adds to a per-day total. Turn it off in Settings › General › Send anonymous counts.

The buy page (lidnight.app/buy) counts only how many times the checkout button and each hesitation reason were pressed, as daily numbers. The site also keeps daily totals of visits by page type (home, guide, buy) and language, referral groups (search, Reddit, X, GitHub and so on, taken from the referring host only, never the full address or search terms), and how the DMG was fetched (web, in-app update, Homebrew). No cookies, device, IP or ID are stored (updated 2026-10-31).

App updates: choosing to update downloads a DMG from the address in the update information, then checks its signature, notarization, app identity and version before replacement.

Licensing: activation sends your license key and an instance name containing your Mac’s name to lidnight.app/api/license, which passes it to our payment provider Creem (api.creem.io) for checking without storing or logging it. Revalidation and deactivation send the license key and instance ID. Payment happens on the Creem checkout; if you enter your email there and don't finish, Creem may send up to three reminder emails (stop them with the link in the email; no extra discount).

Phone alerts, remote control and approvals: when enabled, notification bodies sent to ntfy.sh can include status, agent names, project folder names, times, battery levels and usage summaries. Approval alerts never include what Claude wants to run. If you turn on Settings › Alerts “Content in phone alerts” (off by default), done alerts include each task's result line and in-progress asks, and that text passes through the ntfy server unencrypted. The phone status page (including the one-line command of an approval request and, unless Settings › Alerts “Recap shows asks & results” is off, the first line of recently finished tasks' results and each session's last reply in the session list) is encrypted on the Mac with AES-GCM and sent through the lidnight.app relay (or ntfy if the relay is unreachable); the key only reaches your phone via the QR code, so the relay can't read it. Messages you send to a session and “Other” answers from the phone travel encrypted, and while you view a session its recent conversation is encrypted and sent only through the relay (off when “Recap shows asks & results” is off). A session message becomes input to that AI agent and can lead it to edit files or run commands, so only signed commands from a phone linked by your Mac's QR code are accepted. If you lose a linked phone, press “Unlink” in Settings › Phone alerts. Commands, allows and denies from the phone are sent as expiring one-time signatures (HMAC) for that command only — never the secret — and the Mac rejects any signature it has already seen. Hard-to-undo commands (deletes, force pushes, sudo…) can only be allowed on the Mac unless you turn on the setting for the phone, which then takes two taps (riskier if you lose the phone). Manually sending a test alert also sends a notification.

Controlling from your phone: the full command and file changes of an approval request (up to 2,000 characters each) also reach your phone encrypted, through the relay only. The relay can't read them, but your linked phone shows them, including any secret that appears in a command or file. A next instruction you schedule from the phone arrives encrypted, is stored in a file on this Mac readable only by your user until it is sent, and is removed once sent or after 48 hours. Your quick-instruction list is stored only on that phone. “End session” sends that Claude Code process the same interrupt as Ctrl+C, which can also stop a running command; its conversation history is kept. There is no way to allow risky commands in bulk.

Links and terminal command (lidnight://): a URL scheme used by the terminal command, Shortcuts and agents can start, stop, toggle, sleep, extend, open the window, keep the screen on, update, and change the charge limit, fan and open-at-login (start, stop, toggle, sleep, extend, open, screen, update, charge, fan, autostart and so on). These are not received over the network; only links opened on this Mac are handled. When a web page opens such a link, macOS first asks whether to open Lidnight.

Claude limits: the app runs the installed official Claude CLI with claude -p /usage --no-session-persistence --setting-sources "" and reads the result. The Claude CLI handles authentication and the lookup’s network activity.

How to remove Lidnight

  1. Start in the app. If you activated a license, choose Settings › Plan › Deactivate. This requests deactivation from the server and clears Lidnight’s local license entries from the Keychain only after the server confirms. On a network error nothing is cleared and the app asks you to retry. If activation on another Mac is still blocked, contact support.
  2. Turn off Open at login and phone alerts in Settings, then disconnect each enabled agent integration. Disconnecting removes Lidnight hooks and restores the saved original status-line setting if the status line is still connected to Lidnight.
  3. If you changed the charge limit, return it to your preferred value (100% to remove the limit) before deleting the app. This setting is applied through macOS charging controls, not stored only in the app’s preferences.
  4. Choose Remove in Settings › Permission and complete administrator authentication. The app stops keeping the Mac awake and controlling its fans, attempts to restore sleep and automatic fan control, then removes the four privileged files listed above. Check sleep and fan behavior as well as the completion message, then quit the app.
  5. Move /Applications/Lidnight.app and ~/.lidnight/ to the Trash in Finder. Remove ~/.local/bin/lidnight too if it is a link pointing to Lidnight. This removes the records, integration scripts and terminal command.
  6. After quitting, run defaults delete app.lidnight.Lidnight in Terminal to clear app preferences. A message that the domain does not exist means there are no preferences left to remove.
  7. Finally, move any unneeded ~/.claude/settings.json.lidnight-backup and ~/.codex/hooks.json.lidnight-backup backups to the Trash. Keep the AI tools’ actual settings and conversation logs. You can also remove the Lidnight subscription you added in your phone’s ntfy app.

If removal reports an error, contact support@dawonlabs.com.

Back to Lidnight ›