Skip to content
ProductGao Developer — Product releases are signed: verify every download against its channel.

Linux / VPS — Relay V2 node

The Relay V2 node (gao-relay-node) is the serving node of the Gao DePIN network: it holds messages and shared objects for applications for a limited time and delivers them over HTTPS, through the Relay V2 profiles mailbox.v2 and group-object.v1 and queue.v1, all three by default. Install it if you run a Linux server with a public DNS name. It is the only platform that serves relay traffic; the desktop, Android and Cloudflare nodes contribute without serving.

You run it yourself. The node makes its own key on your server, you bind it to your Gao ID once, and it joins the network by itself: no admin token, no approval and no request to anyone at Gao. One Gao ID can own any number of nodes, and running them needs no stake: see Rewards and staking.

This guide goes in order: check your server, download and verify, install, bind, join, verify, then day-to-day operation.

Linux / VPS — Relay V2 node

Product release · generation 5 · 0.1.0-production+11c3833b9f77

Download the signed bootstrap SHA256SUMS · SHA256SUMS.sig · release manifest

Architectures
amd64, arm64
Bootstrap SHA-256
b14cdb8f7df4a653fc1a8e8f2c4a8d63574e7f36508ee725777c23eb4e69bee2 (16 KiB)
Signed by
gao-depin-release-signing-product-v1 — public key 73b9da77db80528bfe835a673882b44f6132704c544ed693bc55cd8d1cba81e5
Runtime status
runtime-tested
Valid until
2027-02-06T01:04:31Z
Every file of this release served here
FileSizeSHA-256
gao-relay-node-linux-amd64.gz4.7 MiB7a6c4dc0618f2d65b2020b24607993526f19ca7e5e4735d71ec6ba6b73dacc79
gao-relay-node-linux-arm64.gz4.4 MiB06e35a8a2d1d2f9733dd7d20a2895aa418fc806be9e2486964cfcf7e494aa4ec
SHA256SUMS983 Be1c7efe264cbf821c4d00e44bd336b2eda5561f7633b51b6a1ae5490c6f1400e
SHA256SUMS.sig197 B4def941750bd1a2e37950d21198022f03eed652a8d157c51225cc47cd03535df
gao-product.relay-v2.json1 KiB62e229a473032193f5ed75783b43a3978c136c3536ef4520c85bf044d462863d
get-gao-depin-node.sh16 KiBb14cdb8f7df4a653fc1a8e8f2c4a8d63574e7f36508ee725777c23eb4e69bee2
install-node.sh40 KiB1a33e88d24dba2cc2c413bb243c01573cb59dadffd47ec885c31b2665c34fe0b
provenance.json2 KiB1f9b40e6d76c5cc5915bbc685eb66fb5b3d9b5d3cc5b06d8043d46d7386d0c50
release-manifest.canonical2 KiB7a85ecc8ff3a7e04e667190a4c1b9e1384d8f911fc4f79a6ce592d8bd0142dff
release-manifest.json3 KiBe09c6aca20d448a8f784700bc0036cea906a474c239bc8c858ed042cf591fcaf
release-manifest.sig213 B14adda3a205f78e9044d6e30e4a683e9a39895ac4702a7070892803090016f24
sbom.cdx.json2 KiB71560cd556911d7a6e3f6d7f33cc3675c8743983afa1e8207ac0b699b52e799b
You need Details
A server A small VPS runs the node: 1–2 vCPU and 1–2 GB RAM, with free disk for the store ceiling you choose (default 1 GiB). The installer does not check size.
Linux with systemd amd64 or arm64. Gao tests on Ubuntu 24.04 LTS. Debian 12 ships the same requirements but is outside Gao’s runtime tests. Ubuntu 22.04 does not meet them: it ships systemd 249 and no caddy package.
A DNS name A lowercase name you control, with an A or AAAA record pointing straight at the server. A public IP address alone is not supported: the installer refuses an IP address, a scheme, a port or a path.
Open ports Inbound tcp/80 and tcp/443, in your provider’s firewall and any firewall on the server, and free for Caddy to use. No other inbound port. The node itself listens on loopback only.
Outbound HTTPS The server must reach the Gao network over HTTPS. You never enter an address: the signed release carries them.
Caddy Installed from a package that ships caddy.service and /etc/caddy/Caddyfile (Debian 12, Ubuntu 24.04: sudo apt-get update && sudo apt-get install -y caddy). It obtains and renews the TLS certificate by ACME. The installer stops on a host without it and never installs it for you. A bare binary or a container does not count.
Tools curl, gzip, awk, mktemp, sha256sum, bash and OpenSSL 1.1.1 or newer. No Docker or other container runtime is used.
Root access sudo: the installer creates a service account and writes to /opt/gao, /etc and /var/lib.
A Gao ID To own the node. A wallet is only a way to sign in to it. You sign in from a browser on any device.

