Installation
The current release is
0.1.0-rc.2, a preview of the first release,0.1.0. Commands and file formats can still change before0.1.0. Until then, use0.1.0-rc.2where a page names0.1.0, such ashttps://pandra.io/0.1.0-rc.2/install.shto pin the install script andghcr.io/pandra-io/pandra:0.1.0-rc.2for the container image. The preview's files have no build provenance attestations, sogh attestation verifyfails for them.
Pandra is one binary. It runs on:
- macOS 13 or later, on x86_64 and arm64.
- Linux, on x86_64 and arm64. The binary is statically linked, so it runs on any distribution, including Alpine and distroless images.
- Windows, through WSL2, with the Linux binary.
Git sources, builds inside a Git repository, and --worktree also need the git command, Git 2.17 or later.
Install it with the install script, which verifies the checksum and installs only the pandra binary into ~/.local/bin, without sudo:
curl -fsSL https://pandra.io/install.sh | shWhen ~/.local/bin is not on your PATH, the script prints the line to add to your shell's startup file. To install elsewhere, set PANDRA_INSTALL_DIR, as in curl -fsSL ... | PANDRA_INSTALL_DIR="$HOME/bin" sh. To pin a version, for example in CI, name it in the path: https://pandra.io/0.1.0/install.sh (see running in CI). Both URLs redirect to the script attached to the GitHub release, so the long form https://github.com/pandra-io/pandra/releases/download/v0.1.0/install.sh works as well.
To read or check the script before you run it, download it first. Each release's script has a build provenance attestation, so gh attestation verify confirms that GitHub Actions in the pandra-io/pandra repository built exactly this file, and the script in turn checks the SHA-256 of the archive it downloads:
curl -fsSLO https://pandra.io/0.1.0/install.sh
gh attestation verify install.sh --repo pandra-io/pandra
sh install.shPandra is also available through:
- GitHub Releases, with an archive per platform named by its target triple (such as
aarch64-apple-darwin), SHA-256 checksums, and build provenance attestations that you can check withgh attestation verify <archive> --repo pandra-io/pandra; - the official minimal container image
ghcr.io/pandra-io/pandra:0.1.0, whose/pandrabinary you copy withCOPY --fromin a Dockerfile (see containers).
Check the installation:
pandra versionpandra 0.1.0 (0123456789ab x86_64-unknown-linux-musl)Pandra does not update itself and never checks for updates in the background. To upgrade, run the install script again or use your package manager.
Shell completion
Completion is optional. pandra completion SHELL prints the script that registers completion with bash, zsh, fish, or powershell. Add the line for your shell to its startup file, so that each new shell loads the script of the Pandra you have installed, also after an upgrade:
| Shell | Startup file | Line |
|---|---|---|
| bash | ~/.bashrc | source <(pandra completion bash) |
| zsh | ~/.zshrc, after compinit | source <(pandra completion zsh) |
| fish | ~/.config/fish/completions/pandra.fish | pandra completion fish | source |
| PowerShell | $PROFILE | pandra completion powershell | Out-String | Invoke-Expression |
Completion of local names, references in your store, and session IDs and names reads only local state; it never contacts the network or changes anything.
Next, follow the quickstart to run an agent and create your own.