This guide will help you set up and run the Infinity system locally.
- Git
- Package Managers:
- npm (comes with Node.js)
- yarn (
npm install -g yarn) - pnpm (
npm install -g pnpm)
- Accounts required:
- Privy (social authentication)
- Nillion (secure data storage)
- Coinbase Developer Platform (agentkit)
- Base Sepolia Network (smart contracts)
We recommend using nvm (Node Version Manager) to manage different Node.js versions:
# Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash- Node.js 18+
nvm install 18
nvm use 18cd Infinity
npm installcp .env.example .envRequired variables:
########################################################
#### INFINITY ELIZA CONFIGURATION ####
########################################################
SERVER_ENDPOINT=http://localhost:3001
###############################################################################################
#### INFINITY ELIZA Plugin [@elizaos/plugin-sales, @elizaos/plugin-insights] Configuration ####
###############################################################################################
# Infinity DataService
BACKEND_DATA_ENDPOINT=http://localhost:9000
###############################################################################################
#### INFINITY ELIZA Plugin [@elizaos/plugin-infinity-agentkit] Configuration ####
###############################################################################################
# Coinbase AgentKit
CDP_API_KEY_NAME=
CDP_API_KEY_PRIVATE_KEY=
CDP_AGENT_KIT_NETWORK=base-sepolia # Optional: Defaults to base-sepolia
###############################################################################################
#### INFINITY ELIZA Plugin [@elizaos/plugin-infinity] Configuration ####
###############################################################################################
#CONTRACT ADRESSES
INFINITY_PROMOTION_FACTORY_CONTRACT_ADDRESS=0x2C92aB970eFAAD5bcD8E327232DAF840821f334c
EVM_PRIVATE_KEY=
EVM_PROVIDER_URL=https://sepolia.base.org
EVM_CHAIN_NAME=baseSepolia
###############################################################################################
#### INFINITY ELIZA Plugin [@elizaos/plugin-infinity-privy-nillion] Configuration ####
###############################################################################################
#Privy
PRIVY_APP_ID=
PRIVY_APP_SECRET=
# Nillion
NILLION_ORG_SK=
NILLION_ORG_DID=
NILLION_NODE1_URL=
NILLION_NODE1_DID=
NILLION_NODE2_URL=
NILLION_NODE2_DID=
NILLION_NODE3_URL=
NILLION_NODE3_DID=
NILLION_SALE_SCHEMA_ID=
POSTGRES_URL=
npm run devAccess at: http://localhost:3000
- Node.js >=22.10.0
nvm install 22.10.0
nvm use 22.10.0cd DataService
yarn installcp .env.example .env.developmentRequired variables:
PORT=4000
NODE_ENV=developmentyarn localAccess at: http://localhost:9000
- Node.js 23.3.0
nvm install 23.3.0
nvm use 23.3.0cd Eliza
pnpm install --no-frozen-lockfile
pnpm buildcp .env.example .envRequired variables:
SERVER_PORT=3000
CACHE_STORE=database
# AI Model (recommended: Anthropic Claude)
ANTHROPIC_API_KEY=<your-api-key>
SMALL_ANTHROPIC_MODEL=claude-3-haiku-20240307
MEDIUM_ANTHROPIC_MODEL=claude-3-5-sonnet-20241022
LARGE_ANTHROPIC_MODEL=claude-3-5-sonnet-20241022pnpm start:debug --character="charactersProd/infinity.character.json" Access at: http://localhost:3000
If you want to set up all platforms at once:
# Clone repository
git clone https://github.com/JulioMCruz/Infinity
cd Infinity
# Install all dependencies
cd Infinity && npm install
cd ../DataService && yarn install
cd ../Eliza && pnpm install --no-frozen-lockfile && pnpm build && pnpm start:debug --character="charactersProd/infinity-main.character.json"
# Start all services (in separate terminals)
# Terminal 1 - DataService
cd DataService && yarn local
# Terminal 2 - Eliza
cd Eliza && pnpm dev
# Terminal 3 - Frontend
cd Infinity && npm run dev- Privy Authentication Error
- Verify credentials in Privy dashboard
- Check redirect URLs configuration
- Nillion Error
- Verify credentials and DIDs
- Check node connectivity
- Connection Error
- Check if port 9000 is available
- Verify environment variables
- Check database connectivity
- AI Model Issues
- Verify Anthropic API key
- Check model availability
- Confirm environment variables
For setup issues:
- Check repository issues
- Review technical documentation
- Contact support team
For detailed component documentation, refer to respective platform folders.