Add validators

From ObolNetwork/charon-distributed-validator-node · View interactive version

Add validators is an AI agent skill from the GitHub repository ObolNetwork/charon-distributed-validator-node. Add new validators to an existing Charon distributed validator cluster

How to use this skill

Skill file

Add Validators

Warning: This is an alpha feature and is not yet recommended for production use.

Add new validators to an existing Charon distributed validator cluster. All operators must run this simultaneously as it requires a P2P ceremony.

Prerequisites

Before running, verify:

  1. .env file exists with NETWORK and VC variables set
  2. .charon/cluster-lock.json and .charon/deposit-data*.json exist
  3. Docker is running
  4. jq is installed

Read scripts/edit/add-validators/README.md for full details if needed.

Gather Arguments

Ask the user for the following required arguments using AskUserQuestion:

  1. Number of validators (--num-validators): How many new validators to add (positive integer)
  2. Withdrawal addresses (--withdrawal-addresses): Comma-separated Ethereum withdrawal address(es)
  3. Fee recipient addresses (--fee-recipient-addresses): Comma-separated fee recipient address(es)

Also ask whether they want to:

Execution

Run the script from the repository root:

./scripts/edit/add-validators/add-validators.sh \
    --num-validators <N> \
    --withdrawal-addresses <addrs> \
    --fee-recipient-addresses <addrs> \
    [--unverified] [--dry-run]

Set WORK_DIR env var to override the repository root directory if running from a custom location.

The script will:

  1. Validate prerequisites
  2. Display current cluster info (operators, validators)
  3. Run a P2P ceremony (all operators must participate simultaneously)
  4. Stop containers if they were running
  5. Backup .charon/ to ./backups/
  6. Install new configuration
  7. Print commands to start containers manually

Remind the user that all operators must run this script at the same time for the P2P ceremony to succeed.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.