Skip to content

Installation

Octopus ships as a single self-contained binary plus a small set of shell scripts. Installation is one command on each platform.

Terminal window
curl -fsSL https://github.com/leocosta/octopus/releases/latest/download/install.sh | bash

Both installers do the same four things:

  1. Detect your OS and architecture
  2. Download the latest release tarball from GitHub
  3. Verify the SHA-256 signature against the published checksum
  4. Extract to ~/.octopus-cli/v<version>/ and symlink octopus into ~/.local/bin/ (on Windows: an NTFS junction for ~\.octopus-cli\current and octopus shims 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). python3 on a stock Windows is the Microsoft Store alias, not Python — Octopus detects it and uses python / py -3 instead, 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.

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.

Same command. The installer is idempotent — re-running it picks up the latest release and atomically swaps the symlink.

Terminal window
curl -fsSL https://github.com/leocosta/octopus/releases/latest/download/install.sh | bash

To 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.

The installer always grabs the latest release. To pin to a specific version, replace latest/download with download/v<version> in the URL:

Terminal window
curl -fsSL https://github.com/leocosta/octopus/releases/download/v1.51.1/install.sh | bash

Versioned 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.

Terminal window
rm -rf ~/.octopus-cli ~/.octopus ~/.local/bin/octopus

That’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.

If you’d rather avoid the prebuilt tarball, clone the repo and run the setup script:

Terminal window
git clone https://github.com/leocosta/octopus.git
cd octopus
./setup.sh

The 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.

“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.