Knode Games Play free Play Knode Games

Tools · Run a node

Run your own Koinos node

Start a Koinos mainnet node and block producer on your own computer. Each step says what it does, gives you the exact command to paste, and shows what you should see.

Safe by design

Please read first

A free, independent guide, for information only. You run the node on your own computer, at your own risk; Knode Games can't see it and isn't responsible for it.

Not financial, investment, tax or legal advice. Rewards can be zero, KOIN and VHP can lose value, and burning KOIN into VHP can't be undone. Read the full disclaimer and our Terms & risks first.

Your setup

Pick your computer and type your producer address once: every command below is filled in for you. Both are remembered only in this browser.

Your public address only. Never a private key.

0 of 10 steps done

How to run a command

Every grey box is run the same way:

  1. Open PowerShell: click Start, type PowerShell, click Windows PowerShell.
  2. Open Terminal: press ⌘ Space, type Terminal, press Enter.
  3. Open Terminal: press Ctrl+Alt+T.
  4. Click the yellow Copy button on the box.
  5. Click in the PowerShell window and right-click to paste.
  6. Click in the Terminal window and press ⌘V.
  7. Click in the Terminal window and press Ctrl+Shift+V.
  8. Press Enter. If you then see >>, press Enter once more.
  9. It's finished when the line you started with comes back (PS C:\…>ending in % or $). Compare what it printed with You should see.

Keep one window open or open a new one any time: each box goes to the right folder itself. Never paste commands from other websites or chats.

Check what you need

About 10 minutes

What this doesMakes sure your computer can run a node around the clock.

You need:

Run this box (see How to run a command), then read how much space is free on your main drive.

Windows · PowerShell
Get-PSDrive C
Mac · Terminal
df -h /
Linux · Terminal
df -h /

Turn off sleep (a sleeping node misses its blocks):

Set the clock automatically. If it's off by even a minute, the node stops producing ("gossip disabled… halting block production"):

Short on space? See what's using it (optional)

These boxes only look; they delete nothing. The usual big leftovers are old snapshot downloads (koinos-mainnet-….tar.gz, about 60 GB) and old node folders.

Run this box to list your 15 biggest folders. On a full drive it can take 10–20 minutes.

Windows · PowerShell
Get-PSDrive C
Get-ChildItem C:\ -Directory -Force -ErrorAction SilentlyContinue | ForEach-Object { $s = (Get-ChildItem $_.FullName -Recurse -File -Force -ErrorAction SilentlyContinue | Measure-Object Length -Sum).Sum; [pscustomobject]@{ Folder = $_.FullName; GB = [math]::Round($s / 1GB, 1) } } | Sort-Object GB -Descending | Select-Object -First 15
Mac and Linux · Terminal
df -h /
du -xh -d 1 ~ 2>/dev/null | sort -h | tail -15

Then run this box to find big leftover files (old snapshots, old Docker or virtual-machine disks).

Windows · PowerShell
Get-ChildItem C:\ -Recurse -File -Force -ErrorAction SilentlyContinue -Include *.tar.gz, *.vhdx | Where-Object Length -gt 2GB | Select-Object FullName, @{ n = 'GB'; e = { [math]::Round($_.Length / 1GB, 1) } }
Mac and Linux · Terminal
find ~ -xdev -type f \( -name '*.tar.gz' -o -name '*.raw' -o -name '*.vhdx' \) -size +2G -exec ls -lh {} \; 2>/dev/null

Know what a file is before you delete it. An old .tar.gz snapshot is safe to delete once unpacked. Keep the folders of a running node, and any holding a .env file or a block_producer folder (keys), unless you're sure. Windows: Settings → System → Storage → Cleanup recommendations safely clears temporary files.

You should seeYour drives. Free (Windows) or Avail (Mac/Linux) should show 150 GB (150G) or more.

If it doesn't work
  • Under 150 GB free? Use "Short on space?" above. Empty the Recycle Bin / Trash, uninstall unused programs, or move videos and photos to another drive. Windows can also keep Docker's data on another drive (step 2: Docker Desktop → Settings → Resources → Advanced → Disk image location).
  • Windows says the command isn't found? You opened Command Prompt; open Windows PowerShell instead.
  • A laptop works: keep it plugged in, lid open (or set the lid to "do nothing"), on a cable if you can.

Install Docker (and Git)

About 30 minutes (plus restarts)

What this doesInstalls Docker, the free program that runs the node, and Git, which downloads the Koinos node files. On Windows it also turns on WSL 2, which Docker runs on.

Windows

  1. Click Start, type PowerShell, right-click Windows PowerShell → Run as administrator → Yes.
  2. Paste the first box and press Enter. When it says so, restart your computer.
  3. Download Docker Desktop for Windows from docker.com and install it, keeping "Use WSL 2 instead of Hyper-V" ticked. Restart if asked.
  4. Open Docker Desktop and accept the terms (signing in is optional). Settings (gear) → General → tick "Start Docker Desktop when you sign in to your computer" → Apply.
  5. In a normal (not administrator) PowerShell window, paste the second box to install Git. Then close and reopen PowerShell.
  6. Paste the third box to check everything.
Windows · PowerShell (as administrator)
wsl --install --no-distribution
wsl --update
Windows · PowerShell
winget install --id Git.Git -e --source winget
Windows · PowerShell
docker version
docker compose version
git --version
docker run --rm hello-world

Mac

  1. Download Docker Desktop for Mac (Apple chip or Intel chip: Apple menu → About This Mac) from docker.com and drag it to Applications.
  2. Open Docker and accept the terms (signing in is optional).
  3. Docker → Settings: General → tick "Start Docker Desktop when you sign in" (Apple chip: also "Use Rosetta for x86_64/amd64 emulation on Apple Silicon"). Resources → Memory at least 8 GB, disk limit at least 200 GB. Apply & restart.
  4. Open Terminal and paste the box below. If your Mac offers the command line developer tools (Git), click Install, then paste the box again.
Mac · Terminal
docker version
docker compose version
git --version
docker run --rm hello-world

