Before running OPinit bots, make sure you have the following prerequisites installed:

1

Clone the Repository

First, clone the opinit-bots repository:

git clone https://github.com/initia-labs/opinit-bots.git
2

Build the Binary

Build the opinitd binary:

cd opinit-bots
make install
3

Initialize Keys

You can register keys using the following command:

### automatically generate a new key
opinitd keys add [chain-id] [key-name]
### with mnemonic file
opinitd keys add [chain-id] [key-name] --recover --source [mnemonic-file-path]
### with mnemonic input
opinitd keys add [chain-id] [key-name] --recover
### with bech32 prefix
opinitd keys add [chain-id] [key-name] --bech32=celestia

For example, if you want to set up a key to be used for the executor’s batch submission connected to Celestia’s arabica-11 testnet, you can use the following command:

opinitd keys add arabica-11 batch --recover --bech32=celestia

These keys will be used for the bot to sign transactions, with the key-name being used as reference.