Skip to main content
December 17, 2022
Question

Is it possible for 1Password CLI running on WSL to connect with 1Password hosted on Windows?

  • December 17, 2022
  • 41 replies
  • 12150 views

Right now I can access 1Password on my WSL Debian installation using the CLI. But I have to enter my master password even when Windows is authenticated. I was just curious if it's possible to connect the two (a-la the SSH agent forwarding magic outlined here - https://1password.community/discussion/128023/ssh-agent-on-windows-subsystem-for-linux)


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser:_ Not Provided

41 replies

July 15, 2023

+1

July 25, 2023

Thank you everyone for chiming in!

We'll let you know once we have more details here.

Stanzilla
August 1, 2023

Would love to see this as well

August 30, 2023

+1

November 6, 2023

+1

November 29, 2023

What I found is that it works if you create a symlink in your WSL machine, pointing to op.exe on your Windows host:
ln -s /mnt/c/Users/user/AppData/Local/Microsoft/WinGet/Links/op.exe /home/user/.local/bin/op

It works with other Linux commands (in opposite to alias), and in particular with ansible.

December 4, 2023

I also would love to see this released ! Windows co-workers wait for this !

December 18, 2023

has there been any progress since then? has any kind of roadmap been prepared?

it would be very nice to be able to use the 1password CLI via WSL2, especially the shell plugins

btmurrell
February 29, 2024

bump. +1 for me. we all expect this to "just work". for me, the ability to have a real shell vis a vi WSL is the only reason this programmer is using Windows. To my understanding, there's a pipeline btwn the WSL environment and Windows (be it ports or binary compatibility), but having op cli available in WSL, connecting to the Windows 1p app is a critical piece.

March 6, 2024

This would be huge. I have currently adopted @matfax's solution, which works. I haven't used any CLI plugins yet. But generally, I think having a turnkey solution for WSL would be really useful.