Skip to main content
Dec 17, 2022 9:26 PM UTC
Question

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

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

42 replies

Jul 15, 2023 11:54 AM UTC

+1

Jul 25, 2023 8:56 AM UTC

Thank you everyone for chiming in!

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

Stanzilla
Aug 1, 2023 12:11 AM UTC

Would love to see this as well

Aug 30, 2023 3:01 PM UTC

+1

Nov 6, 2023 10:40 PM UTC

+1

Nov 29, 2023 4:21 PM UTC

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.

Dec 4, 2023 2:24 PM UTC

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

Dec 18, 2023 9:06 AM UTC

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
Feb 29, 2024 5:18 PM UTC

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.

Mar 6, 2024 2:20 PM UTC

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.