Skip to content
qqthe agent runtime
DocsInstall

Install

Install script, Homebrew, Nix, cargo binstall, release archives, or build from source.

QQ is a single static binary. Pick one route; every route ends with the same qq on your PATH.

Terminal window
curl -fsSL https://retsu-ai.github.io/qq/install.sh | sh

The same script is in the repository as install.sh; the site serves the copy from the latest main. The script detects your OS and CPU, downloads the matching archive from the latest GitHub release, verifies it against that release’s SHA256SUMS, and installs qq into ~/.local/bin. It never uses sudo; if the directory is not on your PATH, it prints the line to add. It supports Linux x86_64 and aarch64 (static musl, any distribution) and macOS Intel and Apple silicon, and refuses anything else with a pointer to the releases page.

Pin a version or change the directory with flags or environment variables:

Terminal window
curl -fsSL https://retsu-ai.github.io/qq/install.sh | sh -s -- --version 0.1.10 --dir /opt/qq/bin
QQ_VERSION=0.1.10 QQ_INSTALL_DIR="$HOME/bin" sh install.sh

sh install.sh --help lists the options. To upgrade, run it again.

The script retains each executable by its SHA-256 in ~/.local/bin/.qq-versions/qq-<sha256> (or .qq-versions inside your chosen install directory). qq is a relative symlink selecting one payload. Updates stage a complete, read-only executable on the same filesystem, publish it without overwriting an existing payload, then atomically replace the selection link. An existing regular executable is copied and checksum-verified into the retained directory before replacing it; its bytes are preserved for rollback. Payloads are not automatically pruned.

Rerun with --version X.Y.Z to roll back to a published release; matching retained bytes are verified and reused. For a legacy executable without a published release, locate its retained checksum and select it explicitly:

Terminal window
cd "$HOME/.local/bin" # or your chosen install directory
payload_sha=REPLACE_WITH_FULL_RETAINED_CHECKSUM
ln -s ".qq-versions/qq-$payload_sha" .qq-rollback
mv -f .qq-rollback qq

Replace REPLACE_WITH_FULL_RETAINED_CHECKSUM with the full retained checksum. Do not select an old binary against an incompatible migrated store: follow the backup/rollback instructions below. Stop QQ clients and servers before updating and restart them together. Retention does not fix macOS Keychain authorization or promise that running processes can safely use a different version.

Foreign or dangling selection links, special nodes, multiply hardlinked executables, and corrupt retained payloads are refused without replacing the selection. Inspect and move conflicting files aside yourself; the installer does not repair or delete them. If interrupted during publication, rerun the installer: it either publishes again or verifies/reuses the complete payload. Stale .qq-install.* directories from a killed installer are left untouched; after confirming no installer is running, inspect and remove those staging directories yourself. This is interruption recovery, not protection against concurrent same-user filesystem changes or a guarantee of durability after power loss (the shell installer does not fsync).

Terminal window
brew install retsu-ai/qq/qq

The formula in the retsu-AI/homebrew-qq tap is generated by the release workflow from each release’s SHA256SUMS, so it always points at the archives above. Homebrew does not pin versions of tap formulae; pin with install.sh --version instead.

Terminal window
nix run github:retsu-AI/qq -- --version # run without installing
nix profile install github:retsu-AI/qq # install into your profile

The flake exposes packages.qq (also packages.default) built from source with the pinned toolchain, and apps.default runs it. Pin a release with a ref: nix run github:retsu-AI/qq/v0.1.10. nix build .#qq inside a clone builds the same package; nix develop gives a shell with the exact toolchain.

Terminal window
cargo binstall --git https://github.com/retsu-AI/qq qq

cargo-binstall reads the [package.metadata.binstall] table in Cargo.toml and downloads the release archive for your target instead of compiling. Pass --version 0.1.10 to pin. The --git form is required because the crate is not published on crates.io; a plain cargo binstall qq would resolve a different crate of the same name.

Requires the pinned stable Rust toolchain (rust-toolchain.toml selects it automatically inside the repository):

Terminal window
cargo install --git https://github.com/retsu-AI/qq --locked qq # latest main
cargo install --git https://github.com/retsu-AI/qq --tag v0.1.10 --locked qq

