Skip to content
Open Kaisar App ↗

Legacy ZeroNode, Provider or KaiNode user? Your rewards are preserved.Legacy user?Check what you haveCheck your rewards

Command line reference

Applies to Kaisar Node CLI on Linux x86-64 · updated Nov 20, 2026 · 8 min read

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/kaisar

The 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

  1. Check the machine. Every line shows ✓, ! or ✗, and the command exits with an error when a line is ✗:
kaisar doctor
  1. 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>
  1. Start the node. Keep it running; press Ctrl+C once to stop cleanly:
kaisar run

kaisar 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

Commands
CommandWhat it does
kaisar doctorChecks 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 runSends heartbeats, takes tasks, runs them and submits signed results
kaisar whoamiShows the node public key, key fingerprint and node ID
kaisar benchMeasures this machine with signed CPU test tasks; the tier shows as pending until the network sets it
kaisar bandwidthShows or saves the download and upload limits for task data
kaisar earningsShows where to see and export earnings: Kaisar App, signed in with your Kaisar ID
kaisar unlinkUnlinks this machine: the node key is revoked and removed from this machine
kaisar healthcheckExits 0 while kaisar run with the same data folder keeps reporting; used by the Docker health check
kaisar update-checkChecks for a newer version; see Updates
kaisar verify-release <file> <file>.minisigVerifies 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 --helpLists every command; kaisar <command> --help lists its flags

Global flags

Global flags
FlagDefaultWhat it does
--gateway <url>set by the buildNode gateway address; same as KAISAR_GATEWAY_URL
--ephemeraloffFor 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
FlagDefaultWhat it does
--roles provider, checker or bothbothRoles to request
--no-waitoffPrints 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

Flags for kaisar run
FlagDefaultWhat 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
--rolesproviderRoles to request when linking with --link-code
--groupstcore.cpuTask groups to accept, comma-separated
--regionlocalRegion reported to the network
--heartbeat-s30Heartbeat interval in seconds (1–30)
--max-tasks1Tasks to request at a time (1–8). One worker runs them in turn
--duration-s0Stops after this many seconds; 0 runs until stopped
--max-download-mbpsnoneDownload limit for task inputs (1–10000 Mbps, or none)
--max-upload-mbpsnoneUpload limit for task results (1–10000 Mbps, or none)
--metrics-bind <ip:port>offServes Prometheus metrics; see Metrics and health checks
--metrics-token-file <file>—Bearer token for /metrics, at least 32 characters
--node-id <id>saved profileUses this node ID instead of the saved one
--unlink-on-exitoffOnly 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

Flags for other commands
CommandFlagWhat it does
kaisar doctor--jsonPrints the result as JSON: version, channel, ok and every line with its status, fix and error code
kaisar bench--llmMeasures 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:

  1. Check: kaisar doctor shows the Update line, or run kaisar 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.
  2. Install the new version the way you run it: Docker, systemd or Kubernetes (new image tag, then helm upgrade).
  3. 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

Environment variables
VariableSame asNotes
KAISAR_GATEWAY_URL--gatewayNode gateway address, https:// only. Published with the first release [TBA]
KAISAR_ENROLL_TOKEN--token, --enroll-tokenOperator 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-bindOff when not set
KAISAR_METRICS_TOKEN_FILE--metrics-token-file

Where the node key is kept

Where the node key is kept
SystemKey store
macOSKeychain
WindowsCredential Manager
Linux desktopSecret Service (GNOME Keyring, KWallet)
Linux server, systemd service, any containerA 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 unlink revokes the node key with the network and removes it from this machine. The next kaisar link creates a new key.
  • Only one kaisar run (or desktop app) per node can run on a machine at a time (error KN-3005).