Skip to content

About

OpenSesame is a macOS menu bar app that lets you route web links into a specific Google Chrome profile.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

OpenSesame

OpenSesame app icon

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.

What It Does

  • Registers itself as the default handler for http and https links on macOS.
  • Detects local Google Chrome profiles such as Default and Profile 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.

How It Works

  1. macOS sends a clicked link to OpenSesame.
  2. OpenSesame looks for a remembered profile mapping for that site.
  3. If no mapping exists, it asks you which Chrome profile should open the link.
  4. OpenSesame queues the URL on a local bridge server at http://127.0.0.1:17653.
  5. 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.

Requirements

  • 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

Setup

1. Build and run the app

From Xcode:

  1. Open OpenSesame.xcodeproj.
  2. Select the OpenSesame scheme.
  3. Build and run the app.

From the command line:

xcodebuild -project OpenSesame.xcodeproj -scheme OpenSesame -configuration Debug build

When the app is running, it appears as a menu bar extra instead of a Dock app.

2. Make OpenSesame your default browser handler

  1. Click the OpenSesame menu bar icon.
  2. Choose Set as Default Browser.
  3. Confirm the system change if macOS prompts you.

OpenSesame only claims http and https handling. It does not replace Chrome itself.

3. Install the bridge extension in every Chrome profile you want to target

Repeat these steps once per Chrome profile:

  1. Open that Chrome profile.
  2. Visit chrome://extensions.
  3. Enable Developer mode.
  4. Click Load unpacked.
  5. Select the OpenSesameExtension folder from this repository.
  6. Open the extension options page.
  7. Enter the Chrome profile directory for the current profile, such as Default or Profile 1.

You can find the extension-specific notes in OpenSesameExtension/README.md.

Usage

  1. Click any web link while OpenSesame is running and set as your default handler.
  2. Choose the Chrome profile that should open the link.
  3. Optionally enable Always use this profile for this site.
  4. To remove saved mappings later, open the OpenSesame settings window from the menu bar popover.

Privacy And Security

  • 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.

Project Layout

  • 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.

Development Notes

  • The app is implemented as a menu bar utility with LSUIElement enabled.
  • The local bridge server listens on TCP port 17653.
  • Chrome profiles are discovered from the local Chrome profile directory and Local State metadata.

Roadmap Ideas

  • 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.

License

This project is available under the MIT License. See LICENSE for details.

About

OpenSesame is a macOS menu bar app that lets you route web links into a specific Google Chrome profile.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages