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
- Attempt to authenticate with Supermemory using the
supermemory tool
- 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
The Supermemory authentication fails in environments where
xdg-openis not installed. When attempting to authenticate, the tool tries to open a browser usingxdg-open, which fails on systems without this utility (e.g., minimal Linux environments, Docker containers, WSL without desktop packages).To Reproduce
supermemorytool/bin/sh: 1: xdg-open: not foundExpected behavior
The tool should either:
xdg-openis available and fall back to a different method (e.g., printing the URL directly for manual copy-paste)Environment
Additional context
The authentication URL shown is:
https://console.supermemory.ai/auth/connect?callback=http%3A%2F%2Flocalhost%3A19877%2Fcallback&client=opencode