[FEATURE] Add browser selection option for Chrome extension (support non-default browsers)

Status Fixed / completed
Maintainer reply None cached
Activity 8 comments · opened Dec 21, 2025 · closed Aug 17, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

When using Claude Code with the Chrome extension, the /chrome command and browser automation features always open the system's default browser. For users who have a different browser set as default (e.g., Arc, Firefox, Brave) but have installed the Claude Chrome extension in Google Chrome, this creates a workflow issue.

Currently, there's no way to specify which browser Claude Code should use for the Chrome extension features, forcing users to either:

  • Temporarily change their system default browser to Chrome
  • - Manually open Chrome each time before using browser automation features

This interrupts the workflow and makes the Chrome extension less accessible for users who prefer other browsers for general use.

Proposed Solution

Add a configuration option to specify which browser to use for Chrome extension features. This could be implemented in several ways:

Option 1: Command-line flag

claude --browser chrome
claude --browser /Applications/Google\ Chrome.app

Option 2: Configuration setting
Add a browser setting in settings.json or similar config file:

{
  "chrome": {
    "browserPath": "/Applications/Google Chrome.app"
  }
}

Option 3: Environment variable

CLAUDE_BROWSER=chrome claude

The ideal solution would combine Options 1 and 2, allowing users to set a default browser in configuration while also being able to override it per-command when needed.

Alternative Solutions

Currently, the only workarounds are:

  1. Temporarily changing system default browser: Before using Claude Code's Chrome features, users must go to System Settings and change their default browser to Chrome, then change it back after they're done. This is cumbersome and interrupts workflow.
  2. Manually opening Chrome first: Users can manually open Chrome before running Claude Code commands, but this doesn't solve the issue when Claude Code tries to open a new browser instance.
  3. Not using the Chrome extension: Some users might choose to avoid the Chrome extension features entirely, which limits Claude Code's capabilities.

None of these alternatives provide a seamless experience, which is why a built-in browser selection option would be valuable.

Priority

Medium - Would be very helpful

Feature Category

CLI commands and flags

Use Case Example

Scenario: I'm a developer who uses Arc as my primary browser for daily web browsing, but I've installed the Claude Chrome extension in Google Chrome for development work.

Current workflow (problematic):

  1. I want to use Claude Code to automate testing a web application
  2. 2. I run claude /chrome
  3. 3. Arc opens instead of Chrome
  4. 4. The Claude extension isn't available in Arc, so browser automation fails
  5. 5. I have to manually close Arc, go to System Settings, change default browser to Chrome, restart Claude Code
  6. 6. After I'm done, I have to remember to change the default browser back to Arc

Desired workflow (with this feature):

  1. I want to use Claude Code to automate testing a web application
  2. 2. I run claude /chrome --browser chrome (or have it configured in settings)
  3. 3. Chrome opens directly with the Claude extension ready
  4. 4. Browser automation works seamlessly
  5. 5. My default browser (Arc) remains unchanged for other tasks

This would save several manual steps and make the Chrome extension features much more accessible.

Additional Context

Platform: macOS (Darwin 25.0.0)

Related Issue: This feature request arose from a real user experience where the user had Arc set as their default browser but wanted to use the Claude Chrome extension installed in Google Chrome.

Impact: This affects any user who:

  • Uses a non-Chrome browser as their default (Arc, Firefox, Brave, Safari, Edge, etc.)
  • - Has installed the Claude Chrome extension in Google Chrome
  • - - Wants to use Claude Code's browser automation features

Compatibility Note: The solution should work across all major operating systems (macOS, Windows, Linux) where users might have different default browsers.

View original on GitHub ↗

7 Comments

github-actions[bot] · 8 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/14536
  2. https://github.com/anthropics/claude-code/issues/14732
  3. https://github.com/anthropics/claude-code/issues/14584

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

elijahmuraoka · 8 months ago

I need this as well

tarekbadrsh · 8 months ago

I have the same issue. Here are some workarounds I found:

| Workaround | Pros | Cons |
|---|---|---|
| Temporarily change default browser | Works reliably | Annoying, affects whole system |
| Open Chrome manually first | Quick | Doesn't always work |
| Use Chrome DevTools MCP | Full control over browser path | More complex setup |

Possible macOS Workaround

You could create a shell alias/script that temporarily sets Chrome as default, runs Claude, then restores Brave:

In your .zshrc or .bashrc

claude-chrome() {
# This is hacky but might work
open -a "Google Chrome" # Ensure Chrome is running first
sleep 1
claude --chrome "$@"
}

Or simply ensure Chrome is already open before running the autonomous agent—the extension should connect to the running Chrome instance.

Best practical advice for now: Keep Chrome open before running claude --chrome or the autonomous agent.

🤖 Generated with Claude Code

mirageN1349 · 7 months ago

I need it

FujiwaraChoki · 7 months ago

Necessary feature...

stolot0mt0m · 7 months ago

Until this is implemented, there's a workaround: https://github.com/stolot0mt0m/claude-chromium-native-messaging

It sets up Native Messaging for alternative browsers so the extension can connect to Claude Desktop and Claude Code.

Sizzlemanizzle · 4 months ago

Mandatory fature

Showing cached comments. Read the full discussion on GitHub ↗