Installation
Desktop users should download the native build for their OS. The stable 0.4.0 release ships these builds:
| OS | CPU | Download |
|---|---|---|
| Linux | x86_64 | AppImage or .tar.gz |
| Linux | ARM64 | .tar.gz |
| macOS | Apple silicon | .tar.gz |
| Windows | x64 | .zip or standalone .exe files |
Release binaries follow the code signing policy.
The 0.4.0 binaries include phy export but not HDF5, so they cannot read NWB
or legacy MATLAB rez.mat. For those readers, build from trunk
with Cargo or with Nix.
Python
Use this route for the GUI + Python API.
Wheels for Linux x86_64 / aarch64 (glibc 2.34+), Windows x86_64 and macOS
arm64 (Python 3.8+) hold the Python API and the GUI binary. They are on PyPI
as sorrel-ephys, since PyPI’s sorrel is an unrelated project. The import
is still import sorrel:
pip install sorrel-ephys
Each GitHub release attaches the same wheels
(sorrel_ephys-<VERSION>-cp38-abi3-<PLATFORM>.whl). There is no Windows ARM64
wheel.
nix build .#release-bundle.wheels.x86_64-linux builds one locally
(aarch64-linux, windows, darwin-aarch64 likewise). See
Integrations for the API.
Windows
Windows package managers
Chocolatey puts sorrel and sorrelw on your PATH:
choco install sorrel
Alternatively, download the Windows x64 ZIP. The 0.4.0 release has no native Windows ARM64 build. Winget is not yet available; track the pending submission.
Windows launchers and shortcuts
sorrel.exe is a console program. sorrelw.exe is the same program without a
console window: it starts sorrel.exe with the same arguments (bare, it opens
the launcher) and exits. Use it from shortcuts, Win+R and Explorer.
Start menu. The Chocolatey package adds a Sorrel entry that runs
sorrelw.exe. If you unpacked the ZIP by hand, run this once:
sorrel install-shortcut # creates the Start-menu entry
sorrel install-shortcut --remove # deletes it
It writes %APPDATA%\Microsoft\Windows\Start Menu\Programs\Sorrel.lnk, pointing at
the sorrelw.exe next to sorrel.exe. Run --remove before deleting a
manually unpacked copy.
Chocolatey also installs uv, which
sorrel auto uses to run its SpikeInterface pipeline. sorrel mcp works
from the same PATH, so an agent can launch it by name (see
Agents).
Chocolatey moderation can delay new versions after the GitHub release.
Completions. Add this line to your $PROFILE (notepad $PROFILE) to get
PowerShell completion in every session:
sorrel completions powershell | Out-String | Invoke-Expression
Standalone files. The release also lists x64 executables for use without
a package manager: sorrel-<VERSION>-x86_64-windows.exe and
sorrel-<VERSION>-x86_64-windows-gui.exe.
sorrelw.exe looks for sorrel.exe next to itself, so rename the downloads
back to sorrel.exe and sorrelw.exe and keep them in one folder.
SmartScreen. The executables are not code-signed yet, so Windows
SmartScreen may warn about an unknown publisher when you run a download
(click More info, then Run anyway). Signing is planned through
SignPath Foundation (see the Code signing policy). Until then, check a
download before you run it. Every release lists SHA256SUMS.txt, signed
with minisign (SHA256SUMS.txt.minisig; the public key is
keys/minisign.pub),
and each file has Sigstore bundles (<file>.cosign.bundle, plus an SLSA
provenance <file>.intoto.bundle):
(Get-FileHash .\sorrel-<VERSION>-x86_64-windows.zip).Hash # compare with SHA256SUMS.txt
minisign -V -p minisign.pub -m SHA256SUMS.txt
cosign verify-blob --bundle sorrel-<VERSION>-x86_64-windows.zip.cosign.bundle `
--certificate-identity-regexp 'https://github.com/caniko/sorrel/' `
--certificate-oidc-issuer https://token.actions.githubusercontent.com `
sorrel-<VERSION>-x86_64-windows.zip
Uninstall. choco uninstall sorrel removes the Chocolatey package.
Sorrel’s per-user state (the GUI instance file, host registry, gui.log,
sorrelw.log) stays in %LOCALAPPDATA%\sorrel. The derived-data cache and
your curation journals stay next to your data.
Delete the folder when you no longer need it:
Remove-Item -Recurse -Force $env:LOCALAPPDATA\sorrel
The window opens on the first backend wgpu likes (Vulkan or DX12). If it crashes at startup with a shader error, or stays blank, pick the other one:
$env:WGPU_BACKEND = "vulkan" # or "dx12", or "gl"
sorrel open <DATA_DIR>
sorrel gpu-check shows what each backend can do. Trace filtering falls back
to the CPU on its own when a backend rejects the compute kernels.
With Cargo
cargo install sorrel at version 0.4.0 enables phy-export by default,
not hdf5, just like the 0.4.0 release binaries.
A source build from trunk enables both phy-export and hdf5 by default.
It reads NWB and MATLAB v7.3 rez.mat and bundles HDF5 at build time. Use a
C compiler and CMake 3.26 or newer; no system HDF5 library is needed.
cargo build --release -p sorrel
The binary is written to target/release/sorrel. A second binary,
sorrelw, is the console-free launcher for Windows (see Windows).
Shell completions come from sorrel completions <shell>; see the
CLI reference.
Full phy export (sorrel export-phy, the export_phy MCP tool, the
Export phy button and Session.export_phy in sorrel-py) is the
phy-export feature, on by default. To build the CLI without both HDF5 and
phy export, use:
cargo build --release -p sorrel --no-default-features
With Nix
nix build .#sorrel # includes HDF5
From trunk, nix build builds the default sorrel package with HDF5
bundled. The flake also exposes:
.#website— the Plinth landing and download pages..#docs— this mdBook documentation..#site— combined static site, with the docs mounted under/docs/.
The Nix packages ship a sorrel.desktop menu entry with the app icon. They
also install sorrelw, which on Linux and macOS only runs the sibling
sorrel; the release archives, AppImage and cargo install users can ignore
it.
Home Manager
Add the flake as an input and enable the module:
{
inputs.sorrel.url = "github:caniko/sorrel";
# in your Home Manager configuration:
imports = [inputs.sorrel.homeManagerModules.default];
programs.sorrel.enable = true;
}
GPU drivers
Sorrel draws through wgpu, so it runs on Intel, AMD and NVIDIA GPUs alike. It uses Vulkan (Linux, Windows), DX12 (Windows) or Metal (macOS), and falls back to OpenGL. Trace CMR and high-pass filtering run on the GPU when the adapter supports compute shaders, and on the CPU otherwise.
- Linux, AMD and Intel: Mesa (
radv/anvVulkan drivers; distro packagesmesa-vulkan-driversandlibvulkan1on Debian/Ubuntu). - Linux, NVIDIA: the proprietary driver with its Vulkan ICD. On nouveau, use Mesa’s NVK.
- NixOS:
hardware.graphics.enable = true;, plusservices.xserver.videoDrivers = [ "nvidia" ];for NVIDIA. A Nix-builtsorrelon another distribution needs nixGL to find the host driver. - Release tarballs and AppImage: need glibc 2.31 or newer (Ubuntu 20.04, Debian 11, Fedora 32, RHEL 9 and later) and use the distribution’s own Vulkan/GL loader and drivers.
- Windows and macOS: no extra setup.
Run sorrel gpu-check to see every adapter, which one the GUI prefers, and
whether the compute kernels match the CPU on each. The usual wgpu variables
override the choice, for example on hybrid laptops:
WGPU_POWER_PREF=low sorrel ... # integrated instead of discrete GPU
WGPU_BACKEND=gl sorrel ... # OpenGL if Vulkan misbehaves
Development Shell
nix develop
The shell pulls in the Rust toolchain, native GUI dependencies (wgpu /
egui), mdbook for the docs, and plinth-project for the website.
To run the docs and site locally:
mdbook serve docs
plinth-project dev --config website/plinth-project.toml