This guide will help you get CoreAI up and running in minutes.
Before starting, make sure you have:
- Node.js 18 or higher installed
- Python 3.9 or higher installed
- Git installed
- A Google AI API key (get from Google AI Studio)
- A Serper API key for search (get from Serper.dev)
git clone https://github.com/Tanaybaviskar/CoreAI.git
cd CoreAI# Navigate to Python backend
cd backend/agentic
# Create virtual environment
python -m venv venv
# Activate it
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Setup environment
cp .env.example .envEdit .env file and add your API keys:
GOOGLE_API_KEY=your_google_ai_api_key
SERPER_API_KEY=your_serper_api_key# Start Python server
python main.pyKeep this terminal running. The server should start on http://localhost:5001
# From project root
cd backend
# Install dependencies
npm install
# Start proxy server
node index.jsKeep this terminal running. The server should start on http://localhost:3001
# From project root
cd frontend
# Install dependencies
npm install
# Start development server
npm run devThe frontend should start on http://localhost:3000
Navigate to http://localhost:3000 and start using CoreAI!
- Go to Google AI Studio
- Sign in with your Google account
- Click "Get API Key"
- Copy the key to your
.envfile
- Go to Serper.dev
- Sign up for a free account
- Get your API key from the dashboard
- Copy the key to your
.envfile
- Go to Google Cloud Console
- Create a new project
- Enable APIs:
- Google Calendar API
- Gmail API
- Google Meet API
- Create credentials (API key or OAuth 2.0)
- Add to
.envfile
- OpenWeatherMap: https://openweathermap.org/api
- Free tier: 60 calls/minute
- NewsAPI: https://newsapi.org
- Free tier: 100 requests/day
If you get "port already in use" errors:
# Find and kill the process
# Windows:
netstat -ano | findstr :5001
taskkill /PID <PID> /F
# macOS/Linux:
lsof -ti:5001 | xargs kill -9# Make sure virtual environment is activated
# Then reinstall dependencies
pip install -r requirements.txt --force-reinstall# Clear Next.js cache
cd frontend
rm -rf .next node_modules
npm install
npm run dev-
Check if all three servers are running:
- Python:
http://localhost:5001/health - Node.js:
http://localhost:3001/api/health - Frontend:
http://localhost:3000
- Python:
-
Check
.envfile has valid API keys -
Check firewall isn't blocking connections
Once all servers are running, test the setup:
-
Health Check:
curl http://localhost:5001/health curl http://localhost:3001/api/health
-
Frontend: Open
http://localhost:3000- You should see the CoreAI dashboard
- Navigate to different pages
- Try the chat interface
-
Test Agent: In the chat, type:
What's the weather like today?The Weather Agent should respond with weather data.
- Explore Dashboard: See real-time statistics
- Visit Agents Page: Check all 6 agents are running
- Try Chat: Ask questions like:
- "What's the weather today?"
- "Show me my tasks"
- "What's in the news?"
- Manage Connections: Visit Connections page to see available integrations
- Customize Settings: Set your name and AI persona
Create a production .env file:
# Production settings
DEBUG=False
PORT=5001
HOST=0.0.0.0
# Your production API keys
GOOGLE_API_KEY=production_key_here
SERPER_API_KEY=production_key_here
# Security
SECRET_KEY=generate_a_secure_random_key
JWT_SECRET=generate_another_secure_key
# Database (if using)
DATABASE_URL=postgresql://user:pass@host:5432/dbnameFrontend (Vercel):
cd frontend
npm run build
vercel deploy --prodBackend (Railway):
- Connect your GitHub repo
- Add environment variables
- Deploy from dashboard
- Read the full documentation
- Explore the agent system
- Customize the frontend
- Add new agents
- Integrate more APIs
- Check README.md for detailed documentation
- Open an issue on GitHub
- Check existing issues for solutions
You now have a fully functional enterprise AI assistant with:
- ✅ 6 specialized AI agents
- ✅ Supervisor coordination
- ✅ Modern web interface
- ✅ Real-time updates
- ✅ Multi-agent workflows
Happy building! 🎉