OpenSesame is a macOS menu bar app that lets you route web links into a specific Google Chrome profile.
Instead of opening every link in your current default browser session, OpenSesame sits in front of http and https links, asks which Chrome profile should handle the link, and can remember that choice per site.
- Registers itself as the default handler for
httpandhttpslinks on macOS. - Detects local Google Chrome profiles such as
DefaultandProfile 1. - Shows a lightweight profile picker when a link arrives.
- Optionally remembers a site-to-profile choice for future links.
- Uses a small Chrome extension bridge so each profile opens links inside the correct Chrome profile window.
- Lets you clear remembered site mappings from the app settings window.
- macOS sends a clicked link to OpenSesame.
- OpenSesame looks for a remembered profile mapping for that site.
- If no mapping exists, it asks you which Chrome profile should open the link.
- OpenSesame queues the URL on a local bridge server at
http://127.0.0.1:17653. - The OpenSesame Chrome extension running inside the selected profile polls that local bridge and opens the queued link in that profile.
If the extension is not installed or not configured for that profile, OpenSesame falls back to launching Chrome with the matching --profile-directory argument.
- macOS
- Xcode 26 or newer
- Google Chrome installed
- At least one Chrome profile on the machine
- Chrome Developer Mode enabled for loading the unpacked extension
From Xcode:
- Open
OpenSesame.xcodeproj. - Select the
OpenSesamescheme. - Build and run the app.
From the command line:
xcodebuild -project OpenSesame.xcodeproj -scheme OpenSesame -configuration Debug buildWhen the app is running, it appears as a menu bar extra instead of a Dock app.
- Click the OpenSesame menu bar icon.
- Choose
Set as Default Browser. - Confirm the system change if macOS prompts you.
OpenSesame only claims http and https handling. It does not replace Chrome itself.
Repeat these steps once per Chrome profile:
- Open that Chrome profile.
- Visit
chrome://extensions. - Enable Developer mode.
- Click
Load unpacked. - Select the
OpenSesameExtensionfolder from this repository. - Open the extension options page.
- Enter the Chrome profile directory for the current profile, such as
DefaultorProfile 1.
You can find the extension-specific notes in OpenSesameExtension/README.md.
- Click any web link while OpenSesame is running and set as your default handler.
- Choose the Chrome profile that should open the link.
- Optionally enable
Always use this profile for this site. - To remove saved mappings later, open the OpenSesame settings window from the menu bar popover.
- OpenSesame runs a local-only bridge on
127.0.0.1:17653. - No cloud service or external relay is involved.
- Saved site-to-profile mappings are stored locally in
UserDefaults. - Chrome profile discovery reads local Chrome profile metadata from
~/Library/Application Support/Google/Chrome. - The app sandbox is disabled so the app can inspect Chrome profile data on disk.
OpenSesame/: Swift source for the macOS app.OpenSesameExtension/: Manifest V3 Chrome extension used as the local bridge client.Info.plist: App plist used by the Xcode target.OpenSesame.xcodeproj/: Xcode project.
- The app is implemented as a menu bar utility with
LSUIElementenabled. - The local bridge server listens on TCP port
17653. - Chrome profiles are discovered from the local Chrome profile directory and
Local Statemetadata.
- Support browsers beyond Google Chrome.
- Add import and export for saved site mappings.
- Improve onboarding for discovering the correct Chrome profile directory.
- Add automated tests around link routing and bridge behavior.
This project is available under the MIT License. See LICENSE for details.