The Product release also needs systemd 250 or newer with systemd-creds and systemd-run (the node key is stored encrypted), unless you pass --key-at-rest plaintext.

Keep the node’s data out of backups. The node declares NO_BACKUP in its signed descriptor: its store (/var/lib/gao-relay-node) must stay out of every backup, snapshot and replica, so that deleted messages are really gone. Turn off automatic snapshots of this server’s disk at your provider.

Check your server before you continue:

Terminal window
uname -m # x86_64 (amd64) or aarch64 (arm64)
systemctl --version | head -n 1 # the systemd version
openssl version # OpenSSL 1.1.1 or newer
systemctl cat caddy.service | head -n 2 # Caddy's unit exists
getent hosts node.example.com # your server's public address

Get the release from Downloads. The bootstrap checks the release’s signature itself before it runs anything. To check it by hand first:

R="https://sdk.gao.global/downloads/depin/releases/production/11c3833b9f77-g5"
for f in SHA256SUMS SHA256SUMS.sig get-gao-depin-node.sh; do curl -fsSLO "$R/$f"; done
printf -- '-----BEGIN PUBLIC KEY-----\n%s\n-----END PUBLIC KEY-----\n' 'MCowBQYDK2VwAyEAc7nad9uAUov+g1pnOIK0T2EycExUTtaTvFXNjRy6geU=' > release-key.pem
sed -n 's/^signature: //p' SHA256SUMS.sig | openssl base64 -d -A > sums.sig.bin
openssl pkeyutl -verify -pubin -inkey release-key.pem -rawin -in SHA256SUMS -sigfile sums.sig.bin   # Signature Verified Successfully
sha256sum -c --ignore-missing SHA256SUMS                                                             # get-gao-depin-node.sh: OK

Signature Verified Successfully and get-gao-depin-node.sh: OK mean the file is the signed one. release-key.pem is the release’s public key. If either check fails, do not run the file: download it again.

  1. Installation on the Product network:
    curl -fsSLO https://sdk.gao.global/downloads/depin/releases/production/11c3833b9f77-g5/get-gao-depin-node.sh
    echo "b14cdb8f7df4a653fc1a8e8f2c4a8d63574e7f36508ee725777c23eb4e69bee2  get-gao-depin-node.sh" | sha256sum -c
    sudo sh get-gao-depin-node.sh --role relay-v2 --release 11c3833b9f77-g5 -- --domain node.example.com
  2. The bootstrap verifies the release, then the installer sets up gao-relay-node as a systemd service behind Caddy, creates the node’s key and prints the NodeID and the binding link.

Installer options (after --): --domain <name> (required), --profiles (default mailbox.v2,queue.v1,group-object.v1), --store-max-bytes (default 1 GiB), --max-inflight (default 256), --region, --tls-email, --no-start, --dry-run, --key-at-rest encrypted|plaintext (default encrypted).

