Skip to content

Claude Code threads have no browser control through chrome extension #1667

Closed

Description

@seancxk

What I was trying to do

Have a Claude Code thread in bb drive my browser with the chrome extension like how it works in CLI or Claude desktop.

What happens

Claude Code threads in bb have no browser tools at all. The agent doesn't fail so much as not know the capability exists; asked to open a page, it falls back to shelling out open <url>, which launches a page but can't interact with it.

Codex threads in bb drive the browser fine, which is what made me look into it.

What I found

Claude Code only loads its browser tools when started with the --chrome flag. Same machine, same binary, back to back:

claude --chrome -p "do you have browser tools?"   → yes, 22 of them
claude -p        "do you have browser tools?"     → none

Claude Code does have a setting for this ("Enabled by default", stored as claudeInChromeDefaultEnabled), but it only applies to interactive sessions and is ignored in the non-interactive mode bb uses. So the flag looks like the only way in, and I couldn't find any way for bb to pass provider CLI flags.

Why Codex differs

Codex keeps its browser switch in its own config file (~/.codex/config.toml, the bundled chrome and browser plugins), which it reads at startup regardless of who launched it — so bb doesn't have to do anything. Claude Code keeps the equivalent switch on the command line, which only the launcher controls. bb treats both providers the same; the difference is where each CLI keeps its own switch.

Two possible directions

  1. bb-side: a per-thread browser toggle that passes --chrome when starting a Claude Code session. Per-thread rather than global seems right — Anthropic warns that always-loaded browser tools cost context, though I measured it at only ~1,100 tokens.

  2. Anthropic-side: if Claude Code honoured its own "Enabled by default" setting in non-interactive mode, bb would need no change at all.

Workaround

BB_CLAUDE_CODE_EXECUTABLE can point at a small script that runs the real claude with --chrome added. Did that and it works for me.

Environment

  • bb 0.38.0 · macOS 26.6.1
  • Claude Code 2.1.233 (signed in via /login)
  • Claude in Chrome extension 1.0.85

Activity

  1. added
    providers
    provider-claude-code
    on Aug 18, 2026
  2. SawyerHood commented on Sep 9, 2026

    @SawyerHood
    Collaborator

    Closing as completed: #2988 added the opt-in Claude in Chrome integration and shipped in desktop-v0.42.1.

    Enable “Claude in Chrome” in the Claude Code provider settings, or use:

    bb plugin config provider-claude-code set chromeEnabled true

    The setting defaults to off and requires the Chrome extension and a claude.ai login on the execution host. When enabled, BB passes the explicit Chrome flag to the Claude SDK process. Changing the setting is applied through the next turn/session reconstruction while preserving the conversation.

    The merged PR includes option-propagation and session-restart tests, plus a direct CLI check showing Chrome tools with the flag enabled.

    AGENT GENERATED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    provider-claude-codeproviders

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions