Installation
Download for Linux x86-64
Section titled “Download for Linux x86-64”The release archive includes knock, knockd, the embedded operator console, and the Door setup files. You can run the binaries without Go, Node.js, or Foundry.
Download knock-linux-amd64.tar.gz and its SHA-256 checksum. The same files are available on GitHub Releases for anyone with repository access.
In the download directory, verify and extract the archive:
sha256sum -c SHA256SUMS && tar -xzf knock-linux-amd64.tar.gz && cd knock-linux-amd64 && bin/knock --help && bin/knockd --helpFollow the Quickstart from the extracted directory, and check the runtime packages below for each machine.
Build from source
Section titled “Build from source”Building from source requires:
- Go
1.26.6 - Node.js
24andpnpm(11.xor12.x) - Foundry (
forge) targeting Solidity0.8.28 - GNU Make and Python 3
Install console dependencies, compile the static operator console, and build bin/knock and bin/knockd:
pnpm --dir web/console install --frozen-lockfilemake buildmake build builds the Vite bundle into cmd/knock/consoleassets/dist and embeds it into bin/knock. You do not need Node.js on the machines that run knock or knockd.
Run the full check suite
Section titled “Run the full check suite”To verify Go, TypeScript, accessibility tests, and Solidity contracts together:
pnpm --dir web/console exec playwright install chromiummake checkmake check runs:
make build(tsc,vite build, and Go binariesbin/knockandbin/knockd).pnpm --dir web/console format:check, Vitest unit tests, and Playwright WCAG AA accessibility checks.go vet ./...andgo test ./....forge fmt --check --root contracts, Foundry unit and fuzz tests (forge test --root contracts), and ABI parity verification againstinternal/chain/registry.abi.json.
Target runtime requirements
Section titled “Target runtime requirements”| Machine | Platform and packages |
|---|---|
Door host (knockd) |
Ubuntu 24.04 LTS x86-64, 2 GiB RAM, systemd with cgroup v2, kernel WireGuard, wireguard-tools, nftables, OpenSSH (sshd, ssh-keygen), NTP time sync enabled, suspend disabled. |
Requester machine (knock) |
Linux with wireguard-tools, OpenSSH (ssh), and a limited sudoers rule if using --tunnel or --ssh WireGuard setup. |
Approver or auditor (knock) |
Linux terminal for CLI commands and optional local loopback browser for knock console. |