The kaisar command line tool is the same Kaisar Node as the desktop app, without a window. Use it on servers, under systemd or, once the Docker image is out, in Docker or on Kubernetes.
The Linux x86-64 kaisar binary is on Downloads when it is listed under Builds, with its SHA-256 and minisign signature.
After you verify it, install it as kaisar:
sudo install -m 0755 kaisar-<version>-x86_64-unknown-linux-gnu /usr/local/bin/kaisarThe Docker image is coming later.
Kaisar Node has no wallet. The node key is created on this machine, stays in its key store and never leaves it. No command exports it, and Kaisar never asks you for it.
First run
- Check the machine. Every line shows ✓, ! or ✗, and the command exits with an error when a line is ✗:
kaisar doctor- Get a 6-digit code in Kaisar App › Node Hub › Add node, then link this machine and confirm in the App within 10 minutes:
kaisar link <code>- Start the node. Keep it running; press Ctrl+C once to stop cleanly:
kaisar runkaisar doctor checks the version and build channel, the system, CPU, memory, free disk in the config folder, GPU, the machine ID, the key store, whether this machine is linked, the connection to the node gateway, the clock and whether a newer version is out. Lines marked ! are warnings: the machine still runs. These lines are errors:
- A clock that is 30 seconds or more off: signed requests are refused.
- A version older than the minimum: the network sends this machine no tasks until you update.
- A machine ID, key store or config folder that cannot be used: linking is refused.
- Less than 4 GB of memory: tasks will not run reliably. Between 4 and 8 GB you see a warning; 8 GB is the minimum and 16 GB is recommended.
Add --json to read the result from a script. The output never contains the node key, the machine ID or the hardware fingerprint.
Commands
| Command | What it does |
|---|---|
kaisar doctor | Checks this machine and prints ✓, ! or ✗ with a fix for each line; --json prints JSON |
kaisar link <code> | Links this machine with the 6-digit code from Kaisar App |
kaisar run | Sends heartbeats, takes tasks, runs them and submits signed results |
kaisar whoami | Shows the node public key, key fingerprint and node ID |
kaisar bench | Measures this machine with signed CPU test tasks; the tier shows as pending until the network sets it |
kaisar bandwidth | Shows or saves the download and upload limits for task data |
kaisar earnings | Shows where to see and export earnings: Kaisar App, signed in with your Kaisar ID |
kaisar unlink | Unlinks this machine: the node key is revoked and removed from this machine |
kaisar healthcheck | Exits 0 while kaisar run with the same data folder keeps reporting; used by the Docker health check |
kaisar update-check | Checks for a newer version; see Updates |
kaisar verify-release <file> <file>.minisig | Verifies a release file against the Kaisar release key |
kaisar verify-snapshot <file or URL> | Verifies a signed market data snapshot: signing key, signature and candle hash |
kaisar --help | Lists every command; kaisar <command> --help lists its flags |
Global flags
| Flag | Default | What it does |
|---|---|---|
--gateway <url> | set by the build | Node gateway address; same as KAISAR_GATEWAY_URL |
--ephemeral | off | For testing: keeps the node key and profile in memory only, lost on exit. --ephemeral run needs --link-code |
Global flags go before the command, for example kaisar --ephemeral doctor.
Flags for kaisar link
| Flag | Default | What it does |
|---|---|---|
--roles provider, checker or both | both | Roles to request |
--no-wait | off | Prints the link ID and returns without waiting for confirmation |
--token <token> | — | Operator machines only: enroll with a token instead of a code. Prefer the KAISAR_ENROLL_TOKEN variable so the token stays out of your shell history |
Without <code>, kaisar link asks for it.
Flags for kaisar run
| Flag | Default | What it does |
|---|---|---|
--link-code <code> | — | Links first if this machine is not linked yet, then runs. Ignored once linked |
--enroll-token <token> | — | Operator machines only: enrolls first if not linked yet, then runs. Prefer KAISAR_ENROLL_TOKEN |
--roles | provider | Roles to request when linking with --link-code |
--groups | tcore.cpu | Task groups to accept, comma-separated |
--region | local | Region reported to the network |
--heartbeat-s | 30 | Heartbeat interval in seconds (1–30) |
--max-tasks | 1 | Tasks to request at a time (1–8). One worker runs them in turn |
--duration-s | 0 | Stops after this many seconds; 0 runs until stopped |
--max-download-mbps | none | Download limit for task inputs (1–10000 Mbps, or none) |
--max-upload-mbps | none | Upload limit for task results (1–10000 Mbps, or none) |
--metrics-bind <ip:port> | off | Serves Prometheus metrics; see Metrics and health checks |
--metrics-token-file <file> | — | Bearer token for /metrics, at least 32 characters |
--node-id <id> | saved profile | Uses this node ID instead of the saved one |
--unlink-on-exit | off | Only with --ephemeral: unlinks the temporary machine when it stops, after handing back held tasks |
Heartbeats, Checker verifications and updates are never slowed down by the bandwidth limits.
Flags for other commands
| Command | Flag | What it does |
|---|---|---|
kaisar doctor | --json | Prints the result as JSON: version, channel, ok and every line with its status, fix and error code |
kaisar bench | --llm | Measures LLM speed on the model package set in tllm.json instead (builds with LLM tasks only); the network decides whether this machine runs that package |
kaisar bandwidth | --download <Mbps>, --upload <Mbps> | Saves the limit (1–10000 Mbps, or none); without flags it shows the saved limits |
kaisar unlink | --node-id <id> | Unlinks this node ID instead of the saved one |
kaisar update-check | --platform <name> | windows-x64, macos-arm64, macos-x64, linux-x64 (AppImage) or linux-x64-deb (.deb for Ubuntu and Debian); default: this machine |
kaisar update-check | --download <folder> | Downloads the installer for that platform and verifies its checksum and signature; it never installs on its own |
Updates
The desktop app updates itself. On servers you update Kaisar Node yourself:
- Check:
kaisar doctorshows the Update line, or runkaisar update-check. It prints "Up to date", "Update available" or that an update is required, and exits with code 2 when this version is older than the minimum. - Install the new version the way you run it: Docker, systemd or Kubernetes (new image tag, then
helm upgrade). - Check again with
kaisar doctor. The node key and profile stay where they are: no new code is needed.
kaisar update-check --download <folder> fetches the desktop installer for this platform (on Linux the AppImage), not the kaisar command line tool. Get the command line tool from Downloads and check it with kaisar verify-release.
Environment variables
| Variable | Same as | Notes |
|---|---|---|
KAISAR_GATEWAY_URL | --gateway | Node gateway address, https:// only. Published with the first release [TBA] |
KAISAR_ENROLL_TOKEN | --token, --enroll-token | Operator machines only |
KAISAR_NODE_CONFIG_DIR | — | Folder for the node profile, the health file and, on servers and in containers, the key file |
KAISAR_NODE_ID | --node-id | |
KAISAR_MAX_DOWNLOAD_MBPS | --max-download-mbps | |
KAISAR_MAX_UPLOAD_MBPS | --max-upload-mbps | |
KAISAR_METRICS_BIND | --metrics-bind | Off when not set |
KAISAR_METRICS_TOKEN_FILE | --metrics-token-file |
Where the node key is kept
| System | Key store |
|---|---|
| macOS | Keychain |
| Windows | Credential Manager |
| Linux desktop | Secret Service (GNOME Keyring, KWallet) |
| Linux server, systemd service, any container | A key file readable only by the node user (0600) in a private folder (0700) |
The first run prints one line naming the key store it uses. A key file or folder that other users can read, or that has the wrong owner, is refused (error KN-1105); Kaisar Node does not change permissions for you.
Anyone with root access to the machine can read a key file, as with any software key store. Use an encrypted disk and do not copy the key folder off the machine. If the key is lost, remove the machine in Kaisar App › Node Hub and link it again.
Stopping and unlinking
- Ctrl+C or SIGTERM stops cleanly: finished results are submitted and held tasks are handed back. This can take up to 25 seconds; give a service manager 30 seconds.
kaisar unlinkrevokes the node key with the network and removes it from this machine. The nextkaisar linkcreates a new key.- Only one
kaisar run(or desktop app) per node can run on a machine at a time (error KN-3005).