Skip to content

ijlal321/Ai-Arena

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Arena - Startup Guide

Watch Demo

Watch the demo here

Full Pitch

View the full pitch here

Prerequisites

Ensure you have the following installed on your system:

Getting Started

Follow these steps to set up and run the project:

Step 1: Setup Hardhat Environment

  1. Open a terminal and navigate to the Hardhat project directory:
    cd my-hardhat-project
  2. Install dependencies:
    npm install
  3. Install Hardhat (if not already installed):
    npm install --save-dev hardhat
  4. Start the Hardhat node:
    npx hardhat node

Step 2: Setup AI Arena

  1. Open a new terminal and navigate to the AI Arena directory:
    cd ai-arena-challenge
  2. Install dependencies:
    pnpm install
  3. Start the development server:
    pnpm run dev

Step 3: Setup Eliza

  1. Open another new terminal and navigate to the Eliza directory:
    cd eliza
  2. Install dependencies:
    pnpm install
  3. Build the project:
    pnpm build
  4. Set up env

EVM

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.

Step 4: Start the Application

Run the following command to start the application with selected characters:

pnpm start --characters="characters/dark_santa.character.json,characters/quadra_blaze.character.json"

Step 5: Open in Browser

Once everything is running, open your browser and go to:

http://localhost:8080

Your AI Arena environment should now be up and running!