or from a clone: cargo build --release and install target/release/qq. cargo build --release --no-default-features builds the minimal profile without the Amazon Bedrock family and its AWS SDK dependency closure; use it when you only need the HTTP providers.

Download qq-vX.Y.Z-x86_64-pc-windows-msvc.zip and SHA256SUMS from the latest release, check the hash with Get-FileHash, extract qq.exe, and put its folder on Path. cargo binstall --git https://github.com/retsu-AI/qq qq also works on Windows and does the download and check for you.

Every release attaches one archive per target and a SHA256SUMS file covering all of them:

TargetArchive
Linux x86_64 (static musl)qq-vX.Y.Z-x86_64-unknown-linux-musl.tar.gz
Linux aarch64 (static musl)qq-vX.Y.Z-aarch64-unknown-linux-musl.tar.gz
macOS Apple siliconqq-vX.Y.Z-aarch64-apple-darwin.tar.gz
macOS Intelqq-vX.Y.Z-x86_64-apple-darwin.tar.gz
Windows x86_64qq-vX.Y.Z-x86_64-pc-windows-msvc.zip

install.sh, Homebrew, and cargo-binstall verify the archive against these sums before installing; a mismatch installs nothing. To verify by hand:

Terminal window
V=0.1.10 T=x86_64-unknown-linux-musl
curl -fsSLO "https://github.com/retsu-AI/qq/releases/download/v$V/qq-v$V-$T.tar.gz"
curl -fsSLO "https://github.com/retsu-AI/qq/releases/download/v$V/SHA256SUMS"
sha256sum --ignore-missing -c SHA256SUMS # macOS: shasum -a 256 --ignore-missing -c SHA256SUMS
tar -xzf "qq-v$V-$T.tar.gz" && install -m 755 "qq-v$V-$T/qq" ~/.local/bin/qq

macOS may quarantine a binary downloaded by a browser. If qq is blocked, run xattr -d com.apple.quarantine qq once; curl-based routes are not affected.

shell runs commands with /bin/sh on Linux and macOS and with cmd on Windows. Nothing else needs setting up: commands run in your checkout, as you, with your environment and network. See Permissions › Where commands run.

Snapshots and qq undo need Git 2.32 or newer on your PATH. Stock macOS Git (2.39), Debian 12 (2.39) and Ubuntu 22.04 (2.34) qualify; Debian 11 (2.30) and Ubuntu 20.04 (2.25) do not. With an older Git, qq doctor warns on the snapshots line, runs are not snapshotted, and qq undo refuses with an error naming the minimum.

Terminal window
qq --version # qq 0.1.10 (b07fa9f 2026-10-30)
qq version # adds the protocol, capabilities, descriptor, and store schema versions
qq config paths # where QQ will look for configuration and keep sessions

Rerun the route you installed with (install.sh, brew upgrade qq, nix profile upgrade, cargo binstall --git … qq). QQ uses 0ver: a patch release can change compatibility contracts. Read the release’s Upgrading notes before upgrading. Locate the session store in the data directory printed by qq config paths. For a safe backup, stop every QQ process (qq serve, the TUI, and any qq run) and copy sessions.sqlite3 together with any adjacent sessions.sqlite3-wal and sessions.sqlite3-shm files. If QQ must stay running, use SQLite’s consistent .backup instead; do not copy a live database or data directory non-atomically. Follow the absolute-path backup and rollback procedure in the release’s Upgrading notes on the releases page. Upgrade/restart server and clients together when the protocol changes. qq version shows the store schema QQ migrates to on first open; migrations are forward-only, so rollback needs the old binary and a pre-upgrade backup.

Remove the binary/selection link (rm ~/.local/bin/qq, brew uninstall qq, nix profile remove, or cargo uninstall qq). For script installs, inspect and optionally remove ~/.local/bin/.qq-versions too (or the corresponding chosen install directory); this deletes retained rollback executables. Then optionally:

RemovePath (qq config paths prints yours)
configurationthe global: directory
sessions and trust statethe data: directory
credentialsqq auth list, then qq auth logout <name> for each

Next: Quickstart.