In this article
- What is the 1Password SSH Agent?
- Why move your SSH keys into 1Password
- 1Password SSH Agent vs the OpenSSH agent
- What you need before you start
- Step 1: Generate an SSH key in 1Password
- Step 2: Add your public key to GitHub
- Step 3: Turn on the SSH agent
- Step 4: Point your SSH client at the agent
- Step 5: Test and approve
- Authorization options explained
- Why can I not copy my private key in 1Password?
- Fix the too many authentication failures error
- Check which keys and apps used the agent
- Using keys from shared or custom vaults
- Is the 1Password SSH Agent safe?
- Quick troubleshooting table
- Who should use it
- Control key order with the agent config file
- Sign Git commits with the same key
- SSH Bookmarks for one click connections
- Pros and cons
- Latest information about 1Password
- 1Password SSH Agent FAQs
- Final Verdict
SSH keys sitting in a folder on your laptop are a quiet risk.
Any script you run could read them. You may never know.
This guide shows how the 1Password SSH Agent fixes that, step by step.
Quick answer
The 1Password SSH Agent lets Git and SSH use keys stored in 1Password, so the private key never leaves the app. Turn it on in Settings, then Developer, and point your SSH config at the agent socket. Each app must then be approved with biometrics or your account password before it can use a key.
Want the current offer? See our 1Password deals page.
What is the 1Password SSH Agent?
The 1Password SSH Agent lets Git and SSH use keys saved in 1Password. Your SSH client never reads the private key.
The developer docs say the private key never leaves the 1Password app. Only apps you approve can use it.
| Question | Answer | Source |
|---|---|---|
| Where keys live | Inside 1Password vaults | Developer docs |
| Key types | Ed25519 and RSA | Developer docs |
| Default vaults | Personal, Private or Employee | Developer docs |
| Approval | Each app must be authorized | Developer docs |
| Platforms | Mac, Windows and Linux desktop apps | Developer docs |
| Unlock options | Touch ID, Apple Watch, Windows Hello or system auth | Developer docs |
In short, it replaces key files sitting in your home folder.
Why move your SSH keys into 1Password
The main reason is control. Plain key files in a .ssh folder can be read by any script you run.
The approval prompt changes that. A random script cannot quietly use your key, because 1Password asks first.
Below are the official setup steps, explained in plain language.
1Password SSH Agent vs the OpenSSH agent
| Point | 1Password SSH Agent | OpenSSH ssh agent |
|---|---|---|
| Adding keys | No ssh add step needed | Run ssh add after each launch |
| Who can use a key | Only apps you approve | Any process once a key is added |
| Private key on disk | Not stored locally | Usually a file in .ssh |
| Approval prompt | Yes, with biometrics or password | No |
| When locked | Keys not kept in memory | Keys stay until removed |
What you need before you start
- A 1Password account.
- The 1Password desktop app for Mac, Windows or Linux, signed in.
- The browser extension, if you want to autofill public keys.
- Optional: 1Password CLI 2.20.0 or later to create keys from the command line.
The docs list these for every plan.
Checking plan prices? See our 1Password pricing guide.
Step 1: Generate an SSH key in 1Password
- Open and unlock the 1Password app.
- Go to your Personal, Private or Employee vault.
- Select New Item, then SSH Key.
- Select Add Private Key, then Generate New Key.
- Choose Ed25519 or RSA, then select Generate.
- Select Save.

1Password creates the private key, public key and fingerprint together.
Import an existing key instead
Choose Add Private Key, then Import a Key File. You can also drag the file in or paste it.
If the key has a passphrase, enter it once and select Decrypt.
Step 2: Add your public key to GitHub
The docs use GitHub as the example. Other Git hosts work the same way.
- Open the GitHub SSH key settings page.
- Click the Title or Key field.
- Pick your new key from the 1Password list.
- Select Add SSH Key to save it.

