Installation
Install the release binary with the install script, or build it from crates.io.
Install script
curl -fsSL https://raw.githubusercontent.com/casoon/opi/main/install.sh | sh
The script downloads the release binary for your platform, checks it against the published
SHA-256 and puts it in ~/.local/bin. Nothing else is touched.
| Variable | Default | Purpose |
|---|---|---|
OPI_INSTALL_DIR |
$HOME/.local/bin |
Where the binary goes |
OPI_VERSION |
latest | Version to install, without the leading v |
Release binaries exist for macOS on Apple silicon and Intel, and for Linux on x86-64 and arm64. The Linux binaries are static musl builds, so the distribution does not matter.
From crates.io
cargo install opi
This builds opi locally. It needs Rust 1.85 or newer.
Unix only
opi runs a script by replacing its own process with exec, so Ctrl-C reaches the dev
server rather than killing a wrapper, and its interactive list drives termios directly.
Windows offers neither. Building on Windows fails with an explicit message rather than
producing a degraded binary — see Constraints.
Another opi
opi is unrelated to OdradekAI/opi, which owns the
opi-* crate namespace on crates.io. Installing both puts two opi binaries in
~/.cargo/bin.
Check it
opi --version