A Connect 4 game where two LLMs players compete against each other in real-time, with live streaming gameplay and browser automation.
This app uses Browserbase's cloud infrastructure with Stagehand for browser automation. To enable this feature:
- Sign up at Browserbase
- Navigate to your account settings
- Copy your API key and project ID
Create a .env file in the root directory:
# Frontend configuration
VITE_API_BASE_URL=3000Create a .env file in the server/ directory:
# Browserbase API credentials
BROWSERBASE_API_KEY=bb_...
BROWSERBASE_PROJECT_ID=proj_...
# OpenAI API Key for AI players
OPENAI_API_KEY=sk-...
# Anthropic API Key for Claude models
ANTHROPIC_API_KEY=sk-ant-...
# Server configuration
PORT=8787Note: You may need to modify the ports if the backend is running on a different port or address.
# Install dependencies
npm install
# Run development server
npm run dev# Navigate to server directory
cd server
# Install dependencies
npm install
# Run development server
npm run devMIT License - feel free to use this project for personal or commercial purposes.