Linux

  1. Install Docker Engine: docs.docker.com/engine/install.
  2. Paste the first box (Git, Python and curl; Docker at start-up and without sudo), then log out and back in.
  3. Paste the second box to check everything.
Linux · Terminal (Ubuntu / Debian)
sudo apt-get update && sudo apt-get install -y git python3 curl
sudo systemctl enable --now docker
sudo usermod -aG docker $USER
Linux · Terminal
docker version
docker compose version
git --version
docker run --rm hello-world

You should seeVersion numbers for Docker (with a Server part), Docker Compose and Git, then "Hello from Docker!".

If it doesn't work
  • "docker: command not found" or "cannot connect to the Docker daemon": open Docker Desktop, wait until the whale icon stops moving, try again.
  • Windows asks for a "UNIX username": that's an unneeded Ubuntu. Close the window; to remove it, run wsl --unregister Ubuntu.
  • Windows: Docker says WSL needs updating: in an administrator PowerShell run wsl --update, then wsl --shutdown, and reopen Docker Desktop.
  • Windows: "virtualization is not enabled": if Task Manager → Performance → CPU shows Virtualization: Disabled, turn it on in your BIOS/UEFI (search your PC maker + "enable virtualization").
  • Windows: "winget is not recognized": install App Installer from the Microsoft Store, or Git from git-scm.com with the defaults.
  • Linux: "permission denied" from Docker: log out and back in, then try again.

Get the Koinos node files and switch on block production

About 5 minutes

What this doesDownloads the official Koinos node setup at a version Knode Games has checked, sets it to produce for your address, and keeps its data in a Docker volume (faster and safer than an ordinary folder).

3a. Download the node files

Run this box. It takes about a minute.

Windows · PowerShell
New-Item -ItemType Directory -Force C:\koinos-node | Out-Null
cd C:\koinos-node
git clone https://github.com/koinos/koinos.git koinos
cd koinos
git -c advice.detachedHead=false checkout b05b8337d0a8d09748f9c2d1faef810ee2f5de28
git rev-parse HEAD
Mac and Linux · Terminal
mkdir -p ~/koinos-node && cd ~/koinos-node
git clone https://github.com/koinos/koinos.git koinos
cd koinos
git -c advice.detachedHead=false checkout b05b8337d0a8d09748f9c2d1faef810ee2f5de28
git rev-parse HEAD

The last line must be exactly b05b8337d0a8d09748f9c2d1faef810ee2f5de28: the checked version.

3b. Settings: block production for your address

Check your address shows in yellow in the box (type it in Your setup), then run this box.

Windows · PowerShell
cd C:\koinos-node\koinos
New-Item -ItemType Directory -Force config | Out-Null
Copy-Item config-example\* config -Recurse -Force
Copy-Item env.example .env -Force
Add-Content .env "COMPOSE_PROFILES=block_producer,jsonrpc"
(Get-Content config\config.yml -Raw) -replace '(?m)^  # producer:.*$', '  producer: YOUR_PRODUCER_ADDRESS' | Set-Content config\config.yml -NoNewline -Encoding ascii
Select-String -Path config\config.yml -Pattern '^  producer:'
Mac and Linux · Terminal
cd ~/koinos-node/koinos
mkdir -p config && cp -R config-example/. config/
cp env.example .env
echo "COMPOSE_PROFILES=block_producer,jsonrpc" >> .env
sed -i.bak 's|^  # producer:.*$|  producer: YOUR_PRODUCER_ADDRESS|' config/config.yml
grep "^  producer:" config/config.yml
Only if this computer already runs another Koinos node

Two nodes can't share network ports. Run this right after 3b (and after 3b on every update) to give this node its own ports. Then use 8110 wherever this page says 8080 (5b, the health check, and -Rpc http://127.0.0.1:8110 / --rpc=http://127.0.0.1:8110 for self-heal in step 8).

Windows · PowerShell
cd C:\koinos-node\koinos
Add-Content .env "JSONRPC_PORT=8110"
Add-Content .env "P2P_PORT=8918"
Add-Content .env "AMQP_PORT=5702"
Add-Content .env "AMQP_ADMIN_PORT=15702"
Select-String -Path .env -Pattern '_PORT='
Mac and Linux · Terminal
cd ~/koinos-node/koinos
printf 'JSONRPC_PORT=8110\nP2P_PORT=8918\nAMQP_PORT=5702\nAMQP_ADMIN_PORT=15702\n' >> .env
grep '_PORT=' .env

3c. Keep the node's data in a Docker volume

Run this box (a few seconds).

Windows · PowerShell
cd C:\koinos-node\koinos
@'
services:
  chain:
    volumes: ["koinos-data:/koinos"]
  mempool:
    volumes: ["koinos-data:/koinos"]
  block_store:
    volumes: ["koinos-data:/koinos"]
  p2p:
    volumes: ["koinos-data:/koinos"]
  block_producer:
    volumes: ["koinos-data:/koinos"]
  jsonrpc:
    volumes: ["koinos-data:/koinos"]
  grpc:
    volumes: ["koinos-data:/koinos"]
  transaction_store:
    volumes: ["koinos-data:/koinos"]
  contract_meta_store:
    volumes: ["koinos-data:/koinos"]
  account_history:
    volumes: ["koinos-data:/koinos"]
volumes:
  koinos-data:
    external: true
    name: koinos-data
'@ | Set-Content docker-compose.override.yml -Encoding ascii
docker volume create koinos-data
docker compose config | Select-String "koinos-data"
Mac and Linux · Terminal
cd ~/koinos-node/koinos
cat > docker-compose.override.yml <<'EOF'
services:
  chain:
    volumes: ["koinos-data:/koinos"]
  mempool:
    volumes: ["koinos-data:/koinos"]
  block_store:
    volumes: ["koinos-data:/koinos"]
  p2p:
    volumes: ["koinos-data:/koinos"]
  block_producer:
    volumes: ["koinos-data:/koinos"]
  jsonrpc:
    volumes: ["koinos-data:/koinos"]
  grpc:
    volumes: ["koinos-data:/koinos"]
  transaction_store:
    volumes: ["koinos-data:/koinos"]
  contract_meta_store:
    volumes: ["koinos-data:/koinos"]
  account_history:
    volumes: ["koinos-data:/koinos"]
