Skip to content

Supermemory authentication fails on systems without xdg-open #25

@GarrisonD

Description

@GarrisonD

The Supermemory authentication fails in environments where xdg-open is not installed. When attempting to authenticate, the tool tries to open a browser using xdg-open, which fails on systems without this utility (e.g., minimal Linux environments, Docker containers, WSL without desktop packages).

To Reproduce

  1. Attempt to authenticate with Supermemory using the supermemory tool
  2. The tool fails to open the browser with error: /bin/sh: 1: xdg-open: not found

Expected behavior
The tool should either:

  • Detect if xdg-open is available and fall back to a different method (e.g., printing the URL directly for manual copy-paste)
  • Provide a CLI-based authentication flow
  • Use a cross-platform method to open URLs that works without external dependencies

Environment

  • Platform: Linux (minimal environment without xdg-utils)
  • The issue affects Docker containers, WSL without desktop packages, and other minimal Linux installations

Additional context
The authentication URL shown is: https://console.supermemory.ai/auth/connect?callback=http%3A%2F%2Flocalhost%3A19877%2Fcallback&client=opencode

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions