Lockpaw
A Mac menu bar app that covers every screen with one hotkey while Claude Code and other agents keep running, and glows when an agent needs you.
- Source repo
- sorkila/lockpaw
- Stars
- ★ 187
- Last updated
- 12d ago
- FARS reviewed
- Oct 09, 2026
- License
- MIT
- Primary language
- Swift
- FA score
- 64/100 · Some gaps
At a glance
- How it runs
- Works with
- Platform-specificCodex · Claude Code
- Cost
- Free, no paid service needed
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- You run Claude Code in an open-plan office and step away for a few minutes: one hotkey covers the screen, the agent keeps working, and a finger on Touch ID brings it back.
- Not a fit if
- Windows or Linux users: it is a native macOS 14+ app only
- Anyone needing a real security lock: it is visual privacy, not a boundary
- People who never run AI coding agents: the glow and agent alerts go unused
- Website
- getlockpaw.com ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-12+1.0 ★/day over 7 days
- Source review
- 64/100 · Some gaps
What does this agent do, and when should you use it?
Lockpaw is a native macOS 14+ menu bar app written in Swift/SwiftUI (about 15 MB, MIT licensed) that drops a top-level shield over every display on one hotkey (default ⌘⇧L) while Claude Code, Codex, Gemini CLI and other tools, plus builds, downloads and SSH sessions, keep running underneath. An IOPMAssertion prevents idle sleep while locked; an optional LockpawHelper LaunchDaemon registered through SMAppService flips pmset disablesleep for lid-closed work and hands sleep back on unlock, on heat, or at 20% battery. When an agent is waiting or finishes, the locked screen glows amber or teal and shows one quiet status line per session, while notifications name the project that the lock screen deliberately hides. Unlocking is a pre-armed LAContext biometric check plus a password fallback. A bundled lockpaw CLI wires hooks into six agents in one command.
On the hotkey, HotkeyManager taps keystrokes with CGEvent.tapCreate on a dedicated background thread and consumes the matched key, LockController's state machine moves .unlocked → .locking → .locked, and OverlayWindowManager creates one CGShieldingWindowLevel window per display, recreated on hot-plug. InputBlocker runs a second CGEventTap that blocks keyboard, scroll, tablet and trackpad-gesture events system-wide while letting mouse events reach the SwiftUI overlay buttons. Authenticator keeps a biometrics-only LAContext armed behind the cover so the first finger press unlocks; the fallback password field checks the login password through Open Directory, rate-limits to a 30s cooldown after 3 failures, and runs in kiosk mode while open. SleepPreventer holds an IOPMAssertion; LidSleepController's LockpawHelper sets and clears pmset disablesleep over a single XPC call, with thermal and battery cutouts. On the agent side, lockpaw install-hook merges entries into ~/.claude/settings.json, ~/.codex/config.toml and hooks.json, ~/.gemini/settings.json, ~/.cursor/hooks.json, ~/.copilot/hooks/lockpaw.json and ~/.aider.conf.yml; lockpaw ping posts a local notification that AgentNotifier turns into the lock-screen glow and a UNUserNotificationCenter alert. WebhookRelayController optionally forwards pings to ntfy, Pushover or any webhook with credentials in the Keychain, and Sparkle checks EdDSA-signed appcasts for updates.
- You run Claude Code in an open-plan office and step away for a few minutes: one hotkey covers the screen, the agent keeps working, and a finger on Touch ID brings it back.
- You close the MacBook lid in a bag to let Codex finish a long task, after approving the helper once; sleep returns on unlock, on heat, or at 20% battery.
- You are prepping in a shared meeting room: the lock screen shows only status lines, with project names hidden by default so passers-by learn nothing about your repos.
- You want phone pings while away and relay agent notifications to ntfy, Pushover or a Home Assistant webhook.
- You work across an external monitor and the built-in display: all screens are covered together, including a display you plug in while locked.
- You script lock state from Shortcuts or Spotlight using the Lock Screen and Is Lockpaw Locked? actions, without exposing an unlock action to automation.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
brew install --cask lockpawbrew install xcodegen
- Config files
~/.claude/settings.json- Install notes cover
- macOS
How do you install or deploy this agent?
The quickest path is the Homebrew cask, or grab the Developer ID-signed and notarized DMG from getlockpaw.com or GitHub Releases:
brew tap sorkila/lockpaw
brew install --cask lockpawBuilding from source needs Xcode and XcodeGen:
brew install xcodegen
git clone https://github.com/sorkila/lockpaw.git
cd lockpaw
xcodegen generate
xcodebuild -scheme Lockpaw -configuration Release buildGrant Accessibility when prompted on first launch, otherwise the hotkey and input blocking cannot work; the Lockpaw icon then appears in the menu bar. Lid-closed mode and phone pings are opt-in and configured later in Settings.
How do you use this agent?
Lock and unlock share one hotkey, Cmd+Shift+L by default, re-recordable in Settings → General → Shortcut; you can also just rest a finger on Touch ID, or click Use Password at the bottom of the lock screen and type your Mac password. The menu bar icon opens Settings with General, Lock Screen, Agents and About tabs. To connect agents, either use Settings → Agents → Connect an agent or the CLI:
lockpaw install-hook claude
lockpaw install-hook codex
lockpaw install-hook gemini
lockpaw install-hook cursor
lockpaw install-hook copilot
lockpaw install-hook aiderAny other tool can append a ping by hand:
my-agent-command ; lockpaw ping --agent my-tool --doneTo let Claude Code's Remote Control push to your phone only while you are away, set up the presence marker:
lockpaw install-hook claude --presenceThat writes CLAUDE_CLIENT_PRESENCE_FILE into ~/.claude/settings.json, pointing at ~/Library/Application Support/Lockpaw/present. Lid-closed mode lives in Settings → General → Keep running with the lid closed; phone pings live in Settings → Agents → Send pings off this Mac.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- The lock screen is agent-aware: amber while anything waits on you, teal when done, a quiet line per session such as Claude Code 2m, and notifications that name the project the lock screen hides.
- Lid-closed mode is more than caffeinate: a code-signature-checked LockpawHelper flips pmset disablesleep and hands sleep back on unlock, on heat, or at 20% battery.
- Unlock is one gesture: a biometrics-only LAContext is armed behind the cover, with an Open Directory password fallback rate-limited to a 30s cooldown that keeps kiosk lockdown while typing.
- install-hook covers Claude Code, Codex, Gemini, Cursor, Copilot and Aider, merges into existing configs, writes .bak backups and never clobbers foreign hooks.
- Free and MIT-licensed with no accounts and no analytics; the only default network call is the signed update check.
- macOS 14+ only, with hard dependencies on Accessibility permission and Apple's Touch ID / SMAppService; there is no Windows or Linux path.
- The author states plainly that it is not a security boundary: pkill, synthetic events, kernel-level access and screen recording during fade-in all defeat it.
- Lid-closed mode requires approving a root LaunchDaemon, which permission-sensitive users will weigh carefully.
- Each agent needs its own hook install, Codex needs a one-time trust via /hooks, and hooks call the absolute path ~/.local/bin/lockpaw.
- Automation is lock-only: Shortcuts exposes Lock Screen and Is Lockpaw Locked?, and there is no unlock action by design.
How does this agent compare with similar options?
The README positions Lockpaw against caffeinate plus Ctrl+Cmd+Q, which it says is fine at a desk on power but leaves out a glowing agent-aware lock screen, lid-closed policy that returns sleep on unlock, heat or 20% battery, and a keep-awake command you cannot forget to stop. General anti-sleep tools such as Amphetamine and KeepingYouAwake do not understand Claude Code or Codex waiting/done events; Lidless, LidRun and raw pmset disablesleep solve lid-closed running but offer no overlay, Touch ID unlock or agent notifications. Lockpaw bundles covering the screen, staying awake and agent alerting into one menu bar app, at the cost of macOS lock-in and Accessibility plus an optional root helper.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Lockpaw This agent | 64 · Some gaps | Desktop appFree | ★ 187 | 12d ago | Swift | Codex · Claude Code |
| BAMA: Build Any Mac App | 61 · Some gaps | Agent plugin / skillFree + model costs | ★ 2k | 19d ago | Swift | Codex · Claude Code |
| Yardlet | 80 · Good | Desktop appFree | ★ 47 | today | Swift | Codex · Claude Code |
| Chops | 51 · Major gaps | Desktop appFree | ★ 2.1k | 3mo ago | Swift | — |
How does FollowAgents rate this agent?
Why each dimension lost points
README and SECURITY.md document least-privilege design: the lid-closed helper exposes a single XPC switch (pmset disablesleep), requires callers to satisfy a Developer ID code-signing requirement, and restores sleep at boot, on stop, one minute after app disconnect, on thermal pressure, and at 20% battery; the URL scheme is rate-limited to 100ms, quit is refused while locked, and the debug escape hatch is compile-gated. Sensitive data handling scores only 1: WebhookRelayController is said to store ntfy/Pushover/webhook credentials in the Keychain, but the README gives no detail on storage, logging, or transport, and no code is shown. Dependency security scores 1: CI and release workflows use unpinned third-party actions such as actions/checkout@v7, the Sparkle version is not pinned in visible files, and there is no dependency audit or SBOM evidence. Source attribution scores 1: the author Erik Nielsen matches the MIT copyright, but publisher identity is unverified and no upstream or contributor attribution is provided.
Self-consistency scores 2: features, architecture tree, URL scheme, and the SECURITY.md threat model are broadly consistent, and the state machine plus pure policy models (PingDecision, LidSleepPolicy, etc.) are described coherently. Dependency availability scores 1: builds need xcodegen, xcbeautify, create-dmg, and Sparkle, but no Package.resolved or version pinning is visible, so reproducible dependency resolution cannot be confirmed. Failure messages score 1: the README mentions Accessibility revocation is detected and forces unlock with a warning, but no concrete error text, log format, or recovery prompt is shown.
Audience and scenarios score 3: the README targets developers running Claude Code, Codex, Gemini, Cursor, Copilot, and Aider on a Mac, covering hotkey lock, Touch ID unlock, lid-closed operation, and phone pings. Capability boundaries score 3: SECURITY.md has explicit 'what it does' and 'what it doesn't do' sections, listing no protection against pkill, synthetic events, kernel-level access, or recording during fade-in, and recommending Ctrl+Cmd+Q. Trigger precision scores 2: the default Cmd+Shift+L hotkey is configurable and agent hooks match Notification/Stop/StopFailure types, but conflict handling and full false-trigger suppression rules are not detailed. Environment fit scores 2: macOS 14+, Swift 5.9, Xcode, and xcodegen are required, macOS-only, with no other platform or compatibility notes beyond CI.
Information architecture scores 3: the README is well-sectioned with Features, Usage, Agent alerts, Install, Design, Under the hood, Security model, URL scheme, Architecture, CI, and Support, plus a full architecture tree. Install notes score 3: DMG, Homebrew cask, and source build paths are given, with the first-launch Accessibility grant explained. Naming stability scores 2: CLI subcommands install-hook/install-cli/ping and the URL scheme are consistent, but no stability commitment is stated. Examples and FAQ score 2: per-agent install command tables and an 'Anything else' example are provided, but there is no standalone FAQ or troubleshooting section. Known limitations score 3: SECURITY.md and the README clearly enumerate threat-model boundaries and unsupported cases. License scores 3: the full MIT text is present and matches the README badge. Versioning and changelog score 1: the README points to Releases and the Sparkle appcast, but no CHANGELOG file exists in the repository. Maintenance responsibility scores 2: SECURITY.md gives a private reporting channel and response expectation, but publisher identity is unverified and no maintainer team or support SLA is stated.
Output usability scores 2: screen covering, Touch ID unlock, agent notifications, and the glow cue are directly usable for the target user, though static review cannot verify the actual interaction. Marginal value scores 2: versus the system lock screen plus caffeinate, the value lies in lid-closed operation and agent-aware alerts, but some capabilities depend on an optional helper and external services. Cost-benefit scores 2: about 14MB of native Swift, no Electron, no analytics, MIT and free, but lid-closed mode installs a root LaunchDaemon, adding privilege and maintenance cost.
Claim traceability scores 1: most README claims (signing and notarization, EdDSA appcast, CI tests) point to external sites or artifacts not shown in the repository and cannot be checked statically. Cross-source corroboration scores 1: README, SECURITY.md, CI, and the release workflow corroborate each other on signing and notarization, but dependency versions, test coverage, and runtime behavior lack multi-source evidence. Fact-inference separation scores 2: SECURITY.md clearly separates 'what it does' from 'what it doesn't do' and the README marks optional features, but some performance and security claims remain unlabeled inference.
- Publisher identity is unverified and the link between the repository and getlockpaw.com cannot be confirmed statically; verify signing and notarization yourself before installing.
- Lid-closed mode installs a root LaunchDaemon that calls pmset disablesleep, a high-privilege component; although the docs describe code-signing checks and sleep restoration, enable it only when genuinely needed.
- Webhook pings (ntfy/Pushover/custom webhook) forward agent events to external services, and the README does not detail credential storage or transport; confirm the data flow before enabling.
- CI and release workflows use third-party actions without pinned SHAs, and dependency versions such as Sparkle are not pinned in visible files, weakening supply-chain reproducibility.
- Claims about signing, notarization, EdDSA appcasts, and test coverage cannot be verified statically from the repository and should not be taken as evidence of actual security or quality.
FAQ
Is Lockpaw paid?
Does locking pause my agents or disconnect the display?
Do I need to give Lockpaw an API key?
lockpaw ping. Any Claude Code, Codex or Gemini subscription and quota you use stays your own.What happens if Lockpaw crashes or I kill it?
Can I automate unlocking?
Is Lockpaw open source?
Is Lockpaw safe to use?
Is Lockpaw still maintained?
Who makes Lockpaw?
What is Lockpaw's official website?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.