Skip to content
PQWERAI Join the testnet

GhostDeploy · for hosting operators

Run nodes for many customers. Never their money.

The operator guide for a single machine, a fleet or a commercial service, the disclosure every Smartnode owner must read before delegating, deployment examples for each target, and what to do when GhostDeploy refuses something.

Operator guideRisk disclosureTroubleshooting

Generated from docs/OPERATOR_GUIDE.md, docs/COLD_SMARTNODE_RISKS.md and README.md in the GhostDeploy reference repository at commit 7d80dca (2026-11-28). GhostDeploy is a draft standard (GDS-1 0.1.0-draft) for public test network 20778: formats may still change, and the repository is not public yet.

Operator guide

For anyone hosting PQWERAI nodes: a single machine, a fleet, or a commercial service. Nothing here needs an account with, or permission from, the PQWERAI developers.

1. Requirements

  • Linux (amd64 today; arm64 waits for a Core arm64 build), systemd or Docker Engine with the compose plugin.
  • Clock synchronized (NTP). ghostdeploy doctor checks this and everything below.
  • Public TCP+UDP for each instance's P2P port (30303 + slot). Nothing else needs to be public.
  • VM images you clone MUST regenerate /etc/machine-id on first boot (cloud-init does this). Signers are bound to it.

2. Getting the release

The signed network manifest embedded in ghostdeploy pins the Core release bundle by SHA-256. Get the bundle from any mirror (HTTPS, IPFS, your own cache) and pass --artifact FILE; it is refused if the hash differs.

ghostdeploy network verify --network 20778     # shows the pinned release and how many trusted keys signed it

3. Many customers on one host

Each instance gets its own name, users (gd-<name>, gd-<name>-signer), directories, ports, Docker network and limits:

sudo ghostdeploy install --profile cold-smartnode --network 20778 --instance cust-a --artifact b.tgz --memory-mb 2048 --cpus 1
sudo ghostdeploy install --profile cold-smartnode --network 20778 --instance cust-b --artifact b.tgz --memory-mb 2048 --cpus 1
sudo ghostdeploy list

Give each customer an API token limited to their instance:

sudo ghostdeploy api token create --scopes read,smartnode --instances cust-a --ttl 8760h --label "customer A"

Several instances on one host are one failure domain: if the host dies, all of them stop. Spread a customer's Smartnodes over hosts and, ideally, providers. ghostdeploy concentration shows the network-wide picture.

4. Never duplicate a validator

GhostDeploy refuses to start a signer when:

  • the signer directory belongs to another instance, host or machine (copied, cloned or restored elsewhere);
  • the vote key file is not the key the directory was created for;
  • the journal is missing and the key is not new;
  • the key voted on chain within the last 2 epochs and this host has no journal for it;
  • during the start-time check, the chain records a vote of the key from somewhere else (a permanent DOPPELGANGER.json marker then blocks every start until you investigate).

Do not work around these. In particular:

  • never copy a signer directory or restore one from a backup (backups exclude it on purpose);
  • never run a signer under an autoscaler or with more than one replica;
  • to move a key use ghostdeploy migrate export/import, or better, rotate to a new key.

5. Backups, updates, migration

sudo ghostdeploy backup --instance cust-a          # chain data + config; no keys, no journals
sudo ghostdeploy restore --instance cust-a --file backup.tar.gz
sudo ghostdeploy update --instance cust-a --manifest newer-manifest.json --artifact new-bundle.tgz   # auto-rollback
sudo ghostdeploy migrate export --instance cust-a --validator v1 --out v1.gdmig --passphrase-file pass
# on the new host, after the epoch the export prints:
sudo ghostdeploy migrate import --instance cust-a --file v1.gdmig --passphrase-file pass
sudo ghostdeploy start --instance cust-a --signers

6. Selling hosting

  1. Create an operator identity key and sign an operator document (name, profiles, networks, payout address).
  2. Sign offers (gds.offer/1): profile, price per period in tPQAI wei, period length in blocks, minimum periods.
  3. Publish them: /v1/offers on your API, your website, IPFS, any directory. Clients verify the signature.
  4. Optionally register in the on-chain HostingOperatorRegistry (metadata URI + hash, refundable bond) and accept agreements through HostingMarket (escrowed prepaid periods; you claim elapsed periods).

7. Certification (optional)

sudo ghostdeploy conformance run --instance cust-a --reference https://rpc-testnet.pqwerai.com \
  --api https://127.0.0.1:8790 --api-fingerprint <sha256> --api-token <read token> --out report.json