1Password fills the title and public key for you.
Step 3: Turn on the SSH agent
- Open 1Password and go to Settings.
- Select Developer.
- Select Use the SSH Agent.
- Choose whether to show key names in prompts.
- Adjust authorization settings if you like.
On Mac, open General settings too. Tick Keep 1Password in the menu bar and Start at login. That keeps the agent running.
Showing key names makes prompts clearer. 1Password then stores key titles locally to do it.
Step 4: Point your SSH client at the agent
On Mac, add this to your ~/.ssh/config file:
Host * IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
Or set SSH_AUTH_SOCK to that same socket path in your shell.
Windows and Linux use different paths. Pick your system on the Get started page.
Want to move slowly? You can use the agent for only some hosts first.
Step 5: Test and approve
Run ssh -T git@github.com or git pull in a project.
1Password asks if the app may use your key. Approve with Touch ID, Windows Hello or your password.
After that, the same app can use the key until 1Password locks or quits. You can change that rule.
Authorization options explained
| Option | What you approve |
|---|---|
| Per key, per application (default) | One app and its subprocesses |
| Per key, per application, per terminal session | One terminal tab at a time |
| Per key, per request | Every single request |
| Approve for all applications | All processes, for a short time |
Pick per request for the tightest control. It means more prompts, though.
Why can I not copy my private key in 1Password?
This is a common question. The private key field works through export, not a plain copy.
- Open and unlock the 1Password desktop app.
- Open the SSH key and select the private key field.
- Choose OpenSSH or PKCS#8 format.
- To encrypt it, enter a passphrase, then Copy Encrypted Key or Download Encrypted Key.
- For plain text, leave the passphrase empty and choose Copy Unencrypted Key.
Encryption on export works for OpenSSH format only. A key imported as PKCS#1 can also export as PKCS#1.
1Password warns it cannot protect keys stored outside your account. Do not keep unencrypted keys on disk.
Copy the public key instead

Most of the time you only need the public key. Use Copy or Download in the public key field.
Fix the too many authentication failures error
OpenSSH servers allow six tries by default. Each key the agent offers is one try.
With more than six keys, the server may refuse you. You then see Too many authentication failures.
- Match each host to one key in your SSH config.
- Or use SSH Bookmarks in 1Password to pair keys and hosts.
- Or ask the server admin to raise MaxAuthTries.
Check which keys and apps used the agent
In the desktop app, select Developer, then View SSH agent.
- Available SSH Keys shows keys the agent can offer.
- The Activity tab shows recent requests, apps and keys.
- You can clear the log or turn off activity recording.

