Anthropic · Termius runbook

Fresh-VPS deploy commands

Copy each block into Termius, top to bottom. The reference's numbered steps are back, with Arbitrum One as parent and the 1:1 ANTx supply token as native gas. No replacement one-click installer.

Original deployment reference
0

SSH in from Termius

Fill your VPS address and existing deploy and keeper keys below. Reveal and copy the commands, connect first, then save the keys on the VPS. Keys remain in this page's memory, not browser storage.

server and keys

Fill in your server and both keys. Nothing is stored or sent anywhere; the commands only connect and write the keys on your VPS.

Add your server address and both keys to build the commands.

Confirm you are on the VPS before going further
whoami && hostname && uname -m && df -h / | tail -1
1

Install tmux

Keep the session alive after closing Termius. Detach with Ctrl-B then D; reconnect with tmux attach -t chain. The keys are loaded again in step 4.

Install tmux and open a session that survives disconnects
apt update && apt -y install tmux && tmux new -s chain
2

Install base tooling

Install Node 20, Foundry and the build dependencies. These are the reference tools. Use the same tmux session for the following blocks.

Install base packages, Python, Node 20 and Foundry
apt update && apt -y install curl ca-certificates git python3 build-essential && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt -y install nodejs && curl -fSL https://foundry.paradigm.xyz | bash
Put Foundry on PATH and finish the install
export PATH="$PATH:/root/.foundry/bin" && foundryup && forge --version && cast --version
Keep Foundry on PATH in every new shell
grep -q ".foundry/bin" ~/.bashrc || echo 'export PATH="$PATH:/root/.foundry/bin"' >> ~/.bashrc
Confirm Node and npx are ready
node --version && npm --version && command -v npx
3

Clone nitro-contracts

Use the pinned reference-compatible source. An existing folder is kept, never deleted or reset. Step 5 adds the custom contracts that upstream does not include.

