Install, update, remove
komando is one program file. This page shows how to install it on macOS, Linux and Windows, keep it up to date, turn on tab completion, and remove it again.
Install on macOS or Linux
Open a terminal (on macOS the Terminal app) and paste:
curl --proto '=https' --tlsv1.2 -fsSL https://raw.githubusercontent.com/sgnd/komando/v0.17.0/install.sh | KOMANDO_VERSION=v0.17.0 sh
The line runs the installer of release v0.17.0 and installs exactly that release.
Then check that it works:
komando version
It says command not found? The installer put komando in a folder your terminal does not look in yet. Run the export PATH=... line it printed, and add that line to ~/.zshrc (macOS) or ~/.bashrc (Linux) so it stays.
Want to read the script first? Download it, read it, then run it:
curl --proto '=https' --tlsv1.2 -fsSLO https://raw.githubusercontent.com/sgnd/komando/v0.17.0/install.sh
less install.sh
KOMANDO_VERSION=v0.17.0 sh install.sh
KOMANDO_INSTALL_DIR=DIR picks the folder. KOMANDO_VERSION picks the version; without it (sh install.sh) the installer takes the newest release.
The installer installs a release only when it is signed with the komando project's key, the check komando update makes: someone who replaced a release's files cannot make it install them. It checks the signature with OpenSSL 3, or with perl where there is none (macOS has perl; its own openssl cannot check this kind of signature). A computer with neither gets nothing installed and is told to install one. Releases up to 0.13.0 have no signature: the installer knows the checksums each of them was released with, installs one (asked for with KOMANDO_VERSION) only when its files match them, and says so.
Install on Windows
- Download
komando_windows_amd64.zip(orkomando_windows_arm64.zipon an ARM computer) from Releases. - Unpack
komando.exeinto a folder on yourPATH. - Open PowerShell and run
komando version.
What is different on Windows:
- komando keeps its data in
%USERPROFILE%\.komando. It gives that folder an access list of its own: only your user and the system can open it.komando doctorwarns when a file inside lets anyone else in. - The vault key goes into Windows Credential Manager (see Where komando keeps its data).
- Paths use Windows form, for example a SQLite file
sqlite://C:\data\app.db. - Browser sign-ins (VPN and cloud logins) open your default browser, as on macOS and Linux.
You can also run the Linux version inside WSL, with the macOS and Linux steps above.
Other ways to install
- With Go installed:
go install github.com/sgnd/komando/cmd/komando@latest. - Check that a downloaded archive was built by komando's release workflow:
gh attestation verify komando_linux_amd64.tar.gz --repo sgnd/komando
Update
komando update --dry-run # is there a newer version? (changes nothing)
komando update # install the newest release
update checks that the release is signed by the komando project, downloads the release for this computer, checks it against the release's signed checksums, runs the new program once to make sure it works here, and only then puts it in place. If anything fails, the old komando stays. Your servers, secrets and history in ~/.komando stay as they are.
After an update, run komando guide install again (without sudo), so your AI agents get the skill of the new version. Until then komando doctor says the skill is from another version.
- komando is in a folder only root may change, such as
/usr/local/bin? Runsudo komando update. As root it writes nothing in~/.komando. - On Windows the running
komando.exeis renamed aside (Windows does not let a running program be replaced) and the new one takes its name. komando update v0.17.0installs that version (only releases after 0.13.0 are signed; see below for older ones). Going back to an older version asks you first, because an older komando may lack safety checks the newer one has. An AI agent needs--yesand your "Allow once".updatetakes only a komando version.komando update web1is an error that points atkomando pkg upgrade web1, which updates the packages on that server.- Without a version,
updatenever goes back, even when the newest release is older than the komando you run. - A komando you built yourself from a commit between releases is not replaced (
SOURCE_BUILD): build it again instead. One built at a release tag (go install ...@v0.17.0) counts as that release. - Run as you, the update is written to the audit log like any other change.
updateinstalls only a release signed with the komando project's key, which is built into komando. The release workflow signschecksums.txt(aschecksums.txt.sig), so someone who replaced a release's files cannot makeupdateinstall them. An unsigned release stops withRELEASE_SIGNATURE_NOT_FOUND, a wrong signature withRELEASE_SIGNATURE_INVALID; nothing is changed. Do not work around either for a new release: report it (SECURITY.md). Releases up to 0.13.0 have no signature, sokomando update v0.13.0stops too; to go back to one of them, use the install line withKOMANDO_VERSION=v0.13.0.- The signature covers the version too. From 0.15.0 on, the first line of
checksums.txtnames the release and the day it was made (komando-release v0.17.0 2026-11-22).updateand the install line install a release only as the version that line names, so the signed files of an older release cannot pass as a newer one (RELEASE_SIGNATURE_INVALID). 0.14.0 and 0.14.1 were signed before the line: they install only when asked for by version. Checking by hand withsha256sum -c checksums.txtwarns about this one line; the files still check. - Known limit: someone who controls the download could serve a real, older release as the newest.
updatethen says komando is up to date (it never goes back on its own), and the install line installs that release and prints its version and date. Check them against the releases page. - To check the signed build provenance of a download as well, use
gh attestation verify(see Other ways to install). - It uses
HTTPS_PROXY.sudodrops that variable; keep it withsudo --preserve-env=HTTPS_PROXY komando update. --timeout(default 10 minutes) limits the whole update. When GitHub answers with an error, it tries twice more.
Installed with sudo and the install line? Update the same way, with the install line of the release you want: curl --proto '=https' --tlsv1.2 -fsSL https://raw.githubusercontent.com/sgnd/komando/v0.17.0/install.sh | sudo KOMANDO_VERSION=v0.17.0 sh. Without sudo the installer cannot write there, puts the new version in ~/.local/bin, and your terminal may keep running the old one. komando version shows which one runs.
Tab completion
Press Tab to complete commands, flags and the names of your servers, conns, groups and tags. Turn it on once, then open a new terminal:
echo 'source <(komando completion zsh)' >> ~/.zshrc # zsh (macOS)
echo 'eval "$(komando completion bash)"' >> ~/.bashrc # bash (Linux)
echo 'eval "$(komando completion bash)"' >> ~/.bash_profile # bash on macOS
For fish and PowerShell, see komando completion --help.
Remove komando
- Stop what komando still runs.
komando statuslists it;komando vpn down --allandkomando tunnel stop --allstop it. - Take the skill and the guard out of your AI agents:
komando guide uninstall(add--projectin a folder where you ranguide install --project). - Keep a copy of
~/.komandoif you may need your servers or secrets again (see Move to another computer), then delete the folder. Is the vault key in the system keychain? If you keep the copy, first runkomando secret keychain --off, or the copy cannot be opened later. Otherwise remove the keychain item namedkomando vault ...(macOS: the Keychain Access app; Windows: Credential Manager). - Delete the program:
rm "$(command -v komando)"(withsudowhen it is in/usr/local/bin; on Windows deletekomando.exe), and theexport PATH=...line you added, if any.
Troubleshooting
| Error | What it means | What to do |
|---|---|---|
NOT_WRITABLE (exit 8) | komando's folder belongs to root | run the sudo command the hint gives |
VERSION_NOT_FOUND (exit 3) | no such release, or none for this computer | see the list of releases |
CONN_UNREACHABLE (exit 4) | GitHub cannot be reached | check the internet connection and HTTPS_PROXY |
TIMEOUT (exit 7) | the download took longer than --timeout; nothing changed | komando update --timeout 30m |
CHECKSUM_MISMATCH, BAD_RELEASE (exit 1) | the download is damaged or does not run here; nothing changed | try again; report it if it happens again |
SOURCE_BUILD | this komando was built from source between releases | build it again from source |
Source: docs/features/install.md in sgnd/komando at commit b622784.