The signed report proves technical conformance on your infrastructure. It is optional and never a condition to run nodes.

8. App profiles: public RPC and IPFS (experimental, compose/Coolify only)

public-rpc = Core + rpc-gateway + rpc-edge. The Core RPC stays on the instance network and host loopback. rpc-gateway is the monorepo's allowlisting gateway (internal/render/assets/apps/rpc-gateway, byte-identical, sha256 in PROVENANCE, checked again at every start): read methods and eth_sendRawTransaction only, eth_call gas capped at 1,000,000, finalized/safe resolved from Smartnode finality. rpc-edge (nginx-unprivileged, by digest) is the only published service: plain HTTP on 8546 + 10*slot, 20 req/s per IP (burst 60), 20 connections, 128 KiB bodies, 429 above that.

TLS is your choice. Either put the port behind a TLS proxy on the same host and firewall it from the internet, or give the proxy its own per-client limits (behind a proxy, rpc-edge sees one client). Caddy:

rpc.example.org {
    reverse_proxy 127.0.0.1:8546
}

nginx (host): limit_req_zone $binary_remote_addr zone=rpc:10m rate=20r/s; then a server { listen 443 ssl; ... location / { limit_req zone=rpc burst=60 nodelay; proxy_pass http://127.0.0.1:8546; } }.

ipfs = Kubo only (no Core, no release bundle; ipfs/kubo v0.43.2 pulled by digest). Swarm 4001 + slot tcp+udp public; RPC API 127.0.0.1:5001 + 10*slot and gateway 127.0.0.1:8080 + 10*slot, never public (the API is full control of the node). Repo in /var/lib/ghostdeploy/<name>/ipfs (excluded from backups; keep a copy of its config if the peer id matters). Kubo server profile, Datastore.StorageMax 180GB on first start (change with docker compose -p gd-<name> exec ipfs ipfs config Datastore.StorageMax 1500GB). Joining the IPFS reward share is a separate on-chain enrolment done by the reward address owner with the PQWERAI IPFS tooling; GhostDeploy never holds that key and does not enrol the node.

explorer, ghostllm-* stay unavailable; ghostdeploy profiles shows the exact missing pieces.

Delegating a Smartnode: what owners keep and what they risk

This disclosure applies to every GhostDeploy provider, including the PQWERAI team's own infrastructure. Show it to your customers.

Read this before you let anyone else run your Smartnode's signer. It applies to every GhostDeploy provider, including the PQWERAI team's own infrastructure.

What the provider never gets

  • Your seed phrase or spending key. GhostDeploy has no way to ask for it, and no provider following the standard needs it. If a provider asks for it, do not give it.
  • Your stake. It is locked by the protocol under your owner address. Only your owner address can exit and withdraw it.
  • Your rewards. Smartnode rewards are paid to your owner address by the protocol.
  • Your GhostShield collateral and sponsorships. Every GhostShield operation needs your owner key.

What the provider does get

  • The vote key of your Smartnode (an ed25519 key that only signs finality votes). It is created on the provider's machine, and you link it to your owner address by sending the Register transaction yourself.

What can go wrong

Event Effect on you Can GhostDeploy prevent it?
The provider (or an attacker on its machine) signs two conflicting votes with your vote key 25% of your stake and delegations is burned and the Smartnode is force-exited It makes this hard to do by accident (fences, one-shot enrollment, live machine binding, doppelganger detection, journals never restored). It cannot stop a provider who deliberately misuses the key.
The provider's machine goes offline No rewards while offline. After 12 checkpoints without a vote the Smartnode is force-exited (no slashing) and you must register again. Monitoring (status, the API) shows it; you can move to another provider.
The provider disappears Same as offline. Your stake is safe and you can exit or rotate to a new provider. Rotate: a new provider makes a new key, you send Rotate. Your stake and identity are kept.
A provider bills you through HostingMarket and you disagree with the service The contract pays the provider only for periods that have started; you can cancel any time and get unstarted periods back. It does not judge uptime. A provider can delay your refund by opening a dispute, up to the dispute timeout. Choose an arbiter both sides trust when opening the agreement.

Limits of today's protocol (testnet 20778)

  • Your owner must be a regular account (EOA). The registry refuses contract callers, so multisig custody is not possible.
  • There is no separate reward address: rewards go to the owner address.
  • There is no operator role in GhostShield: renewals and sponsorships need your owner key online.

Changing provider safely

Prefer rotation: ask the new provider for a PoP for a new key (ghostdeploy smartnode pop --rotate <validator id>), send the Rotate transaction from your wallet, and let the old provider stop its signer after the switch. The old and new keys have different validator IDs, so the switch-over cannot cause a slashable double vote.

Deployment examples

Every target below is experimental. Live installs on chain 20778 passed signed conformance runs on Docker Compose (full-node: 11 pass, 0 fail) and systemd (full-node: 10 pass, 0 fail); the other targets are rendered and tested without a real host. The Helm chart has not been run through helm lint or a real cluster.

Any environment

ghostdeploy render --profile P --network 20778 --format compose|systemd|coolify|kubernetes|cloud-init|env prints the exact files for any environment without touching the host, so providers can review them or feed their own tooling. install applies the compose, systemd and coolify targets directly.

Management API for customers

sudo ghostdeploy api token create --scopes read,smartnode --instances alice --label "customer alice"
sudo ghostdeploy api serve --listen :8790      # prints the certificate fingerprint clients must pin

OpenAPI 3.1: the API reference. Reference clients: sdk/python, sdk/typescript. The API is never the node's JSON-RPC and never proxies it.

Selling hosting

ghostdeploy key generate --out operator.key --password-file pw
ghostdeploy operator sign --in operator.json --key operator.key --password-file pw --out operator.signed.json
ghostdeploy offer sign --in offer.json --key operator.key --password-file pw --out offer.signed.json
sudo ghostdeploy offer publish --file offer.signed.json        # served at /v1/offers; publish anywhere else too

Offers are trusted by signature, not by where they are hosted. The optional HostingMarket contract escrows prepaid periods in tPQAI; see contracts/README.md.

The optional HostingOperatorRegistry and HostingMarket contracts run on public test network 20778 only (experimental, not independently audited): addresses and checks.

Troubleshooting

Most refusals are safety features. The fix is almost never to force them.

SymptomWhat it meansWhat to doSource
ghostdeploy status exits 1 or 21 = degraded, 2 = down (0 = healthy).Run ghostdeploy doctor (read-only: OS, CPU, RAM, disk, clock, ports, Docker/systemd, manifest, genesis, peers, key file modes, duplicate identity).README, SPEC §6
Install refuses the release artifactIts SHA-256 differs from the pin in the signed network manifest.Get the bundle from another mirror; ghostdeploy network verify --network 20778 shows the pinned release.Operator guide §2
Install refuses the network manifestSignature threshold not met, manifest expired, genesis files do not match the pins, or a lower sequence than one already accepted.Use a current manifest signed by the network's trust root; never lower the threshold.SPEC §2
Install refuses a profileThe profile is unavailable in its file (today: explorer, ghostllm-cpu, ghostllm-enterprise, ghostllm-gpu).See the reason on the profiles page.SPEC §0, profiles
A signer refuses to startIts directory belongs to another instance, host or machine; the vote key is not the key the directory was made for; the journal is missing for a key that is not new; or the key voted in the last 2 epochs without a local journal.Do not work around it. Never copy or restore a signer directory; move keys with migrate or, better, rotate.Operator guide §4
DOPPELGANGER.json blocks every startDuring the start-time check the chain recorded a vote of this key from somewhere else.Another signer holds the key: investigate before anything else; the marker is permanent.Operator guide §4, SPEC §7 S8
A signer on a cloned VM refuses to startThe fence is bound to the live /etc/machine-id, which the image did not regenerate.Regenerate the machine id on first boot (cloud-init does this) and create a new key or migrate properly.Operator guide §1, SPEC §7
restore will not restore signer stateBy design: backups exclude signer journals and restore refuses them.Restore chain data and config only; the signer keeps its own journal.SPEC §7 S3
migrate import keeps waitingIt waits until the chain shows no vote from the old signer for 2 epochs after the handoff.Make sure the old signer is stopped; if the old host is unreachable, rotate to a new key instead.SPEC §7.3
A Smartnode was force-exitedIt missed 12 checkpoints without a vote (no slashing).Register again, or rotate to a working provider.Risk disclosure
disk_quota: not_enforcedThe filesystem has no project quota for the instance.Use a dedicated volume per instance if you need hard limits.SPEC §4
API client reports a fingerprint mismatchThe host certificate is not the one you pinned.Re-check the fingerprint printed by ghostdeploy api serve; the clients never fall back to unverified TLS.SDK READMEs