# Prepare Operator Accounts

Operators run the node software (Execution and Validation services). In order to operate, they need to register to EigenLayer, deposit stake, opt-in to securing the AVS and run the node software.

## Prerequisites

* [Othentic CLI installed.](https://docs.othentic.xyz/main/welcome/getting-started/install-othentic-cli)
* [Install Foundry](https://getfoundry.sh/), or verify existing installation with `cast -V` .
* Private Key for an **Ethereum Holesky** account with:
  * ≥ 0.25 ETH on Holesky
  * ≥ 0.02 ETH on Base Sepolia
  * You can use the same private key used to deploy the AVS contracts in the previous step.

## Operator Setup Script

{% stepper %}
{% step %}

### Download the script

{% file src="<https://4144525652-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYlSi30nrcEOossIDFFua%2Fuploads%2FdDl8V1rWtiq4Ul2ZxTak%2Fsetup_operators.sh?alt=media&token=e01d571d-a6da-4f48-9109-ca349a29c7a3>" %}

Save it as `setup_operators.sh` in your AVS working directory.
{% endstep %}

{% step %}

### Make the script executable

```bash
chmod +x setup_operators.sh
```

{% endstep %}

{% step %}

### Run the script

```bash
./setup_operators.sh
```

The script will check for the required dependencies, then ask for the L1 network of your choice - enter '1' and press enter.

Then, enter the private key of the account used to deploy the AVS:

{% code title="setup\_operators.sh" %}

```bash
--- L1 Chain Configuration ---
[INFO] L1_CHAIN not found in .env.
Please select the L1 chain to use:
1) holesky
2) sepolia
Enter number (1 for holesky, 2 for sepolia): 1
[INFO] You selected holesky.
[SUCCESS] holesky has been set as L1_CHAIN in .env.
[INFO] Using RPC URL for holesky: https://1rpc.io/holesky

--- Account Setup ---
Enter the private key for the deployer account (will not be displayed): 
```

{% endcode %}
{% endstep %}

{% step %}

### Wait for the script to finish (\~5min)

The script automatically performs the following actions:

1. Generate keys for two new accounts
2. Transfer a small amount of holETH to both
3. For all three accounts:
   1. Register as EigenLayer Operator
   2. Deposit a small amount of stake on EigenLayer
   3. Opt-in to the AVS on EigenLayer contracts
   4. Register as an Operator on AVS contracts
4. Organize `.env` file.
   {% endstep %}
   {% endstepper %}

{% hint style="success" %}

## 🎉 Success!

You've successfully set up three Operator accounts to run the AVS.
{% endhint %}

Next, submit your first task using a simple command.
