Fishmem keeps your SSH keys in the vault instead of in ~/.ssh, and acts as the SSH agent that ssh and git ask for them. You get three things:
- The same keys on every computer. Sign in on a new laptop and
git pushworks; no key files to copy over. - Nothing on disk to steal. A key in
~/.sshis a file any program running as you can copy. Here programs can only ask for a signature, and the desktop app asks you first:git pushshows "ssh wants to sign with github", and you click Allow once. - Signed commits. git signs every commit with the same key, and GitHub shows Verified next to them.
If you've used 1Password's SSH agent, it's the same idea.
Create or move a key
fishmem ssh keygen github # new Ed25519 key, prints the public key
fishmem ssh add work --file ~/.ssh/id_ed25519 # move an existing key in (asks for its passphrase if it has one)
fishmem ssh ls
fishmem ssh pub github # paste into GitHub › Settings › SSH keysAfter ssh add, check that the key works through Fishmem, then delete the original file. While you're signed in, keys sync to your other devices like any other secret. If you use Fishmem without signing in, they exist only on this computer, so make an encrypted export (fishmem secrets export-all) before you delete the original.
Use the agent
Desktop app (macOS and Windows)
The desktop app runs the agent for you. Every signature request shows which program wants which key, and you choose Deny, Allow once or Allow until locked. When the app locks (idle, sleep or screen lock), every "until locked" grant is withdrawn.
Turn it on in Settings › SSH agent › Serve my SSH keys to ssh and git. Then:
- macOS: add the two lines the setting shows to
~/.ssh/config(Host *andIdentityAgent "…"), with the copy button next to them. - Windows: the app serves
\\.\pipe\openssh-ssh-agent, the pipe Windows' built-in OpenSSH uses, sossh.exefinds it automatically. Stop and disable the Windows "OpenSSH Authentication Agent" service first, so the two don't compete for it. If git uses its own ssh, run thegit configline the setting shows.
CLI (macOS and Linux)
eval "$(fishmem ssh agent --daemon)"
ssh -T git@github.comThe CLI agent has no approval prompt: while it runs, any program running as you can ask it for signatures (not for the key itself). Prefer the desktop app on machines where you run untrusted code, such as AI agents with shell access.
Sign git commits
fishmem ssh git-setup github # this repository
fishmem ssh git-setup github --global # every repositoryThis sets gpg.format=ssh, the signing key, and an allowed-signers file, so git log --show-signature verifies your own commits. Add the same public key on GitHub as a Signing key to get the "Verified" badge.
Plans
The SSH agent and git signing are part of every paid plan. Storing SSH keys in the vault is free.
Hardware keys: keys that can't leave the chip
Preview. Hardware keys are built and in review, and will ship in an upcoming desktop release. They're not in a release yet.
The keys above are encrypted items in your vault, so they can be synced, backed up and moved to a new computer. For the keys that matter most you may want the opposite: a key created inside your Mac's Secure Enclave or your PC's TPM 2.0. The private key never exists anywhere else, so no program, not even Fishmem, can copy it.
- Every signature can require you. Turn on "Require Touch ID / Windows Hello" (on by default) and each ssh connection or git signature prompts, naming the program and the key.
- Side by side with synced keys. Use synced keys everywhere and chip-bound keys for your most important servers and GitHub. Both are served by the same agent.
- Git signing works too, with "Verified" on GitHub.
Create one in Secrets › Developer tools › SSH keys › New key › Hardware key, then copy its public key to GitHub or authorized_keys. Test has the chip sign random data and checks the result. Hardware keys keep working while Fishmem is locked: they were never in the vault.
Limits to know before you rely on one:
- They can't be synced, exported or backed up. If the computer is lost, wiped or replaced, the key is gone. Keep a second key registered on GitHub and your servers.
- They need a Mac with a Secure Enclave (Apple silicon, or an Intel Mac with a T1 or T2 chip) or a Windows PC with TPM 2.0. Not available on Linux or phones.
- On a Mac, the Secure Enclave itself enforces Touch ID. On Windows, the TPM guarantees the key can't be copied, but the Windows Hello check is made by Fishmem before it asks the TPM to sign, not by the TPM. Malware running as you on that PC could in principle ask the TPM for a signature directly. It still couldn't take the key elsewhere.
- Deleting a hardware key tells the chip to erase it. That can't be undone.