Clone only if missing; keep existing deployments
( set -e; cd "$HOME"; if ! test -d nitro-contracts; then git clone --no-checkout https://github.com/OffchainLabs/nitro-contracts nitro-contracts; git -C nitro-contracts checkout --detach 67487333202561b74492d07de62a4f56be28560e; fi; cd nitro-contracts; test -s package.json; git submodule sync --recursive; git submodule update --init --recursive; npx -y yarn@1.22.22 install --frozen-lockfile; npx -y yarn@1.22.22 build )
4

Set up your values and record the ANTx facts

Resume here, not from step 0. ANTx is permissioned, so it cannot be the fee token the Inbox pulls; step 7 deploys a separate transferable token whose supply mirrors ANTx 1:1 instead. Nothing here tests an ANTx transfer or sends a transaction.

Load it and print key names only, never values
source ~/.anthropic.env; set -o pipefail; env | grep -oE "^(DEPLOY_KEY|KEEP_KEY|PARENT_RPC|FEE_TOKEN|PRICER_ADDR)=" | sort -u
Use your Arbitrum RPC, or the public RPC
export PARENT_RPC="${PARENT_RPC:-${PARENT_CHAIN_RPC:-https://arb1.arbitrum.io/rpc}}"
Confirm Arbitrum One before continuing
test "$(cast chain-id --rpc-url "$PARENT_RPC")" = 42161 && echo "Arbitrum One confirmed"
Keep ANTx as the supply source; the gas token comes from step 7
export ANTX_ASSET="${ANTX_ASSET:-${ANTX}}" && export FEE_TOKEN="${FEE_TOKEN:-${GAS_TOKEN_ADDR:-}}" && echo "Supply source: $ANTX_ASSET" && echo "Gas token: ${FEE_TOKEN:-not deployed yet; step 7 sets it}"
Reuse the existing pricer address, if you have one
export PRICER_ADDR="${PRICER_ADDR:-${PRICER:-${FEE_TOKEN_PRICER_ADDRESS:-}}}"
Derive the deployer without displaying any private key
export OWNER_ADDR=$(cast wallet address "${DEPLOY_KEY:?Load your existing DEPLOY_KEY first}") && echo "$OWNER_ADDR"
Open the built repository and confirm the deploy script
cd ~/nitro-contracts && forge --version && test -f scripts/local-deployment/deployCreatorAndCreateRollup.ts && echo "Deploy script present"
Confirm no rollup was created from this folder yet
if test -s deploy.json; then echo "Existing deployment files found: stop before the rollup step"; cat deploy.json; else echo "No deploy.json here; check previous transaction receipts before creating a rollup"; fi
Save public aliases only; keep existing keys
declare -px PARENT_RPC FEE_TOKEN PRICER_ADDR ANTX_ASSET OWNER_ADDR >> ~/.anthropic.env
Read the ANTx token, decimals, total supply and your balance
( set -euo pipefail; source "$HOME/.anthropic.env"; export PATH="$HOME/.foundry/bin:$PATH"; : "${PARENT_RPC:?Load PARENT_RPC in step 4 first}"; ANTX_ASSET="${ANTX_ASSET:-0x909369940f22dc1c143ac78753a33f41597138b1}"; OWNER_ADDR="${OWNER_ADDR:?Derive OWNER_ADDR in step 4 first}"; [[ "$(cast chain-id --rpc-url "$PARENT_RPC")" = 42161 ]] || { echo "STOP: expected Arbitrum One (42161)."; exit 1; }; [[ "$(cast code "$ANTX_ASSET" --rpc-url "$PARENT_RPC")" != 0x ]] || { echo "STOP: no ANTx contract at this address."; exit 1; }; printf 'ANTx token: %s\n' "$ANTX_ASSET"; cast call "$ANTX_ASSET" 'symbol()(string)' --rpc-url "$PARENT_RPC"; cast call "$ANTX_ASSET" 'decimals()(uint8)' --rpc-url "$PARENT_RPC"; printf 'ANTx total supply: %s base units\n' "$(cast call "$ANTX_ASSET" 'totalSupply()(uint256)' --rpc-url "$PARENT_RPC" | awk '{print $1}')"; printf 'ANTx held by %s: %s base units\n' "$OWNER_ADDR" "$(cast call "$ANTX_ASSET" 'balanceOf(address)(uint256)' "$OWNER_ADDR" --rpc-url "$PARENT_RPC" | awk '{print $1}')"; echo "Read only. This total supply is the exact supply the gas token must mirror."; )
Check parent ETH, separate from your ANTx balance
( set -euo pipefail; PARENT_ETH=$(cast balance "$OWNER_ADDR" --rpc-url "$PARENT_RPC" --ether); printf "Parent ETH (not ANTx): %s\n" "$PARENT_ETH" )
Check your existing pricer rate, if you have one
test -n "$PRICER_ADDR" && cast call "$PRICER_ADDR" "getExchangeRate()(uint256)" --rpc-url "$PARENT_RPC"
5

Copy the custom contracts onto the VPS

All five Anthropic reference contracts, config.ts and the genesis template are in one checksum-verified source download. It restores recursive submodules and builds missing artifacts in nitro-contracts. No separate pricer folder, no replacement installer URL and no blockchain transaction. Wait for FILES READY.

Copy all custom files and build their artifacts
( set -euo pipefail; f=$(mktemp); trap 'rm -f "$f"' EXIT; curl -fSL --retry 2 --connect-timeout 20 'https://base44.app/api/apps/6b0a938dae58177cc6cc23b8/files/mp/public/6b0a938dae58177cc6cc23b8/3d469a6fb8c552c7e89e2ba081983f30_AnthropicDeploymentSources-v1.txt' -o "$f"; printf '%s  %s\n' '8429edb87eddfcf1da1ed78f2c9e98f01f04bf5cbcd997545330857a359ae6d1' "$f" | sha256sum -c -; bash "$f" )
Verify every required file is present
( cd "$HOME/nitro-contracts" || exit; missing=0; for f in package.json foundry.toml hardhat.config.ts src/precompiles/ArbSys.sol lib/forge-std/src/Test.sol scripts/config.ts scripts/rollupCreation.ts scripts/local-deployment/deployCreatorAndCreateRollup.ts contracts/FeeTokenPricer.sol contracts/Paymaster.sol contracts/SessionKeyManager.sol contracts/L2L3BridgeWrapper.sol contracts/Faucet.sol l2_chain_config.json build/contracts/src/rollup/RollupCreator.sol/RollupCreator.json build/types/index.ts out/yul/Reader4844.yul/Reader4844.json out/anthropic/FeeTokenPricer.sol/FeeTokenPricer.json; do if ! test -s "$f"; then printf 'MISSING: %s\n' "$f"; missing=1; fi; done; test "$missing" -eq 0 && echo 'FILES READY: all source files and generated artifacts are present' )
6

Deploy the ANTx fee pricer

Use the reference forge create workflow with Anthropic pricing. Reuse a saved working pricer. Preparation sends no transaction; forge create and cast send do. The three ANTx fee numbers are preset by this runbook, so there is nothing to fill in; there is no automatic transaction retry.

Resume here: restore every source file and build artifact
( set -euo pipefail; f=$(mktemp); trap 'rm -f "$f"' EXIT; curl -fSL --retry 2 --connect-timeout 20 'https://base44.app/api/apps/6b0a938dae58177cc6cc23b8/files/mp/public/6b0a938dae58177cc6cc23b8/3d469a6fb8c552c7e89e2ba081983f30_AnthropicDeploymentSources-v1.txt' -o "$f"; printf '%s  %s\n' '8429edb87eddfcf1da1ed78f2c9e98f01f04bf5cbcd997545330857a359ae6d1' "$f" | sha256sum -c -; bash "$f" )
Load your existing keys and parent RPC
source ~/.anthropic.env && export PATH="$HOME/.foundry/bin:$PATH" && export PARENT_RPC="${PARENT_RPC:-https://arb1.arbitrum.io/rpc}" && : "${DEPLOY_KEY:?Deploy key missing from ~/.anthropic.env. Open the step 0 card, run its save-keys command once, then repeat this block.}" && : "${KEEP_KEY:?Keeper key missing from ~/.anthropic.env. Open the step 0 card, run its save-keys command once, then repeat this block.}"
Verify the complete manifest before spending gas
( cd "$HOME/nitro-contracts" || exit; missing=0; for f in package.json foundry.toml hardhat.config.ts src/precompiles/ArbSys.sol lib/forge-std/src/Test.sol scripts/config.ts scripts/rollupCreation.ts scripts/local-deployment/deployCreatorAndCreateRollup.ts contracts/FeeTokenPricer.sol contracts/Paymaster.sol contracts/SessionKeyManager.sol contracts/L2L3BridgeWrapper.sol contracts/Faucet.sol l2_chain_config.json build/contracts/src/rollup/RollupCreator.sol/RollupCreator.json build/types/index.ts out/yul/Reader4844.yul/Reader4844.json out/anthropic/FeeTokenPricer.sol/FeeTokenPricer.json; do if ! test -s "$f"; then printf 'MISSING: %s\n' "$f"; missing=1; fi; done; test "$missing" -eq 0 && echo 'FILES READY: all source files and generated artifacts are present' )
If a pricer is already selected, check it instead of redeploying
if test -n "${PRICER_ADDR:-}"; then echo "$PRICER_ADDR"; cast call "$PRICER_ADDR" "getExchangeRate()(uint256)" --rpc-url "$PARENT_RPC"; else echo "No pricer selected; inspect earlier deployment logs before creating one"; fi
Deploy the pricer once from the prepared repository
( set -euo pipefail; source "$HOME/.anthropic.env"; export ETH_RPC_URL="$PARENT_RPC"; echo "Deploying with RPC: $ETH_RPC_URL"; cd "$HOME/nitro-contracts"; ( cd "$HOME/nitro-contracts" || exit; missing=0; for f in package.json foundry.toml hardhat.config.ts src/precompiles/ArbSys.sol lib/forge-std/src/Test.sol scripts/config.ts scripts/rollupCreation.ts scripts/local-deployment/deployCreatorAndCreateRollup.ts contracts/FeeTokenPricer.sol contracts/Paymaster.sol contracts/SessionKeyManager.sol contracts/L2L3BridgeWrapper.sol contracts/Faucet.sol l2_chain_config.json build/contracts/src/rollup/RollupCreator.sol/RollupCreator.json build/types/index.ts out/yul/Reader4844.yul/Reader4844.json out/anthropic/FeeTokenPricer.sol/FeeTokenPricer.json; do if ! test -s "$f"; then printf 'MISSING: %s\n' "$f"; missing=1; fi; done; test "$missing" -eq 0 && echo 'FILES READY: all source files and generated artifacts are present' ); test -z "${PRICER_ADDR:-}" || { echo "Pricer already selected; do not redeploy"; exit 1; }; for log in anthropic-pricer-deploy.log "$HOME/anthropic-pricer/deploy.log" /tmp/pricer.log; do if grep -qi 'Deployed to:' "$log" 2>/dev/null; then echo "Existing deployment in $log; recover its address, do not deploy again"; exit 1; fi; done; test "$(cast chain-id --rpc-url "$PARENT_RPC")" = 42161; FOUNDRY_PROFILE=default FOUNDRY_SRC=contracts FOUNDRY_TEST=contracts/.tests FOUNDRY_SCRIPT=contracts/.scripts FOUNDRY_OUT=out/anthropic FOUNDRY_CACHE_PATH=forge-cache/anthropic forge create contracts/FeeTokenPricer.sol:FeeTokenPricer --use solc:0.8.24 --broadcast --rpc-url "$PARENT_RPC" --private-key "${DEPLOY_KEY:?Load DEPLOY_KEY first}" 2>&1 | tee anthropic-pricer-deploy.log )
Read the result; do not retry a successful deployment
tail -15 "$HOME/nitro-contracts/anthropic-pricer-deploy.log"
Capture and validate the new address
export PRICER_ADDR=$(grep -i "Deployed to:" "$HOME/nitro-contracts/anthropic-pricer-deploy.log" | tail -1 | awk '{print $3}') && [[ "$PRICER_ADDR" =~ ^0x[0-9a-fA-F]{40}$ ]] && echo "$PRICER_ADDR"
Persist the pricer, never a blank value
[[ "$PRICER_ADDR" =~ ^0x[0-9a-fA-F]{40}$ ]] && declare -px PRICER_ADDR >> ~/.anthropic.env
Derive the keeper address from your keeper key
export KEEPER_ADDR=$(cast wallet address "${KEEP_KEY:?Load your existing KEEP_KEY first}") && echo "$KEEPER_ADDR"
Authorize that keeper on the new pricer
cast send "$PRICER_ADDR" "setKeeper(address)" "$KEEPER_ADDR" --rpc-url "$PARENT_RPC" --private-key "$DEPLOY_KEY"
The runbook's preset ANTx fee numbers, applied as-is
export GAS_TOKEN_USD=100000000 GAS_TOKEN_PER_ETH=1000000000000000000 MIN_BASE_FEE=1000000000 && echo "$GAS_TOKEN_USD $GAS_TOKEN_PER_ETH $MIN_BASE_FEE"
Confirm the preset numbers are numeric before sending anything
: "${GAS_TOKEN_USD:?Run the preset block first}" && : "${GAS_TOKEN_PER_ETH:?Run the preset block first}" && : "${MIN_BASE_FEE:?Run the preset block first}" && [[ "$GAS_TOKEN_USD" =~ ^[0-9]+$ && "$GAS_TOKEN_PER_ETH" =~ ^[0-9]+$ && "$MIN_BASE_FEE" =~ ^[0-9]+$ ]] && echo "Values look numeric"
Seed the pricer using the keeper key
[[ "$GAS_TOKEN_USD" =~ ^[0-9]+$ && "$GAS_TOKEN_PER_ETH" =~ ^[0-9]+$ && "$MIN_BASE_FEE" =~ ^[0-9]+$ ]] && cast send "$PRICER_ADDR" "refresh(uint256,uint256,uint256)" "$GAS_TOKEN_USD" "$GAS_TOKEN_PER_ETH" "$MIN_BASE_FEE" --rpc-url "$PARENT_RPC" --private-key "$KEEP_KEY"
Verify that the exchange rate is nonzero
cast call "$PRICER_ADDR" "getExchangeRate()(uint256)" --rpc-url "$PARENT_RPC"
7

Deploy the 1:1 ANTx supply gas token

ANTx itself is permissioned, so the parent-chain Inbox cannot pull it as a fee token. This deploys a separate transferable ERC-20 whose entire supply is set once, at deployment, to ANTx's total supply: 1:1 in supply, with nothing locked in a reserve and no ANTx moved out of your wallet. It is a supply mirror, not a claim on ANTx, and it has no mint function, so the ratio stays fixed unless ANTx's own supply changes. Redeploying creates a second token; recover the saved address instead. If you saw “Constructor argument count mismatch: expected 1 but got 6”, that attempt stopped before broadcasting. Copy the corrected deploy block below only; keep your existing source, keys and pricer, and do not repeat steps 0–6. The constructor argument is now last so Forge cannot count the broadcast, RPC and signing options as extra values.

Write the gas-token contract into the repository
( set -e; printf '%s' 'Ly8gU1BEWC1MaWNlbnNlLUlkZW50aWZpZXI6IE1JVApwcmFnbWEgc29saWRpdHkgMC44LjI0OwoKaW50ZXJmYWNlIElFUkMyMFN1cHBseSB7CiAgICBmdW5jdGlvbiB0b3RhbFN1cHBseSgpIGV4dGVybmFsIHZpZXcgcmV0dXJucyAodWludDI1Nik7Cn0KCi8vLyBUcmFuc2Z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JvbV1bbXNnLnNlbmRlcl07CiAgICAgICAgaWYgKGFsbG93ZWQgIT0gdHlwZSh1aW50MjU2KS5tYXgpIHsKICAgICAgICAgICAgcmVxdWlyZShhbGxvd2VkID49IGFtb3VudCwgImFsbG93YW5jZSB0b28gbG93Iik7CiAgICAgICAgICAgIGFsbG93YW5jZVtmcm9tXVttc2cuc2VuZGVyXSA9IGFsbG93ZWQgLSBhbW91bnQ7CiAgICAgICAgfQogICAgICAgIF90cmFuc2Zlcihmcm9tLCB0bywgYW1vdW50KTsKICAgICAgICByZXR1cm4gdHJ1ZTsKICAgIH0KCiAgICBmdW5jdGlvbiBfdHJhbnNmZXIoYWRkcmVzcyBmcm9tLCBhZGRyZXNzIHRvLCB1aW50MjU2IGFtb3VudCkgaW50ZXJuYWwgewogICAgICAgIHJlcXVpcmUodG8gIT0gYWRkcmVzcygwKSwgInplcm8gcmVjaXBpZW50Iik7CiAgICAgICAgcmVxdWlyZShiYWxhbmNlT2ZbZnJvbV0gPj0gYW1vdW50LCAiYmFsYW5jZSB0b28gbG93Iik7CiAgICAgICAgYmFsYW5jZU9mW2Zyb21dIC09IGFtb3VudDsKICAgICAgICBiYWxhbmNlT2ZbdG9dICs9IGFtb3VudDsKICAgICAgICBlbWl0IFRyYW5zZmVyKGZyb20sIHRvLCBhbW91bnQpOwogICAgfQp9Cg==' | base64 -d > "$HOME/nitro-contracts/contracts/AnthropicGasANTx.sol"; test -s "$HOME/nitro-contracts/contracts/AnthropicGasANTx.sol"; grep -q 'contract AnthropicGasANTx' "$HOME/nitro-contracts/contracts/AnthropicGasANTx.sol" )
Deploy the gas token once, with your deployer holding the whole supply
( set -euo pipefail; source "$HOME/.anthropic.env"; export PATH="$HOME/.foundry/bin:$PATH"; export ETH_RPC_URL="$PARENT_RPC"; cd "$HOME/nitro-contracts"; echo "Deploying with RPC: $ETH_RPC_URL"; : "${PARENT_RPC:?Load PARENT_RPC in step 4 first}"; : "${DEPLOY_KEY:?Deploy key missing from ~/.anthropic.env. Open the step 0 card, run its save-keys command once, then repeat this block.}"; : "${OWNER_ADDR:?Derive OWNER_ADDR in step 4 first}"; test -z "${GAS_TOKEN_ADDR:-}" || { echo "A gas token address is already saved; do not redeploy"; exit 1; }; test -s contracts/AnthropicGasANTx.sol || { echo "STOP: run the source block first"; exit 1; }; ! grep -qi 'Deployed to:' anthropic-gas-token.log 2>/dev/null || { echo "An earlier deployment log exists; recover its address instead of deploying again"; exit 1; }; test "$(cast chain-id --rpc-url "$PARENT_RPC")" = 42161; FOUNDRY_PROFILE=default FOUNDRY_SRC=contracts FOUNDRY_TEST=contracts/.tests FOUNDRY_SCRIPT=contracts/.scripts FOUNDRY_OUT=out/anthropic FOUNDRY_CACHE_PATH=forge-cache/anthropic forge create contracts/AnthropicGasANTx.sol:AnthropicGasANTx --use solc:0.8.24 --broadcast --rpc-url "$PARENT_RPC" --private-key "$DEPLOY_KEY" --constructor-args "$OWNER_ADDR" 2>&1 | tee anthropic-gas-token.log )
Read the result; never retry a successful deployment
tail -15 "$HOME/nitro-contracts/anthropic-gas-token.log"
Save the gas token address
export GAS_TOKEN_ADDR=$(grep -i 'Deployed to:' "$HOME/nitro-contracts/anthropic-gas-token.log" | tail -1 | awk '{print $3}') && [[ "$GAS_TOKEN_ADDR" =~ ^0x[0-9a-fA-F]{40}$ ]] && declare -px GAS_TOKEN_ADDR >> "$HOME/.anthropic.env" && echo "$GAS_TOKEN_ADDR"
Confirm the supply matches ANTx exactly and a transfer works
( set -euo pipefail; source "$HOME/.anthropic.env"; export PATH="$HOME/.foundry/bin:$PATH"; : "${PARENT_RPC:?Load PARENT_RPC in step 4 first}"; ANTX_ASSET="${ANTX_ASSET:-0x909369940f22dc1c143ac78753a33f41597138b1}"; OWNER_ADDR="${OWNER_ADDR:?Derive OWNER_ADDR in step 4 first}"; [[ "$(cast chain-id --rpc-url "$PARENT_RPC")" = 42161 ]] || { echo "STOP: expected Arbitrum One (42161)."; exit 1; }; GAS_TOKEN_ADDR="${GAS_TOKEN_ADDR:?Save the gas token address first}"; [[ "$(cast code "$GAS_TOKEN_ADDR" --rpc-url "$PARENT_RPC")" != 0x ]] || { echo "STOP: no contract at the saved gas token address."; exit 1; }; [[ "$(cast call "$GAS_TOKEN_ADDR" 'decimals()(uint8)' --rpc-url "$PARENT_RPC")" = 18 ]] || { echo "STOP: expected 18 decimals."; exit 1; }; SOURCE_TOKEN=$(cast call "$GAS_TOKEN_ADDR" 'ANTX()(address)' --rpc-url "$PARENT_RPC" | tr -d ' '); [[ "${SOURCE_TOKEN,,}" = "${ANTX_ASSET,,}" ]] || { echo "STOP: the gas token does not read supply from your ANTx address."; exit 1; }; ANTX_SUPPLY=$(cast call "$ANTX_ASSET" 'totalSupply()(uint256)' --rpc-url "$PARENT_RPC" | awk '{print $1}'); TOKEN_SUPPLY=$(cast call "$GAS_TOKEN_ADDR" 'totalSupply()(uint256)' --rpc-url "$PARENT_RPC" | awk '{print $1}'); HOLDER_BALANCE=$(cast call "$GAS_TOKEN_ADDR" 'balanceOf(address)(uint256)' "$OWNER_ADDR" --rpc-url "$PARENT_RPC" | awk '{print $1}'); printf 'ANTx supply: %s\nGas token supply: %s\nHeld by %s: %s\n' "$ANTX_SUPPLY" "$TOKEN_SUPPLY" "$OWNER_ADDR" "$HOLDER_BALANCE"; [[ "$TOKEN_SUPPLY" = "$ANTX_SUPPLY" ]] || { echo "STOP: the gas token supply does not equal ANTx's total supply. Do not create the rollup."; exit 1; }; [[ "$HOLDER_BALANCE" = "$TOKEN_SUPPLY" ]] || { echo "STOP: the whole gas-token supply is not held by $OWNER_ADDR."; exit 1; }; TRANSFER_RESULT=$(cast call "$GAS_TOKEN_ADDR" 'transfer(address,uint256)(bool)' 0x000000000000000000000000000000000000dEaD 1 --from "$OWNER_ADDR" --rpc-url "$PARENT_RPC") || { echo "STOP: the gas-token transfer simulation failed."; exit 1; }; [[ "$TRANSFER_RESULT" = true ]] || { echo "STOP: the gas-token transfer did not return true."; exit 1; }; echo "Supply matches ANTx 1:1 and a plain transfer works, which is what the Inbox needs. No transaction was sent."; )
Save the gas token as the fee token for the rollup step
( set -euo pipefail; source "$HOME/.anthropic.env"; GAS_TOKEN_ADDR="${GAS_TOKEN_ADDR:?Save the gas token address first}"; ANTX_ASSET="${ANTX_ASSET:-0x909369940f22dc1c143ac78753a33f41597138b1}"; export GAS_TOKEN_ADDR ANTX_ASSET; export FEE_TOKEN="$GAS_TOKEN_ADDR"; declare -px FEE_TOKEN GAS_TOKEN_ADDR ANTX_ASSET >> "$HOME/.anthropic.env"; printf 'Gas token (1:1 supply): %s\nANTx source: %s\n' "$FEE_TOKEN" "$ANTX_ASSET" )
8

Deploy the Orbit L3, factory and rollup

Prepare the genesis first, then run the unchanged deployCreatorAndCreateRollup.ts script once. The 1:1 supply token from step 7 is fixed as native gas at creation, and the guard below refuses to continue if the gas token is still the permissioned ANTx. These are the reference's development rollup parameters on a real parent chain, not a production-security guarantee. Inspect receipts before any retry.

Stop here if this directory already has deployment addresses
cd ~/nitro-contracts && test ! -s deploy.json && test ! -s l2_chain_info.json && echo "No local deployment files; confirm no earlier rollup transaction succeeded"
Set the L3 chain ID, default 32768
export CHAIN_ID="${CHAIN_ID:-32768}" && [[ "$CHAIN_ID" =~ ^[0-9]+$ ]] && test "$CHAIN_ID" -gt 0 && test "$CHAIN_ID" != 42161 && echo "L3 chain ID: $CHAIN_ID"
Keep a genesis backup before changing it
cd ~/nitro-contracts && test -f l2_chain_config.json.before-antx || cp -p l2_chain_config.json l2_chain_config.json.before-antx
Set only the genesis chain ID and initial owner
cd ~/nitro-contracts && test ! -s deploy.json && python3 -c 'import json,os; p="l2_chain_config.json"; d=json.load(open(p)); d["chainId"]=int(os.environ["CHAIN_ID"]); d["daoForkBlock"]=None; d["arbitrum"]["InitialChainOwner"]=os.environ.get("OWNER_ADDRESS") or os.environ["OWNER_ADDR"]; d["arbitrum"]["AllowDebugPrecompiles"]=False; d["arbitrum"]["GenesisBlockNum"]=0; d["arbitrum"].pop("AllowDebugCmds",None); d["arbitrum"].pop("GenesisBlockNumber",None); json.dump(d,open(p,"w"),indent=2)'
Inspect the resulting genesis configuration
cd ~/nitro-contracts && python3 -m json.tool l2_chain_config.json
Select the pinned Nitro v32 consensus root
export WASM_MODULE_ROOT=0x184884e1eb9fefdc158f6c8ac912bb183bf3cf83f0090317e0bc4ac5860baa39 && export CHILD_CHAIN_CONFIG_PATH="$HOME/nitro-contracts/l2_chain_config.json" && echo "$WASM_MODULE_ROOT"
Verify the root exists in the pinned Nitro image before creating a chain
( set -euo pipefail; apt -y install docker.io; systemctl enable --now docker; export NITRO_IMAGE=offchainlabs/nitro-node:v3.12.4-960ca0a; docker image inspect "$NITRO_IMAGE" >/dev/null 2>&1 || docker pull "$NITRO_IMAGE"; docker run --rm --entrypoint /bin/sh "$NITRO_IMAGE" -c 'find /home/user -name module-root.txt -exec cat {} \;' | grep -qi "${WASM_MODULE_ROOT#0x}"; echo "Consensus root matches the image" )
Reject a missing or all-zero module root
[[ "$WASM_MODULE_ROOT" =~ ^0x[0-9a-fA-F]{64}$ && ! "$WASM_MODULE_ROOT" =~ ^0x0{64}$ ]] && echo "Nonzero bytes32 root; confirm it matches your Nitro image"
Use canonical Arbitrum WETH as the stake token
export STAKE_TOKEN_ADDRESS="${STAKE_TOKEN_ADDRESS:-${STAKE_TOKEN:-0x82aF49447D8a07e3bd95BD0d56f35241523fBab1}}" && cast code "$STAKE_TOKEN_ADDRESS" --rpc-url "$PARENT_RPC"
Save the chosen chain ID and module root
declare -px CHAIN_ID WASM_MODULE_ROOT STAKE_TOKEN_ADDRESS >> ~/.anthropic.env
Reload your saved keys, then set the chain name and deployer
source "$HOME/.anthropic.env" 2>/dev/null && : "${DEPLOY_KEY:?Deploy key missing from ~/.anthropic.env. Open the step 0 card, run its save-keys command once, then repeat this block.}" && : "${OWNER_ADDR:?OWNER_ADDR is missing from ~/.anthropic.env. Run the step 4 block that derives it, then repeat this block.}" && export DEPLOY_KEY OWNER_ADDR && export CHILD_CHAIN_NAME="${CHILD_CHAIN_NAME:-anthropic-l3}" && export DEPLOYER_PRIVKEY="$DEPLOY_KEY" && echo "Chain: $CHILD_CHAIN_NAME" && echo "Deployer: $(cast wallet address "$DEPLOY_KEY")"
Point at the Arbitrum One parent
export PARENT_CHAIN_RPC="$PARENT_RPC" && export PARENT_CHAIN_ID=42161 && echo "$PARENT_CHAIN_ID"
Refuse to create the rollup with the permissioned ANTx as gas token
( set -euo pipefail; source "$HOME/.anthropic.env"; : "${FEE_TOKEN:?Deploy the 1:1 gas token in step 7 first}"; : "${ANTX_ASSET:?Load ANTX_ASSET in step 4 first}"; test "${FEE_TOKEN,,}" != "${ANTX_ASSET,,}" || { echo "STOP: the gas token is still ANTx, which the Inbox cannot pull. Use the 1:1 gas token from step 7."; exit 1; }; test "$(cast code "$FEE_TOKEN" --rpc-url "$PARENT_RPC")" != 0x || { echo "STOP: no contract at the backed gas token address."; exit 1; }; echo "Gas token is the deployed 1:1 token"
Pass the 1:1 gas token and pricer to the unchanged script
source "$HOME/.anthropic.env" 2>/dev/null && : "${DEPLOY_KEY:?Deploy key missing from ~/.anthropic.env. Open the step 0 card, run its save-keys command once, then repeat this block.}" && : "${OWNER_ADDR:?OWNER_ADDR is missing from ~/.anthropic.env. Run the step 4 block that derives it, then repeat this block.}" && export DEPLOY_KEY OWNER_ADDR && export FEE_TOKEN_ADDRESS="$FEE_TOKEN" && export FEE_TOKEN_PRICER_ADDRESS="$PRICER_ADDR" && export MAX_DATA_SIZE=104857 && echo "$FEE_TOKEN_ADDRESS $FEE_TOKEN_PRICER_ADDRESS"
Set the chain owner and sequencer
source "$HOME/.anthropic.env" 2>/dev/null && : "${DEPLOY_KEY:?Deploy key missing from ~/.anthropic.env. Open the step 0 card, run its save-keys command once, then repeat this block.}" && : "${OWNER_ADDR:?OWNER_ADDR is missing from ~/.anthropic.env. Run the step 4 block that derives it, then repeat this block.}" && export DEPLOY_KEY OWNER_ADDR && export OWNER_ADDRESS="${OWNER_ADDRESS:-$OWNER_ADDR}" && export SEQUENCER_ADDRESS="${SEQUENCER_ADDRESS:-$OWNER_ADDR}" && echo "$OWNER_ADDRESS $SEQUENCER_ADDRESS"
Set the batch posters and their manager
source "$HOME/.anthropic.env" 2>/dev/null && : "${DEPLOY_KEY:?Deploy key missing from ~/.anthropic.env. Open the step 0 card, run its save-keys command once, then repeat this block.}" && : "${OWNER_ADDR:?OWNER_ADDR is missing from ~/.anthropic.env. Run the step 4 block that derives it, then repeat this block.}" && export DEPLOY_KEY OWNER_ADDR && export BATCH_POSTERS="${BATCH_POSTERS:-$OWNER_ADDR}" && export BATCH_POSTER_MANAGER="${BATCH_POSTER_MANAGER:-$OWNER_ADDR}" && echo "$BATCH_POSTERS $BATCH_POSTER_MANAGER"
Read the gas token balance and pricer rate before spending gas
source "$HOME/.anthropic.env" 2>/dev/null && : "${DEPLOY_KEY:?Deploy key missing from ~/.anthropic.env. Open the step 0 card, run its save-keys command once, then repeat this block.}" && : "${OWNER_ADDR:?OWNER_ADDR is missing from ~/.anthropic.env. Run the step 4 block that derives it, then repeat this block.}" && export DEPLOY_KEY OWNER_ADDR && export ROLLUP_BALANCE=$(cast call "$FEE_TOKEN" "balanceOf(address)(uint256)" "$OWNER_ADDR" --rpc-url "$PARENT_RPC" | awk '{print $1}') && export ROLLUP_RATE=$(cast call "$PRICER_ADDR" "getExchangeRate()(uint256)" --rpc-url "$PARENT_RPC" | awk '{print $1}') && echo "$ROLLUP_BALANCE $ROLLUP_RATE"
Require positive balances and rates, not empty error output
[[ "$ROLLUP_BALANCE" =~ ^[1-9][0-9]*$ && "$ROLLUP_RATE" =~ ^[1-9][0-9]*$ ]] && echo "Balance and rate are positive; confirm all earlier checks passed"
Run once, only after all checks above pass
source "$HOME/.anthropic.env" 2>/dev/null && : "${DEPLOY_KEY:?Deploy key missing from ~/.anthropic.env. Open the step 0 card, run its save-keys command once, then repeat this block.}" && : "${OWNER_ADDR:?OWNER_ADDR is missing from ~/.anthropic.env. Run the step 4 block that derives it, then repeat this block.}" && export DEPLOY_KEY OWNER_ADDR && export DEPLOYER_PRIVKEY="$DEPLOY_KEY" && cd ~/nitro-contracts && ( cd "$HOME/nitro-contracts" || exit; missing=0; for f in package.json foundry.toml hardhat.config.ts src/precompiles/ArbSys.sol lib/forge-std/src/Test.sol scripts/config.ts scripts/rollupCreation.ts scripts/local-deployment/deployCreatorAndCreateRollup.ts contracts/FeeTokenPricer.sol contracts/Paymaster.sol contracts/SessionKeyManager.sol contracts/L2L3BridgeWrapper.sol contracts/Faucet.sol l2_chain_config.json build/contracts/src/rollup/RollupCreator.sol/RollupCreator.json build/types/index.ts out/yul/Reader4844.yul/Reader4844.json out/anthropic/FeeTokenPricer.sol/FeeTokenPricer.json; do if ! test -s "$f"; then printf 'MISSING: %s\n' "$f"; missing=1; fi; done; test "$missing" -eq 0 && echo 'FILES READY: all source files and generated artifacts are present' ) && test ! -s deploy.json && test ! -s l2_chain_info.json && test "$(cast chain-id --rpc-url "$PARENT_RPC")" = 42161 && [[ "$WASM_MODULE_ROOT" =~ ^0x[0-9a-fA-F]{64}$ && ! "$WASM_MODULE_ROOT" =~ ^0x0{64}$ ]] && set -o pipefail && npx hardhat run scripts/local-deployment/deployCreatorAndCreateRollup.ts 2>&1 | tee /tmp/rollup-deploy.log
Inspect errors without sending another transaction
grep -iE "revert|reason|Error|CALL_EXCEPTION|insufficient" /tmp/rollup-deploy.log | head -15; tail -30 /tmp/rollup-deploy.log
Confirm that both deployment files were produced
cd ~/nitro-contracts && test -s deploy.json && test -s l2_chain_info.json && cat deploy.json && cat l2_chain_info.json
9

Start the sequencer, batch poster and validator

Use the reference's pinned Nitro Docker schema. Keep RPC local until step 14. Start sequencer, batch poster and validator separately. Existing configs and data are preserved; do not erase them to resolve a failed start. Container status alone does not establish successful validation or batch inclusion.

Install Docker before using the node commands
apt -y install docker.io && systemctl enable --now docker && docker --version
Check existing node status first
docker ps -a --format "table {{.Names}}	{{.Status}}" --filter name=nitro-
Read the chain name and ID from your actual deployment
export CHILD_CHAIN_NAME=$(python3 -c 'import json; print(json.load(open("/root/nitro-contracts/l2_chain_info.json"))[0]["chain-name"])') && export CHAIN_ID=$(python3 -c 'import json; print(json.load(open("/root/nitro-contracts/l2_chain_info.json"))[0]["chain-config"]["chainId"])')
Make variables available to configuration writers
source "$HOME/.anthropic.env" 2>/dev/null && : "${DEPLOY_KEY:?Deploy key missing from ~/.anthropic.env. Open the step 0 card, run its save-keys command once, then repeat this block.}" && : "${OWNER_ADDR:?OWNER_ADDR is missing from ~/.anthropic.env. Run the step 4 block that derives it, then repeat this block.}" && export DEPLOY_KEY OWNER_ADDR && export PARENT_RPC CHILD_CHAIN_NAME CHAIN_ID && umask 077
Create missing directories; keep existing data
mkdir -p ~/nitro ~/.anthropic/sequencer ~/.anthropic/poster ~/.anthropic/validator
New containers only: select the pinned reference image
export NITRO_IMAGE="${NITRO_IMAGE:-offchainlabs/nitro-node:v3.12.4-960ca0a}"
New containers only: pull the image if it is absent
docker image inspect "$NITRO_IMAGE" >/dev/null 2>&1 || docker pull "$NITRO_IMAGE"
Write sequencer config only if missing
test -s ~/nitro/sequencer-conf.json || python3 -c 'import json,os; e=os.environ; d={"chain":{"name":e["CHILD_CHAIN_NAME"],"dev-wallet":{"private-key":e["DEPLOY_KEY"].removeprefix("0x")}},"parent-chain":{"connection":{"url":e["PARENT_RPC"]}},"http":{"addr":"127.0.0.1","port":8547},"ws":{"addr":"127.0.0.1","port":8546,"origins":["*"]},"node":{"sequencer":True,"delayed-sequencer":{"enable":True},"feed":{"output":{"enable":True,"addr":"127.0.0.1","port":9642}},"batch-poster":{"enable":False},"staker":{"enable":False}},"execution":{"sequencer":{"enable":True}},"persistent":{"chain":"/root/.anthropic/sequencer"},"log-level":"INFO"}; print(json.dumps(d))' > ~/nitro/sequencer-conf.json
Write batch poster config only if missing
test -s ~/nitro/poster-conf.json || python3 -c 'import json,os; e=os.environ; d={"chain":{"name":e["CHILD_CHAIN_NAME"]},"parent-chain":{"connection":{"url":e["PARENT_RPC"]}},"http":{"addr":"127.0.0.1","port":8548},"ws":{"addr":"127.0.0.1","port":8558,"origins":["*"]},"node":{"sequencer":False,"feed":{"input":{"url":["ws://127.0.0.1:9642"]}},"batch-poster":{"enable":True,"parent-chain-wallet":{"private-key":e["DEPLOY_KEY"].removeprefix("0x")}},"staker":{"enable":False}},"execution":{"forwarding-target":"null"},"persistent":{"chain":"/root/.anthropic/poster"},"log-level":"INFO"}; print(json.dumps(d))' > ~/nitro/poster-conf.json
Write validator config only if missing
test -s ~/nitro/validator-conf.json || python3 -c 'import json,os; e=os.environ; d={"chain":{"name":e["CHILD_CHAIN_NAME"]},"parent-chain":{"connection":{"url":e["PARENT_RPC"]}},"http":{"addr":"127.0.0.1","port":8549},"ws":{"addr":"127.0.0.1","port":8559,"origins":["*"]},"node":{"sequencer":False,"feed":{"input":{"url":["ws://127.0.0.1:9642"]}},"batch-poster":{"enable":False},"staker":{"enable":True,"parent-chain-wallet":{"private-key":e["DEPLOY_KEY"].removeprefix("0x")}}},"execution":{"forwarding-target":"null"},"persistent":{"chain":"/root/.anthropic/validator"},"log-level":"INFO"}; print(json.dumps(d))' > ~/nitro/validator-conf.json
Validate all three files without printing their keys
python3 -m json.tool ~/nitro/sequencer-conf.json >/dev/null && python3 -m json.tool ~/nitro/poster-conf.json >/dev/null && python3 -m json.tool ~/nitro/validator-conf.json >/dev/null && echo "All configs valid"
Start the existing sequencer, or create it if absent
( set -e; test -s "$HOME/nitro/sequencer-conf.json" && test -s "$HOME/nitro-contracts/l2_chain_info.json" || { echo "Stop: generate the node config and complete step 8 first"; exit 1; }; if docker container inspect nitro-sequencer >/dev/null 2>&1; then docker start nitro-sequencer; else docker run -d --user root --name nitro-sequencer --restart unless-stopped --network host -v "$HOME/nitro/sequencer-conf.json:/config/node.json:ro" -v "$HOME/nitro-contracts/l2_chain_info.json:/config/chain.json:ro" -v "$HOME/.anthropic/sequencer:/root/.anthropic/sequencer" "$NITRO_IMAGE" --conf.file /config/node.json --chain.info-files /config/chain.json --node.dangerous.no-sequencer-coordinator; fi )
Start the existing batch poster, or create it if absent
( set -e; test -s "$HOME/nitro/poster-conf.json" && test -s "$HOME/nitro-contracts/l2_chain_info.json" || { echo "Stop: generate the node config and complete step 8 first"; exit 1; }; if docker container inspect nitro-poster >/dev/null 2>&1; then docker start nitro-poster; else docker run -d --user root --name nitro-poster --restart unless-stopped --network host -v "$HOME/nitro/poster-conf.json:/config/node.json:ro" -v "$HOME/nitro-contracts/l2_chain_info.json:/config/chain.json:ro" -v "$HOME/.anthropic/poster:/root/.anthropic/poster" "$NITRO_IMAGE" --conf.file /config/node.json --chain.info-files /config/chain.json; fi )
Start the existing validator, or create it if absent
( set -e; test -s "$HOME/nitro/validator-conf.json" && test -s "$HOME/nitro-contracts/l2_chain_info.json" || { echo "Stop: generate the node config and complete step 8 first"; exit 1; }; if docker container inspect nitro-validator >/dev/null 2>&1; then docker start nitro-validator; else docker run -d --user root --name nitro-validator --restart unless-stopped --network host -v "$HOME/nitro/validator-conf.json:/config/node.json:ro" -v "$HOME/nitro-contracts/l2_chain_info.json:/config/chain.json:ro" -v "$HOME/.anthropic/validator:/root/.anthropic/validator" "$NITRO_IMAGE" --conf.file /config/node.json --chain.info-files /config/chain.json; fi )
Check the RPC chain ID against the deployed chain
test "$(cast chain-id --rpc-url http://localhost:8547)" = "$CHAIN_ID" && echo "L3 chain ID matches"
Read sequencer logs if the RPC is not ready
docker logs --tail 30 nitro-sequencer
Read posting errors without rewriting the configuration
docker logs --tail 30 nitro-poster
10

Keep the fee keeper alive

The reference's five-minute cron, quoting the 1:1 supply ANTx gas token at its ANTx price instead of the other token. The self-contained command writes the keeper locally, with no app download route. It requires a healthy ETH/USD feed and an ANTx market on Arbitrum with at least $100,000 liquidity; it stops rather than inventing prices. This is a spot-market quote, not a TWAP. Fund the keeper with parent ETH.

Write the Anthropic keeper without downloading an installer
( set -e; test -s "$HOME/nitro-contracts/node_modules/ethers/package.json"; printf '%s' 'Y29uc3QgeyBld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YmFzaApzZXQgLWV1byBwaXBlZmFpbApleHBvcnQgUEFUSD0iJEhPTUUvLmZvdW5kcnkvYmluOiRQQVRIIgpzb3VyY2UgIiRIT01FLy5hbnRocm9waWMuZW52IgpleGVjIDk+IiRIT01FLy5hbnRocm9waWMta2VlcGVyLmxvY2siCmZsb2NrIC1uIDkgfHwgZXhpdCAwCmNkICIkSE9NRS9uaXRyby1jb250cmFjdHMiCm5vZGUgYW50aHJvcGljLWtlZXBlci5janMK' | base64 -d > "$HOME/keeper.sh"; chmod 700 "$HOME/keeper.sh" )
Test one keeper update before installing cron
bash "$HOME/keeper.sh"
Install the five-minute cron once, without opening an editor
apt -y install cron util-linux && systemctl enable --now cron && ( crontab -l 2>/dev/null | grep -vF "$HOME/keeper.sh"; printf "*/5 * * * * %s/keeper.sh >> %s/anthropic-keeper.log 2>&1\n" "$HOME" "$HOME" ) | crontab -
Verify cron and read the keeper result
crontab -l && tail -20 "$HOME/anthropic-keeper.log" 2>/dev/null
11

Fund native gas through the Inbox and deploy the remaining L3 contracts

First fund native gas through the ERC20 Inbox, exactly as the reference does. The optional Paymaster and SessionKeyManager sources expect an L3 ERC-20 and an L3 pricer, not a parent address or native gas balance. Their deployments below require those separately configured contracts. They are reference templates, not a working ERC-4337 sponsorship or session-enforcement integration.

Read the Inbox from your deployment, without guessing
export INBOX_ADDR=$(python3 -c 'import json; print(json.load(open("/root/nitro-contracts/deploy.json"))["inbox"])') && echo "$INBOX_ADDR"
Read the Inbox bridge and its fixed native token
export BRIDGE_ADDR=$(cast call "$INBOX_ADDR" "bridge()(address)" --rpc-url "$PARENT_RPC") && export BRIDGE_TOKEN=$(cast call "$BRIDGE_ADDR" "nativeToken()(address)" --rpc-url "$PARENT_RPC") && echo "$BRIDGE_TOKEN"
Stop if this chain was created with a different token
test "${BRIDGE_TOKEN,,}" = "${FEE_TOKEN,,}" && echo "Selected token matches the deployed bridge"
Calculate one whole token using its real decimals
export TOKEN_DECIMALS=$(cast call "$FEE_TOKEN" "decimals()(uint8)" --rpc-url "$PARENT_RPC") && export DEPOSIT_AMOUNT=$(python3 -c 'import os; print(10**int(os.environ["TOKEN_DECIMALS"]))') && echo "$DEPOSIT_AMOUNT"
Simulate transfer to the actual Inbox, without broadcasting
test "${BRIDGE_TOKEN,,}" = "${FEE_TOKEN,,}" && cast call "$FEE_TOKEN" "transfer(address,uint256)(bool)" "$INBOX_ADDR" "$DEPOSIT_AMOUNT" --from "$OWNER_ADDR" --rpc-url "$PARENT_RPC"
Approve only this deposit amount to the verified Inbox
source "$HOME/.anthropic.env" 2>/dev/null && : "${DEPLOY_KEY:?Deploy key missing from ~/.anthropic.env. Open the step 0 card, run its save-keys command once, then repeat this block.}" && : "${OWNER_ADDR:?OWNER_ADDR is missing from ~/.anthropic.env. Run the step 4 block that derives it, then repeat this block.}" && export DEPLOY_KEY OWNER_ADDR && test "${BRIDGE_TOKEN,,}" = "${FEE_TOKEN,,}" && test "$(cast chain-id --rpc-url "$PARENT_RPC")" = 42161 && cast send "$FEE_TOKEN" "approve(address,uint256)" "$INBOX_ADDR" "$DEPOSIT_AMOUNT" --rpc-url "$PARENT_RPC" --private-key "$DEPLOY_KEY"
Deposit once; this sends a parent-chain transaction
source "$HOME/.anthropic.env" 2>/dev/null && : "${DEPLOY_KEY:?Deploy key missing from ~/.anthropic.env. Open the step 0 card, run its save-keys command once, then repeat this block.}" && : "${OWNER_ADDR:?OWNER_ADDR is missing from ~/.anthropic.env. Run the step 4 block that derives it, then repeat this block.}" && export DEPLOY_KEY OWNER_ADDR && test "${BRIDGE_TOKEN,,}" = "${FEE_TOKEN,,}" && test "$(cast chain-id --rpc-url "$PARENT_RPC")" = 42161 && cast send "$INBOX_ADDR" "depositERC20(uint256)" "$DEPOSIT_AMOUNT" --rpc-url "$PARENT_RPC" --private-key "$DEPLOY_KEY"
Check L3 native gas after delayed-message processing
cast balance "$OWNER_ADDR" --rpc-url http://localhost:8547
Read L3 chain ID and current block
cast chain-id --rpc-url http://localhost:8547 && cast block-number --rpc-url http://localhost:8547
Read the deployer gas balance on the L3
cast balance "$OWNER_ADDR" --rpc-url http://localhost:8547
Check all three container statuses
docker ps --format "table {{.Names}}	{{.Status}}" --filter name=nitro-
Check the parent's fee-pricer rate
cast call "$PRICER_ADDR" "getExchangeRate()(uint256)" --rpc-url "$PARENT_RPC"

Optional reference contracts only: enter the separately deployed L3 pricer and ERC-20 token, never assume parent addresses exist on the L3. Values only build a command here; nothing is sent to your server.

Fill every field above to generate the command.

Verify the optional L3 integrations before deploying templates
( set -e; source "$HOME/.anthropic.env"; test "$(cast chain-id --rpc-url http://localhost:8547)" = "$CHAIN_ID"; test "$(cast code "${L3_PRICER_ADDR:?Fill the L3 contract fields}" --rpc-url http://localhost:8547)" != 0x; test "$(cast code "${L3_TOKEN_ADDR:?Fill the L3 contract fields}" --rpc-url http://localhost:8547)" != 0x; cast call "$L3_PRICER_ADDR" "feeTokenToEth(uint256)(uint256)" 1 --rpc-url http://localhost:8547; cast call "$L3_TOKEN_ADDR" "balanceOf(address)(uint256)" "$OWNER_ADDR" --rpc-url http://localhost:8547 )
Optional: deploy the Paymaster reference on the L3
( set -euo pipefail; source "$HOME/.anthropic.env"; export PATH="$HOME/.foundry/bin:$PATH"; cd "$HOME/nitro-contracts"; export ETH_RPC_URL="http://localhost:8547"; echo "Deploying with RPC: $ETH_RPC_URL"; test -z "${PAYMASTER_ADDR:-}" || { echo 'PAYMASTER_ADDR already saved; do not redeploy'; exit 1; }; log="anthropic-Paymaster.log"; ! grep -qi 'Deployed to:' "$log" 2>/dev/null || { echo 'Recover the address from the existing log instead of redeploying'; exit 1; }; test "$(cast chain-id --rpc-url "http://localhost:8547")" = "$CHAIN_ID"; test "$(cast code "$L3_PRICER_ADDR" --rpc-url http://localhost:8547)" != 0x; test "$(cast code "${L3_TOKEN_ADDR:?Set an L3 ERC20}" --rpc-url http://localhost:8547)" != 0x; sed -i -E "s/address public constant ANTx = 0x[0-9a-fA-F]{40};/address public constant ANTx = $(cast to-check-sum-address "$L3_TOKEN_ADDR");/" contracts/Paymaster.sol; FOUNDRY_PROFILE=default FOUNDRY_SRC=contracts FOUNDRY_TEST=contracts/.tests FOUNDRY_SCRIPT=contracts/.scripts FOUNDRY_OUT=out/anthropic FOUNDRY_CACHE_PATH=forge-cache/anthropic forge create contracts/Paymaster.sol:Paymaster --use solc:0.8.24 --broadcast --rpc-url "http://localhost:8547" --private-key "$DEPLOY_KEY" --constructor-args "${L3_PRICER_ADDR:?Set an L3 pricer first}" 2>&1 | tee "$log" )
Save the Paymaster address from its receipt log
export PAYMASTER_ADDR=$(grep -i 'Deployed to:' "$HOME/nitro-contracts/anthropic-Paymaster.log" | tail -1 | awk '{print $3}') && [[ "$PAYMASTER_ADDR" =~ ^0x[0-9a-fA-F]{40}$ ]] && declare -px PAYMASTER_ADDR >> "$HOME/.anthropic.env" && echo "$PAYMASTER_ADDR"
Optional: deploy SessionKeyManager on the L3
( set -euo pipefail; source "$HOME/.anthropic.env"; export PATH="$HOME/.foundry/bin:$PATH"; cd "$HOME/nitro-contracts"; export ETH_RPC_URL="http://localhost:8547"; echo "Deploying with RPC: $ETH_RPC_URL"; test -z "${SESSIONKEY_ADDR:-}" || { echo 'SESSIONKEY_ADDR already saved; do not redeploy'; exit 1; }; log="anthropic-SessionKeyManager.log"; ! grep -qi 'Deployed to:' "$log" 2>/dev/null || { echo 'Recover the address from the existing log instead of redeploying'; exit 1; }; test "$(cast chain-id --rpc-url "http://localhost:8547")" = "$CHAIN_ID"; test "$(cast code "$L3_TOKEN_ADDR" --rpc-url http://localhost:8547)" != 0x; FOUNDRY_PROFILE=default FOUNDRY_SRC=contracts FOUNDRY_TEST=contracts/.tests FOUNDRY_SCRIPT=contracts/.scripts FOUNDRY_OUT=out/anthropic FOUNDRY_CACHE_PATH=forge-cache/anthropic forge create contracts/SessionKeyManager.sol:SessionKeyManager --use solc:0.8.24 --broadcast --rpc-url "http://localhost:8547" --private-key "$DEPLOY_KEY" --constructor-args "${L3_TOKEN_ADDR:?Set an L3 ERC20 first}" 2>&1 | tee "$log" )
Save the SessionKeyManager address
export SESSIONKEY_ADDR=$(grep -i 'Deployed to:' "$HOME/nitro-contracts/anthropic-SessionKeyManager.log" | tail -1 | awk '{print $3}') && [[ "$SESSIONKEY_ADDR" =~ ^0x[0-9a-fA-F]{40}$ ]] && declare -px SESSIONKEY_ADDR >> "$HOME/.anthropic.env" && echo "$SESSIONKEY_ADDR"
12

Deploy the bridge wrapper on both sides

Optional reference ERC-20 gateway wrapper, not the native-gas Inbox deposit. The rollup deployment does not install ERC-20 gateways. Supply actual deployed gateways; no fallback guesses an address from deploy.json. The wrapper ABI must match those gateways before using it with funds.

Inspect the actual rollup addresses
python3 -m json.tool "$HOME/nitro-contracts/deploy.json"

Only use gateways already deployed and verified for this chain. Values only build a command here; nothing is sent to your server.

Fill every field above to generate the command.

Deploy the parent wrapper on Arbitrum One
( set -euo pipefail; source "$HOME/.anthropic.env"; export PATH="$HOME/.foundry/bin:$PATH"; cd "$HOME/nitro-contracts"; export ETH_RPC_URL="$PARENT_RPC"; echo "Deploying with RPC: $ETH_RPC_URL"; test -z "${PARENT_WRAPPER:-}" || { echo 'PARENT_WRAPPER already saved; do not redeploy'; exit 1; }; log="anthropic-L2L3BridgeWrapper-parent.log"; ! grep -qi 'Deployed to:' "$log" 2>/dev/null || { echo 'Recover the address from the existing log instead of redeploying'; exit 1; }; test "$(cast chain-id --rpc-url "$PARENT_RPC")" = "42161"; test "$(cast code "$PARENT_GATEWAY" --rpc-url "$PARENT_RPC")" != 0x; FOUNDRY_PROFILE=default FOUNDRY_SRC=contracts FOUNDRY_TEST=contracts/.tests FOUNDRY_SCRIPT=contracts/.scripts FOUNDRY_OUT=out/anthropic FOUNDRY_CACHE_PATH=forge-cache/anthropic forge create contracts/L2L3BridgeWrapper.sol:L2L3BridgeWrapper --use solc:0.8.24 --broadcast --rpc-url "$PARENT_RPC" --private-key "$DEPLOY_KEY" --constructor-args "${PARENT_GATEWAY:?Set the actual parent gateway}" true 2>&1 | tee "$log" )
Save the parent wrapper address
export PARENT_WRAPPER=$(grep -i 'Deployed to:' "$HOME/nitro-contracts/anthropic-L2L3BridgeWrapper-parent.log" | tail -1 | awk '{print $3}') && [[ "$PARENT_WRAPPER" =~ ^0x[0-9a-fA-F]{40}$ ]] && declare -px PARENT_WRAPPER >> "$HOME/.anthropic.env" && echo "$PARENT_WRAPPER"
Deploy the L3 wrapper
( set -euo pipefail; source "$HOME/.anthropic.env"; export PATH="$HOME/.foundry/bin:$PATH"; cd "$HOME/nitro-contracts"; export ETH_RPC_URL="http://localhost:8547"; echo "Deploying with RPC: $ETH_RPC_URL"; test -z "${L3_WRAPPER:-}" || { echo 'L3_WRAPPER already saved; do not redeploy'; exit 1; }; log="anthropic-L2L3BridgeWrapper.log"; ! grep -qi 'Deployed to:' "$log" 2>/dev/null || { echo 'Recover the address from the existing log instead of redeploying'; exit 1; }; test "$(cast chain-id --rpc-url "http://localhost:8547")" = "$CHAIN_ID"; test "$(cast code "$L3_GATEWAY" --rpc-url http://localhost:8547)" != 0x; FOUNDRY_PROFILE=default FOUNDRY_SRC=contracts FOUNDRY_TEST=contracts/.tests FOUNDRY_SCRIPT=contracts/.scripts FOUNDRY_OUT=out/anthropic FOUNDRY_CACHE_PATH=forge-cache/anthropic forge create contracts/L2L3BridgeWrapper.sol:L2L3BridgeWrapper --use solc:0.8.24 --broadcast --rpc-url "http://localhost:8547" --private-key "$DEPLOY_KEY" --constructor-args "${L3_GATEWAY:?Set the actual L3 gateway}" false 2>&1 | tee "$log" )
Save the L3 wrapper address
export L3_WRAPPER=$(grep -i 'Deployed to:' "$HOME/nitro-contracts/anthropic-L2L3BridgeWrapper.log" | tail -1 | awk '{print $3}') && [[ "$L3_WRAPPER" =~ ^0x[0-9a-fA-F]{40}$ ]] && declare -px L3_WRAPPER >> "$HOME/.anthropic.env" && echo "$L3_WRAPPER"
13

Deploy the testnet faucet, testnet only

Skip this on a chain carrying valuable ANTx. A faucet distributes the L3's native ANTx, not new unbacked tokens. The explicit testnet confirmation below prevents accidental funding on a live-value chain. Disable it before promotion.

Only confirm this for an isolated test deployment with no valuable assets. Values only build a command here; nothing is sent to your server.

Fill every field above to generate the command.

Deploy and fund the test-only faucet
( set -euo pipefail; source "$HOME/.anthropic.env"; export PATH="$HOME/.foundry/bin:$PATH"; cd "$HOME/nitro-contracts"; export ETH_RPC_URL="http://localhost:8547"; echo "Deploying with RPC: $ETH_RPC_URL"; test -z "${FAUCET_ADDR:-}" || { echo 'FAUCET_ADDR already saved; do not redeploy'; exit 1; }; log="anthropic-Faucet.log"; ! grep -qi 'Deployed to:' "$log" 2>/dev/null || { echo 'Recover the address from the existing log instead of redeploying'; exit 1; }; test "$(cast chain-id --rpc-url "http://localhost:8547")" = "$CHAIN_ID"; test "${TESTNET_ONLY:-}" = YES_TESTNET; FOUNDRY_PROFILE=default FOUNDRY_SRC=contracts FOUNDRY_TEST=contracts/.tests FOUNDRY_SCRIPT=contracts/.scripts FOUNDRY_OUT=out/anthropic FOUNDRY_CACHE_PATH=forge-cache/anthropic forge create contracts/Faucet.sol:Faucet --use solc:0.8.24 --broadcast --rpc-url "http://localhost:8547" --private-key "$DEPLOY_KEY" --value "${FAUCET_FUND_WEI:?Set the test-only funding amount}" 2>&1 | tee "$log" )
Save the faucet address
export FAUCET_ADDR=$(grep -i 'Deployed to:' "$HOME/nitro-contracts/anthropic-Faucet.log" | tail -1 | awk '{print $3}') && [[ "$FAUCET_ADDR" =~ ^0x[0-9a-fA-F]{40}$ ]] && declare -px FAUCET_ADDR >> "$HOME/.anthropic.env" && echo "$FAUCET_ADDR"
Check the native ANTx held by the faucet
cast balance "${FAUCET_ADDR:?Save the faucet address first}" --rpc-url http://localhost:8547
Disable the faucet permanently before promotion
source "$HOME/.anthropic.env" && test "$(cast chain-id --rpc-url http://localhost:8547)" = "$CHAIN_ID" && cast send "${FAUCET_ADDR:?No faucet selected}" "kill()" --rpc-url http://localhost:8547 --private-key "$DEPLOY_KEY"
14

Expose the L3 RPC with TLS

Use an RPC hostname you control. Add its DNS A record pointing at the Nitro VPS, then fill these fields. No domain name or DNS value is guessed. Keep Nitro ports local; nginx exposes only HTTP and HTTPS. The public endpoint is configured here, not automatically added to other applications.

Public settings only. The hostname must already resolve to your Nitro VPS. Values only build a command here; nothing is sent to your server.

Fill every field above to generate the command.

Write the RPC proxy setup with no remote installer download
( set -e; printf '%s' 'IyEvdXNyL2Jpbi9lbnYgYmFzaApzZXQgLWV1byBwaXBlZmFpbApzb3VyY2UgIiRIT01FLy5hbnRocm9waWMuZW52Igp0ZXN0IC1uICIkUlBDX0hPU1QiICYmIHRlc3QgLW4gIiRDT05UQUNUX0VNQUlMIgpbWyAiJFJQQ19IT1NUIiA9fiBeW2EtekEtWjAtOS4tXSskIF1dCmV4cG9ydCBQQVRIPSIkSE9NRS8uZm91bmRyeS9iaW46JFBBVEgiCnRlc3QgIiQoY2FzdCBjaGFpbi1pZCAtLXJwYy11cmwgaHR0cDovL2xvY2FsaG9zdDo4NTQ3KSIgPSAiJENIQUlOX0lEIgpleHBvcnQgUlBDX0hPU1QKYXB0IC15IGluc3RhbGwgbmdpbnggY2VydGJvdCBweXRob24zLWNlcnRib3QtbmdpbnggZG5zdXRpbHMKZ2V0ZW50IGhvc3RzICIkUlBDX0hPU1QiCnB5dGhvbjMgLSA8PCdQWScKaW1wb3J0IG9zLHBhdGhsaWIKaG9zdD1vcy5lbnZpcm9uWydSUENfSE9TVCddCnM9J2xpbWl0X3JlcV96b25lICRiaW5hcnlfcmVtb3RlX2FkZHIgem9uZT1hbnRocm9waWNfcnBjOjEwbSByYXRlPTEwci9zO1xuc2VydmVyIHsgbGlzdGVuIDgwOyBzZXJ2ZXJfbmFtZSAnK2hvc3QrJzsgY2xpZW50X21heF9ib2R5X3NpemUgMm07IGxvY2F0aW9uIC8geyBsaW1pdF9yZXEgem9uZT1hbnRocm9waWNfcnBjIGJ1cnN0PTQwIG5vZGVsYXk7IHByb3h5X3Bhc3MgaHR0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VzJwo=' | base64 -d > "$HOME/anthropic-rpc.sh"; bash -n "$HOME/anthropic-rpc.sh" )
Configure nginx and request the TLS certificate
bash "$HOME/anthropic-rpc.sh"
Verify the public RPC's actual chain ID and block height
source "$HOME/.anthropic.env" && cast chain-id --rpc-url "https://$RPC_HOST" && cast block-number --rpc-url "https://$RPC_HOST"
15

Production hardening checks

The reference creates a development-configured rollup on a real parent. These checks do not turn its immutable timing or stake parameters into a production design. Before valuable use, review rollup parameters, audit the custom contracts, configure independent operators and off-site backups, rotate hot keys, and establish multisig governance. Do not stop running operators or change ownership blindly.

Verify containers and both parent and child chains
source "$HOME/.anthropic.env" && docker ps --format "table {{.Names}}\t{{.Status}}" --filter name=nitro- && cast chain-id --rpc-url "$PARENT_RPC" && cast chain-id --rpc-url http://localhost:8547
Check key-file permissions and listening ports, without printing keys
stat -c "%a %n" "$HOME/.anthropic.env" "$HOME/nitro/"*-conf.json && ss -ltnp && crontab -l
Inspect the deployed rollup timing and stake configuration
export ROLLUP_ADDR=$(python3 -c 'import json,pathlib; print(json.load(open(pathlib.Path.home()/"nitro-contracts/deploy.json"))["rollup"])') && cast call "$ROLLUP_ADDR" "confirmPeriodBlocks()(uint64)" --rpc-url "$PARENT_RPC" && cast call "$ROLLUP_ADDR" "baseStake()(uint256)" --rpc-url "$PARENT_RPC"
Verify the faucet is disabled if one was deployed
source "$HOME/.anthropic.env" && if test -n "${FAUCET_ADDR:-}"; then cast call "$FAUCET_ADDR" "disabled()(bool)" --rpc-url http://localhost:8547; else echo "No faucet selected"; fi
Read batch-poster and validator errors before continuing
docker logs --tail 40 nitro-poster && docker logs --tail 40 nitro-validator
16

Launch the Blockscout explorer

Optional, on a separate fresh Ubuntu 24.04 VPS with at least 16 GB RAM, not the Nitro host. Point an existing explorer hostname at that VPS and complete step 14 first. This recreates the reference's clone → configure → start → TLS sequence with Anthropic settings; the script is included in the command, not fetched from an app route. Generated database credentials stay on that VPS. Allow only SSH, HTTP and HTTPS inbound.

Enter these public settings on the explorer VPS. No private deploy key is needed here. Values only build a command here; nothing is sent to your server.

Fill every field above to generate the command.

Write the explorer setup, then inspect its syntax
( set -e; umask 077; printf '%s' 'IyEvdXNyL2Jpbi9lbnYgYmFzaApzZXQgLWV1byBwaXBlZmFpbAp1bWFzayAwNzcKc291cmNlICIkSE9NRS8uYW50aHJvcGljLmVudiIKdGVzdCAtbiAiJEVYUExPUkVSX0hPU1QiICYmIHRlc3QgLW4gIiRSUENfSE9TVCIgJiYgdGVzdCAtbiAiJENIQUlOX0lEIiAmJiB0ZXN0IC1uICIkQ09OVEFDVF9FTUFJTCIKW1sgIiRFWFBMT1JFUl9IT1NUIiA9fiBeW2EtekEtWjAtOS4tXSskICYmICIkUlBDX0hPU1QiID1+IF5bYS16QS1aMC05Li1dKyQgXV0KZXhwb3J0IEVYUExPUkVSX0hPU1QgUlBDX0hPU1QgQ0hBSU5fSUQKYXB0LWdldCB1cGRhdGUKYXB0LWdldCBpbnN0YWxsIC15IGRvY2tlci5pbyBkb2NrZXItY29tcG9zZS12MiBnaXQgcHl0aG9uMyBuZ2lueCBjZXJ0Ym90IHB5dGhvbjMtY2VydGJvdC1uZ2lueApzeXN0ZW1jdGwgZW5hYmxlIC0tbm93IGRvY2tlciBuZ2lueApQSU49MWMwNDQ0MmUzOGQ5ODU3NzQwYjcxYjZjOTFkNWQxZGE5YjdiOTQwNwpSRVBPPSIkSE9NRS9ibG9ja3Njb3V0IgppZiAhIHRlc3QgLWQgIiRSRVBPIjsgdGhlbiBnaXQgY2xvbmUgLS1uby1jaGVja291dCBodHRwczovL2dpdGh1Yi5jb20vYmxvY2tzY291dC9ibG9ja3Njb3V0ICIkUkVQTyI7IGdpdCAtQyAiJFJFUE8iIGNoZWNrb3V0IC0tZGV0YWNoICIkUElOIjsgZmkKdGVzdCAiJChnaXQgLUMgIiRSRVBPIiByZXYtcGFyc2UgSEVBRCkiID0gIiRQSU4iIHx8IHsgZWNobyAnRXhpc3RpbmcgZGlmZmVyZW50IEJsb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0ICRob3N0OyBwcm94eV9zZXRfaGVhZGVyIFgtRm9yd2FyZGVkLVByb3RvICRzY2hlbWU7IH0gfScKcD1wYXRobGliLlBhdGgoJy9ldGMvbmdpbngvc2l0ZXMtYXZhaWxhYmxlL2FudGhyb3BpYy1leHBsb3JlcicpCmlmIG5vdCBwLmV4aXN0cygpOiBwLndyaXRlX3RleHQocykKUFkKbG4gLXNmIC9ldGMvbmdpbngvc2l0ZXMtYXZhaWxhYmxlL2FudGhyb3BpYy1leHBsb3JlciAvZXRjL25naW54L3NpdGVzLWVuYWJsZWQvYW50aHJvcGljLWV4cGxvcmVyCm5naW54IC10CnN5c3RlbWN0bCByZWxvYWQgbmdpbngKY2VydGJvdCAtLW5naW54IC1kICIkRVhQTE9SRVJfSE9TVCIgLS1ub24taW50ZXJhY3RpdmUgLS1hZ3JlZS10b3MgLW0gIiRDT05UQUNUX0VNQUlMIgpkb2NrZXIgY29tcG9zZSAtcCBhbnRocm9waWMtZXhwbG9yZXIgLWYgYW50aHJvcGljLmNvbXBvc2UuanNvbiBwcwo=' | base64 -d > "$HOME/anthropic-explorer.sh"; bash -n "$HOME/anthropic-explorer.sh" )
Run on the separate explorer VPS after DNS resolves
bash "$HOME/anthropic-explorer.sh"
Watch the explorer index this chain
cd "$HOME/blockscout/docker-compose" && docker compose -p anthropic-explorer -f anthropic.compose.json logs --tail 50 backend stats
Check the public explorer and stats
source "$HOME/.anthropic.env" && curl -fsS "https://$EXPLORER_HOST/api/v2/blocks" | head -c 500 && echo && curl -fsS "https://$EXPLORER_HOST/stats-service/health"