/chrome command opens Brave instead of Chromium on Linux
Resolved 💬 2 comments Opened Apr 7, 2026 by sergiojrdotnet Closed Apr 9, 2026
Description
The /chrome command in Claude Code opens Brave browser instead of connecting to the already-running Chromium instance, even though:
- Default browser is set to Chromium (
xdg-settings get default-web-browser→chromium.desktop) - All HTTP/HTTPS scheme handlers point to
chromium.desktop - The Claude Code Chrome extension is installed only in Chromium (not Brave)
- Native messaging host configs exist for both browsers (identical content)
- Chromium is running; Brave is not
Environment
- OS: Arch Linux (kernel 6.19.10-arch1-1)
- Display: Wayland
- Claude Code version: 2.1.92
- Chromium version: 146.0.7680.177
- Brave: installed at
/usr/bin/bravebut not running - Extension ID:
fcoeoabgfenejglbffodgkkbkcdhcgfn(v1.0.66)
Expected behavior
/chrome should connect to the running Chromium instance where the extension is installed.
Actual behavior
/chrome launches Brave browser instead.
Steps to reproduce
- Have both Chromium and Brave installed on Arch Linux
- Set Chromium as default browser
- Install Claude Code Chrome extension in Chromium only
- Open Chromium
- Run
/chromein Claude Code CLI - Brave opens instead of connecting to Chromium
Notes
- Native messaging host configs are identical across
~/.config/chromium/,~/.config/BraveSoftware/Brave-Browser/, and~/.config/google-chrome/ - Suspect the
/chromecommand's browser detection logic picks upbravefrom$PATHbeforechromium, ignoring the default browser setting and where the extension is actually installed
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