- Running
pnpm dlx opencode-supermemory@latest login in WSL will result in an error.
- Simply execute the following command in Ubuntu 26.04 WSL:
sudo apt update && sudo apt upgrade --assume-yes
sudo snap install mise --classic
echo 'eval "$(mise activate bash)"' >> ~/.bashrc
source ~/.bashrc
sudo apt install --assume-yes libatomic1
mise use --global node@26.7.0
npm install --global npm@latest
npx --yes get-pnpm
source ~/.bashrc
pnpm add --global --allow-build=opencode-ai opencode-ai
pnpm dlx opencode-supermemory@latest install
# When prompted `No OpenCode config found. Create one? (y/n)`, type `y` and press Enter.
# When prompted `Add supermemory commands? (y/n)`, type `y` and press Enter.
pnpm dlx opencode-supermemory@latest login
- An error message similar to the following was received:
lingh@DESKTOP-8UCKIRD:~$ pnpm dlx opencode-supermemory@latest login
Opening browser for authentication...
If it doesn't open, visit: https://app.supermemory.ai/auth/agent-connect?callback=http%3A%2F%2F127.0.0.1%3A37893%2Fcallback%3Fstate%3D746640a4c0066362c43ac090a9e498e3&client=opencode&hostname=opencode+-+DESKTOP-8UCKIRD&os=linux-x64&cwd=%2Fhome%2Flingh&cli_version=2.0.10
✗ Authentication failed: Failed to open browser: spawn xdg-open ENOENT
pnpm dlx opencode-supermemory@latest loginin WSL will result in an error.