Option What it sets
--domain Your node’s public DNS name. Its endpoint becomes https://<name>.
--profiles The profiles the node serves. Its binding must request the same ones, so choose before you bind.
--store-max-bytes The most the node stores, in bytes (at least 1 MiB).
--max-inflight Requests handled at once (1 to 65536).
--region A label shown for your node, such as eu-west. Optional.
--tls-email The contact address of your ACME account. Optional.
--no-start Writes the service and its configuration without starting them. No NodeID is printed.
--dry-run The installer prints its plan and writes nothing.

The installer ends with these lines (your values differ):

caddy reloaded: https://node.example.com → 127.0.0.1:8797
service (re)started on the installed binary (systemctl status gao-relay-node.service)
Node ID: 0x…
Your one step — bind this node to your Gao ID:

Then check the service and the release it runs:

Terminal window
systemctl status gao-relay-node.service --no-pager # active (running)
sudo gao-relay-node version # the release's commit and your platform
sudo cat /var/lib/gao-depin-bootstrap/bootstrap-receipt.json # the verified release, generation and digests
What Where
The node’s data /var/lib/gao-relay-node
The node key /etc/credstore.encrypted/gao-relay-node.key, encrypted (with --key-at-rest plaintext: /var/lib/gao-relay-node/node.key)
Public configuration /etc/gao-relay-node
Its HTTPS site /etc/caddy/gao-depin/relay-node.caddy. Your Caddyfile only gains one import line.
The verified release /var/lib/gao-depin-bootstrap/release/<release>/

Binding makes your Gao ID the owner of this NodeID. It creates no new key and changes none.

  1. The installer prints Node ID: 0x… and the node’s Bind Node link. Open it in a browser on any device and Connect Gao ID (the page’s Sign in with Gao ID button).

    Lost the link? sudo gao-relay-node id prints the NodeID again; enter it on Add a node.

  2. Press Request the binding command. The page shows one line that starts with sudo gao-relay-node bind. Copy the whole line and run it on the server:

    Terminal window
    sudo gao-relay-node bind '<the statement>'

    The node checks that the statement is for this NodeID, this network and the profiles it serves, then signs it with its own key.

  3. It prints <NodeID> CANONICAL_BOUND (active) bnd_…; the binding id must be the one the page shows, and the page then says Bound to your Gao ID. If the ids differ, you ran a line other than the one you obtained: stop and request a new one.

Whoever obtains a statement owns the node once it completes, so run only a line you obtained yourself. Never paste a private key, password or token into the binding page; it never asks for one.

Nothing to request: once bound, the node joins by itself through signed network discovery and renews its admission on its own. It checks that its own HTTPS address serves it, and then sends a join signed with its key. It retries every few minutes; sudo systemctl restart gao-relay-node makes it try at once. On the Product network one Gao ID can own any number of nodes, and up to 256 nodes are admitted at a time.

Happens by itself Your job
The node makes its key Point DNS at the server and open ports 80 and 443
Caddy obtains and renews the certificate Install Caddy
The node joins once bound, and retries: every minute while its HTTPS address does not serve it yet, every 6 minutes after a refusal Run the bootstrap with your DNS name
It renews its admission, at most every 6 hours Bind it once to your Gao ID
It reads and verifies the network’s signed directory Keep it online and upgrade it

The network admits a node only with a valid join signed by its own key and a verified owner binding that requests every profile it serves. The node asks to join only once its HTTPS address serves its own signed descriptor. If any of these is missing it stays out and keeps retrying; nothing falls back to an unsigned or unverified path.

Bound does not always mean admitted. Installing and binding make the node yours. Admission is a separate decision the network makes on each join, so a bound node can stay pending, for example when the network is not accepting new nodes or has reached its limit: up to 256 nodes are admitted at a time, and a place frees when another node leaves or its admission ends. While it is pending your dashboard shows it as bound, the journal shows self_join_refused, and it serves nothing and receives nothing. Leave it running. It keeps its key, NodeID and binding, keeps retrying, and joins by itself once the network accepts it. You do not need to install or bind again.

Your node carries real traffic from the start. Right after it joins, the network can assign application shards to it (only empty ones move), and new messages then land on your server. Treat it as production from its first admission: keep it online and plan your maintenance.

