A Chrome extension that routes incoming links to a preferred Chrome user profile. When a link opens in the "wrong" profile, it is handed over to the profile you configured for it.
You can install it from the Chrome Web Store.
- Open the extension's options page (click the toolbar icon).
- Register each Chrome profile as a user profile and define rules: a regular expression for a URL and the profile that should open it.
- Connect your profiles with each other (see below).
- When a link opens in the wrong profile, the extension shows a short router page, then moves the link to the right profile and closes the original tab.
The profiles have to be able to talk to each other for this. You choose how, per profile, on the extension's Connection tab. All profiles that should work together must use the same option.
Choose Open in current profile as a rule's action to leave matching tabs and popups untouched: no handover, router page or countdown, even in Always mode. These exceptions take priority over ordinary routing rules. For example, this regex keeps a widget's connection popup local without depending on its request ID:
^https://terraform-resource-viewer\.localhost/connect(?:[/?#]|$)
Each rule has a Sync across profiles checkbox. Enabled (the default), the rule is shared with your sync group; a current-profile action means each receiving profile keeps its own popup. Disabled, the rule stays only in the profile where you created it and is not sent to either relay. Disabling sync on an existing shared rule withdraws its shared version and keeps a private copy. Other profiles receive that withdrawal when they reconnect; they need an updated extension to understand the new current-profile action.
An Azure-hosted service relays the messages between your profiles. It works across machines and needs nothing installed. A groupcode connects your profiles.
- In your first profile, open the Connection tab, choose Cloud and click Generate a groupcode. You sign in on the web app, and the groupcode is handed to the extension automatically.
- In every other profile, choose Cloud, then copy the groupcode from the first profile (the Copy button) and enter it. Do not generate a new one.
A small program on your own machine relays the messages. Nothing leaves your computer and you do not need an account. It only connects profiles on the same machine, and the relay has to be running. A pairing code connects your profiles.
You need Node.js 20 or newer.
-
Start the relay and leave it running:
npx chrome-tab-router-localsync start
-
In a second terminal, print the pairing code:
npx chrome-tab-router-localsync pair
-
In each profile, open the Connection tab, choose Local relay and paste the pairing code (it looks like
ctr-local:48731:…). Use the same code in every profile.
The relay only listens on 127.0.0.1, and a connection needs the secret in the pairing code.
More in localsync/README.md.
| Cloud | Local relay | |
|---|---|---|
| Works across machines | yes | no, one machine |
| Needs an install | no | Node.js, and the relay running |
| Account | sign in to generate the groupcode | none |
| Where your data goes | through the Azure service | stays on your machine |
Both options are described in the privacy policy.
The solution has four parts:
- Azure Static Web App with two parts:
- Front-end (Vite + React):
app, used to generate a groupcode - Functions back-end:
api
- Front-end (Vite + React):
- Azure SignalR Service, which relays messages across profiles for the cloud option
- Chrome extension (Manifest V3, built with WXT):
chromeextension- Background and content script
- Management UI (connection, user profiles, rules, log, settings): React options page in
chromeextension/entrypoints/options - Router page: interstitial in
chromeextension/entrypoints/routerthat shows where a link is headed, counts down before routing, and lets you pick another profile or edit the rule
- Local relay:
localsync, a Node WebSocket relay published to npm aschrome-tab-router-localsync, for the local option
The extension talks to the other profiles through a transport, either the cloud service or the local relay, picked per profile on the Connection tab. See docs/ARCHITECTURE.md for the details.
See docs/DEVELOPMENT.md for the full guide. In short:
- install the
funcglobal tool:winget upgrade --id Microsoft.Azure.FunctionsCoreTools --accept-package-agreements --accept-source-agreements(orwinget installif not yet installed). It must stay on the v4 line, matching the v4 programming model and Node 22+ requirement - start a local Azure Storage emulator (for example the Azurite VS Code extension) and set
AzureWebJobsStoragetoUseDevelopmentStorage=trueinapi/local.settings.json. The Functions host needs it even thoughapi/only exposes HTTP triggers npm install(installs root tooling, such as npm-run-all, needed to runinstall:all)npm run install:allnpm run watch:all- add the
chromeextension/.output/chrome-mv3folder as an unpacked Chrome extension
To work on the local relay, without the cloud:
npm run localsync:install, thennpm run localsync:startandnpm run localsync:pairnpm run chromeextension:build:localsync, then addchromeextension/.output/chrome-mv3-localsyncas an unpacked extension. It defaults to the local relay; you can still switch on the Connection tab.