Kirsch documentation · v0.1.5
Install
The supported platforms, what Kirsch needs on the machine, the ways to install it, and how to check the install.
This page covers installing the kirsch program and checking that it works. Choosing a model provider and setting your API key are on Set up a provider and model. Changing settings is on Configuration.
Supported platforms
| Operating system | Architectures |
|---|---|
| macOS | amd64, arm64 |
| Linux | amd64, arm64 |
Windows is not supported. Kirsch stops a running command by stopping its process group, and Windows has no Unix process groups.
What Kirsch needs on the machine
Git
Kirsch works on a Git repository. Without --workspace, Kirsch finds the workspace by asking git for the repository that encloses the folder you start it in. So git must be on your PATH, and you must start Kirsch inside a repository. If either is missing, Kirsch does not start, and kirsch doctor reports a failure.
With --workspace <path>, Kirsch uses that folder and does not ask git for anything. If the folder is not a Git repository, Kirsch still starts, but its Git features are off.
ripgrep (optional)
Kirsch's code search uses rg (ripgrep) when rg is on your PATH. Without rg, Kirsch uses its own built-in search, and search still works. Kirsch does not stop for the lack of rg.
kirsch doctor reports the difference. Without rg, it prints these warnings:
warn rg: not found on PATH; search_code uses the pure-Go fallback
warn backend: search_code uses pure-go (rg is not on PATH)
A warning does not make kirsch doctor fail. To use ripgrep, install it with your system's package manager.
Install from a release archive
Release archives are on the releases page.
Each release has a .tar.gz archive for every supported platform, and a checksum file for the whole release. The names follow this pattern, where <version> is the release number without the leading v, such as 0.1.1:
kirsch_<version>_<os>_<arch>.tar.gz, where<os>isdarwinorlinuxand<arch>isamd64orarm64kirsch_<version>_checksums.txt
Set the variables at the top for your release and platform. Take the version from the releases page. The example platform is macOS with Apple silicon.
VERSION=<version>
OS=darwin
ARCH=arm64
ARCHIVE="kirsch_${VERSION}_${OS}_${ARCH}.tar.gz"
curl -fLO "https://github.com/djm56/kirsch/releases/download/v${VERSION}/${ARCHIVE}"
curl -fLO "https://github.com/djm56/kirsch/releases/download/v${VERSION}/kirsch_${VERSION}_checksums.txt"
Check the archive against the checksum file before you unpack it. The checksum file lists every platform, so the command selects the one line for your archive and passes it to the checker.
On macOS, use shasum:
grep -F "${ARCHIVE}" "kirsch_${VERSION}_checksums.txt" | shasum -a 256 -c -
On Linux, use sha256sum:
grep -F "${ARCHIVE}" "kirsch_${VERSION}_checksums.txt" | sha256sum -c -
Each command prints a line ending in OK when the archive matches. A line ending in FAILED means the download is damaged or incomplete. Download it again, and do not run it.
Unpack the archive. It contains the kirsch program, and may also hold licence and readme files:
tar -xzf "${ARCHIVE}"
Move kirsch onto your PATH. Either of these works:
sudo mkdir -p /usr/local/bin && sudo mv kirsch /usr/local/bin/
mkdir -p ~/.local/bin
mv kirsch ~/.local/bin/
If you use ~/.local/bin, make sure that folder is on your PATH.
Then check the version:
kirsch --version
A release binary prints the release version, for example:
kirsch 0.1.1
Install with go install
go install builds Kirsch from its source on the module proxy. For v0.1.1 you need Go 1.26.11 or later, the version named in the module's go line. Run go version to see what you have. If your Go is older, recent Go releases fetch the required toolchain automatically. They do this unless GOTOOLCHAIN is set to local.
Install the latest version:
go install github.com/djm56/kirsch/cmd/kirsch@latest
Or install one release, by tag. Replace <version> with a release number from the releases page:
go install github.com/djm56/kirsch/cmd/kirsch@v<version>
The binary goes to $(go env GOBIN) when GOBIN is set. Otherwise it goes to $(go env GOPATH)/bin. Make sure that folder is on your PATH.
The version text depends on what you built from:
| You installed | kirsch --version prints |
|---|---|
A release tag, such as @v0.1.0, or @latest, which is the newest release | The tag without its leading v, such as kirsch 0.1.0 |
Anything else, such as a branch (@main) or a commit | kirsch 0.1.0-dev |
Go records a commit as a pseudo-version, which is not a release tag, so a commit build prints kirsch 0.1.0-dev.
Build from source
Build from a clone of the repository. You need Go, as above, and git.
git clone https://github.com/djm56/kirsch.git
cd kirsch
bash scripts/build.sh
./bin/kirsch --version
The binary is written to bin/kirsch inside the checkout. The script stamps a version into the binary:
bash scripts/build.sh 1.2.3stamps1.2.3. A leadingvis removed, sov1.2.3also stamps1.2.3.bash scripts/build.shwith no argument stamps the version only when the checkout is exactly on avrelease tag and has no uncommitted changes. Otherwise the binary reportskirsch 0.1.0-dev.
Set up your API key
Kirsch needs an API key for its model provider before it can send a prompt. The default provider is opencode, which reads OPENCODE_API_KEY. The steps are on Set up a provider and model.
Check the install with kirsch doctor
Run kirsch doctor inside your project folder:
cd /path/to/your/project
kirsch doctor
To check a folder other than the current one, pass --workspace <path>.
Doctor checks what Kirsch depends on, such as git, rg, your project and settings, your API key, the model, the session lock, and the folder where Kirsch saves sessions. It creates no files and makes no network calls. It never sends a prompt to a model.
The report starts with the version line. Each check then gets one line with its status (ok, warn, or fail), the check name, and a detail. The last line counts the results.
This is an example. Your lines and paths depend on your machine:
kirsch 0.1.1
ok git: found at /usr/bin/git
ok rg: found at /usr/local/bin/rg
ok repository: /home/you/project
ok config: settings valid
warn key: endpoint opencode: no key found (set KIRSCH_OPENCODE_API_KEY or OPENCODE_API_KEY); kirsch starts but cannot send a prompt
ok backend: search_code uses ripgrep
ok model: endpoint opencode, model minimax-m3: context window 128000 tokens
ok context: AGENTS.md, 6854 bytes
ok state: /home/you/.local/share/kirsch/sessions/3f9a1c07b2d4 exists and is writable
ok lock: free
doctor: 9 ok, 1 warn, 0 fail
The first time you run doctor, before Kirsch has run in that project, the state line says the folder does not exist yet and that Kirsch will create it, and the lock line says free (no lock file yet). Each is ok.
Doctor exits with status 0 when no check fails, and with status 1 when at least one check fails. A warning does not cause a failure. A fail line names the problem, and it is the one to fix before you use Kirsch. Every line is explained on kirsch doctor checks.
These pages describe Kirsch v0.1.5. Source: the doc folder for v0.1.5 on GitHub · releases.