volumes:
  koinos-data:
    external: true
    name: koinos-data
EOF
docker volume create koinos-data
docker compose config | grep koinos-data

You should see3a: the long code ending ...f5de28. 3b: producer: 1… with your address. 3c: koinos-data, then several lines mentioning it.

If it doesn't work
  • 3a: "destination path 'koinos' already exists": already done. Go on to 3b.
  • 3b shows producer: YOUR_PRODUCER_ADDRESS: type your address at the top, copy 3b again and rerun it (safe to repeat).
  • 3b shows nothing: run it again. Still nothing? Check you're in C:\koinos-node\koinos (Windows) or ~/koinos-node/koinos.
  • 3c: "yaml" or "mapping" error: the box was only partly pasted. Copy it with the Copy button and rerun it.

Download the weekly chain snapshot, check it, unpack it

Hands-on 10 minutes · waiting 2–8 hours

What this doesSaves days: instead of replaying the chain from block 1, your node starts from Armana's weekly snapshot (made Sundays around 04:00 UTC). The fingerprint (SHA-256) check proves the download is complete and exactly what Armana published.

4a. Find the newest snapshot

Run this box. It shows the newest snapshot, its size and fingerprint, and whether Armana's two fingerprints agree.

Windows · PowerShell
cd C:\koinos-node
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$i = Invoke-RestMethod https://snapshots.armana.io/index.json
$s = $i.archives | Sort-Object { [int64]$_.height } -Descending | Select-Object -First 1
$old = $null; try { $old = (Get-Content snapshot.json -Raw -ErrorAction Stop | ConvertFrom-Json).name } catch { }
if ((Test-Path snapshot.tar.gz) -and ($old -ne $s.name)) { Remove-Item snapshot.tar.gz; "A newer snapshot is out: the half-finished older download was removed, so 4b starts fresh." }
$s | ConvertTo-Json -Depth 5 | Set-Content snapshot.json
$f = ((curl.exe -sL --ssl-no-revoke $s.sha256_url) -split '\s+')[0]
"Newest snapshot: $($s.name)"
"Size: {0:N1} GB" -f ($s.size_bytes / 1GB)
"Fingerprint: $($s.sha256)"
if ($f -eq $s.sha256) { "The list and its fingerprint file agree (both from Armana)" } else { "STOP: Armana's list and fingerprint file differ - do not use this snapshot" }
Mac and Linux · Terminal
cd ~/koinos-node
python3 - <<'EOF'
import json, os, urllib.request
i = json.load(urllib.request.urlopen("https://snapshots.armana.io/index.json"))
s = max(i["archives"], key=lambda a: int(a["height"]))
try:
    old = json.load(open("snapshot.json"))["name"]
except Exception:
    old = None
if os.path.exists("snapshot.tar.gz") and old != s["name"]:
    os.remove("snapshot.tar.gz")
    print("A newer snapshot is out: the half-finished older download was removed, so 4b starts fresh.")
json.dump(s, open("snapshot.json", "w"), indent=1)
f = urllib.request.urlopen(s["sha256_url"]).read().decode().split()[0]
print("Newest snapshot:", s["name"])
print("Size: %.1f GB" % (s["size_bytes"] / 2**30))
print("Fingerprint:", s["sha256"])
print("The list and its fingerprint file agree (both from Armana)" if f.lower() == s["sha256"].lower() else "STOP: Armana's list and fingerprint file differ - do not use this snapshot")
EOF

Extra careful: to check against a second source, compare the Fingerprint line with the one Armana posts in the Koinos Discord or Telegram, or another node runner's. If they differ, don't use it.

4b. Download it (the long part)

Run this box and leave the window open: 2–8 hours, depending on your internet. If the connection drops, it carries on by itself. It's done at DOWNLOAD COMPLETE.

Windows · PowerShell
cd C:\koinos-node
$s = Get-Content snapshot.json -Raw | ConvertFrom-Json
$size = [int64]$s.size_bytes
for ($try = 1; $try -le 200; $try++) {
  $have = 0; if (Test-Path snapshot.tar.gz) { $have = (Get-Item snapshot.tar.gz).Length }
  if ($have -eq $size) { "DOWNLOAD COMPLETE - go on to 4c"; break }
  if ($have -gt $size) { "STOP: the file is bigger than the snapshot. Delete snapshot.tar.gz, then do 4a and 4b again."; break }
  curl.exe -L --fail --ssl-no-revoke --retry 5 -C - -o snapshot.tar.gz $s.url
  if ($LASTEXITCODE -ne 0) { "The connection dropped (try $try of 200). Carrying on by itself in 30 seconds..."; Start-Sleep -Seconds 30 }
}
Mac and Linux · Terminal
cd ~/koinos-node
URL=$(python3 -c 'import json;print(json.load(open("snapshot.json"))["url"])')
SIZE=$(python3 -c 'import json;print(int(json.load(open("snapshot.json"))["size_bytes"]))')
for TRY in $(seq 1 200); do
  HAVE=$(python3 -c 'import os;print(os.path.getsize("snapshot.tar.gz") if os.path.exists("snapshot.tar.gz") else 0)')
  if [ "$HAVE" -eq "$SIZE" ]; then echo "DOWNLOAD COMPLETE - go on to 4c"; break; fi
  if [ "$HAVE" -gt "$SIZE" ]; then echo "STOP: the file is bigger than the snapshot. Delete snapshot.tar.gz, then do 4a and 4b again."; break; fi
  curl -L --fail --retry 5 -C - -o snapshot.tar.gz "$URL" || { echo "The connection dropped (try $TRY of 200). Carrying on by itself in 30 seconds..."; sleep 30; }
done

4c. Check the fingerprint

After DOWNLOAD COMPLETE, run this box. It works quietly for several minutes, then prints MATCH or NO MATCH.

