# Lidnight > Lidnight is a macOS menu bar app and dashboard (Apple Silicon, macOS 13+) that monitors AI coding agents such as Claude Code and Codex together with the Mac they run on. It shows every agent session with its project, status and elapsed time, puts sessions waiting for your approval at the top, shows Claude and Codex 5-hour and weekly usage limits, and keeps the Mac awake while agents work, including with the lid closed and on battery, then lets it sleep when they finish. Key facts: - Claude Code and Codex are tracked precisely through their official hooks; about 43 other AI tools (Gemini CLI, Kiro CLI, Aider, Ollama, LM Studio and others) are detected from process activity. - Closing a MacBook's lid normally sleeps it even while `caffeinate` runs; Lidnight keeps it awake only while agent work is running (using `pmset disablesleep` through a helper) and undoes that when work ends or at boot. - Claude's multiple-choice questions (AskUserQuestion) can be answered from the phone or the menu bar; the chosen option goes back to Claude through a hook. - Claude Code permission prompts can be allowed or denied from a Mac notification, the menu bar, a bunny next to the notch, or a phone (content is encrypted before it passes through the relay; risky commands such as `rm -rf`, `git push` and `sudo` stay Mac-only). - Recap when you come back: after the lid was closed (or you were away 20+ minutes with it open), a window shows each task's result as of the moment it finished, what is waiting for your reply or approval, tokens used (total, cache share, output), battery and weekly limit used. Read from local logs for display only; a "Share card" copies an image with numbers only. - Session window: click a task to see the conversation and progress, and send an instruction or image now, after it finishes, or after the limit resets (Claude Code and Codex). - Stuck alert: a running Claude Code task that has been quiet for 15 minutes (transcript not growing) triggers a "Looks stuck" alert on the Mac and phone while Lidnight is keeping the Mac awake (Pro turns that on automatically when work starts). - Runaway alerts: while you are away, a session whose last-30-minute token rate is 3x or more its 14-day session median triggers an alert (after 14 days of history), and the same test or build failing with the same error 3 times, the same command failing 4 times in a row with no edits, or one file edited 6+ times in 30 minutes without fewer test failures triggers "The same failure keeps repeating". The service map shows waiting sessions in orange and runaway or repeating sessions in red, with a stop button. Lidnight never ends a session on its own. Mac alerts are free; phone alerts are Pro. - Keyboard approval (optional, off by default; turn on in Settings › General): while a permission request waits, ⌥⌘Y allows and ⌥⌘N denies from any app (hard-to-undo commands excluded). - Custom menu bar runners (Pro, included in the trial; changing the runner shape is Pro too): 36px PNG frames, the same spec as RunCat custom runners; template frames take each AI agent's color. Free CC0 pack: https://github.com/whereisdw/menubar-runners - Codex questions that wait for an answer (`request_user_input`) trigger an immediate alert, since Codex may otherwise move on with its recommended answer. - Dashboard (free, opened from the menu bar window): an overview with a one-line status, counts and a zoomable timeline over 1 hour to 30 days, work by project, a sessions page with each session's conversation, progress and resources, a service map (per-session CPU, memory, disk I/O and network including child processes, delegated Codex runs, MCP servers and sub-agents, and lines for messages between sessions; only sender and recipient are read, never the content), events, monitors with stated rules, AI setup (MCP servers, plugins, skills, hooks, permissions), usage and cost by AI, model and project, and Mac resources. ⌘K search. - Usage limits: Claude and Codex 5-hour and weekly windows, a spend limit when Claude Code reports one (such as Claude Enterprise), a warning when a limit is draining fast, and an option to continue a task after the limit resets. - No account. Code and conversations never leave the Mac. Only twenty-seven kinds of anonymous event counts (date totals, no device or ID) are sent, and they can be turned off. License activation also sends a 32-character hash of the Mac's hardware ID (never the ID itself), so reinstalling on the same Mac reuses its license seat. - Free: keeps the Mac awake with the lid open (AI Auto runs with no time limit once you start it; timers go up to 1 hour), plus the session view, limits and Mac approvals. Pro (one-time purchase, no subscription, free trial of 14 days or 5 lid-closed runs of 10+ minutes without a card, whichever comes first, 14-day refund): lid closed and on battery, auto-start, phone approvals, continue after limit reset, notch approvals. - Install: https://lidnight.app/en/ or `brew install whereisdw/tap/lidnight`. - Made by Dawon Labs (one developer). English, Korean and Japanese. ## Pages - [Home (English)](https://lidnight.app/en/) - [Team Control Plane (5+ seats, zero-code-egress pilot)](https://lidnight.app/en/team/) - [Pricing and Pro](https://lidnight.app/en/#pricing) - [Security and privacy](https://lidnight.app/en/security/) - [What's new](https://lidnight.app/en/changelog/) - [AI coding agent news: releases, outages, advisories](https://lidnight.app/en/intel/) ## Guides - [Keep a MacBook awake with the lid closed, even on battery](https://lidnight.app/en/guides/keep-macbook-awake-lid-closed/) - [Keep your Mac awake while Claude Code runs](https://lidnight.app/en/guides/claude-code-mac-sleep/) - [Claude Code keeps retrying in DarkWake after lid close](https://lidnight.app/en/guides/claude-code-darkwake-lid-closed/) - ["Your computer went to sleep mid-response" error](https://lidnight.app/en/guides/claude-code-computer-went-to-sleep/) - [Mac won't sleep after Claude Code](https://lidnight.app/en/guides/mac-wont-sleep-claude-code/) - [Claude Code usage limits](https://lidnight.app/en/guides/claude-code-usage-limits/) - [Codex and Claude Code rate limits](https://lidnight.app/en/guides/codex-claude-code-rate-limits/) - [Why overnight runs use up Claude Code limits](https://lidnight.app/en/guides/claude-code-overnight-sleep-usage/) - [Approve Claude Code permission requests from your phone](https://lidnight.app/en/guides/approve-claude-code-from-phone/) - [Get notified when Claude Code finishes or needs approval](https://lidnight.app/en/guides/claude-code-notifications/) - [Leftover processes after Claude Code sessions](https://lidnight.app/en/guides/claude-code-leftover-processes/) - [Keep a Mac awake while Codex CLI runs](https://lidnight.app/en/guides/codex-cli-mac-sleep/) - [Codex hooks not running: review, trust and the hooks switch](https://lidnight.app/en/guides/codex-hooks-not-running/) - [Claude Code hooks not running: what to check](https://lidnight.app/en/guides/claude-code-hooks-not-running/) - [See what Claude Code did while you were away](https://lidnight.app/en/guides/what-did-claude-code-do-while-away/) - [Clamshell vs Lidnight](https://lidnight.app/en/guides/clamshell-vs-lidnight/) - [Adrafinil vs Lidnight](https://lidnight.app/en/guides/adrafinil-vs-lidnight/) - [Agent Caffeine vs Lidnight](https://lidnight.app/en/guides/agent-caffeine-vs-lidnight/) - [Hold My Lid vs Lidnight](https://lidnight.app/en/guides/hold-my-lid-vs-lidnight/) - [Run a local LLM overnight on a MacBook](https://lidnight.app/en/guides/run-local-llm-overnight-macbook/) - [Keep-awake options compared](https://lidnight.app/en/guides/keep-mac-awake-options-compared/) - [Amphetamine alternative for AI agents](https://lidnight.app/en/guides/amphetamine-alternative-ai-agents/) - [Stop Claude Code from running up your bill overnight](https://lidnight.app/en/guides/claude-code-overnight-cost-runaway/) - [AI coding agent stuck waiting for approval](https://lidnight.app/en/guides/agent-stuck-waiting-for-approval/) - [Detect a Claude Code or Codex agent stuck in a loop](https://lidnight.app/en/guides/detect-coding-agent-infinite-loop/) - [Antigravity Quota Reached (429): check reset time and local tokens](https://lidnight.app/en/guides/antigravity-individual-quota-reached-429/) - [AI coding agent team cost governance with zero code egress](https://lidnight.app/en/guides/ai-coding-agent-team-cost-governance/) ## Related - [Lidnight Limits](https://github.com/whereisdw/lidnight-limits): free, open-source (MIT) menu bar app by the same developer that shows Claude Code and Codex 5-hour and weekly limits. - [Lidnight Claude Code plugin](https://github.com/whereisdw/lidnight-claude-plugin): `/lidnight:awake`, `/lidnight:status`, `/lidnight:sleep`. - [Claude Code hooks recipes](https://github.com/whereisdw/claude-code-hooks-recipes): copy-paste hook scripts by the same developer, including answering `AskUserQuestion` from a `PermissionRequest` hook (`allow` plus `updatedInput.answers`), Stop notifications, ntfy phone push, caffeinate for a session and leftover processes. - [Answer Claude Code's AskUserQuestion from a hook](https://dev.to/dawonlee/you-can-answer-claude-codes-askuserquestion-from-a-hook-and-from-your-phone-1ddn)