Wear the right identity everywhere.
Switch between your GitHub, GitLab, Bitbucket and Hugging Face accounts in one click,
and manage every remote server you SSH into: hosts, keys, jump hosts, ssh-agent and known_hosts.
Website · Download · User guide · CLI reference
You have a work GitHub account and a personal one. Both want to be git@github.com, so SSH sends whichever key it finds first, and you end up pushing to the wrong account. The usual fix is a hand-edited ~/.ssh/config full of Host github.com-work aliases, plus remembering to change git config user.email every time.
Lanyard does that bookkeeping for you:
- One click to switch. Pick an account and plain
git@github.com:…URLs use its key, with its name and email on your commits. - Several accounts side by side. Every account also gets its own alias (
github.com-work), so one repository can use one account and the next repository another. - Your config stays yours. Lanyard edits one clearly marked block of
~/.ssh/configand leaves every other line, comment and blank line untouched. Every change is backed up first.
The same goes for your servers. Instead of scrolling through ~/.ssh/config to remember which key prod uses or how to reach the database behind the bastion, you get one list of every machine you SSH into, and a click to connect.
- Every server in one list. All the
Hostentries in~/.ssh/config, with their user, address, port and key, searchable. - Connect in one click. Open
ssh prod-webin your terminal from the app, the tray, the command palette orlanyard connect prod-web. - Switch a server's key from a dropdown. Lanyard sets
IdentityFileandIdentitiesOnlyso SSH offers only that key. - Edit without breaking anything. A form for HostName, User, Port, IdentityFile, ProxyJump (jump hosts), ForwardAgent and any other option; or a raw editor that OpenSSH validates before saving. Comments and formatting are kept.
- Trust servers safely. Scan a server's host keys, compare fingerprints, then trust them; forget a host after it is reinstalled.
- Check before you rely on it. Test a login non-interactively, or see the effective settings SSH will use (
ssh -G).
More: Hosts and Known hosts in the user guide.
| Area | What you can do |
|---|---|
| Git accounts | Add accounts on GitHub, GitLab, Bitbucket, Hugging Face, Azure DevOps, Codeberg, Gitea, SourceHut or your own server; switch, test, clone with one. |
| Remote servers | Keep every server in ~/.ssh/config in one list: connect in one click, switch each server's key, jump hosts, a form or a validated raw editor. |
| Keys | Generate Ed25519, RSA or ECDSA keys, copy public keys, change passphrases, fix permissions, see which accounts and servers use each key. |
| ssh-agent | See loaded keys, load and unload them. |
| known_hosts | Scan a server's host keys, compare fingerprints, trust them, forget a host after it is reinstalled. |
| Backups | A snapshot before every change to your SSH config or known_hosts; restore any of them. |
| Everywhere | Lives in the system tray after you close the window; a command palette (Ctrl/⌘+K); a full lanyard CLI. |
Download the file for your system from the latest release:
| System | File | Notes |
|---|---|---|
| Windows 10 / 11 | Lanyard-Setup-<version>-x64.exe |
SmartScreen may warn about an unsigned app: More info → Run anyway. |
| macOS (Apple Silicon) | Lanyard-<version>-arm64.dmg |
First launch: right-click the app → Open. |
| macOS (Intel) | Lanyard-<version>-x64.dmg |
Same as above. |
| Linux | Lanyard-<version>-x86_64.AppImage |
chmod +x the file, then run it. |
| CLI only | npm install -g lanyard-cli |
Needs Node.js 20+. Or run once with npx lanyard-cli status. |
Lanyard uses the OpenSSH tools already on your machine (ssh, ssh-keygen, ssh-add). Windows 10 and 11 include them. The app bundles everything else it needs; there is nothing more to install. The lanyard command comes separately from npm (npm install -g lanyard-cli).
Full instructions: Installation.
- Open Lanyard and click Add account.
- Pick the provider (for example GitHub), name the account (
work), keep Generate a new key, and fill in the name and email for your commits. - Copy the public key Lanyard shows and add it to your account's SSH key settings (Lanyard links straight to that page).
- Click Test. You should see
Authenticated as <your username>. - Clone as usual:
git clone git@github.com:acme/app.git.
Add a second account the same way, then switch between them from the Overview page, the tray icon, the command palette, or the CLI:
lanyard use github personalFor your servers: open Hosts → Add host, enter the alias (prod-web), address, user and key, then use ⋯ → Connect. Hosts already in your ~/.ssh/config show up on their own.
Step-by-step with screenshots: Getting started.
Everything in the app is also a command. Install it with npm install -g lanyard-cli (Node.js 20+). lanyard (or the short alias lny) with no arguments opens the desktop app if it is installed.
lanyard status # who you are on each git host
lanyard use github personal # switch accounts
lanyard test # check every active account works
git clone $(lanyard url github work https://github.com/acme/app) # clone as a specific account
lanyard repo github work ./my-repo # point an existing repository at an account
lanyard hosts key prod id_ed25519_servers # switch the key a server uses
lanyard connect prod # open an SSH sessionAdd --json to any command for scripting. Every command: CLI reference.
Lanyard keeps one marked section at the top of ~/.ssh/config:
# >>> lanyard managed section >>>
# GitHub - active account: work
Host github.com
User git
IdentityFile ~/.ssh/id_ed25519_github_work
IdentitiesOnly yes
# GitHub - account: personal
Host github.com-personal
HostName github.com
IdentityFile ~/.ssh/id_ed25519_github_personal
...
Host *
# <<< lanyard managed section <<<
# ...the rest of your config, untouched...Switching accounts rewrites the Host github.com block. Nothing outside the markers changes. Details, including every file Lanyard reads and writes: How it works.
- User guide (wiki): every page of the app, with screenshots.
- Troubleshooting:
Permission denied (publickey), agent not running, host key changed, and more. - CHANGELOG.md: what changed in each release.
- CONTRIBUTING.md: build from source, run the tests, cut a release.
- docs/ARCHITECTURE.md: how the code is organized.
- SECURITY.md: threat model, the latest audit, and how to report a vulnerability.
Windows releases are signed with free code signing provided by SignPath.io, certificate by SignPath Foundation, once the project is approved. Every release file also carries a signed build attestation. Roles, privacy policy and how to verify a download: Code signing policy.
MIT © riomar
