Ensure you have the following installed on your system:
Follow these steps to set up and run the project:
- Open a terminal and navigate to the Hardhat project directory:
cd my-hardhat-project
- Install dependencies:
npm install
- Install Hardhat (if not already installed):
npm install --save-dev hardhat
- Start the Hardhat node:
npx hardhat node
- Open a new terminal and navigate to the AI Arena directory:
cd ai-arena-challenge
- Install dependencies:
pnpm install
- Start the development server:
pnpm run dev
- Open another new terminal and navigate to the Eliza directory:
cd eliza
- Install dependencies:
pnpm install
- Build the project:
pnpm build
- Set up env
EVM_PRIVATE_KEY="" EVM_PROVIDER_URL="http://127.0.0.1:8545" hardhat local server
GROQ_API_KEY= "" // our example models are set up with groq, but you can use any provider you want.
Run the following command to start the application with selected characters:
pnpm start --characters="characters/dark_santa.character.json,characters/quadra_blaze.character.json"
Once everything is running, open your browser and go to:
http://localhost:8080
Your AI Arena environment should now be up and running!