Installation
Quorum is a TypeScript program. It installs from npm and runs on Node, downloads from a release as a binary that needs neither Node nor Bun, runs from a container image that holds that binary, or builds from a clone of its repository and runs under Bun, from the clone or as a standalone binary. This page installs it any of these ways, puts it on your $PATH, and checks that it works before any model is running.
A TypeScript program that uses quorum as a library installs the same package and imports @tobi-or-not/quorum, as the Library API shows.
Prerequisites
- Node.js
^22.18.0 || >=23.6.0, to run the npm package. Theenginesfield ofpackage.jsonasks for it. From those versions Node strips TypeScript types without a flag, which loading a.mtsconfig needs: Configuration. - Bun 1.3.0 or newer, to build from source. The
enginesfield asks for it too, and it installs the dependencies, runs the CLI from a clone and builds the binary. - A container engine such as Docker, to run the image.
- git 2.41 or later, for the git sources only, on Linux and macOS.
--range,--local,--stagedand--pathrun the system's git, found onPATH: the npm package and the binary use it, and the container image holds none, so in a container pipe the diff in. A diff file or a pipe needs no git: Sources. - A model endpoint, for the reviews themselves. With no config file and no base URL, preset or protocol variable it is the Ollama on your machine, through its native API at
http://localhost:11434, the address Ollama listens on, on127.0.0.1, by default.QUORUM_RESEARCH_BASE_URLon its own points quorum at an OpenAI-compatible/chat/completionsendpoint instead, a self-hosted vLLM, TGI or llama.cpp server or a hosted API,QUORUM_RESEARCH_PRESETnames a vendor's preset, such asanthropicorvllm, and a config file can name an Anthropic, Gemini or Ollama endpoint as well: Configuration. The check at the end of this page needs none. - Claude Code, for a
claude-codeprovider only. It is the model's endpoint then:claudeon yourPATH, signed in or with a key, run once per request, headless and isolated:claudeCode. Quorum requires Claude Code 2.1.311 or newer.
From npm
npm install -g @tobi-or-not/quorum
quorum --versionnpm install -g puts a quorum command on your $PATH, and quorum --version prints quorum and the installed version. To use the package as a library, install it in your project instead, with npm install @tobi-or-not/quorum.
The package names the MCP SDK, @modelcontextprotocol/server, as an optional peer dependency, so npm install -g does not install it. Only quorum mcp needs it: install it beside quorum with npm install -g @modelcontextprotocol/server@2.4.0, the one version quorum mcp runs. It refuses any other version, before it loads it, and names that command. The SDK brings its own copy of zod, which reads the protocol's schemas and never quorum's. Run quorum mcp from a global install or the release binary, never from a project's node_modules, where the calling agent could change the code it runs: The MCP server. The library's own use inside a project is unaffected.
The installed quorum command runs on Node, not on bun: the file the package's bin names starts with #!/usr/bin/env node. Bun reads a .env and a bunfig.toml from its working directory before quorum's own code runs, and Node reads neither, so this quorum is the simple way to review in a directory you do not control, such as a pull request's checkout: Nothing read from the working directory. Install it with npm install -g, and never run the package through npx, npm exec or pnpm dlx inside such a checkout: they read the checkout's .npmrc, which can name another registry for the package to come from, where npm install -g does not read the project's .npmrc.
Each version that this repository's CD publishes, from 0.2.0 on, carries npm's provenance, a signed record of the repository, the workflow file, the commit and the run that built it. There are two ways to see it:
On the package's page. npmjs.com shows a green check beside the version, and its details link to the source commit and to the workflow run that built the package: Viewing package provenance.
With
npm audit signatures, in a project that has installed the package, one with apackage.jsonand anode_modules:bashnpm install @tobi-or-not/quorum npm audit signaturesIt prints how many of the installed packages have verified registry signatures and how many have verified attestations; this package counts in both. It checks that the signature and the provenance of each installed version verify, and it does not pin where a package was built the way
gh attestation verify --repodoes for a binary: read the repository, the commit and the run on the package's page. It does not cover a global install, which has no project to audit: install the package in a scratch directory to check it.
A release binary
Each release carries a binary for each platform it supports, quorum-linux-x64, quorum-linux-arm64, quorum-darwin-x64 and quorum-darwin-arm64 (darwin is macOS, and uname -m prints x86_64 for x64 and arm64 or aarch64 for arm64), the JSON Schemas and other data files of schema/ that the contract files lists, and a SHA256SUMS file that lists the checksums of the binaries and of those files. Download the binary for your system with the checksums, replacing <version> with the release's version and <target> with your platform, linux-x64 for example:
gh release download v<version> --repo this-is-tobi/quorum --pattern 'quorum-<target>' --pattern SHA256SUMSOr, without gh:
curl -fsSLO https://github.com/this-is-tobi/quorum/releases/download/v<version>/quorum-<target>
curl -fsSLO https://github.com/this-is-tobi/quorum/releases/download/v<version>/SHA256SUMSCheck the file against the checksums before you run it. On Linux, with the sha256sum of GNU coreutils:
sha256sum -c SHA256SUMS --ignore-missingOn macOS, with its shasum:
shasum -a 256 -c SHA256SUMS --ignore-missingBoth print quorum-<target>: OK. --ignore-missing leaves out the binaries and the contract files you did not download, which the check would report as missing. The checksums come from the same release as the binary, so they catch a damaged or incomplete download but not a file that was swapped along with them. The build provenance attestation of each binary does, and of each contract file too: it is a signed record that GitHub Actions in this repository built that file, and gh attestation verify checks the file against it:
gh attestation verify quorum-<target> --repo this-is-tobi/quorumThen make it executable, check it and put it on your $PATH:
chmod +x quorum-<target>
./quorum-<target> --version
install -m 0755 quorum-<target> /usr/local/bin/quorumThe last line needs sudo where /usr/local/bin is not yours; any directory on your $PATH will do.
The binary holds the Bun runtime and the MCP SDK quorum mcp serves with, so it needs neither Bun, Node nor an npm install, and, like the one bun run compile builds below, it reads no .env and no bunfig.toml from the directory it runs in. The Linux binaries are linked against glibc: they run on Debian, Ubuntu and the like, not on Alpine, which uses musl. On macOS, download with gh or curl as above: a download in a browser marks the file with the com.apple.quarantine attribute, which gh and curl do not add.
A container image
Each release also publishes an image for linux/amd64 and linux/arm64, ghcr.io/this-is-tobi/quorum, tagged with the release's version without its v, 0.2.0 for v0.2.0, with its minor and major, 0.2 and 0, and with latest. Pin a version rather than latest, and replace <version> below with it. The image holds a binary compiled the same way, from the same commit, and so the MCP SDK too, and nothing else: no shell, no claude CLI, so a claude-code provider does not run in it. Its build stage compiles that binary again, for the image's architecture, so its bytes are not those of the release asset, and SHA256SUMS does not list it: check the image against its attestation, below. It runs as the distroless nonroot user, uid 65532, in the working directory /work, and, like the binary, reads no .env and no bunfig.toml from it.
The diff arrives on stdin, which docker run forwards only with -i: without it the container gets an empty stdin, which quorum reviews as an empty diff and passes with exit 0, so a CI job passes having reviewed nothing. Always pass -i when the diff comes on stdin, and never -t: with -t Docker gives the container a terminal, so stdout is one inside it and quorum writes the text report where the redirection below expects the JSON result. If a terminal cannot be avoided, pass -f json after the image name. The report goes to stdout, JSON when stdout is no terminal, and the settings are the QUORUM_* variables, passed with -e:
docker run --rm -i \
-e QUORUM_RESEARCH_PROTOCOL=ollama \
-e QUORUM_RESEARCH_BASE_URL=http://host.docker.internal:11434 \
-e QUORUM_RESEARCH_MODEL=qwen3.6:27b \
-e QUORUM_RESEARCH_CONTEXT_TOKENS=32768 \
ghcr.io/this-is-tobi/quorum:<version> < my.diff > result.jsonThe arguments after the image name are quorum's own, --print-config or --config for instance. With no voter variable the panel shares the finder's provider, so these four variables serve both: The voter's fallback.
localhostis the container. Inside it, the default endpoint, Ollama's native API athttp://localhost:11434, finds nothing, so name the endpoint. A base URL variable on its own means anopenai-compatibleserver, so the example names the protocol too: Ollama's native API at another address takesQUORUM_RESEARCH_PROTOCOL=ollamawithQUORUM_RESEARCH_BASE_URL, and a vLLM, TGI or llama.cpp server or a hosted API takesQUORUM_RESEARCH_BASE_URLalone: A base URL variable on its own.A server on the host is
host.docker.internal. Docker Desktop resolves that name to the host: on Docker Desktop 4.99.0 for macOS it resolved with no option, and a server of the host that listened only on127.0.0.1answered through it. On Linux, add the name yourself,--add-host=host.docker.internal:host-gateway, which Docker resolves to the host's internal IP address. That is not the host's loopback address, so a service that listens only on127.0.0.1, as Ollama does by default, is not reachable through it from a Linux container: Ollama'sOLLAMA_HOSTvariable sets the address it listens on,0.0.0.0:11434for every interface, which opens the service to whatever else can reach the host.A key is passed by name, from your environment.
-e QUORUM_RESEARCH_API_KEY, with no=and no value, has the Docker client read the value from its own environment, where the variable must be exported: Docker leaves one that is not exported unset in the container. The value is then not among the arguments of thedocker runline, so it is not in that line's entry in your shell history or in the list of processes. Get it into the environment without typing it into a shell, asexport QUORUM_RESEARCH_API_KEY=...would, which puts it in your history: from your secret store, or from a CI secret that the job exposes as that variable. The key is still in the container's environment, anddocker inspectshows the variables of a container, a running one's key among them, to whoever can reach your Docker daemon. See Keys. A key sent tohttp://host.docker.internaldraws that section's warning about a key sent over plainhttpto a host other than this machine, since onlylocalhostand the loopback addresses count as this machine.A config file is mounted read-only and named with
--config, a path inside the container:bashdocker run --rm -i \ -v "$PWD/quorum.yaml:/etc/quorum/quorum.yaml:ro" \ ghcr.io/this-is-tobi/quorum:<version> --config /etc/quorum/quorum.yaml < my.diff > result.jsonThe user the image runs as, uid 65532, must be able to read the file. A bind mount keeps the host file's owner and mode on Linux, where a file that only its owner can read, mode
0600, fails asError: /etc/quorum/quorum.yaml: cannot be read: give it mode0644. A provider'sapiKeyEnvnames a variable that you pass with-e, and itsbaseUrlis an address the container reaches,host.docker.internalfor a server on the host.A diff file is named from
/work. Mount its directory there,-v "$PWD:/work:ro", and pass the file as the argument,my.diff, in place of-iand the redirection.
docker run --rm ghcr.io/this-is-tobi/quorum:<version> --version prints quorum and the version, and the empty-diff check at the end of this page runs in the image too, with its two variables passed by -e and the empty diff piped to docker run -i.
Check the image against its attestation before you run it. The release's CD signs the image with cosign, attaches an SPDX SBOM to it, and records a build provenance attestation, a signed record that a GitHub Actions run of this repository built that image. gh attestation verify checks that record; the signature and the SBOM are cosign's, and gh does not read them:
gh attestation verify oci://ghcr.io/this-is-tobi/quorum:<version> --owner this-is-tobiThe record's certificate names two workflows. Its signer, which gh matches, is the shared attest-docker workflow of this-is-tobi/github-workflows, and it records this repository's cd.yml as the build configuration. Since gh matches the signer, the check names the owner where a binary's names the repository, and --repo this-is-tobi/quorum alone refuses it. To pin the repository too, add the signer's: --repo this-is-tobi/quorum --signer-repo this-is-tobi/github-workflows in place of --owner this-is-tobi.
From source
git clone https://github.com/this-is-tobi/quorum.git
cd quorum
bun installbun install installs quorum's two runtime dependencies, zod, which validates every model reply, and yaml, which parses a YAML config file that loadConfig reads, the MCP SDK (@modelcontextprotocol/server 2.4.0, pinned), which only the MCP server loads, and the development tools.
From the root of the clone, bun run start runs the CLI: bun run start ./my.diff. Bun first prints the script it runs, $ bun run ./src/cli/bin.ts, on stderr, and bun run --silent start leaves that line out.
A standalone binary
bun run compile
install -m 0755 ./bin/quorum /usr/local/bin/quorumbun run compile writes ./bin/quorum: one executable with the Bun runtime inside, for the system you build it on, which runs without Bun and without the clone. The second line copies it onto your $PATH (with sudo where /usr/local/bin is not yours; any directory on your $PATH will do).
bun run compile:release builds the four binaries of a release instead, whatever system you run it on, copies the contract files beside them, and writes their SHA256SUMS to bin/release/. Bun downloads the runtimes of the other platforms the first time.
The binary reads no .env and no bunfig.toml from the directory it runs in, which a Bun-compiled binary does by default. Bun itself reads both from its working directory, so bun run start reads the clone's own, a bunfig.toml can name code to run before quorum starts, and a .env can set any QUORUM_* variable, QUORUM_CONFIG included, which names the config file quorum reads. In a directory you do not control, such as a pull request's checkout, run the binary, or the npm package's quorum, which runs on Node: Nothing read from the working directory.
The pages that follow write the command as quorum, which is the npm package's command or a binary. Without either, read quorum as bun run start run from the clone, except after a --: the npm package's command and the binary read quorum -- --help as a file named --help, and Bun itself drops the first --, so bun run start -- --help prints the help.
Check that it works
With no diff and stdin a terminal, quorum prints its usage and exits 2 instead of waiting for input:
quorum
echo $?Error: no diff given
Usage: quorum [options] [diff-file]
git diff | quorum [options]
quorum --range <base>...<head> [options]
quorum --local | --staged [options]
quorum --path <path> [--at <rev>] [options]
quorum bench [options] <suite>
quorum report [options] [<result>|-]
quorum mcp [options]
Options:
-c, --config <path> Read this config file, over QUORUM_CONFIG
-p, --profile <id> Run only this profile; repeat it to run several
--range <range> Review a range of commits, written <base>...<head>
--local Review the local changes: staged, unstaged and untracked
--staged Review the staged changes: what the next commit holds
--trust-repo-config Run --local or --staged where the repository's own config names a filter program
--path <path> Review the files under a path at a commit; repeat it to review several
--at <rev> The commit --path reads, HEAD by default
--no-default-skips Review in --path the vendored, lockfile, minified, binary and test files too
--large Does nothing, and goes in a later release: a --path review's token cap follows its estimate
--send <path> Send a file held as a secret to the models all the same; repeat it to send several
--sarif <path> Read a SARIF log a scan wrote, written [<profile>=]<path>; its issues on the change are judged like findings; repeat it to read several
--sonarqube <path> Read a saved SonarQube api/issues/search response, written [<profile>=]<path>; repeat it to read several
--lcov <path> Read an lcov tracefile a test run wrote, for the profiles that read test coverage; repeat it to read several, and they are merged
--scan-root <dir> The absolute directory the scanners ran in, stripped from the absolute paths their reports name; the repository's top level by default
--related-code Give the votes of the lenses that ask the repository's code a finding's line names, read at a commit quorum resolves
--no-related-code Turn related code off for this review, over the config's relatedCode
--allow-incomplete Exit 0 instead of 4 when every gap is a vote that failed in passing: a dropped connection, a timeout, or an HTTP 408, 409, 429 or 5xx
--fail-on <level> Exit 1 for a kept finding at or above high, medium or low, or never with none; <profile>=<level> sets one profile
-f, --format <format> Write the report on stdout in this format: text, json, brief, markdown, payload or sarif; text on a terminal, else json
-o, --output <output> Also write a report to a file, written <format>=<path>; repeat it to write several
--color <when> Color the text report and the live view: auto, on a terminal unless NO_COLOR is set; always; or never
--progress <mode> Show progress on stderr: auto, live on a terminal and plain lines elsewhere; live; plain; json; or none
--view <view> Show the full result, or the public view with public: no reasoning, the finder's discarded findings, models or usage
--state <dir> Save every answered call in this directory, and reuse the calls it holds; a path review on a terminal keeps them in the user's cache by default
--no-state Keep no answered call, not even in a path review's default directory
--print-config Print the resolved config, keys redacted, and exit
-h, --help Print this help and exit
-v, --version Print the version and exit
2An empty diff on stdin, with a research model and its context size named, is reviewed without calling any model, so this works before you have one running. The JSON result goes to stdout, sent to /dev/null here:
printf '' | QUORUM_RESEARCH_MODEL=qwen3.6:27b QUORUM_RESEARCH_CONTEXT_TOKENS=32768 quorum > /dev/null
echo $?Research (qwen3.6:27b @ http://localhost:11434)...
Panel will use qwen3.6:27b @ http://localhost:11434
empty diff: nothing to review
0 kept, 0 discarded, 0 unreviewed by panel
0The first two lines name the model of each role and the origin of the endpoint it would call. QUORUM_RESEARCH_CONTEXT_TOKENS is the model's context window in tokens, which quorum checks every request against. With no endpoint variable set, the endpoint is the local Ollama's native API, which takes num_ctx, truncate: false and shift: false, so the server is told the context size and refuses an overflow, where Ollama's OpenAI-compatible /v1 would cut the prompt in silence (refusing needs Ollama 0.12.6 or later): Layering. Without QUORUM_RESEARCH_MODEL, the same command prints Error: no model configured: set QUORUM_RESEARCH_MODEL, or name a config file that sets one and exits 2: a research model must be named even for an empty diff. With the model but without QUORUM_RESEARCH_CONTEXT_TOKENS, it prints Error: no context size configured: set QUORUM_RESEARCH_CONTEXT_TOKENS, or name a config file that sets contextTokens and exits 2 too, for the same reason.
Next
Quick start — point it at a model, review a diff, and read the progress, the result and the exit code.