On Mac and Linux, ssh-add -l lists keys when SSH_AUTH_SOCK points at the agent.
Which keys qualify? They must use the SSH Key item type. They must sit in an agent vault and be active. Archived or deleted items do not count.
Using keys from shared or custom vaults
By default the agent only offers keys from your Personal, Private or Employee vault.
To use other vaults, create an agent config file at ~/.config/1Password/ssh/agent.toml.
Keep it simple at first. Add vaults only when a team really needs shared keys.
Is the 1Password SSH Agent safe?
The security page makes three promises. Private keys never leave 1Password. They are never stored locally. They are never used without your consent.
An approval opens a session between one key and one process. A process can be a terminal tab, an IDE or a Git app.
When 1Password locks, the agent drops the keys from memory. It keeps only your approval, if you chose a time limit.
That design limits the damage from a bad script. It cannot use a key you did not approve for it.
Quick troubleshooting table
| Problem | What to try |
|---|---|
| No prompt appears | Check Use the SSH Agent is on in Developer settings |
| SSH ignores 1Password | Check IdentityAgent or SSH_AUTH_SOCK points at the agent socket |
| Agent stops after closing the app | On Mac, turn on Keep in menu bar and Start at login |
| Too many authentication failures | Match keys to hosts or use SSH Bookmarks |
| Key missing from the agent | Check the vault, item type and that it is not archived |
| Key name unavailable in prompt | Unlock that account, or turn on key names in Developer settings |
Who should use it
- Developers who push code to GitHub, GitLab or similar.
- Admins who log in to servers over SSH.
- Teams that want keys in shared vaults with clear access.
- Anyone who keeps plain key files in a home folder today.
If that sounds like you, setup takes a few steps. You can also move one host at a time.
Control key order with the agent config file
Without a config file, the agent offers every SSH key item in your Personal, Private or Employee vault. The optional agent config file at ~/.config/1Password/ssh/agent.toml lets you override that.
- Choose keys from any vault or account, not only the default vaults.
- Set the order the agent offers keys, so you stay under the six key limit most servers apply.
- Keep a different file on each machine, such as one for work and one for a personal laptop.
The file uses TOML. Each entry starts with an [[ssh-keys]] header followed by one or more lines naming the item, vault or account in quotes. Header names and keys must be lowercase. The values inside quotes are not case sensitive.
| Fact | What it means for you |
|---|---|
| Saved locally only | The file is not synced to 1Password servers |
| Order matters | The first matching entry is offered to the server first |
| Desktop app can create it | It starts with entries for your default vaults |
| Delete it any time | The agent falls back to the default behavior |
If you work on several computers, sync the file yourself with Git, the same way you handle other dotfiles.
Sign Git commits with the same key
The same key that logs you in to GitHub can also sign your commits. Git 2.34 and later supports signing commits and tags with SSH keys, so no GPG key is needed.
- Open the SSH key in the 1Password desktop app and use the option to configure commit signing. 1Password gives you a snippet for your Git config.
- The snippet points Git at the public key and at the signer program 1Password provides.
- Register the public key with your Git host as a signing key. On GitHub set the key type to Signing key.
- Commit as normal. 1Password asks you to approve each signature with your fingerprint.
Signed commits matter because anyone with push rights can otherwise push commits under another person’s name. To check signatures on your own machine, create an allowed signers file that pairs email addresses with trusted public keys.
SSH Bookmarks for one click connections
SSH Bookmarks, still marked beta, let you connect to hosts straight from 1Password and tie each host to one key.
- After you approve an ssh command from the terminal, the host appears in the agent activity list, and you can bookmark it from there.
- You can also add the host URL, such as ssh://user@host, to an SSH Key item by hand.
- Bookmarks then appear on the SSH agent page in the desktop app, and one click opens your terminal and starts the connection.
- Remove a bookmark from its Actions menu, or delete the host URL from the item.
Bookmarks are a tidy fix for the too many authentication failures error, because each host uses the key you matched to it.
Pros and cons
| Pros | Cons |
|---|---|
| Private keys never sit on disk | Frequent approval prompts |
| Approval prompt for every new app | Six key server limit needs config |
| Biometric unlock | Desktop app must be running |
| Easy public key autofill | Private key copy goes through export |
Latest information about 1Password
- First-year promo. Individual is $2.99 a month and Families $4.49 a month billed yearly, against regular prices of $3.99 and $5.99. The promo is for new customers who subscribe directly on 1Password.com with annual billing, not through app stores.
- Free trial. Individual and Families can both be tried free for 14 days before you choose a plan.
- Developer tools on personal plans. The plan table lists SSH workflows, Git commit signing, the CLI and SDKs for both Individual and Families.
- Recovery codes. Individual and family accounts can create a reusable recovery code in the apps or on 1Password.com under Sign-in and Recovery.
Watch: 1Password official video
1Password SSH Agent FAQs
What is the 1Password SSH Agent?
A built in agent that lets Git and SSH use keys stored in 1Password.
How do I turn on the 1Password SSH Agent?
Open Settings, select Developer, then select Use the SSH Agent.
Why can I not copy my private key in 1Password?
Use the export option on the private key field. Choose a format, then copy or download.
Which SSH key types does 1Password support?
Ed25519 and RSA.
Does the 1Password SSH Agent work on Windows and Linux?
Yes. The docs cover Mac, Windows and Linux desktop apps.
Can I import my existing SSH keys into 1Password?
Yes. Choose Add Private Key, then Import a Key File.
Why do I get too many authentication failures?
Servers allow six tries by default. Match keys to hosts or use SSH Bookmarks.
Does the SSH agent work when 1Password is locked?
It keeps running and prompts you. You must unlock 1Password to use the keys.
Can the agent use keys from shared vaults?
Yes, with an agent.toml config file listing those vaults.
Is the 1Password SSH agent config file synced?
No. agent.toml is saved locally on each machine and is not synced to 1Password servers.
Can 1Password sign Git commits with SSH?
Yes. With Git 2.34 or later, 1Password can sign commits with an SSH key and asks you to approve each signature with your fingerprint.
What are 1Password SSH Bookmarks?
A beta feature that saves SSH hosts on your keys so you can connect from the app and match each host to one key.
Do personal 1Password plans include the SSH agent?
Yes. The plan table lists SSH workflows and Git commit signing for both Individual and Families.
Final Verdict
The 1Password SSH Agent is a strong upgrade over key files. It is easy to set up and safer by design.
Who we would recommend it to: developers already using 1Password on desktop.
What we would skip it for: headless servers with no desktop app.
For the full product view, read our 1Password review.
Disclosure: some links on this page are affiliate links. If you buy through them we may earn a commission, and your price stays the same.