To confirm the join, read the journal and your dashboard (Verify installation).

Staking is not required to run a node. You install it, bind it to your Gao ID, join the network, renew its admission, relay traffic and serve without any stake.

Running a node is voluntary and unpaid. Gao DePIN has no live token, reward, payment, staking, bonding or validator earning. The network’s signed contribution accounting is not a token balance, and it gives no right to any payment, token or reward. If an economic programme is ever offered, it will be optional, come with its own terms, and never change what your node may do on the network. The binding terms are the Node Operator Terms (section 8).

More questions and answers: Staking and rewards in the complete user guide.

Terminal window
sudo journalctl -u gao-relay-node.service --no-pager | grep 'name=self_join' # event name=self_joined admitted_until=<unix time>
curl -fsS https://node.example.com/v2/healthz # {"status":"ok"}: the service runs
curl -fsS https://node.example.com/v2/readyz # {"status":"ready"}: it holds a current signed directory
curl -fsS https://node.example.com/v2/descriptor # its signed descriptor: NodeID, profiles, software
sudo gao-relay-node id # the NodeID

readyz does not prove admission: a node can be ready before it is bound. self_joined proves it joined. In the descriptor, software names the release version shown on Downloads (a version 0.1.0-production+<build> appears as gao-relay-node-0.1.0-production-<build>), and profiles lists what your node serves. A re-issued generation keeps the version of the bytes it re-issues.

Then Open Dashboard, signed in with the Gao ID that owns it, and find your NodeID:

The dashboard says Meaning
Serving the network. Done.
Bound to your Gao ID. The node joins by itself within 6 minutes Bound and not joined yet. Wait, or restart the service. If it stays this way, it is pending: see Join the network.
Recorded in the registry; the binding is not complete. Request a new line on the binding page and run it on the server.
Listed by the network but not serving now Check that the node is running and reachable over HTTPS.

Your node also appears on the public Network page once it is admitted, with its NodeID and its public HTTPS endpoint.

  • Reboots and crashes. The node and Caddy start at boot, and the node restarts by itself after a crash. Its NodeID and binding do not change.
  • Admission. An admission lasts 7 days. The node renews well before it ends, as long as its HTTPS address serves it.
  • Network loss. The node keeps retrying and recovers by itself. Its shard assignments last about 3 minutes without renewal; after that the network moves those shards to another node, and it may not get the same ones back.
  • Certificates. Caddy renews them. Keep ports 80 and 443 open.
  • Logs. sudo journalctl -u gao-relay-node.service -f. They hold request routes, status codes, timings and counts, never message content, keys or tokens. Keep Caddy out of debug logging, which would record request headers.
  • Monitoring. Poll /v2/healthz and /v2/readyz from outside the server, and check your dashboard. On the server, systemctl is-active gao-relay-node caddy should print active twice.
  • Before an upgrade, check whether your node is already current. Each release lists the SHA-256 of its relay binary for each architecture (Downloads, and the gao-relay-node-linux-<arch> line of its SHA256SUMS). Compare it with the bytes your node runs right now:

    Terminal window
    sudo sha256sum /proc/$(systemctl show -p MainPID --value gao-relay-node.service)/exe

    If the two are equal, your node already runs that release’s exact bytes: there is nothing to install and nothing to restart. Generation 5 is a re-issue of generation 4’s exact bytes with both architectures runtime-tested, so a node installed from generation 4 is already current.

  • Verify a release on your server without installing it: as an ordinary user, not root, run the bootstrap with --no-install, for example sh get-gao-depin-node.sh --role relay-v2 --release <release> --no-install. It downloads and verifies the signed release into your own ~/.local/state/gao-depin-bootstrap/, then stops: nothing system-wide changes and your node keeps running. Its verified binary is ~/.local/state/gao-depin-bootstrap/release/<release>/gao-relay-node. Run the bootstrap as root only to install.

  • Upgrade, when the bytes differ: run the install steps again with the newer release’s bootstrap and --release value, and pass the same options as before: every installer option you leave out returns to its default. The binary is replaced and the service restarted once; the node key and store are kept, so it stays the same NodeID, still bound to your Gao ID. Then check software in /v2/descriptor.

  • Adding a profile later: request it for your NodeID first, then serve it: a node serving a profile its owner has not requested cannot rejoin.

  • No downgrade: the bootstrap records the generation it installed and refuses an older one (exit 6). A faulty release is replaced by the next signed generation, never rolled back.

  • Release validity: a release past its Valid until date cannot be installed (exit 7). Install a newer one.

  • A failed install: if Caddy refuses the new site, the installer puts Caddy’s configuration back and changes nothing else. Fix the cause and run the same command again.

  • Reinstall on the same server: uninstalling keeps the node key, store and configuration, so installing again is the same node.

  • Moving to a new server: the node key is made on its server and never leaves it (it is stored encrypted for that server), so a new server is a new NodeID: install it and bind it as above. Before you retire the old server, withdraw its node (below).

  • Withdraw from the network: sudo systemctl stop gao-relay-node && sudo gao-relay-node leave. Stop it first: a running node joins again at its next renewal. To come back: sudo systemctl restart gao-relay-node. A withdrawal is not a hand-over: the network moves the node’s shards to another node, and anything undelivered on it is not moved. The NodeID stays bound to your Gao ID and listed on My nodes. Releasing a binding from My nodes is not available yet; a withdrawn node does not limit how many nodes your Gao ID can own.

  • Uninstall: sudo bash /var/lib/gao-depin-bootstrap/release/<release>/install-node.sh --mode relay-v2 --uninstall. It stops the node and sends its signed leave, and keeps the node key, store and configuration. The installer has no option that deletes them.

