Install Sprat
Version 0.4.7. Every build bundles its own runtime, so you do not need Elixir or Erlang. Pick one of three ways in: the install script, Homebrew, or a tarball you unpack yourself.
curl -fsSL https://sprat.dev/install.sh | sh
brew install sprathq/tap/sprat
Requirements
- macOS or Linux, on arm64 or x86_64.
-
Claude Code, installed and signed in. Sprat watches
its sessions and runs its PM through
claude -pon your own subscription. - Linux only: glibc 2.35 or newer (Ubuntu 22.04, Debian 12 and later) and OpenSSL 3.
- To deliver messages into live sessions: run your sessions in cmux or tmux. Sprat types only into an empty prompt, never while you type or a dialog is open. Without either, it copies the message to your clipboard and names the session.
Install script
curl -fsSL https://sprat.dev/install.sh | sh
It picks the build for your OS and CPU from the GitHub releases,
checks its SHA-256, installs it into ~/.local/lib/sprat
and links ~/.local/bin/sprat. Nothing needs root. Run it
again to upgrade. You can
read the script
before you run it.
| Variable | Changes |
|---|---|
SPRAT_VERSION=0.4.0 |
install that version instead of the latest |
SPRAT_HOME |
install directory (default ~/.local/lib/sprat) |
SPRAT_BIN_DIR |
where the sprat link goes (default ~/.local/bin)
|
curl -fsSL https://sprat.dev/install.sh | SPRAT_VERSION=0.4.0 sh
Homebrew
brew install sprathq/tap/sprat
Homebrew puts sprat
on your PATH. Upgrade with brew upgrade sprat.
Manual download
Each release on GitHub
has a tarball per target, each with a .sha256
beside it.
| System | CPU | Tarball |
|---|---|---|
| macOS | Apple silicon (arm64) |
sprat-0.4.7-macos-arm64.tar.gz
sha256
|
| macOS | Intel (x86_64) |
sprat-0.4.7-macos-x86_64.tar.gz
sha256
|
| Linux | x86_64 |
sprat-0.4.7-linux-x86_64.tar.gz
sha256
|
| Linux | arm64 (aarch64) |
sprat-0.4.7-linux-arm64.tar.gz
sha256
|
Check the download against its checksum. The two hashes must match:
shasum -a 256 sprat-0.4.0-macos-arm64.tar.gz
cat sprat-0.4.0-macos-arm64.tar.gz.sha256
On Linux, use sha256sum
in place of shasum -a 256.
Unpack it anywhere and run bin/sprat:
tar -xzf sprat-0.4.0-macos-arm64.tar.gz
./sprat-0.4.0-macos-arm64/bin/sprat
To have sprat on your PATH, link it:
mkdir -p ~/.local/bin && ln -sf "$PWD/sprat-0.4.0-macos-arm64/bin/sprat" ~/.local/bin/sprat
On macOS, a tarball downloaded through a browser is quarantined and Gatekeeper will refuse to run it. Clear the flag on the unpacked folder:
xattr -dr com.apple.quarantine sprat-0.4.0-macos-arm64
First run
Open the board in a pane beside your sessions. For the first run, set SPRAT_DRY_RUN=1: everything runs, investigations included,
but nothing is typed into any session and no session is started. What Sprat would have
sent goes to <data>/v4/dry-run.log.
SPRAT_DRY_RUN=1 sprat
Then run it for real:
sprat
-
Projects appear as Sprat sees sessions in them. A new project starts in
proposefor its first 24 hours: every decision waits for you to press f. -
Open a project with ⏎, check the roadmap Sprat inferred, and
press w
to write it to
.sprat/roadmap.md. - A on a project cycles its autonomy level. ? shows every key.
For a one-line summary per project without opening the board: sprat status.
Run at login
sprat serve
runs the observer and PM as a background process, so detection, follow-ups and the
brief carry on with the board closed. The board then attaches to it. Only one runs per
machine; a second exits and names the first.
On macOS, have launchd start it at login:
sprat install-agent
launchctl load -w ~/Library/LaunchAgents/dev.sprat.serve.plist
install-agent
prints the plist it writes and how to remove it. Its log is <data>/v4/serve.log.
On Linux there is no install-agent. Run
sprat serve
under whatever starts your user services.
Upgrade
Run the install script again, or upgrade through Homebrew:
curl -fsSL https://sprat.dev/install.sh | sh
brew upgrade sprat
For a manual install, unpack the new tarball and point your link at it. If
sprat serve
is running, restart it so the new version takes over. For the launchd agent:
launchctl unload ~/Library/LaunchAgents/dev.sprat.serve.plist && launchctl load -w ~/Library/LaunchAgents/dev.sprat.serve.plist
Uninstall
If you switched on Verify in any project, run sprat detach
there first, so its Stop hook is removed while Sprat is still installed.
Installed with the script:
launchctl unload -w ~/Library/LaunchAgents/dev.sprat.serve.plist; rm ~/Library/LaunchAgents/dev.sprat.serve.plist; rm -rf ~/.local/lib/sprat ~/.local/bin/sprat
Installed with Homebrew:
brew uninstall sprat
The launchd lines only apply if you ran install-agent. This
removes the program and keeps your data: delete
~/Library/Application Support/sprat
(macOS) or ~/.local/share/sprat
(Linux) as well to remove that too. Any .sprat/
folders in your projects are yours to keep or delete.
Where data lives
| macOS | ~/Library/Application Support/sprat |
| Linux |
$XDG_DATA_HOME/sprat, by default
~/.local/share/sprat
|
| Override | SPRAT_DATA_DIR=/some/path |
Everything Sprat records stays there: its SQLite store, the daemon's log and pid, dry-run and Verify logs. Nothing is sent to sprat.dev. The docs list what does leave the machine, and where to.
Troubleshooting
- sprat: command not found
-
~/.local/binis not on your PATH. Add it, then open a new terminal:echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrcUse
~/.bashrcif your shell is bash. - macOS says it cannot verify the developer
-
The files were downloaded through a browser and carry the quarantine flag. Clear it on the unpacked folder (or on
~/.local/lib/sprat):xattr -dr com.apple.quarantine sprat-0.4.0-macos-arm64 - Linux: GLIBC_2.35 not found, or libssl.so.3 missing
-
The Linux builds need glibc 2.35 or newer and OpenSSL 3. Check what you have:
ldd --versionopenssl versionOlder distributions (Ubuntu 20.04, Debian 11) cannot run this build; upgrade the system or run Sprat on a newer one.
- The board shows no sessions
-
Sprat finds sessions in
~/.claude, every~/.claude-*, and any directory a runningclaudewas started with throughCLAUDE_CONFIG_DIR. If yours still don't show, name the directories yourself:SPRAT_CLAUDE_DIRS=$HOME/.claude:$HOME/work/.claude sprat - Messages land on the clipboard instead of in the session
-
Sprat can type into a session only when it runs in cmux or tmux, its prompt is empty and no dialog is open. Otherwise it copies the message and names the session for you to paste.