Windows · PowerShell
cd C:\koinos-node
$s = $null
if (Test-Path snapshot.json) { $s = Get-Content snapshot.json -Raw | ConvertFrom-Json }
if (-not $s -or $s.sha256 -notmatch '^[0-9a-fA-F]{64}$') {
  "STOP - no snapshot.json yet: do 4a first"
} elseif (-not (Test-Path snapshot.tar.gz)) {
  "STOP - no snapshot.tar.gz yet: do 4b first"
} elseif ((Get-FileHash snapshot.tar.gz -Algorithm SHA256).Hash -eq $s.sha256) {
  "MATCH - the download is complete and unchanged"
} else {
  "NO MATCH - delete snapshot.tar.gz and download again"
}
Mac and Linux · Terminal
cd ~/koinos-node
EXP=$(python3 -c 'import json;print(json.load(open("snapshot.json"))["sha256"].lower())' 2>/dev/null)
if [ ${#EXP} -ne 64 ]; then echo "STOP - no snapshot.json yet: do 4a first"
elif [ ! -f snapshot.tar.gz ]; then echo "STOP - no snapshot.tar.gz yet: do 4b first"
else
  GOT=$( (sha256sum snapshot.tar.gz 2>/dev/null || shasum -a 256 snapshot.tar.gz) | cut -d' ' -f1)
  if [ "$EXP" = "$GOT" ]; then echo "MATCH - the download is complete and unchanged"; else echo "NO MATCH - delete snapshot.tar.gz and download again"; fi
fi

4d. Unpack it into the node's volume

If 4c said MATCH, run this box and leave the window open (30–60 minutes). Every minute it prints the size unpacked so far, and at the end UNPACKED OK.

It unpacks only chain and block_store, and never touches your node's key.

Windows · PowerShell
docker run --rm --network none -v koinos-data:/k -v C:/koinos-node:/dl:ro debian:bookworm-slim@sha256:734a72b3d6142a71993b4bc580ca01d8ca687f77a2c422d96a961d3376b179bc sh -c "set -e; if [ -e /k/chain ] || [ -e /k/block_store ]; then echo STOP: this volume already holds chain data. See If it does not work.; exit 1; fi; rm -rf /k/restore; mkdir /k/restore; echo Unpacking. This takes 30 to 60 minutes. Size so far, every minute:; ( while sleep 60; do du -sh /k/restore 2>/dev/null; done ) & tar -xzf /dl/snapshot.tar.gz -C /k/restore --wildcards '*.koinos/chain/*' '*.koinos/block_store/*'; if find /k/restore -type l -o -type b -o -type c -o -type p | grep -q .; then rm -rf /k/restore; echo STOP: the snapshot holds unexpected links. Do not use it.; exit 1; fi; mv /k/restore/.koinos/chain /k/chain; mv /k/restore/.koinos/block_store /k/block_store; rm -rf /k/restore; echo UNPACKED OK; ls /k"
Mac and Linux · Terminal
docker run --rm --network none -v koinos-data:/k -v "$HOME/koinos-node:/dl:ro" debian:bookworm-slim@sha256:734a72b3d6142a71993b4bc580ca01d8ca687f77a2c422d96a961d3376b179bc sh -c "set -e; if [ -e /k/chain ] || [ -e /k/block_store ]; then echo STOP: this volume already holds chain data. See If it does not work.; exit 1; fi; rm -rf /k/restore; mkdir /k/restore; echo Unpacking. This takes 30 to 60 minutes. Size so far, every minute:; ( while sleep 60; do du -sh /k/restore 2>/dev/null; done ) & tar -xzf /dl/snapshot.tar.gz -C /k/restore --wildcards '*.koinos/chain/*' '*.koinos/block_store/*'; if find /k/restore -type l -o -type b -o -type c -o -type p | grep -q .; then rm -rf /k/restore; echo STOP: the snapshot holds unexpected links. Do not use it.; exit 1; fi; mv /k/restore/.koinos/chain /k/chain; mv /k/restore/.koinos/block_store /k/block_store; rm -rf /k/restore; echo UNPACKED OK; ls /k"

You should see4a: a name like koinos-mainnet-2026-11-01-h40694989.tar.gz, about 58 GB, and "The list and its fingerprint file agree (both from Armana)". 4b: progress up to 100%, then DOWNLOAD COMPLETE. 4c: MATCH. 4d: a growing size each minute, then UNPACKED OK with block_store and chain.

If it doesn't work
  • 4a says STOP: don't use that snapshot; try again in an hour. (Older Windows 10, "Could not create SSL/TLS secure channel": install Windows updates.)
  • 4b: "The connection dropped" now and then is normal. Window closed or PC restarted? Paste 4b again: it continues. If it stops with "404", that snapshot was retired: do 4a again (it clears the half-download), then 4b.
  • 4c says NO MATCH: delete the file (Remove-Item C:\koinos-node\snapshot.tar.gz or rm ~/koinos-node/snapshot.tar.gz), then redo 4a–4c.
  • 4d: "No space left on device": repairing (step 8)? Delete the old data first: docker run --rm --network none -v koinos-data:/k alpine:3.20@sha256:d9e853e87e55526f6b2917df91a2115c36dd7c696a35be12163d44e6e2a4b6bc rm -rf /k/chain-old /k/block_store-old. Otherwise free space (Mac: raise Docker's disk limit to 200 GB) and rerun 4d; it cleans up first.
  • 4d: "STOP: this volume already holds chain data": if you saw UNPACKED OK before, go on to step 5. If you never saw it (say, you started the node before 4d), do the repair box in step 8, then 4d again.
  • Why trust Armana? Armana runs koinos.armana.io, the API Knode Games itself uses. The check proves the file is intact and theirs, and it can't hold a key: you only unpack chain data. Rather not use a snapshot? Skip 4b–4d; the node rebuilds the chain itself, which takes days.

Start the node and wait until it's caught up

A few minutes · catching up: a few hours

What this doesStarts your node. It loads the snapshot, then fetches newer blocks from other nodes until it's level with the network.

5a. Start

Run this box. The first time, it downloads the node's programs (a few minutes).

Windows · PowerShell
cd C:\koinos-node\koinos
docker compose up -d
Remove-Item C:\koinos-node\heal-paused -ErrorAction SilentlyContinue
Mac and Linux · Terminal
cd ~/koinos-node/koinos
docker compose up -d
rm -f ~/koinos-node/heal-paused

5b. Is it caught up?

Run this box now and every 15 minutes or so. It's caught up when Behind by is under 10.

Windows · PowerShell
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$me = $null; $net = $null
$body = '{"jsonrpc":"2.0","id":1,"method":"chain.get_head_info","params":{}}'
try { $me = [int64](Invoke-RestMethod http://127.0.0.1:8080 -Method Post -ContentType application/json -Body $body).result.head_topology.height } catch { }
try { $net = [int64](Invoke-RestMethod https://koinos.armana.io -Method Post -ContentType application/json -Body $body).result.head_topology.height } catch { }
if (-not ($me -gt 0)) {
  "Your node didn't answer yet - wait 2 minutes and try again"
} elseif (-not ($net -gt 0)) {
  "Couldn't read the network height - try again in a minute"
} else {
  "Your node: $me   Network: $net   Behind by: $($net - $me) blocks"
}
Mac and Linux · Terminal
B='{"jsonrpc":"2.0","id":1,"method":"chain.get_head_info","params":{}}'
H='import json,sys;h=int(json.load(sys.stdin)["result"]["head_topology"]["height"]);assert h>0;print(h)'
ME=$(curl -s -X POST -H 'content-type: application/json' -d "$B" http://127.0.0.1:8080 | python3 -c "$H" 2>/dev/null)
NET=$(curl -s -X POST -H 'content-type: application/json' -d "$B" https://koinos.armana.io | python3 -c "$H" 2>/dev/null)
if [ -z "$ME" ]; then echo "Your node didn't answer yet - wait 2 minutes and try again"
elif [ -z "$NET" ]; then echo "Couldn't read the network height - try again in a minute"
elif [ "$NET" -lt "$ME" ]; then echo "Couldn't read the network height - try again in a minute"
else echo "Your node: $ME   Network: $NET   Behind by: $((NET - ME)) blocks"; fi

To watch it work: docker compose logs --tail 20 chain in the koinos folder.

You should see5a: Started for amqp, chain, mempool, block_store, p2p, block_producer and jsonrpc. 5b: Behind by shrinking each time. A week-old snapshot (about 200,000 blocks) takes a few hours to catch up.

If it doesn't work
  • 5b: "Unable to connect" or "Connection refused": still starting. Try again in 2 minutes.
  • Behind by not shrinking across two checks 15 minutes apart: see "If it's stuck" in step 8.
  • 5a: "port is already allocated" (8080, 8888, 5672 or 15672): another program or node uses that port. Do "Only if this computer already runs another Koinos node" in step 3, rerun 5a, and use 8110 instead of 8080. Updates rewrite .env, so run that box again after updating.
  • 5a: "external volume koinos-data not found": run docker volume create koinos-data, then step 4d again.
  • Mac: "platform (linux/amd64) does not match": turn on Rosetta (step 2), restart Docker, rerun 5a.

Register your node's key for your address

About 5 minutes

What this doesTells Koinos that blocks signed by your node count for your address and VHP. Your node made its own key pair; you register only the public half, from your wallet. The private half never leaves the node.

6a. Show your node's PUBLIC key

Run this box. It prints one line starting with A: select it and right-click (or press Ctrl+C)press ⌘C (Mac) or Ctrl+Shift+C (Linux) to copy it.

Windows · PowerShell
docker run --rm --network none -v koinos-data:/k:ro alpine:3.20@sha256:d9e853e87e55526f6b2917df91a2115c36dd7c696a35be12163d44e6e2a4b6bc cat /k/block_producer/public.key
Mac and Linux · Terminal
docker run --rm --network none -v koinos-data:/k:ro alpine:3.20@sha256:d9e853e87e55526f6b2917df91a2115c36dd7c696a35be12163d44e6e2a4b6bc cat /k/block_producer/public.key

6b. Register it

  1. Open Register a producer key.
  2. Click Connect wallet with the wallet whose address you used in step 3.
  3. Paste the public key from 6a into Node PUBLIC key and click Register key.
  4. Confirm in your wallet. Registering is free: the Knode Games Mana sponsor pays, within its daily limit. If that's used up, your wallet pays a little Mana (check your Mana), so keep a little KOIN.

You should see6a: one line of about 44 characters starting with A: your public key (safe to share). 6b: "Done. The key becomes active in about a minute."

If it doesn't work
  • 6a: "No such file": the node hasn't made its key yet. Check 5a ran, wait 2 minutes, retry.
  • Anything asks for a private key or recovery words: stop. Registering needs only the public key and your wallet's confirmation.
  • The producer page shows a different address than step 3: switch accounts in your wallet. The same address must register the key and hold the VHP.
  • "Not enough Mana": wait (Mana refills over time) or add a little KOIN, then retry.

Fill your producer wallet with VHP

About 10 minutes

What this doesGives your node its weight: the more VHP your producer address holds, the more blocks it produces. You make VHP by burning KOIN, 1 for 1.

You should seeThe VHP in your wallet. Your address appears on Producer lookup after its first blocks (step 9).

If it doesn't work
  • Burned with the wrong wallet? VHP counts for the address holding it: send it to the producer wallet.
  • Unsure how much? Start small; you can burn more later. Burning can only be reversed by swapping VHP back on the Swap page.

Keep it live

1 minute a week

What this doesKeeps your node producing, and fixes the two common problems: a stuck node and a damaged one. These are the fixes Knode Games uses on its own nodes.

Already done for you

Turn on automatic self-heal (recommended)

A small script checks your node every 20 minutes. If it has frozen (far behind and not moving, or not answering), it restarts it: at most once per 50 minutes and 3 times in 6 hours, then it tells you. If the node keeps crashing it doesn't restart it; it tells you to repair (below). It never deletes anything or touches your key; it notifies you and writes heal.log in your koinos-node folder.

Run this box: it downloads the self-heal script and checks its fingerprint.

Windows · PowerShell
cd C:\koinos-node
Invoke-WebRequest https://raw.githubusercontent.com/bawcejawn/KnodeGames2/main/ops/node/one/heal-one-node.ps1 -OutFile heal-one-node.ps1 -UseBasicParsing
if ((Get-FileHash heal-one-node.ps1).Hash -eq "4d23650d458e86963f041f95aecc382fcb76ddb54c4711f491e0702d75d35995") { "MATCH - the file arrived intact" } else { "NO MATCH - don't run it; delete heal-one-node.ps1" }
Mac and Linux · Terminal
cd ~/koinos-node
curl -fsSL -o heal-one-node.py https://raw.githubusercontent.com/bawcejawn/KnodeGames2/main/ops/node/one/heal-one-node.py
GOT=$( (sha256sum heal-one-node.py 2>/dev/null || shasum -a 256 heal-one-node.py) | cut -d' ' -f1)
[ "$GOT" = "c0082c80e1dc9c5a69f1273411ff318af2752a7a5c696c91f0721ba9522f13dd" ] && echo "MATCH - the file arrived intact" || echo "NO MATCH - don't run it; delete heal-one-node.py"

If it says MATCH, run this box: the first line tries it once (changing nothing), the second switches it on.

Windows · PowerShell
powershell -ExecutionPolicy Bypass -File C:\koinos-node\heal-one-node.ps1 -DryRun
powershell -ExecutionPolicy Bypass -File C:\koinos-node\heal-one-node.ps1 -Install
Mac and Linux · Terminal
cd ~/koinos-node
python3 heal-one-node.py --dry-run
python3 heal-one-node.py --install

You should see OK: height …, network …, then "OK … is set up".

More about self-heal
  • It never starts a node you stopped with the stop box (step 10): it stays paused until you start it with 5a. The repair, stop and update boxes pause it while they work. Pressing Stop in Docker Desktop doesn't pause it: it starts the node again within about 40 minutes.
  • On a Mac or Linux a notification may not appear: look at heal.log.
  • Switch it off: run the same file with -Uninstall (Windows) or --uninstall (Mac/Linux). Update it: when this page shows a new fingerprint, do both boxes again.
  • Node on other ports (step 3)? Add -Rpc http://127.0.0.1:8110 (Windows) or --rpc=http://127.0.0.1:8110 (Mac/Linux) to both lines.

Once a week (1 minute)

Run this health check. It only reads: parts running, how far behind, and whether the clock is right. (Second node? Use 8110, not 8080.)

Windows · PowerShell
cd C:\koinos-node\koinos
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
"Parts running: $(@(docker compose ps --status running --services).Count) of 7"
$me = $null; $net = $null; $nt = $null
$body = '{"jsonrpc":"2.0","id":1,"method":"chain.get_head_info","params":{}}'
try { $me = [int64](Invoke-RestMethod http://127.0.0.1:8080 -Method Post -ContentType application/json -Body $body).result.head_topology.height } catch { }
try { $r = (Invoke-RestMethod https://koinos.armana.io -Method Post -ContentType application/json -Body $body).result; $net = [int64]$r.head_topology.height; $nt = [int64]$r.head_block_time } catch { }
$clock = $null; if ($nt -gt 0) { $clock = [math]::Round(([DateTimeOffset]::UtcNow.ToUnixTimeMilliseconds() - $nt) / 1000) }
if (-not ($me -gt 0) -or -not ($net -gt 0) -or $null -eq $clock) { "Couldn't read a height - wait 2 minutes and try again" } elseif ($clock -lt -3 -or $clock -gt 30) { "CLOCK OFF by about $clock seconds - sync your clock (step 1), then restart the node (below)" } elseif (($net - $me) -lt 10) { "HEALTHY - behind by $($net - $me) blocks, clock OK" } else { "BEHIND by $($net - $me) blocks - run this again in 15 minutes. Not shrinking? Restart it (below)." }
Mac and Linux · Terminal
cd ~/koinos-node/koinos
echo "Parts running: $(docker compose ps --status running --services | wc -l | tr -d ' ') of 7"
B='{"jsonrpc":"2.0","id":1,"method":"chain.get_head_info","params":{}}'
H='import json,sys;r=json.load(sys.stdin)["result"];h=int(r["head_topology"]["height"]);t=int(r["head_block_time"]);assert h>0 and t>0;print(h,t//1000)'
read -r ME MT <<< "$(curl -s -X POST -H 'content-type: application/json' -d "$B" http://127.0.0.1:8080 | python3 -c "$H" 2>/dev/null)"
read -r NET NT <<< "$(curl -s -X POST -H 'content-type: application/json' -d "$B" https://koinos.armana.io | python3 -c "$H" 2>/dev/null)"
if [ -z "$ME" ] || [ -z "$NET" ] || [ "$NET" -lt "$ME" ]; then echo "Couldn't read a height - wait 2 minutes and try again"
elif [ $(( $(date +%s) - NT )) -lt -3 ] || [ $(( $(date +%s) - NT )) -gt 30 ]; then echo "CLOCK OFF by about $(( $(date +%s) - NT )) seconds - sync your clock (step 1), then restart the node (below)"
elif [ $((NET - ME)) -lt 10 ]; then echo "HEALTHY - behind by $((NET - ME)) blocks, clock OK"
else echo "BEHIND by $((NET - ME)) blocks - run this again in 15 minutes. Not shrinking? Restart it (below)."; fi

Parts running should say 7 of 7. Fewer? Restart it (below).

If it's stuck: restart it

Stuck means Behind by is large and not shrinking across two checks 15 minutes apart. First make sure the clock is right (step 1).

Run this box, wait 15 minutes, then run the health check again.

Windows · PowerShell
cd C:\koinos-node\koinos
docker compose down
docker compose up -d
Remove-Item C:\koinos-node\heal-paused -ErrorAction SilentlyContinue
Mac and Linux · Terminal
cd ~/koinos-node/koinos
docker compose down
docker compose up -d
rm -f ~/koinos-node/heal-paused

Still stuck after a restart: reset Docker

If the clock is fine and Behind by still grows after a restart, Docker itself may have stopped passing blocks (it can happen after many hours or a network change). Your key and chain data stay as they are.

Run this box. It stops the node, restarts Docker, waits for it and starts the node. Check again in 15 minutes.

Windows · PowerShell
New-Item -Force C:\koinos-node\heal-paused | Out-Null
cd C:\koinos-node\koinos
docker compose down
Stop-Process -Name "Docker Desktop" -Force -ErrorAction SilentlyContinue
wsl --shutdown
Start-Sleep -Seconds 10
Start-Process "$env:ProgramFiles\Docker\Docker\Docker Desktop.exe"
"Waiting for Docker to start (up to 5 minutes)..."
$ok = $false; for ($i = 0; $i -lt 60 -and -not $ok; $i++) { Start-Sleep -Seconds 5; docker info *> $null; $ok = ($LASTEXITCODE -eq 0) }
if ($ok) { docker compose up -d; Remove-Item C:\koinos-node\heal-paused -ErrorAction SilentlyContinue; "RESET DONE - check again in 15 minutes" } else { "Docker didn't start yet - open Docker Desktop from the Start menu, wait until it says running, then run step 5a" }
Mac · Terminal
touch ~/koinos-node/heal-paused
cd ~/koinos-node/koinos
docker compose down
osascript -e 'quit app "Docker"'
sleep 15
open -a Docker
echo "Waiting for Docker to start (up to 5 minutes)..."
OK=0; for i in $(seq 60); do sleep 5; if docker info >/dev/null 2>&1; then OK=1; break; fi; done
if [ "$OK" = 1 ]; then docker compose up -d && rm -f ~/koinos-node/heal-paused && echo "RESET DONE - check again in 15 minutes"; else echo "Docker didn't start yet - open Docker from Applications, wait until it says running, then run step 5a"; fi
Linux · Terminal
touch ~/koinos-node/heal-paused
cd ~/koinos-node/koinos
docker compose down
sudo systemctl restart docker
sleep 10
docker compose up -d && rm -f ~/koinos-node/heal-paused && echo "RESET DONE - check again in 15 minutes"

If it keeps crashing: repair from a fresh snapshot

Damaged means it keeps restarting or freezing soon after every restart (docker compose ps shows Restarting, or docker compose logs --tail 40 block_store shows panic). Fresh chain data cures it. This keeps your key and sets the old data aside. It briefly needs room for the old data, a new download and a new unpack (about 180 GB); short of space, delete the old data right away with the last box below.

Run this box. It stops the node and sets the damaged data aside.

Windows · PowerShell
New-Item -Force C:\koinos-node\heal-paused | Out-Null
cd C:\koinos-node\koinos
docker compose down
docker run --rm --network none -v koinos-data:/k alpine:3.20@sha256:d9e853e87e55526f6b2917df91a2115c36dd7c696a35be12163d44e6e2a4b6bc sh -c "set -e; rm -rf /k/chain-old /k/block_store-old; mv /k/chain /k/chain-old; mv /k/block_store /k/block_store-old; echo MOVED ASIDE; ls /k"
cd C:\koinos-node
Remove-Item snapshot.tar.gz, snapshot.json -ErrorAction SilentlyContinue
Mac and Linux · Terminal
touch ~/koinos-node/heal-paused
cd ~/koinos-node/koinos
docker compose down
docker run --rm --network none -v koinos-data:/k alpine:3.20@sha256:d9e853e87e55526f6b2917df91a2115c36dd7c696a35be12163d44e6e2a4b6bc sh -c "set -e; rm -rf /k/chain-old /k/block_store-old; mv /k/chain /k/chain-old; mv /k/block_store /k/block_store-old; echo MOVED ASIDE; ls /k"
cd ~/koinos-node
rm -f snapshot.tar.gz snapshot.json

Then do step 4 again (4a to 4d) and step 5. You don't need to register again.

Once it has run well for a day, run this box to delete the old data.

Windows · PowerShell
docker run --rm --network none -v koinos-data:/k alpine:3.20@sha256:d9e853e87e55526f6b2917df91a2115c36dd7c696a35be12163d44e6e2a4b6bc rm -rf /k/chain-old /k/block_store-old
Mac and Linux · Terminal
docker run --rm --network none -v koinos-data:/k alpine:3.20@sha256:d9e853e87e55526f6b2917df91a2115c36dd7c696a35be12163d44e6e2a4b6bc rm -rf /k/chain-old /k/block_store-old

You should seeAfter a restart: all parts Started, Behind by shrinking within 15 minutes. After a repair: MOVED ASIDE, then steps 4 and 5 as before.

If it doesn't work
  • Disk filling up? Once caught up, delete the download (Remove-Item C:\koinos-node\snapshot.tar.gz or rm ~/koinos-node/snapshot.tar.gz) and run docker image prune.
  • Never run docker volume prune, docker system prune --volumes or docker volume rm koinos-data unless you mean to delete the node and its key.
  • Repair box: "can't rename" or "No such file": there was nothing to move. Go to step 4.
  • Self-heal says NO MATCH: don't run it. Delete the file and download it again later.
  • Mac asks if Terminal may "administer your computer" when you switch on self-heal: click OK (it adds the 20-minute timer).
  • Still stuck after a repair: check your internet and that the clock is set automatically (step 1).

Check you're producing blocks

A few minutes, then a few hours of waiting

What this doesConfirms everything is connected: synced node, registered key, VHP in the producer wallet.

  1. Open Producer lookup and enter your producer address.
  2. It shows your blocks and what to expect for your VHP. With less VHP, give it a few hours.

For a closer look, run this box (the block producer's latest 30 lines).

Windows · PowerShell
cd C:\koinos-node\koinos
docker compose logs --tail 30 block_producer
Mac and Linux · Terminal
cd ~/koinos-node/koinos
docker compose logs --tail 30 block_producer

You should seeRecent blocks for your address on Producer lookup. Rewards arrive in your producer wallet as KOIN.

If it doesn't work
  • No blocks after a day? Check: 5b says caught up; 3b shows your address; you registered the 6a key from that address (registering again is fine); the VHP is in that address.
  • Moved to a new computer? The new node has a new key: register it (step 6). Never run one key on two computers at once.

Stop, restart, update and back up

As needed

What this doesStopping safely, updating Koinos, and an optional offline backup of your node's key.

Stop the node

Run this box. The node stops within a minute; self-heal pauses until you start it again.

Windows · PowerShell
cd C:\koinos-node\koinos
New-Item -Force C:\koinos-node\heal-paused | Out-Null
docker compose down
Mac and Linux · Terminal
cd ~/koinos-node/koinos
touch ~/koinos-node/heal-paused
docker compose down

Start it again

Run this box. The node starts, and self-heal switches back on.

Windows · PowerShell
cd C:\koinos-node\koinos
docker compose up -d
Remove-Item C:\koinos-node\heal-paused -ErrorAction SilentlyContinue
Mac and Linux · Terminal
cd ~/koinos-node/koinos
docker compose up -d
rm -f ~/koinos-node/heal-paused

Restarting the computer is fine: the node comes back when Docker starts.

Update to a new Koinos version

When Knode Games has checked a new Koinos version, it updates the version code in 3a.

Run this box: it stops the node and fetches the new version. Then do 3b again, then 5a.

Windows · PowerShell
New-Item -Force C:\koinos-node\heal-paused | Out-Null
cd C:\koinos-node\koinos
docker compose down
git fetch origin
git -c advice.detachedHead=false checkout b05b8337d0a8d09748f9c2d1faef810ee2f5de28
git rev-parse HEAD
Mac and Linux · Terminal
touch ~/koinos-node/heal-paused
cd ~/koinos-node/koinos
docker compose down
git fetch origin
git -c advice.detachedHead=false checkout b05b8337d0a8d09748f9c2d1faef810ee2f5de28
git rev-parse HEAD

Your data, key and volume setting stay as they are.

Back up your node's key (optional)

The key (block_producer/private.key in the volume) only signs blocks for your address; your KOIN and VHP stay in your wallet. You don't need a backup (a new node can register its own key), but if you want one, copy it straight to a USB stick and keep it offline.

Plug in the USB stick, then run this box. If its letter or name differs, change it in the box first.

Windows · PowerShell (USB stick is E:)
if (Test-Path E:\) { docker run --rm --network none -v koinos-data:/k:ro -v E:/:/usb alpine:3.20@sha256:d9e853e87e55526f6b2917df91a2115c36dd7c696a35be12163d44e6e2a4b6bc cp /k/block_producer/private.key /usb/koinos-node-private.key; if (Test-Path E:\koinos-node-private.key) { "Saved on E:" } } else { "STOP - there is no drive E: Plug in the USB stick and use its letter" }
Mac · Terminal (USB stick named MYUSB)
if [ -d /Volumes/MYUSB ] && diskutil info /Volumes/MYUSB >/dev/null 2>&1; then docker run --rm --network none -v koinos-data:/k:ro -v /Volumes/MYUSB:/usb alpine:3.20@sha256:d9e853e87e55526f6b2917df91a2115c36dd7c696a35be12163d44e6e2a4b6bc cp /k/block_producer/private.key /usb/koinos-node-private.key && ls /Volumes/MYUSB/koinos-node-private.key; else echo "STOP - no USB stick named MYUSB: plug it in and use its name"; fi
Linux · Terminal (USB stick named MYUSB)
if mountpoint -q "/media/$USER/MYUSB" 2>/dev/null; then docker run --rm --network none -v koinos-data:/k:ro -v "/media/$USER/MYUSB:/usb" alpine:3.20@sha256:d9e853e87e55526f6b2917df91a2115c36dd7c696a35be12163d44e6e2a4b6bc cp /k/block_producer/private.key /usb/koinos-node-private.key && ls "/media/$USER/MYUSB/koinos-node-private.key"; else echo "STOP - no USB stick named MYUSB: plug it in and use its name"; fi

You should seeStop or start done within a minute; after an update, the new version code; after a backup, koinos-node-private.key on your stick.

If it doesn't work
  • Stick isn't E:? File Explorer → This PC shows its letter; change E:/ in the box. Mac: its name in Finder replaces MYUSB (Linux: the name in your file manager). STOP means the stick wasn't found and nothing was copied.
  • Remove the node completely: switch self-heal off (-Uninstall / --uninstall), docker compose down, docker volume rm koinos-data (deletes data and key), then delete the koinos-node folder. Your VHP and KOIN stay in your wallet.

What can go wrong (and the fix)

You noticeWhat it meansThe fix
Node behind: Behind by large and not shrinkingStuckCheck the clock, restart, then reset Docker (step 8).
Logs say "gossip disabled" and "halting block production"The node thinks it's out of date, usually because the clock is wrongSync the clock (step 1), then restart (step 8).
Logs say "Error connecting to seed … no good addresses" or "dial backoff"Normal: some start-up addresses are offlineNothing, while Behind by stays under 10.
Crash loop: parts keep "Restarting", or it freezes after every restartDamaged chain dataRepair from a fresh snapshot (step 8). Your key stays.
Disk fullThe download or Docker filled the driveDelete the snapshot download once caught up; docker image prune. Never prune volumes.
Docker won't startDocker or WSL needs a kickRestart the computer. Windows: wsl --update, wsl --shutdown, reopen Docker Desktop.
PC asleep or restartedThe node was offTurn sleep off (step 1). After a restart, sign in; the node starts itself.
No blocks after a daySomething isn't connectedFollow the checklist in step 9.
New computerThe new node has a new keyDo steps 1–6 there (register the new key), then switch the old node off.

Your checklist

Your ticks stay only in this browser.

Sources