Get started
Installation
Install Pi-Bolt with one command. The installer downloads the release for your system, checks its checksum and
signature, and puts pi-bolt on your PATH. It does not change your Pi installation.
Requirements#
- Linux on x86-64 or ARM64 with glibc 2.17 or later (Raspberry Pi 3 and later, AWS Graviton and Ampere
included), or on x86-64 with musl (Alpine 3.23 or later, with
apk add libstdc++): the installer picks the musl builds there by itself. - macOS 13 or later on Apple silicon. There is no build for Intel Macs.
- Windows 10 (1809) or later, or Windows 11, on x64. Windows on ARM64 runs the x64 build, in Windows 11's x64 emulation.
- Android 7 or later on 64-bit ARM, in Termux. See Android (Termux).
Pi-Bolt does not need Node.js, Bun or Pi. npm is only needed if you install with npm.
Install#
$ curl -fsSL https://pi-bolt.opensec.in/install.sh | sh
$ curl -fsSL https://pi-bolt.opensec.in/install.sh | sh
irm https://pi-bolt.opensec.in/install.ps1 | iex
powershell -c "irm https://pi-bolt.opensec.in/install.ps1 | iex"
On an older Windows 10 whose PowerShell only offers TLS 1.0, run these two lines in PowerShell instead:
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor 3072 irm https://pi-bolt.opensec.in/install.ps1 | iex
$ npm install -g --allow-scripts=pi-bolt pi-bolt
--allow-scripts=pi-bolt lets npm run the package's install script, which puts the Windows executable in place.
On macOS and Linux, the first run of pi-bolt downloads the release that matches the package's version.
$ brew install opensec-git/tap/pi-bolt
On macOS on Apple silicon and on Linux (x86-64 with AVX2, and ARM64). The formula installs the default build of the latest
release, checked against its SHA256SUMS, and links pi-bolt into Homebrew's bin. For
the JIT build or the x86-64 build for CPUs without AVX2, use the installer.
scoop bucket add opensec-git https://github.com/opensec-git/scoop-bucket scoop install opensec-git/pi-bolt
On Windows x64. The manifest in opensec-git/scoop-bucket
installs the default build of the latest release, checked against the checksum in its SHA256SUMS, and puts
pi-bolt on your PATH with a Scoop shim. For the JIT build, use the installer.
[tools."github:opensec-git/Pi-Bolt"]
version = "latest"
version_prefix = "bolt-v"
asset_pattern = 'pi-bolt-{{ os(macos="darwin", windows="win32") }}-{{ arch() }}.tar.gz'
platforms.windows-x64 = { asset_pattern = "pi-bolt-win32-x64.zip" }
platforms.macos-arm64 = { rename_exe = { pi = "pi-bolt" }, filter_bins = "pi-bolt" }
platforms.linux-x64 = { rename_exe = { pi = "pi-bolt" }, filter_bins = "pi-bolt" }
platforms.linux-arm64 = { rename_exe = { pi = "pi-bolt" }, filter_bins = "pi-bolt" }
$ mise install
On macOS on Apple silicon, Linux (x86-64 with AVX2, and ARM64) and Windows x64, with mise's github backend.
It installs the default build of the latest release, checked against the digest GitHub reports for it, renames the
launcher pi to pi-bolt, and puts only pi-bolt on your PATH. For the JIT build, use
the installer.
The installer:
- Downloads the release for your platform and CPU, from the npm registry's CDN with GitHub as a fallback.
- Checks it against the release's
SHA256SUMS, and checks the Ed25519 signature ofSHA256SUMSagainst Pi-Bolt's release key. A download that does not verify is not installed. (On macOS and Linux, the signature check needs OpenSSL 3, asopenssloropenssl3, OpenSSH 8.1 or later, or an earlier Pi-Bolt; with none of them, it installs nothing unless you confirm the checksums yourself, and says how.) - Installs it to
~/.pi-boltand linkspi-boltinto~/.local/bin. On Windows, it installs to%USERPROFILE%\.pi-boltand asks before adding it to your PATH. It needs no administrator rights. - Offers three optional extensions by OpenSec (subagents, a todo list and fast file search), and installs them only if you say yes. See OpenSec extensions.
Then run pi-bolt in a project. Continue with the Quickstart.
Android (Termux)#
In Termux from F-Droid or GitHub (the Google Play version has no glibc packages), run the same command as on Linux:
$ curl -fsSL https://pi-bolt.opensec.in/install.sh | sh
Pi-Bolt is a glibc program and Android's libc is not glibc, so the installer first installs Termux's glibc
(pkg install glibc-repo && pkg install glibc, after asking), sets it as the executable's loader, and links
pi-bolt into $PREFIX/bin. pi-bolt is a small launcher that starts Pi-Bolt in Android's time
zone and without Termux's LD_PRELOAD, which glibc cannot load; the programs Pi-Bolt starts get it back. The installer
also copies Termux's resolv.conf and hosts to $PREFIX/glibc/etc, where Termux's glibc reads
them.
pi-bolt: command not found?
~/.local/bin is not on your PATH. Add export PATH="$HOME/.local/bin:$PATH" to your shell profile and
open a new terminal.
Builds#
Each platform has a default build and a JIT build. The installer picks the default build for your CPU. To choose another, set
PIBOLT_VARIANT. See Choose a build for when the JIT build is the better choice.
| Platform | PIBOLT_VARIANT | Build |
|---|---|---|
| Linux x86-64 | x64 | Default, for CPUs with AVX2 (Intel Haswell, AMD Zen and later) |
| Linux x86-64 | x64-baseline | Any x86-64 CPU. Picked automatically when the CPU has no AVX2. |
| Linux x86-64 | x64-jit | JIT on |
| Linux ARM64, Termux | arm64 | Default, any 64-bit ARM CPU |
| Linux ARM64, Termux | arm64-jit | JIT on |
| macOS | arm64 | Default |
| macOS | arm64-jit | JIT on, for heavy run-time extensions |
| Windows | x64 | Default. Runs compiled code on CPUs with AVX2, and bytecode on others. |
| Windows | x64-jit | JIT on |
$ curl -fsSL https://pi-bolt.opensec.in/install.sh | PIBOLT_VARIANT=arm64-jit sh
$ curl -fsSL https://pi-bolt.opensec.in/install.sh | PIBOLT_VARIANT=x64-jit sh # x86-64 $ curl -fsSL https://pi-bolt.opensec.in/install.sh | PIBOLT_VARIANT=arm64-jit sh # ARM64 and Termux
$env:PIBOLT_VARIANT = "x64-jit" powershell -c "irm https://pi-bolt.opensec.in/install.ps1 | iex"
# ~/.zshrc or ~/.bashrc; use x64-jit on Linux x86-64
export PIBOLT_VARIANT=arm64-jit
On macOS and Linux, the npm package reads PIBOLT_VARIANT every time it runs, so keep it set in your shell
profile. If it is unset later, the next run switches back to the default build.
On Windows, the npm package picks the build when it is installed or updated. Set the variable first, then install:
$env:PIBOLT_VARIANT = "x64-jit" npm install -g --allow-scripts=pi-bolt pi-bolt
To change builds later, set or clear PIBOLT_VARIANT and run the install again.
pi-bolt update keeps the build you chose.
Verify the installation#
$ pi-bolt --version
1.4.0 (Pi-Bolt 1.0.0, darwin-arm64, JIT off)
The first number is the Pi release this build is made from. The rest is the Pi-Bolt release, the platform, and whether the JIT is on. To check that Pi runs its compiled code, see Check the compiled code.
Update#
$ pi-bolt update # Pi-Bolt only $ pi-bolt update --all # Pi-Bolt and your extensions $ pi-bolt update --rollback # back to the build the last update replaced $ pi-bolt update --channel beta # take pre-releases too (stable: the latest release only)
An update keeps the build it replaces; pi-bolt update --rollback puts it back without downloading anything, and
running it again goes forward again. The channel is kept for the installation. With Homebrew, run brew upgrade pi-bolt; pi-bolt update
says so and changes nothing, and --rollback is not available. With Scoop, run scoop update pi-bolt,
and scoop reset pi-bolt@<version> to go back to a version Scoop still keeps. With mise, run
mise upgrade --bump github:opensec-git/Pi-Bolt, and mise use -g github:opensec-git/Pi-Bolt@<version>
for another version. pi-bolt update and --rollback give these commands for a Pi-Bolt that Scoop or
mise installed, and change nothing. Running the installer again also updates.
Automatic updates are off unless you turn them on, in /settings (Automatic updates) or with
"piBolt": { "autoUpdate": true } in ~/.pi/agent/settings.json; a project's settings cannot turn them
on. An interactive session of an installation the installer made then looks for a new release on its channel after it has
started, at most once a day, and installs it in the background with the same checks as pi-bolt update. Like
pi-bolt update, it compiles nothing: extensions pi-bolt compile compiled in load from their files
until it compiles them in again. The session goes on; the new release starts next time,
and the session shows one line when it is installed, or the reason when it could not be (the output is in
~/.pi-bolt/auto-update.log). pi-bolt -p, RPC and ACP never update, nor does an installation that npm,
Homebrew, Scoop or mise manage. PIBOLT_NO_AUTO_UPDATE=1 turns automatic updates off whatever the setting says, as
do PI_SKIP_VERSION_CHECK and PI_OFFLINE.
An npm install is updated with npm: npm install -g --allow-scripts=pi-bolt pi-bolt@latest (with Bun,
bun add -g --trust pi-bolt@latest). For it, pi-bolt update asks the npm registry for the version of
pi-bolt@latest (GitHub when the registry does not answer), says whether a newer one is out, and prints that
command; it installs nothing. To go back to an earlier version, install it the same way,
npm install -g --allow-scripts=pi-bolt pi-bolt@<version> (npm view pi-bolt versions lists
them); pi-bolt update --rollback says so and changes nothing. On macOS and Linux, the first run of a new version
downloads its release into ~/.pi-bolt/npm/<version> and deletes the folders of the versions before it,
except one that a running session still uses: delete that one yourself once the session has ended.
Uninstall#
Run the installer again and choose uninstall. It removes the Pi-Bolt builds from ~/.pi-bolt, the
one kept for a rollback among them, and the pi-bolt link. With npm, run npm uninstall -g pi-bolt, then delete ~/.pi-bolt/npm,
where the npm package keeps the release it downloaded. With Homebrew, run brew uninstall pi-bolt; with Scoop,
scoop uninstall pi-bolt; with mise, mise unuse -g github:opensec-git/Pi-Bolt.
Your Pi configuration in ~/.pi/agent belongs to Pi and is not removed.
Manual download#
Download a build from the latest release, check it against
SHA256SUMS, unpack it, and run ./pi (on Windows, pi-bolt.exe). Keep the unpacked folder
together: the executable uses the files around it for themes, HTML export and image tools. Link to the executable rather than
copying it.
| Download | For |
|---|---|
pi-bolt-linux-x64.tar.xz | Linux, CPUs with AVX2 |
pi-bolt-linux-x64-baseline.tar.xz | Linux, any x86-64 CPU |
pi-bolt-linux-arm64.tar.xz | Linux ARM64, any 64-bit ARM CPU (in Termux, use the installer) |
pi-bolt-darwin-arm64.tar.xz | macOS on Apple silicon |
pi-bolt-win32-x64.zip | Windows x64 |
The JIT builds are pi-bolt-linux-x64-jit.tar.xz, pi-bolt-linux-arm64-jit.tar.xz,
pi-bolt-darwin-arm64-jit.tar.xz and pi-bolt-win32-x64-jit.zip. To check a download:
$ sha256sum -c --ignore-missing SHA256SUMS
zsh: killed,
or "cannot verify the developer"). Install with the installer or npm, which do not quarantine, or remove the attribute from
the unpacked folder: xattr -dr com.apple.quarantine pi-bolt-darwin-arm64.
Installer options#
Set these in the environment of the installer: curl ... | NAME=value sh on macOS and Linux,
$env:NAME = "value" before the command on Windows.
| Variable | Effect |
|---|---|
PIBOLT_VARIANT | The build to install (see Builds). |
PIBOLT_VERSION | A release tag such as bolt-v1.0.0. Default: the latest release. |
PIBOLT_CHANNEL | stable (the latest release; the default) or beta (the newest release, pre-releases included), for this installation and its updates. |
PIBOLT_INSTALL | Where to install. Default: ~/.pi-bolt (Windows: %USERPROFILE%\.pi-bolt). |
PIBOLT_BIN_DIR | macOS and Linux: where to link pi-bolt. Default: ~/.local/bin. |
PIBOLT_NO_PATH=1 | Windows: do not add Pi-Bolt to your PATH. |
PIBOLT_YES=1 | Do not ask: take the default action, install no extensions and add nothing to Paseo (unless PIBOLT_EXTENSIONS or PIBOLT_PASEO is yes), and do not offer to start Pi-Bolt. |
PIBOLT_EXTENSIONS | yes or no: whether to install OpenSec's optional extensions without asking. |
PIBOLT_PASEO | macOS and Linux: yes or no: whether to add Pi-Bolt as a Paseo provider without asking, where Paseo is installed. |
PIBOLT_SOURCE | Where to download the executable from: auto (npm, then GitHub; the default), npm or github. Checksums and signatures always come from the GitHub release. |
PIBOLT_NPM_REGISTRY | An npm registry or mirror. Default: https://registry.npmjs.org. |
PIBOLT_CONNECTIONS | macOS and Linux: connections to download over at once. Default: 4. |