Forum Discussion

greysave's avatar
greysave
New Contributor
1 year ago

Linux 1password CLI annot connect to the desktop app

The server is running Ubuntu 22.04 and I get the following error:
op vault list
[ERROR] 2024/04/05 09:54:38 connecting to desktop app: cannot connect to 1Password app, make sure it is running

I followed the directions on the 1Password developer site. I have tried uninstalling and reinstalling both 1password and 1passord cli.


1Password Version: 8.10.24
Extension Version: Not Provided
OS Version: Ubuntu 22.04
Browser: Not Provided

2 Replies

  • Michael_Mercuri's avatar
    Michael_Mercuri
    Dedicated Contributor

    Anyone? I'm also seeing errors like this on Pop!_OS 24.04 based on Ubuntu 24.04. 

    What's weird is that I regularly use `op` daily and it runs fine from the command line.

    However, when attempting to use Wezterm  https://github.com/dfaerch/passrelay.wezterm plugin that uses the 1Password CLI, when the plugin get a "connect reset" error:

    [ERROR] 2026/03/19 16:54:50 connecting to desktop app: connection reset, make sure 1Password CLI is installed correctly, then open the 1Password app, select 1Password > Settings > Developer and make sure the 'Integrate with 1Password CLI' setting is turned on. If you're still having trouble connecting, visit https://developer.1password.com/docs/cli/app-integration#troubleshooting for more help.

    All of the `op` commands that the plugin uses such as `op item list` and `op item get` work fine when executed manually from my shell. But when run from the Wezterm plugin, it gets these error.

    When I check the 1Password CLI activity log from the Developer Settings, it shows no activity from Wezterm, desite the error message obviously coming from `op` .

    The only activity that ever shows up is when I manually invoke `op` from my shell. 

    Lastly... this all works flawlessly on macOS. 

    I'm using 1Password version 8.12.8 and op version 2.33.0. 

    • Michael_Mercuri's avatar
      Michael_Mercuri
      Dedicated Contributor

      Weird. I just tried this on my older Pop!_OS 22.04 laptop based on Ubuntu 22.04 and it works perfectly fine there. Same version of 1Password app and op installed. One other difference is that the older Ubuntu 22.04 is using X11 and the new Ubuntu 24.04 is using Wayland.