Skip to content
FocusLockinstall →

Switch freely.Get blocked fromeverything else.

Focus mode built for developers. A macOS menu bar app that lets you hop between your editor, docs and PDFs. Anything else gets bounced back before you even see it.

  • ✓ allowlist, not blocklist
  • ✓ no account, everything stays on your Mac
  • ✓ free during early access

Requires macOS 14+ · Apple Silicon · v0.1.0

FinderFileEditViewdistractions blocked:014:02

Why do you need to leave?

A 2-minute pass unblocks everything. 3 of 3 passes left this session.

0 / 10 characters

01 / the problem

One tab for the docs.
Then forty.

You open the browser to look up one function. Something autoplays. A chat pings. Twenty minutes later you're three videos deep and the compiler error is still there. Willpower doesn't scale. Friction does.

02 / how it works

Three steps. Zero willpower.

  1. ✓ Editor✓ PDF Reader✓ Terminal✓ docs.rsVideoChat

    01

    Pick your allowlist

    Tick the apps and sites you work in. Everything else is off-limits by default, so there's no blocklist to maintain.

  2. 02

    Start a session

    One click in the menu bar. The countdown sits up there, quietly, while you work.

  3. ✕Nope. 24 min left.
    Video is blocked during your focus session.

    03

    Get bounced

    Switch to anything off the list and it vanishes. You land back in the last app you were allowed to be in.

03 / features

Built like a dev tool. Because it is one.

allowlist, not blocklist

List the 5 things you need, not the 5,000 you don't.

Blocklists are a game of whack-a-mole you always lose. FocusLock flips it: anything you didn't allow is blocked.

blocklist

  • video site
  • social site
  • news site
  • other video site
  • forum
  • that new app
  • …

allowlist

  • editor
  • terminal
  • pdf reader
  • docs.rs
  • github.com

done ✓

bounce-back

Off-list apps bounce

Switch to a distraction and FocusLock hides it and brings back the last allowed app. You never get to scroll.

browser

Website checks in Chrome

The active tab is checked every 1.5 s. A site that isn't allowed gets swapped for a page that shows your time left. Subdomains included.

passes

Passes cost a reason

Really need something? Type why (10+ characters) and get a 2-minute pass. Three per session. Typing it out is usually enough to change your mind.

quit friction

Quitting asks why too

Quit during a session and FocusLock wants a reason first. "Stop session" is always there as the honest emergency exit, and it's logged.

local-only

Stats that stay on your Mac

Focus time, sessions, blocked attempts, top distractions. It's all read from a local log file. No account, no analytics, no servers.

native

Tiny, native, Rust

A ~2 MB menu bar app. No Electron, no bundled browser. It sleeps until something actually happens.

04 / config

It's a TOML file. Obviously.

Everything lives in ~/.config/focuslock/config.toml. Commit it to your dotfiles, diff it, grep it.

Prefer clicking? Settings in the app lists your installed apps with checkboxes, and it writes the same file.

Find any app's bundle ID with:

osascript -e 'id of app "Visual Studio Code"'
~/.config/focuslock/config.toml
# Apps you can switch between during a session.
allowed_apps = [
  "com.microsoft.VSCode",
  "net.sourceforge.skim-app.skim",
  "com.apple.Terminal",
  "com.google.Chrome",
]

# Sites allowed in Chrome. Subdomains included.
allowed_domains = [
  "docs.rs", "doc.rust-lang.org",
  "github.com", "stackoverflow.com",
  "localhost",
]

# The escape hatch.
max_passes = 3          # per session
pass_minutes = 2
min_reason_chars = 10   # "because" won't cut it

05 / install

Install in ten seconds.

option 1

recommended · no warning

One line in Terminal

Paste this into Terminal. It downloads FocusLock, verifies its checksum and signature, puts it in Applications and opens it.

curl -fsSL https://focuslock-web-five.vercel.app/download/install.sh | bash
$ curl -fsSL …/install.sh | bash
==> Downloading FocusLock…
==> Verifying checksum…
==> Installing to /Applications/FocusLock.app…
==> Installed FocusLock 0.1.0.
==> Launched. Look for 🎯 in your menu bar.
  • Checks the SHA-256 and the code signature before installing
  • Replaces an older version (and quits it first)
  • Uninstall: quit FocusLock, delete it from Applications

Why no warning? macOS only flags files downloaded by a browser. Read the script first

option 2

Download the app

Requires macOS 14+ · Apple Silicon · v0.1.0

Heads-up: macOS will show a warning

FocusLock isn't notarized by Apple yet, so the first launch is blocked. That's expected. Here's how to open it:

  1. 1
    Open the DMG and drag FocusLock onto Applications.
  2. 2
    Open FocusLock. You'll see this. Click Done.

    "Done" only closes the warning. Nothing opens yet, which is normal.

  3. 3
    Open System Settings → Privacy & Security, scroll to the bottom, and click Open Anyway next to FocusLock. Confirm with your password or Touch ID.
  4. or
    Skip steps 2–3 with one command:
    xattr -dr com.apple.quarantine /Applications/FocusLock.app

You only do this once. (Right-click → Open no longer works on macOS 15 and later.)

Last step, either way: let it check Chrome

On your first session, macOS asks whether FocusLock may control Google Chrome. Click OK. Missed it? System Settings → Privacy & Security → Automation → FocusLock → turn on Google Chrome.

06 / faq

Questions, answered.

Is it free?

Yes, free during early access. No account, no trial timer. If paid features ever come, the version you're using won't stop working.

Is it open source?

The source code is available under FSL-1.1-MIT (Functional Source License). You can read it, change it and use it for yourself or your company. The one thing you can't do is ship it as a competing commercial product. Two years after each release, that version becomes plain MIT.

Does it collect any data?

The app: no. There's no account and no analytics, and FocusLock never sends anything anywhere. Your settings and stats are plain files in ~/.config/focuslock and ~/.local/share/focuslock. Delete them and they're gone. This website counts visits and download clicks anonymously, with no cookies and no personal data. That's all.

Why does macOS show a security warning?

FocusLock isn't notarized by Apple yet (that needs a paid developer account). The app is signed, but macOS still blocks the first launch of any un-notarized app you download in a browser. Use the one-line Terminal installer to avoid the warning entirely, or follow the "Open Anyway" steps in the install section. Notarization is planned.

Which browsers does it check?

Google Chrome for now: FocusLock reads the active tab's address and swaps blocked sites for a "time left" page. Other browsers are planned. Until then, leave them off your allowed apps and they'll simply bounce.

What permissions does it need?

Only Automation for Google Chrome, so it can read the current tab. Hiding other apps and showing notifications need no special permissions. It never launches Chrome by itself.

Can I cheat?

Sure. "Stop session" is always one click away, and passes exist for real emergencies. FocusLock adds friction, not handcuffs. Most distractions die in the two seconds it takes to type a reason.

Does it work on Intel Macs?

Not yet. FocusLock needs a Mac with Apple Silicon and macOS 14 or later.