birdcage

mrnugget

A macOS menu bar app that blocks X and Twitter until you complete a five-stage unblock challenge.

SwiftCreated

What is mrnugget/birdcage?

Birdcage is a Swift menu bar application for macOS 14 and newer designed to stop impulsive visits to X and Twitter during work sessions. Clicking the menu bar toggle blocks x.com, twitter.com, and related subdomains in the hosts file over IPv4 and IPv6 while flushing the macOS DNS cache.

While caged, Birdcage monitors active browser tabs in Chrome, Brave, Arc, and Safari and redirects any X or Twitter tab to a local focus page displaying your daily goals checklist. Quit shortcuts are disabled, and force-quitting leaves the block active until relaunch. To unblock, users must survive an unskippable five-stage Walk of Shame: waiting out a focus-checked timer while reviewing unfinished goals, typing a confession without pasting, catching a dodging target button five times, solving three mental math problems, and holding a button for 15 unbroken seconds.

Building and installing into Applications uses make install with Swift Command Line Tools, with an optional sudoers root helper to avoid repeated password prompts.

Before you startThe README says

Runs on
macOS 14 or later
Needs
Swift Command Line Tools (full Xcode not required)
How you get it
Clone repository and run make install to place Birdcage.app in Applications
Asks for
Administrator password to edit hosts file or install the optional sudoers helper
Not yet
Browser tab redirection monitors Chrome, Brave, Arc, and Safari only

Facts from GitHub (updated Dec 1, 2026) and the project's README. License summaries are simplified: check the license file. RepoRanking reviews listings for relevance and spam, and doesn't test or vouch for code.