DevOps8 min readUpdated November 23, 2026

How Does the 1Password SSH Agent Work for Developers?

Your private keys never touch the disk. Git commits get signed. Servers let you in. The whole SSH workflow runs through one app.

The 1Password SSH agent is an SSH agent that keeps your private keys inside 1Password and never on disk. It authenticates git and SSH clients, signs git commits with SSH keys, and asks for your consent before any key is used. You point SSH_AUTH_SOCK at the 1Password socket and every ssh and git command flows through it. The private key never leaves the app.

The 1Password SSH agent is an SSH agent that keeps your private keys inside the 1Password app instead of on disk. Your ssh and git clients talk to it through a socket. When a client asks to sign a challenge, 1Password asks you to approve, then signs inside the app.

What is the 1Password SSH agent?

The 1Password SSH agent is an SSH agent that keeps your private keys inside the 1Password app instead of on disk. Your ssh and git clients talk to it through a socket. When a client asks to sign a challenge, 1Password asks you to approve, then signs inside the app.
The private key never leaves 1Password. This is different from the OpenSSH agent you already know. The OpenSSH agent holds keys in memory and any process can use any loaded key until you remove it. The 1Password agent asks for your consent before a key is used, and the key is never written to a file. For a developer, this means one place for every SSH key. No more ~/.ssh/id_rsa files scattered across laptops. No more copying a key to a new machine. You sign in to 1Password and your keys are there.

How does the 1Password SSH agent keep keys off disk?

It keeps keys off disk by generating and storing them inside 1Password and exposing only a signing interface. The agent does not hand your private key to the ssh client. It signs the challenge for you and returns the signature. The client never sees the key.
You point SSH_AUTH_SOCK at the 1Password socket in your shell profile. From then on, every ssh and git command that needs a key goes through 1Password. The key material stays in the app, encrypted, and is released only for a signing operation you approve. This removes the classic failure mode. A private key file on disk can be copied, committed, or stolen by malware. A key that never leaves the app and needs your consent to use is a much smaller target.

How do I sign git commits with the 1Password SSH agent?

Sign git commits by pointing git at the 1Password agent and telling git to use your SSH key for signing. Git 2.34 and later supports signing commits and tags with an SSH key, so you do not need GPG at all.
Set gpg.format to ssh, set user.signingkey to your public key, and set commit.gpgsign to true. The 1Password app can configure this for you automatically. Then every commit you make is signed, and GitHub shows the Verified badge. This matters because anyone with push rights can push a commit under any author name. A signed commit proves the change came from you. With the 1Password agent, signing costs you nothing extra. You reuse the SSH key you already have and drop the GPG keyring entirely.

How do I use the 1Password SSH agent for server access?

Use it for server access by adding your public key to the server's authorized_keys and letting the agent handle the private key. You ssh to the host as usual. The agent signs the authentication challenge, 1Password asks you to approve, and you are in.
The workflow is the same as any SSH key, minus the key file. You generate the key in 1Password, copy the public key to the server, and connect. The private key stays in the app on your machine. For a fleet of servers, this is a real improvement. You stop distributing private keys to laptops. You revoke access by removing the key from 1Password, not by chasing down every copy. And every use of the key requires your consent, so a stray script cannot quietly use it.

How does the 1Password SSH agent compare to ssh-agent?

The 1Password agent is safer in one specific way: consent. The OpenSSH agent loads keys into memory and any process can use any loaded key until you remove it. The 1Password agent asks for your approval before a key is used, and it never writes the private key to disk.
The OpenSSH agent is simpler and always available. It has no dependency on a running app. The 1Password agent needs 1Password to be running and unlocked, which is a tradeoff. If the app is locked, your ssh commands wait for you to unlock it. For most developers the tradeoff is worth it. You get signed commits, keys that never touch disk, and a consent step that stops a script from using your key. If you need a headless machine with no app, keep a separate key for that and leave the agent for your daily driver.

4 Tips to Get Started

1

Point SSH_AUTH_SOCK at the 1Password agent socket in your shell profile. That one line routes every ssh and git command through 1Password.

2

Turn on git commit signing with SSH. Git 2.34 and later signs commits with an SSH key, so you drop GPG entirely and reuse the key you already have.

3

Set the agent to require authorization per request. A key that needs a Touch ID tap is a key that cannot be used by a script you did not start.

4

Keep a fallback key for CI. The agent is for humans at a keyboard. Machines use a separate deploy key or a short-lived credential, never your personal key.

Ready to Stop Worrying About Infra?

Knowledge is the first step. Get a free 1-hour diagnostic and see where your infrastructure leaks time, money, and focus.

Sources & References

roqy.io cites authoritative sources including engineering blogs, vendor documentation, industry surveys, and academic research to ensure accuracy.

R

Ron Cohen — Founder & DevOps Engineer

Content reviewed by the roqy.io team. Our guides are based on publicly available data and cited sources above.

Disclaimer: This content is for informational and educational purposes only. It does not constitute professional advice or a guarantee of specific results. Infrastructure needs vary by team, stack, and stage. Consult a qualified engineer for advice tailored to your situation.

Frequently Asked Questions

How does the 1Password SSH agent work?

It runs as an SSH agent that holds your keys inside 1Password instead of on disk. Your ssh and git clients talk to it through a socket. When a client asks to sign something, 1Password asks you to approve, then signs inside the app. The private key never leaves 1Password.

Can 1Password sign git commits?

Yes. Git 2.34 and later can sign commits and tags with an SSH key. The 1Password SSH agent provides that key, so you get verified commits on GitHub without a GPG key or a key file on disk.

Is the 1Password SSH agent safer than ssh-agent?

It is safer in one specific way. The OpenSSH agent lets any process use any loaded key until you remove it. The 1Password agent asks for your consent before a key is used and never writes the private key to disk. That consent step is the difference.

Does the 1Password SSH agent work on Linux servers?

The agent runs on your local machine, Mac, Windows, or Linux, and your ssh client on that machine uses it. On a remote server you use a normal key or an agent forwarding setup. The agent is for the machine you type on, not the server you connect to.

Get the DevOps Ecosystem Behind You

One accountable engineer. Full platform behind him. Month-to-month, no lock-in.