Skip to content

[Bug]: CLI "Error: Brave is not supported as a default browser" #2542

@omarei-omoto

Description

@omarei-omoto

SDK Language

TypeScript / Node.js SDK (@composio/core)

SDK Version

composio==0.1.24

Runtime Environment

Platform: macOS (darwin-aarch64) Shell: zsh Node.js: (CLI is installed but version not explicitly shown in your output)

Environment

Local Development

Describe the Bug

When executing composio login, the CLI attempts to open the authentication URL in the default browser but fails with the error: "Error: Brave is not supported as a default browser". The authentication flow cannot complete because the CLI doesn't support Brave browser as the system default browser.
Expected behavior: The CLI should either:

Successfully open the authentication URL in Brave browser, or
Fall back to another browser, or
Provide a --no-browser flag to manually copy the URL (which exists per the help docs but wasn't tested)

Steps to Reproduce

Set Brave as your default browser on macOS
Install Composio CLI (v0.1.24)
Run composio login
Observe the error: "Error: Brave is not supported as a default browser"

Minimal Reproducible Example

Error Output / Stack Trace

# After installing Composio CLI
composio login


**Error Output / Stack Trace**

> Redirecting you to the login page
> https://platform.composio.dev?cliKey=8b2c5756-edd1-475f-8893-a1c3556da192

💥  UnknownException  • Error: Brave is not supported as a default browser 

◯
╰─ composio-cli
   ~ 553ms
     name: @composio/cli
     filename: src/bin.ts


**Reproducibility**  
Always reproducible (tested multiple times with same result)

**Additional Context**

- The CLI help shows a `--no-browser` flag exists for the login command: `composio login [--no-browser]`
- This workaround might allow manual URL opening, but the default flow should support Brave
- Brave is a Chromium-based browser and should be compatible with standard browser opening mechanisms
- Installation details:

  Found latest version: v0.11.0 
  Installing Composio CLI v0.11.0 for darwin-aarch64

Reproducibility

  • Always reproducible
  • Intermittent / Sometimes
  • Happened once, can’t reproduce

Additional Context or Screenshots

Either add Brave to the supported browsers list or use a more generic browser detection/opening mechanism that works with any default browser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions