Install the Aztec toolchain
Time: ~2 minutes. The Aztec CLI is needed to generate validator keys and interact with L1 contracts. Foundry's cast is used throughout the Playbook to query contracts.
1. Install Aztec
bash -i <(curl -sL https://install.aztec.network)
The installer pulls the latest tag by default. The current Aztec-recommended release is v4.2.0. To pin to it, set VERSION before running the installer:
VERSION={{RECOMMENDED_VERSION}} bash -i <(curl -sL https://install.aztec.network)
2. Install Foundry
You'll use cast later to query contracts and claim rewards.
curl -L https://foundry.paradigm.xyz | bash && foundryup
3. Make the installation persistent
Both installers append PATH lines to a shell rc file, but new shell sessions only pick them up if that rc file is loaded automatically. The fastest fix that survives reboots and new SSH sessions:
# Source the rc file once in this session
source ~/.bashrc # or ~/.zshrc if you use zsh
# Make sure login shells pick it up too (covers non-interactive SSH)
grep -q 'source ~/.bashrc' ~/.bash_profile 2>/dev/null || \
echo '[ -f ~/.bashrc ] && source ~/.bashrc' >> ~/.bash_profile
If you run the node under systemd or as a different user, that process won't read your rc files. Set PATH explicitly in the unit file or use absolute paths (/home/<user>/.aztec/bin/aztec, /home/<user>/.foundry/bin/cast).
4. Verify the installation
Open a new shell or run source ~/.bashrc, then:
aztec --version
cast --version
Expected output: aztec followed by the version you installed (the recommended pin is v4.2.0, or whatever latest resolves to today), plus cast Version: ....
What just happened?
You installed two tools and made them available in every new shell.
aztecCLI generates BLS and ECDSA keypairs for your sequencer and registers your validator on L1.- Foundry (
cast) is a CLI for interacting with Ethereum smart contracts. You'll usecast callto check your sequencer status andcast sendto claim rewards. - The
~/.bash_profileline ensures non-interactive shells (the kindssh user@host "aztec --version"uses) load~/.bashrcand find the new tools onPATH.
Something wrong?
command not found: aztecafter reopening shell — Your shell may not bebash. Runecho $SHELL. If it'szsh, source~/.zshrcinstead and add the equivalent line to~/.zprofile.- Tools work in interactive shell but not via
ssh user@host "aztec --version"— The~/.bash_profilestep above fixes this. Make sure that file exists and contains the source line. curlfails — Check your firewall allows HTTPS. Trycurl -I https://install.aztec.network.