Symptom Likely cause Safe check Fix
Bootstrap exits 1 A wrong flag or a missing tool Read its message Install the tool it names, or correct the command
Bootstrap exits 3 No release metadata from any origin curl -fsSI "$R/SHA256SUMS" from the server (R as in Download and verify) Fix the server’s outbound HTTPS or DNS
Bootstrap exits 4 or 5 A signature, manifest or channel check failed Read its message Download again; never edit or bypass the check
Bootstrap exits 6 A newer generation is already installed, or the state directory belongs to another channel sudo cat /var/lib/gao-depin-bootstrap/floor Install that generation or a newer one; a host that ran the DEV bootstrap: pass --state-dir to keep them apart
Bootstrap exits 7 The release is expired or not yet valid date -u Fix the server clock, or use a newer release
Bootstrap exits 8 Wrong architecture, or a build-only release uname -m; the runtime status on Downloads Use amd64 or arm64. A build-only release is not open for installation: wait for a runtime-tested one, and do not override the refusal
Bootstrap exits 9 or 10 A downloaded file is not the signed one Read its message Download again
Bootstrap exits 11 bash is missing command -v bash Install bash and run it again
The installer stops for Caddy No caddy, or no caddy.service systemctl cat caddy.service Install Caddy from your distribution’s package (sudo apt-get update && sudo apt-get install -y caddy) and run the bootstrap again
caddy.service did not (re)load or caddy refused the configuration Another program holds port 80 or 443, or another Caddy site conflicts systemctl status caddy.service --no-pager Fix the cause and run the same command; the installer already put Caddy back as it was
WARNING: <domain> does not resolve yet DNS is not in place or not propagated getent hosts node.example.com Point the A or AAAA record at this server. Caddy obtains the certificate once it does
HTTPS fails: certificate error or no connection Caddy cannot obtain a certificate, or a firewall blocks a port sudo journalctl -u caddy.service -n 50 --no-pager Open ports 80 and 443 and correct DNS. Caddy retries by itself
gao-relay-node.service is not active The service failed to start sudo journalctl -u gao-relay-node.service -n 50 --no-pager Fix what the journal names. Never remove the key file to get it running: that creates a new node
Journal shows self_join_waiting_endpoint Your domain does not serve the node yet curl https://<domain>/v2/descriptor Check DNS and ports 80 and 443. The node checks again every minute
Journal shows self_join_refused retry_after=… The node is not bound yet, or the network refused the join for now Your dashboard: is it bound? Complete the binding, then sudo systemctl restart gao-relay-node. If it is bound, wait: the node retries by itself. Do not restart in a loop: a node has 12 joins an hour
bind prints an error An old or altered line, or the node is not yet installed Read its message Request a new line on the binding page and run that one
/v2/healthz answers and /v2/readyz does not No current signed directory date -u; the server’s outbound HTTPS Fix the clock or the network. The node recovers by itself
software in the descriptor is not the version on Downloads The upgrade did not run or did not restart the node sudo sha256sum /proc/$(systemctl show -p MainPID --value gao-relay-node.service)/exe, compared with the release’s digest If the digests differ, run the upgrade again
The node is not on your dashboard Signed in with another Gao ID, or not bound sudo gao-relay-node id, then compare Sign in with the owning Gao ID, or complete the binding
The dashboard says the NodeID is retired or revoked It can never serve again The dashboard A node with a new key is a new node: install and bind again
Symptom Likely cause Safe check Fix
The installer stops for systemd-creds systemd older than 250 systemd-creds --version Use Ubuntu 24.04 or Debian 12, or pass --key-at-rest plaintext and accept a key that is not encrypted at rest
The installer stops because Caddy logs at debug level Debug logging would record every request’s capability, proof and lease headers caddy adapt --adapter caddyfile --config /etc/caddy/Caddyfile In the Caddyfile’s global options remove debug, or add log { format filter { request>headers delete } }, then run the same command
gao-relay-node id failed after a change of hardware This host cannot decrypt the node key, which is tied to its TPM2 or credential secret The installer’s message Nothing was regenerated. If the key is truly lost, the node is lost: removing /etc/credstore.encrypted/gao-relay-node.key and installing again makes a new NodeID, to bind again
  • Your key stays yours. The node makes its key on your server. It never leaves it, and Gao never holds a copy. Nobody at Gao will ask for it; never share it, a password or a token. By default it exists only encrypted, tied to this server’s TPM2 or credential secret, so systemd alone can decrypt it, for this service.
  • No key backup. There is nothing to restore a node from: a lost server is a new NodeID, bound again. Copying the key to another server is never part of a recovery.
  • Signed releases. The bootstrap trusts only the Ed25519 release keys pinned in it, never a hostname, TLS alone or latest/. It verifies the signatures and every file’s SHA-256 before it runs anything, and it stops rather than falling back.
  • Trust anchors. The release’s network file carries the network’s public keys. The node accepts the directory, its leases and capabilities only if they verify under those keys.
  • Fail closed. An unbound node is refused, an unsigned answer is ignored, and a bad release is never installed.
  • Safe upgrades. Install only a verified release; the bootstrap refuses an older generation. The key and store stay in place.

Your node’s address is public. Applications must reach your node, so its domain and IP address are in the network’s public signed directory, in its own descriptor and on the public Network page, and its DNS name appears in public certificate logs. Running a node is not anonymous.

What Relay V2 protects, and what it does not

Section titled “What Relay V2 protects, and what it does not”

Relay V2 moves and holds data for applications. It does not make an application end-to-end encrypted. TLS protects data on its way to your node, and not from your node.

Profile Confidentiality What you can see as the operator
mailbox.v2 E2EE_REQUIRED: the application encrypts before sending Ciphertext, never the content
group-object.v1 E2EE_REQUIRED: the application encrypts before sending Ciphertext, never the content
queue.v1 TRANSPORT_ONLY: no end-to-end encryption Every payload

E2EE_REQUIRED is the application’s duty: the relay does not encrypt for it and cannot prove that it did. On every profile a node also sees metadata of what it holds: opaque routes and sender references, sizes, timing and client IP addresses. An application on queue.v1 must not be described as end-to-end encrypted.

Applications find your node through signed network discovery once it is admitted — Signed network discovery. There is no published Relay V2 client library yet.