SleepSleuth app icon

Know what keeps
your Mac awake.

SleepSleuth lives in your menu bar, shows which apps and processes are blocking sleep, pins long-running work on purpose, and optionally tracks local AI coding token usage.

Download on the Mac App Store
Inside SleepSleuth

See what is keeping your Mac awake

From the menu bar, SleepSleuth gives you a focused view of live sleep blockers, intentional pins, history, and optional AI coding usage.

SleepSleuth showing current apps preventing sleep on macOS
Current blockers See every active sleep-preventing assertion and how long it has been running.
SleepSleuth showing pinned apps that it keeps awake intentionally
Pinned work Keep specific apps or command-line tools awake on purpose.
SleepSleuth sleep history timeline with ended and active blockers
Sleep history Review a local timeline of active and ended sleep blockers.
SleepSleuth agent token usage dashboard with daily usage and cost estimates
Agent token usage Optionally inspect local coding-agent token totals, model breakdowns, and estimated costs.
Version 1.3

What’s New

📈

Agent Token Usage

Add an optional card for local coding-agent token usage, daily heatmaps, model breakdowns, and estimated costs across Claude Code, OpenCode, Codex, OpenClaw, GitHub Copilot CLI, and more.

🕒

Sleep History

Review a local timeline of external sleep-preventing assertions, including active and ended state, end times, and durations.

🗃

Streamlined Home

Compact card controls, Current and History tabs for sleep activity, simpler usage-source setup, and improved app settings keep the menu bar window focused.

⚡

Faster Refreshes

Token usage parsing is faster and more accurate, cached cost data stays stable, and navigation resets cleanly when the popover closes.

Features

🔍

Real-Time Sleep Monitoring

Polls macOS power assertions every few seconds so you always have the latest picture — yellow icon means something is active, default means all clear.

🕒

Sleep History

See a local timeline of sleep-preventing activity, including active and ended assertions with durations, so you can spot recurring blockers.

📌

Pin Any App or CLI Tool

Pick any running app or command-line tool from the inline process picker and SleepSleuth prevents sleep on its behalf. Pins survive relaunches and reactivate automatically.

📈

Agent Token Usage

Optionally review daily local token totals, model breakdowns, and estimated costs for popular AI coding tools, all from a card you control.

📁

Local Source Discovery

Authorize your home folder once and SleepSleuth can detect common coding-tool usage folders using macOS security-scoped access.

🔔

Notifications

Get a native macOS notification whenever a new sleep-preventing assertion appears, so nothing sneaks by unnoticed.

⚡

Take Action

For user-owned processes, get a ready-to-use kill command and one-click Terminal access to reclaim your Mac’s sleep.

💫

Lightweight & Native

Built with SwiftUI for macOS 14+. No Electron, no web views, no telemetry. Local data stays local and the app runs quietly in the menu bar.

How It Works

1

Install

Get SleepSleuth from the Mac App Store. It runs quietly from your menu bar with no setup required.

2

Monitor Sleep

The icon turns yellow whenever something holds your Mac awake. Click to see the full list with details and live durations.

3

Control

Pin apps that need to keep your Mac awake, review sleep history, or drill into a process to see details and take action.

4

Track Usage

Add the optional Agent Token Usage card when you want local AI coding usage and estimated costs beside your sleep controls.

Take back your Mac’s sleep

Built for macOS 14+ and available on the Mac App Store.

Get it on the Mac App Store