/genlayernode:genlayernodefrom genlayernode
Interactive wizard to set up or update a GenLayer validator node on Linux for any active network (Bradbury Phase 3, Clarke, Mainnet later). Resolves phase, node version, and config at run time.
Ships in genlayernode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Interactive wizard to set up a GenLayer validator node from scratch on a Linux server, on the network the user chooses, on that network's current phase, with a node release that supports it.
GenLayer runs several networks and replaces them over time: Bradbury phases 1 → 2 → 3, Clarke, then Mainnet. Each phase or network is a new consensus deployment, often on the same chain id and the same node release line (Bradbury Phase 3 and Clarke: both chain 4221, node v0.6, live at the same time), so stale or mixed-up values fail silently: the node syncs the wrong deployment and the CLI stakes on it.
networks.yaml lists the networks (identity + where their values are published). It is the
only file edited when a phase or network launches.scripts/ and cross-checked against the
genlayer-networks deployment book: follow network-resolution-procedure.md (R1–R5) at the
start of every install and update.| Script | Runs on | Does |
|---|---|---|
scripts/resolve-version.sh --line <release_line> | anywhere | Latest stable version on the network's release line (--list, --check, --pre) |
scripts/resolve-network.sh ... | server | Fetches config + manifest, verifies them against the current phase. Exit 3 = docs still on an older phase: stop |
scripts/apply-network-config.sh ... | server | Writes the verified values into config.yaml, installs the manifest |
scripts/setup-cli-network.sh ... | laptop | Pins the genlayer CLI to the current phase; prints NET for --network "$NET" |
scripts/list-llm-providers.sh <node-dir> | server | LLM providers the installed release supports |
Updates are classified first (pre-update-checklist.md Phase 0): patch (same phase, same
line), release line, or network phase change (new stake, new data directory, fresh
config: update-procedure.md → "Network Phase Change"; never a patch, even on the same version line).
CRITICAL REQUIREMENT: At the very beginning of ANY setup or upgrade operation, you MUST display a complete overview of ALL steps that will be performed. This is NON-NEGOTIABLE.
## GenLayer Validator Node Setup
I'll guide you through the complete validator node installation. Here's what we'll do:
**Step 0: Resolve Network, Phase and Version**
- Network from networks.yaml (active networks only), its current phase
- Node version: latest stable on the phase's release line (resolve-version.sh)
- Shown here before anything is installed: <network>, <phase>, <version>
**Step 1: Determine Server Location**
- Identify where the validator will run (local/GCP/AWS/SSH)
- Configure access method for commands
**Step 2: Verify Prerequisites**
- Check system architecture (must be x86_64)
- Verify RAM, CPU, and disk space
- Check Docker, Python 3.10+ (pip, venv), cosign installations
- Install what is missing (after you confirm)
**Step 3: Full Node, New or Existing Validator**
- Full node: no staking, no operator key
- Pin the CLI to the current phase (setup-cli-network.sh)
- New validator, or validator from a previous phase: run the staking wizard on your machine (deployed self-stake minimum)
- Existing on the current phase: provide validator wallet address
**Step 4: Download & Extract Node Software**
- Download GenLayer node tarball from official storage
- Verify it (cosign signature + SHA256)
- Install to /opt/genlayer-node/${VERSION}/ with the release install.sh
- Set up directory structure and symlinks
- Run GenVM setup (install.sh runs it)
**Step 5: Configure Environment (.env)**
- Create .env with empty secret values
- You set the RPC provider key manually (if your network's provider needs one)
- Set LLM provider (you'll add API key manually)
**Step 6: Configure Node (config.yaml)**
- Fetch the network config + protocol manifest and verify them against the current phase (resolve-network.sh)
- Write them into config.yaml (apply-network-config.sh): never typed by hand
- Set validator wallet address and operator address
- Set node mode (full or validator)
**Step 7: Set Up Operator Key (validator only)**
- Import keystore from staking wizard, OR
- Copy from previous installation, OR
- Generate new operator key
**Step 8: Start WebDriver Container**
- Launch WebDriver via Docker Compose
- Wait for health check to pass
**Step 9: Run Doctor Check**
- Verify GenVM binaries are installed
- Verify WebDriver connectivity
**Step 10: Choose Deployment Method**
- Systemd service (recommended)
- Docker Compose
- Manual (screen/tmux)
**Step 11: Verify Node Running**
- Check health endpoint: `network` must be the current phase's name
- Verify sync status
**Estimated time: 20-45 minutes**
Ready to begin?
Always show a brief description of what will happen:
## Step 4: Download & Extract Node Software
This step will:
1. Download the GenLayer node <VERSION> tarball (resolved in Step 0)
2. Create directory /opt/genlayer-node/<VERSION>/
3. Extract binary, configs, and GenVM files
4. Set up symlinks for easy access
5. Run GenVM setup to download dependencies (~2 min)
Proceeding...
NEVER skip showing what a step will do before executing it.
This skill guides you through the complete validator node installation process. When you invoke this skill, it will:
Total time estimate: 20-45 minutes depending on your experience level and setup method.
If you are UPDATING an existing node, read this first:
NEVER stop your old node before preparing the new version!
Traditional update process (WRONG - causes 3-4 min downtime):
Stop node -> Download -> Extract -> GenVM setup (2 min) -> Start
Correct procedure (10-15 sec downtime):
Download -> Extract -> GenVM setup WHILE OLD NODE RUNS
THEN: Stop old -> Switch symlinks -> Start new
Impact of wrong procedure:
See update-procedure.md for detailed zero-downtime update steps.
For fresh installations, see install-procedure.md for the step-by-step installation guide.
For patch versions (v0.6.x) on the same phase, the data directory MUST be shared, not copied
(v0.6 keeps genvm.db, ops.db and the keystore there). A new phase gets its own data
directory, even on the same release line: its chain state and node state are different.
Correct structure (example: Bradbury Phase 3; <deployment_dir>-<minor>):
/opt/genlayer-node/bradbury-phase-3-v0.6/data/node/ <- Shared: genvm.db, ops.db, keystore/, logs/
/opt/genlayer-node/v0.6.0/data -> symlink to ../bradbury-phase-3-v0.6/data
/opt/genlayer-node/v0.6.1/data -> symlink to ../bradbury-phase-3-v0.6/data
Installs made before this convention use /opt/genlayer-node/v0.6/data; patch updates keep
whatever the running version links to.
Two LLM strategies are available:
OPENROUTERKEY)# GenVM config dir = <genvm.root_dir in config.yaml>/config (v0.6+: opt/genvm/<ver>/config)
GENVM_CFG=$(readlink -f "$(sed -n 's/^ *root_dir: *//p' configs/node/config.yaml)")/config
# 1. Apply release LLM config (has all backends)
cp ${GENVM_CFG}/genvm-modules-llm-release.yaml \
${GENVM_CFG}/genvm-module-llm.yaml
# 2. For greybox strategy, switch lua script:
sed -i 's/genvm-llm-default\.lua/genvm-llm-greybox.lua/' \
${GENVM_CFG}/genvm-module-llm.yaml
# 3. Enable your provider (replace <provider> with name from mapping):
# Provider mapping (env var -> config name):
# HEURISTKEY -> heurist
# COMPUT3KEY -> comput3
# IOINTELLIGENCEKEY -> ionet
# LIBERTAI_API_KEY -> libertai
# ANTHROPICKEY -> anthropic
# GEMINIKEY -> google
# OPENROUTERKEY -> openrouter
# MORPHEUS_API_KEY -> morpheus
sed -i '/^ <provider>:/,/^ [a-z]/ s/enabled: false/enabled: true/' \
${GENVM_CFG}/genvm-module-llm.yaml
Symptom if not enabled: Node fails to start with "module_failed_to_start" error (v0.6: the node starts degraded and doctor reports no usable LLM provider).
To update the Lua script or LLM YAML without a full redeploy, see
common-procedures.md -> "Update Greybox Config on Running Node".
Key points:
curl -X POST http://127.0.0.1:<port>/module/stop then /module/startWhen a validator reports 504 Gateway Timeout, get chain ID, validator is banned, or NO_PROVIDER_FOR_PROMPT, triage before changing configuration:
401 (doctor: GenLayer Chain WebSocket fails; the node exits at start) means the RPC provider key GENLAYERNODE_ROLLUP_GENLAYERCHAINRPCKEY is empty or wrong in .env (Testnet Bradbury: Conduit).dependencies: get chain ID: 504 Gateway Timeout usually means the configured rollup RPC is unavailable or overloaded. Confirm with eth_chainId/eth_blockNumber against the configured HTTP RPC and compare with other operators before editing local node files./health with temporary ban until epoch ...: validator is banned means the node may be healthy but consensus has temporarily banned the validator. Fix the root cause first, then request unban with the validator wallet address.NO_PROVIDER_FOR_PROMPT means GenVM could not find an enabled LLM backend that satisfies the prompt capabilities. Check enabled providers, API keys, JSON/image capability support, and restart the affected GenVM LLM module after config changes..env contents.doctor before restart when possible. Run cd /opt/genlayer-node && sudo -u genlayer bash -c 'set -a; . ./.env; set +a; ./bin/genlayernode doctor' to catch provider/config issues before putting the service back into rotation.Before starting, ensure your setup meets these requirements:
setup-cli-network.sh), not on the servergenlayer staking epoch-info --network "$NET"; 42,000 GEN is the protocol default) if creating new validatornetworks.yaml → rpc_key_required, rpc_key_portal) — full nodes and validatorsflowchart TD
A[1. Environment Setup] --> B[2. Wallet & Staking]
B --> C[3. Software Download]
C --> D[4. Configuration]
D --> E[5. Operator Key Setup]
E --> F[6. LLM Configuration]
F --> G[7. Start Services]
G --> H[8. Verification & Cleanup]
When specifying a version:
scripts/resolve-version.sh --check <version>networks.yaml → node_release_line): scripts/resolve-version.sh --line <release_line>.
Not the newest release overall: a newer line may not support the current phasescripts/resolve-version.sh --line <release_line> --listThe skill automatically handles:
/opt/genlayer-node/<VERSION>/)/opt/genlayer-node/<deployment_dir>-<minor>/data:
genvm.db, ops.db, keystore). A new phase gets a new data directory, even on the same release lineGuide validators through complete GenLayer node installation including:
scripts/list-llm-providers.sh)/opt/genlayer-node/ # example: Bradbury Phase 3 on v0.6.0
├── bradbury-phase-3-v0.6/data/node/ # Shared data directory (this phase, all v0.6.x)
│ ├── genvm.db
│ ├── ops.db
│ ├── keystore/
│ └── logs/
├── v0.6.0/ # Version-specific directory
│ ├── bin/genlayernode
│ ├── opt/genvm/<genvm-version>/
│ ├── docker-compose.yaml
│ ├── .env
│ ├── data -> ../bradbury-phase-3-v0.6/data
│ └── configs/node/{config.yaml,protocol-manifest.json}
├── bin -> v0.6.0/bin # Symlinks for easy access
├── opt -> v0.6.0/opt
├── data -> v0.6.0/data
├── configs -> v0.6.0/configs
├── docker-compose.yaml -> v0.6.0/docker-compose.yaml
├── .env -> v0.6.0/.env
├── alloy-config.river -> v0.6.0/alloy-config.river # Symlink (ships with tarball)
└── genvm-module-web-docker.yaml -> v0.6.0/genvm-module-web-docker.yaml
networks.yaml → rpc_key_required; Bradbury: Conduit)| Setting | Default Value |
|---|---|
| RPC URL | No default - resolved (resolve-network.sh) |
| WebSocket | No default - resolved (resolve-network.sh) |
| Consensus Address (AddressManager) | Per-deployment — no default (v0.6+: consensus.consensusaddress in config.yaml) |
| Chain ID | Per-deployment — no default (v0.6+: consensus.chainid, decimal) |
| Genesis Block | Per-deployment — AddressManager deploy block (v0.6+: consensus.genesis; missing ⇒ scans from block 0) |
| Protocol Manifest | Per-deployment (v0.6+: the network's manifest, saved at configs/node/protocol-manifest.json) |
The per-deployment values are resolved and verified by scripts/resolve-network.sh and written by
scripts/apply-network-config.sh (install-procedure.md Phase 5). Never ask the user for them and
never type them from memory.
| Install Path | /opt/genlayer-node |
| RPC Port | 9151 |
| Ops Port | 9153 |
| Admin Port | 9155 |
| Metrics Interval | 15s |
| Provider | Environment Variable |
|---|---|
| Heurist | HEURISTKEY |
| Comput3 | COMPUT3KEY |
| io.net | IOINTELLIGENCEKEY |
| LibertAI | LIBERTAI_API_KEY |
| Anthropic | ANTHROPICKEY |
GEMINIKEY | |
| xAI (Grok) | XAIKEY |
| Atoma | ATOMAKEY |
| OpenRouter | OPENROUTERKEY |
| Morpheus | MORPHEUS_API_KEY |
| OpenAI | OPENAIKEY |
The skill guides through these steps interactively:
CRITICAL FIRST STEP: Before any installation begins, determine where the validator will run and how to access it.
Question: "Where will you run the validator node?"
Options:
Impact: This choice affects ALL subsequent steps:
Verify system meets requirements before starting:
# Check architecture (must be x86_64)
uname -m
# Check Docker and Docker Compose
docker --version
docker compose version
# Check Python 3.10+ with pip and venv
python3 --version
python3 -m pip --version
python3 -c 'import venv, ensurepip' # 'python3 -m venv --help' passes without python3-venv
# Check cosign (release signature)
cosign version
Minimum requirements:
Install what is missing (after the user confirms) — see install-procedure.md -> Prerequisites:
apt-get install -y python3 python3-pip python3-venv docker.io docker-compose-v2 jq, cosign from
its pinned GitHub release .deb. Node.js is not needed on the server.
Full node (node.mode: "full"): no staking wizard, no operator key — skip to Download & Setup.
Note: The staking wizard runs on your local machine (not the server), since it manages wallet keys.
New: Run staking wizard (deployed self-stake minimum: genlayer staking epoch-info --network "$NET")
npm install -g genlayer@latest # >= 0.40.1
NET=$(scripts/setup-cli-network.sh --cli-network "$CLI_NETWORK" \
--deployment-dir "$DEPLOYMENT_DIR" --deployment-key "$DEPLOYMENT_KEY") # pin the current phase
genlayer staking wizard --network "$NET"
The wizard is fully interactive (requires TTY) and guides you through:
--skip-identity)Since Bradbury Phase 2 the operator must be an account the CLI holds, so it can sign the proof of possession. An external operator address alone fails.
Three addresses are produced:
| Address | Purpose |
|---|---|
| Owner | Cold wallet that controls withdrawals (stays on local machine) |
| Operator | Hot wallet that signs blocks (goes on the server via keystore) |
| Validator Wallet | Smart contract deployed on-chain (used in config.yaml) |
After the wizard, save:
config.yamlconfig.yamlGENLAYERNODE_PASSWORD (Docker: NODE_PASSWORD)After the wizard, fund the operator: The operator account starts with 0 GEN and needs funds for gas fees to sign validation transactions.
# Check operator balance
genlayer account show --account "Operator Name"
# Send GEN from owner to operator (recommended: 10 GEN)
genlayer account send 0xOPERATOR_ADDRESS 10gen --account "Owner Name" --network "$NET"
See staking-wizard-procedure.md for the complete step-by-step wizard walkthrough, alternative CLI commands, and troubleshooting.
Existing: Skip to download (must have validator wallet address and operator keystore).
First check it is registered on the current phase: genlayer staking validator-info 0xVALIDATOR --network "$NET".
A validator from a previous phase must join again.
Note: For remote servers, download to the remote server, not your local machine.
Resolve the version (never assume it):
VERSION=$(scripts/resolve-version.sh --line "$RELEASE_LINE") # latest stable on the network's line
scripts/resolve-version.sh --line "$RELEASE_LINE" --list # to let the user pick
Download, verify and install ${VERSION}:
See install-procedure.md Phase 2 for the exact commands. In short:
base=https://storage.googleapis.com/gh-af/genlayer-node/bin/amd64/${VERSION}
# Download to a temp dir the genlayer user can read (home directories are 750 on Ubuntu)
DL=$(mktemp -d /tmp/genlayer-${VERSION}.XXXX) && chmod 755 "$DL" && cd "$DL"
# All four files must exist — stop on any 404 (never fall back to an older version)
curl -fI ${base}/genlayer-node-linux-amd64-${VERSION}.tar.gz # + _SHA256SUMS, .sigstore.json, install.sh
wget ${base}/genlayer-node-linux-amd64-${VERSION}.tar.gz ${base}/genlayer-node_${VERSION}_SHA256SUMS \
${base}/genlayer-node_${VERSION}_SHA256SUMS.sigstore.json ${base}/install.sh
# Verify before extracting (stop on any failure; the tarball must be listed in SHA256SUMS)
cosign verify-blob --bundle genlayer-node_${VERSION}_SHA256SUMS.sigstore.json \
--certificate-identity-regexp '^https://github\.com/genlayerlabs/genlayer-node/\.github/workflows/release-package\.yml@' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com genlayer-node_${VERSION}_SHA256SUMS \
&& grep -q "[ *]genlayer-node-linux-amd64-${VERSION}.tar.gz$" genlayer-node_${VERSION}_SHA256SUMS \
&& sha256sum -c genlayer-node_${VERSION}_SHA256SUMS --ignore-missing \
|| { echo "VERIFICATION FAILED - stop, do not install" >&2; rm -f install.sh; false; } # no install.sh: the install below cannot run
# Extract + GenVM setup in the final directory (as the genlayer service user)
sudo install -d -o genlayer -g genlayer /opt/genlayer-node
chmod +x install.sh
sudo -u genlayer -H ./install.sh --install-dir /opt/genlayer-node/${VERSION} \
--tarball genlayer-node-linux-amd64-${VERSION}.tar.gz
# Shared data directory (one per phase + release line) + symlinks (install-procedure.md Phase 0/2)
MINOR=$(echo ${VERSION} | grep -oE '^v[0-9]+\.[0-9]+'); DATA_KEY=${DEPLOYMENT_DIR}-${MINOR}
sudo -u genlayer mkdir -p /opt/genlayer-node/${DATA_KEY}/data/node/keystore /opt/genlayer-node/${DATA_KEY}/data/node/logs
sudo -u genlayer ln -sfn ../${DATA_KEY}/data /opt/genlayer-node/${VERSION}/data
cd /opt/genlayer-node
for p in bin opt configs data docker-compose.yaml alloy-config.river alloy-healthcheck.sh genvm-module-web-docker.yaml .env; do
sudo -u genlayer ln -sfn ${VERSION}/$p $p
done
# v0.6+: genvm lives under opt/genvm/<ver> — the `opt` link is REQUIRED, else `./opt/genvm/...` won't resolve
install.sh runs the GenVM setup (verifies runners, patches the binaries' interpreter path, precompiles). It writes the install directory's absolute path into the GenVM binaries: never move the directory afterwards.
IMPORTANT: Always start from the .env.example included in the downloaded artifact. This ensures all required variables are present.
First ask if user wants to copy existing .env or create from example:
.env.example, then customizeCreate .env from example:
sudo -u genlayer cp /opt/genlayer-node/${VERSION}/.env.example /opt/genlayer-node/${VERSION}/.env
sudo chmod 600 /opt/genlayer-node/${VERSION}/.env
Key values to configure:
RPC key - The RPC/WebSocket URLs are in config.yaml (step 4). The RPC provider's API key, if the network needs one (networks.yaml → rpc_key_required), goes here:
GENLAYERNODE_ROLLUP_GENLAYERCHAINRPCKEY=<set by the user>
LLM API Key - Set ONE, for a provider the installed release supports
(scripts/list-llm-providers.sh /opt/genlayer-node/${VERSION} prints provider and variable), e.g.:
OPENROUTERKEY=HEURISTKEY=Node Password (validator only) - the operator keystore's export passphrase:
GENLAYERNODE_PASSWORD= (binary) or NODE_PASSWORD= (Docker)
Docker only - NODE_VERSION=${VERSION} (exact, never latest)
After creating .env, instruct user to:
gcloud compute ssh / aws ssm start-session)sudo nano /opt/genlayer-node/.envIMPORTANT: Always start from the config included in the downloaded artifact (configs/node/config.yaml; install.sh already set its genvm.root_dir). This ensures the config format is compatible with the installed version.
First ask if user wants to copy existing config or use example:
genvm.root_dir).
Only on the same phase: after a phase change the old config names the old deployment.Network values and protocol manifest — required since v0.6. Resolved and verified, never typed
(install-procedure.md Phase 5):
scripts/resolve-network.sh --config-file "$CONFIG_FILE" --chain-id "$CHAIN_ID" \
--deployment-dir "$DEPLOYMENT_DIR" --deployment-key "$DEPLOYMENT_KEY" \
--previous-dirs "$PREVIOUS_DIRS" --out /tmp/genlayer-network # must exit 0
sudo -u genlayer scripts/apply-network-config.sh --resolved /tmp/genlayer-network \
--node-dir /opt/genlayer-node/${VERSION} [--validator 0x... --operator 0x...]
rollup: RPC/WebSocket URLs and provider; consensus: consensusaddress, chainid
(decimal), genesis; installs the manifest at consensus.manifestpathresolve-network.sh: the published docs still describe an older phase. Stop;
get the current phase's files from the GenLayer team and re-run with --config-url/--manifest-urlnode.mode: "full" or "validator" (set by the wizard below)After copying the base config, go through each configuration GROUP and ask whether to modify or keep defaults:
Group 1: Node Identity
Group 2: RPC Endpoints
Group 3: Ops Endpoints
Group 4: Admin Endpoints
Group 5: Metrics Configuration
Note: Rollup URLs (RPC, WebSocket) and contract addresses are configured in config.yaml. Only the RPC key and other secrets are in .env.
First ask how user wants to provide the operator key:
Source options:
Upload flow:
Ask which type of file user has (keystore.json or keystore directory)
Create the keystore directory first (required before upload):
sudo install -d -m 700 -o genlayer -g genlayer /opt/genlayer-node/${VERSION}/data/node/keystore
Provide upload instructions based on server location (from Step 0):
For local setup:
# Copy keystore.json
cp ./keystore.json /tmp/keystore.json
# Or copy keystore directory
cp -r ./keystore/* /opt/genlayer-node/${VERSION}/data/node/keystore/
For remote SSH server:
# Upload keystore.json
scp ./keystore.json username@hostname:/tmp/keystore.json
# Or upload keystore directory
scp -r ./keystore/* username@hostname:/opt/genlayer-node/${VERSION}/data/node/keystore/
For GCP VM:
# Upload keystore.json
gcloud compute scp ./keystore.json instance-name:/tmp/keystore.json \
--project=project-id --zone=zone
# Or upload keystore directory
gcloud compute scp --recurse ./keystore/* instance-name:/opt/genlayer-node/${VERSION}/data/node/keystore/ \
--project=project-id --zone=zone
For AWS EC2:
# Upload keystore.json (assuming SSH access)
scp -i ~/.ssh/your-key.pem ./keystore.json ec2-user@instance-ip:/tmp/keystore.json
# Or upload keystore directory
scp -i ~/.ssh/your-key.pem -r ./keystore/* ec2-user@instance-ip:/opt/genlayer-node/${VERSION}/data/node/keystore/
Wait for user confirmation
Verify upload:
ls -la /opt/genlayer-node/${VERSION}/data/node/keystore/
For keystore.json: install the encrypted file as-is (no passphrase on any command line):
# Stop if operator.json exists: the keystore is shared by all v0.6.x versions (never overwrite it)
sudo test ! -e /opt/genlayer-node/${VERSION}/data/node/keystore/operator.json && \
sudo install -m 600 -o genlayer -g genlayer /tmp/keystore.json \
/opt/genlayer-node/${VERSION}/data/node/keystore/operator.json && \
sudo shred -u /tmp/keystore.json
Note: the user sets GENLAYERNODE_PASSWORD (Docker: NODE_PASSWORD) in .env to the export passphrase; doctor does not check it; the node unlocks the keystore when it starts
For keystore directory: Already in correct location, just verify contents show UTC--* file
Note: The keystore lives in the shared data directory (/opt/genlayer-node/<deployment_dir>-<minor>/data/node/keystore/, reached through the version's data link).
WebDriver is required for web-based contract operations. Start it before running doctor check:
cd /opt/genlayer-node && sudo docker compose up -d # sudo: .env is mode 600 (secrets)
# Optional: read-only Docker API proxy for WebDriver metrics (binary node: DOCKER_HOST=tcp://127.0.0.1:2375)
sudo docker compose up -d docker-socket-proxy
Wait for WebDriver to be healthy (at most 3 minutes):
for i in $(seq 1 36); do
sudo docker inspect --format='{{.State.Health.Status}}' genlayer-node-webdriver | grep -q '^healthy$' && break
echo "Waiting for WebDriver to be healthy..."
sleep 5
done
sudo docker inspect --format='{{.State.Health.Status}}' genlayer-node-webdriver
Verify WebDriver is running:
sudo docker ps | grep webdriver
curl -s http://localhost:4444/status | jq '.value.ready'
Run the doctor command to verify all configuration is correct:
# v0.6+: the subcommand is `doctor` (NOT `doctor check`). Use `set -a` so .env keys are
# EXPORTED to the child process. Doctor checks the consensus deployment against
# consensus.consensusaddress / chainid and the protocol manifest from config.yaml.
cd /opt/genlayer-node
sudo -u genlayer bash -c 'set -a; . ./.env; set +a; ./bin/genlayernode doctor'
Expected output on success: all checks ✓ — GenLayer Chain RPC + WebSocket, consensus deployment (registry sealed, chain id and contracts match the manifest), validator/operator wallet (validator mode), GenVM binaries + module config, at least one LLM provider, and WebDriver connectivity.
If checks fail:
opt symlink is missing —
ln -sfn ${VERSION}/opt /opt/genlayer-node/opt (v0.6+), then re-run..env has it: you sourced .env without set -a (vars not exported).GENLAYERNODE_ROLLUP_GENLAYERCHAINRPCKEY is empty or wrong.consensusaddress / chainid do not match it.docker logs genlayer-node-webdriver.Ask user which deployment method they prefer:
/etc/systemd/system/genlayer-node.service:[Unit]
Description=GenLayer Node
After=network.target docker.service
Requires=docker.service
[Service]
Type=simple
User=genlayer
Group=genlayer
WorkingDirectory=/opt/genlayer-node
EnvironmentFile=/opt/genlayer-node/.env
Environment=DOCKER_HOST=tcp://127.0.0.1:2375
ExecStart=/opt/genlayer-node/bin/genlayernode run -c /opt/genlayer-node/configs/node/config.yaml
ExecStartPost=-+/bin/sh -c 'sleep 5 && /usr/bin/docker restart genlayer-node-alloy >/dev/null 2>&1 || true'
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
The node runs as the genlayer service user (not in the docker group) and reads the keystore
passphrase from GENLAYERNODE_PASSWORD in EnvironmentFile — no --password argument.
sudo systemctl daemon-reload
sudo systemctl enable genlayer-node
sudo systemctl start genlayer-node
sudo systemctl status genlayer-node
journalctl -u genlayer-node -f
cd /opt/genlayer-node/${VERSION}
sudo chown -R 10001:10001 ./data/ # the container runs as uid 10001
sudo docker compose --profile node run --rm --entrypoint /app/bin/genlayernode genlayer-node doctor
sudo docker compose --profile node up -d
# Add central telemetry (Alloy metrics + logs push): append --profile monitoring
# When switching back to binary/systemd: stop Docker and restore shared-data ownership
# sudo docker compose --profile node down && sudo chown -R genlayer:genlayer /opt/genlayer-node/data/
v0.6+ / pre-release Docker notes:
docker compose from the version directory (e.g. /opt/genlayer-node/<version>)
so relative bind mounts (./configs, ./data, ./genvm-module-*.yaml) resolve.node.mode: "full" in config.yaml — no wallet/operator/keystore/staking
needed (logs: "full node mode detected, skipping validator setup").image: (edit the compose or add a
docker-compose.override.yml). If the instance role lacks ECR permissions, authenticate
Docker with an admin token:
aws ecr get-login-password --profile <p> --region <r> | docker login --username AWS --password-stdin <acct>.dkr.ecr.<r>.amazonaws.comgenvm-module-llm.yaml (built from the release's
genvm-modules-llm-release.yaml) onto /app/opt/genvm/current/config/genvm-module-llm.yaml
so your provider is enabled. Releases before rc.2 have no current link: mount onto
/app/opt/genvm/<ver>/config/genvm-module-llm.yaml and set GENVM_VERSION in .env.
Without it the image's default LLM config is used. Compose loads an override file automatically:
cd /opt/genlayer-node/${VERSION}
GENVM_REL=$(sed -n 's/^ *root_dir: *\.\///p' configs/node/config.yaml) # e.g. opt/genvm/current
sudo -u genlayer tee docker-compose.override.yml >/dev/null <<EOF
services:
genlayer-node:
volumes:
- ./${GENVM_REL}/config/genvm-module-llm.yaml:/app/opt/genvm/current/config/genvm-module-llm.yaml:ro
EOF
ADDRESS_FORBIDDEN reaching the webdriver (genvm's SSRF filter blocks the
webdriver-container HOSTNAME's private IP; literal IPs are never filtered), point
webdriver_host at the webdriver's literal IP. Apply only if you actually see the symptom —
a release may already allow the configured webdriver_host, in which case it won't occur. Do
NOT hardcode a compose subnet in shipped assets. See sharp-edge
docker-webdriver-host-ssrf-address-forbidden.screen -S genlayer
cd /opt/genlayer-node && sudo -u genlayer bash -c 'set -a; . ./.env; set +a; ./bin/genlayernode run -c $(pwd)/configs/node/config.yaml'
# Detach: Ctrl+A, D
# Reattach: screen -r genlayer
After starting the node, verify it's running and syncing:
Health check:
curl -s http://localhost:9153/health | jq
Expected response (shape):
{
"status": "healthy",
"network": "<NODE_NETWORK_NAME>",
"node_version": "<VERSION>",
"genvm_version": "..."
}
network must equal the current phase's node_network_name in networks.yaml (e.g.
bradbury-phase3). A previous phase's name means the config is stale: stop the node and redo
the network config (network-resolution-procedure.md R5). Clarke reports clarke, but only
because apply-network-config.sh writes node.network from clarke.yaml (v0.6.1 cannot
detect it): custom on a Clarke node means that key is missing.
Sync status:
curl -s http://localhost:9153/metrics | grep genlayer_node_synced
Expected output (1 = synced, 0 = syncing):
genlayer_node_synced{node="0x..."} 1
Check blocks behind:
curl -s http://localhost:9153/metrics | grep genlayer_node_blocks_behind
View logs (systemd):
journalctl -u genlayer-node -f --no-hostname
View logs (Docker):
docker logs -f genlayer-node
monitoring-procedure.md for complete setup/etc/systemd/system/genlayer-node.serviceThis skill is defined by canonical YAML files:
network-resolution-procedure.md).
If a launch needs any other edit to this skill, something was hardcoded that should be resolvedresolve-version.sh, resolve-network.sh, apply-network-config.sh,
setup-cli-network.sh, list-llm-providers.sh (and validate.sh, the Stop hook)Invoke this skill when:
The skill will guide through each step interactively, verifying prerequisites and configuration at each stage.
Basic invocation:
I want to set up a validator node
With specific version:
Install validator node version v0.6.1
With latest version:
Install validator node using the latest version
or simply:
Install validator node latest
When you use the word "latest", the skill will automatically fetch and install the most recent version from the official storage.
| Step | Description | Key Actions |
|---|---|---|
| 0 | Determine Server Location | Local vs Remote, SSH vs GCP vs AWS |
| 1 | Check Prerequisites | Architecture, Docker, Python 3.10+, cosign; install what is missing |
| 2 | Full Node, New Validator or Existing? | Staking wizard or skip |
| 3 | Download & Setup | Download tarball, verify (cosign + SHA256), install.sh (extract + GenVM setup), shared data dir, symlinks |
| 4 | Environment (.env) | RPC provider key (if needed), LLM key and (validator) password placeholders |
| 5 | Node Config (config.yaml) | Network values + protocol manifest (from the network's docs), node mode, validator address, operator address, ports |
| 6 | Operator Key | Upload keystore (method depends on Step 0) or generate new (validator only) |
| 7 | Start WebDriver | docker compose up -d, wait for healthy |
| 8 | Run Doctor Check | Verify all configuration |
| 9 | Deployment Method | Systemd (recommended), Docker, or manual |
| 10 | Verify Node Running | Health check, sync status |
| 11 | Monitoring (Optional) | Enable telemetry push |
IMPORTANT: When collecting user inputs, follow these rules:
RPC/WebSocket URLs, provider, consensus address, chain id, genesis and the protocol manifest are
resolved by scripts/resolve-network.sh and written by scripts/apply-network-config.sh. Show the
resolved values (they are public); do not ask the user to type them. Ask only which network to
join, and only when networks.yaml lists more than one active network (today it does: Bradbury
Phase 3 and Clarke, on the same chain, so the choice cannot be inferred from anything else).
IMPORTANT: The "Other" text field in AskUserQuestion does not work reliably. For free text (connection details, wallet addresses), ask a plain text question in chat.
These values are configured in config.yaml during the Node Identity group:
These values must NEVER be collected by Claude. Generate .env with placeholders, then ask user to update manually on the VM:
GENLAYERNODE_ROLLUP_GENLAYERCHAINRPCKEY=OPENROUTERKEY=)GENLAYERNODE_PASSWORD= (Docker: NODE_PASSWORD=)After generating .env, instruct user to:
CRITICAL: When displaying any output that may contain secret values, they MUST be masked.
HEURISTKEY, COMPUT3KEY, IOINTELLIGENCEKEY, and other provider keysGENLAYERNODE_ROLLUP_GENLAYERCHAINRPCKEY (RPC provider, e.g. Conduit)GENLAYERNODE_PASSWORD, NODE_PASSWORD, export passphrasesNEVER execute these types of commands that expose secrets:
# FORBIDDEN - DO NOT USE
grep '<LLM_KEY>' /opt/genlayer-node/.env
cat /opt/genlayer-node/.env | grep KEY
gcloud compute ssh ... --command="grep '<LLM_KEY>' /opt/genlayer-node/.env"
ssh username@host "cat /opt/genlayer-node/.env"
Why this is forbidden:
Instead, instruct the user to check values themselves:
# CORRECT - Instruct user to run this on their VM
"To verify your API key is set, SSH to your VM and run:
grep '<YOUR_LLM_KEY>' /opt/genlayer-node/.env
This will show the key value on your secure terminal."
When displaying .env file contents:
HEURISTKEY=abc12345********...xyz9 instead of full keyWhen displaying command output:
export HEURISTKEY=abc12345********...xyz9When verifying configuration:
HEURISTKEY: Set (abc12345********...xyz9)In logs and error messages:
***MASKED***Remote command execution:
--command flag with SSH/gcloud to read secretsReading .env file:
# Before displaying, mask secrets using sed (passwords fully, keys first 8 + last 4)
sudo sed -E \
-e 's/^([A-Z_0-9]*(PASSWORD|PASSPHRASE)[A-Z_0-9]*=).+/\1***MASKED***/' \
-e '/\*\*\*MASKED\*\*\*$/!s/^([A-Z_0-9]*(KEY|TOKEN)[A-Z_0-9]*=)(.{8}).*(.{4})$/\1\3********...\4/' \
/opt/genlayer-node/.env
Verifying environment variables:
# Show only that key is set, not the value
env | grep -E 'KEY|PASSWORD|TOKEN' | sed -E 's/=.*/=***MASKED***/'
Creating systemd service:
EnvironmentFile directive to load from .envExecStart=/opt/genlayer-node/bin/genlayernode run -c /opt/genlayer-node/configs/node/config.yaml (the node reads GENLAYERNODE_PASSWORD from the environment)If user needs the actual secret value:
cat /opt/genlayer-node/.env | grep <YOUR_LLM_KEY>"These can be presented as multiple choice:
This skill includes focused step-by-step procedure guides:
| Document | Purpose |
|---|---|
install-procedure.md | Complete installation from scratch |
update-procedure.md | Zero-downtime update procedure |
staking-wizard-procedure.md | Running the staking wizard to create validator wallet |
monitoring-procedure.md | Enable centralized monitoring with Grafana/Alloy |
common-procedures.md | Shared commands used by install and update |
pre-update-checklist.md | Checklist before starting any update |
For the latest official setup guide, see: https://docs.genlayer.com/validators/setup-guide
agents/openai.yaml (opens in a new tab)collaboration.yaml (opens in a new tab)common-procedures.md (opens in a new tab)install-procedure.md (opens in a new tab)monitoring-procedure.md (opens in a new tab)network-resolution-procedure.md (opens in a new tab)networks.yaml (opens in a new tab)pre-update-checklist.md (opens in a new tab)scripts/apply-network-config.sh (opens in a new tab)scripts/list-llm-providers.sh (opens in a new tab)scripts/resolve-network.sh (opens in a new tab)scripts/resolve-version.sh (opens in a new tab)scripts/setup-cli-network.sh (opens in a new tab)scripts/validate.sh (opens in a new tab)sharp-edges.yaml (opens in a new tab)skill.yaml (opens in a new tab)staking-wizard-procedure.md (opens in a new tab)update-procedure.md (opens in a new tab)validations.yaml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
"${CLAUDE_PLUGIN_ROOT}/skills/genlayernode/scripts/validate.sh"Three short reads, in order
npx claudepluginhub genlayerlabs/skills --plugin genlayernodeOther plugins' skills for the same job