Installation
Octopus ships as a single self-contained binary plus a small set of shell scripts. Installation is one command on each platform.
Install
Section titled “Install”curl -fsSL https://github.com/leocosta/octopus/releases/latest/download/install.sh | bashirm https://github.com/leocosta/octopus/releases/latest/download/install.ps1 | iexBoth installers do the same four things:
- Detect your OS and architecture
- Download the latest release tarball from GitHub
- Verify the SHA-256 signature against the published checksum
- Extract to
~/.octopus-cli/v<version>/and symlinkoctopusinto~/.local/bin/(on Windows: an NTFS junction for~\.octopus-cli\currentandoctopusshims for PowerShell, cmd and Git Bash in~\.local\bin\)
On Windows, Octopus runs its CLI through bash, so it needs one of:
- Git for Windows (git-scm.com)
plus Python 3 from python.org
(tick Add python.exe to PATH).
python3on a stock Windows is the Microsoft Store alias, not Python — Octopus detects it and usespython/py -3instead, but one of them has to exist. - WSL with a distribution registered (
wsl --install) — the distribution’s own Python is used.
Using both on the same repository is supported: Claude Code and git
hook paths are written as $HOME/.octopus-cli/current/…, so Git Bash
and WSL each run their own install. Install Octopus in each environment
you use. Because $HOME is resolved when a hook runs, an agent started
under a different home (sudo, a container) needs Octopus installed
there too — octopus doctor flags hook paths that do not resolve.
After the installer finishes, run octopus --version to confirm.
If the command isn’t found, your ~/.local/bin/ is probably not
on PATH — add it to your shell rc file and re-source.
What the installer leaves on disk
Section titled “What the installer leaves on disk”| Path | Purpose |
|---|---|
~/.octopus-cli/v<version>/ |
The CLI binary, scripts, and the bundled skill / command / hook / template corpus for that version. |
~/.octopus-cli/cache/v<version>/ |
Auto-generated content (compiled rules, agent manifests) for that version. Safe to delete. |
~/.local/bin/octopus |
Symlink to the binary in the versioned directory. |
~/.octopus/ |
Per-user state — proposal queue (proposals/), session save-state, persistent settings. Created on first run. |
Octopus does not touch your shell rc files. If you need to add
~/.local/bin to PATH, do it yourself.
Update
Section titled “Update”Same command. The installer is idempotent — re-running it picks up the latest release and atomically swaps the symlink.
curl -fsSL https://github.com/leocosta/octopus/releases/latest/download/install.sh | bashirm https://github.com/leocosta/octopus/releases/latest/download/install.ps1 | iexTo update the agent config files inside a repo (after Octopus
itself has been updated), run octopus update inside that repo.
That regenerates .claude/CLAUDE.md, agent rules, slash commands,
and hook scripts from the new Octopus version.
Pin a version
Section titled “Pin a version”The installer always grabs the latest release. To pin to a specific
version, replace latest/download with download/v<version> in
the URL:
curl -fsSL https://github.com/leocosta/octopus/releases/download/v1.51.1/install.sh | bashVersioned releases are immutable — once v1.51.1 is published it
stays available indefinitely. CI systems typically pin to a specific
version and update on a deliberate cadence rather than tracking
latest.
Uninstall
Section titled “Uninstall”rm -rf ~/.octopus-cli ~/.octopus ~/.local/bin/octopusThat’s it. Octopus never writes outside those three locations. Per-
repo agent config (.claude/, AGENTS.md, GEMINI.md, etc) is
left alone — you can remove that with git clean inside each repo
where you’d run octopus update.
Build from source
Section titled “Build from source”If you’d rather avoid the prebuilt tarball, clone the repo and run the setup script:
git clone https://github.com/leocosta/octopus.gitcd octopus./setup.shThe setup script does the same atomic install — copying into
~/.octopus-cli/v<version>/ and symlinking — but from the working
copy rather than a release tarball. Use this when you’re developing
against Octopus itself.
Troubleshooting
Section titled “Troubleshooting”“Command not found: octopus” — your ~/.local/bin/ is not on
PATH. Add export PATH="$HOME/.local/bin:$PATH" to ~/.bashrc,
~/.zshrc, or your equivalent.
“SHA-256 mismatch” — the installer is paranoid about download integrity. If this happens repeatedly, retry; if it persists, file an issue with the version and platform.
Windows installer doesn’t run — PowerShell execution policy may
be blocking it. Run Set-ExecutionPolicy -Scope CurrentUser RemoteSigned and retry.
octopus setup says “Python 3 is required” (Windows) — only the
Microsoft Store alias was found. Install Python 3 from python.org with
Add python.exe to PATH ticked, open a new terminal, and run
octopus doctor to confirm.
Next: Quick Start.

