Welcome to AegisCode! This guide will help you set up and start using the most advanced self-hosted AI code editor.
- Node.js >= 18.x (Download)
- Docker (Download) - Required for sandboxed code execution
- Git (Download)
- (Optional) API keys for premium AI models (OpenAI, Anthropic, Gemini)
git clone https://github.com/[YOUR_USERNAME]/AegisCode.git
cd AegisCodeLinux/macOS:
chmod +x setup.sh
./setup.shWindows:
setup.batcp .env.example .env
# Edit .env with your API keys and preferencesnpm run devOpen your browser and navigate to http://localhost:3000
If you prefer manual setup or the automated script fails:
cd src/backend
npm init -y
npm install express cors helmet morgan dotenv jsonwebtoken bcryptjs
npm install -D nodemon @types/node typescript ts-node
npm installcd src/frontend
npm init -y
npm install react react-dom react-router-dom
npm install -D @vitejs/plugin-react vite typescript @types/react @types/react-dom
npm installcd ../..
npm install concurrently- Open AegisCode: Navigate to http://localhost:3000
- Create Account: Set up your user account
- Configure AI Models: Connect your preferred AI models
- Start Coding: Begin using AI-assisted development!
Key configuration options in .env:
OPENAI_API_KEY: Your OpenAI API keyANTHROPIC_API_KEY: Your Anthropic API keyGEMINI_API_KEY: Your Google Gemini API keyOLLAMA_BASE_URL: Local Ollama instance URLJWT_SECRET: Secret for authentication tokensDATABASE_URL: PostgreSQL connection string
- Open Source Models: Install Ollama for local models
- Premium Models: Add API keys to
.envfile - Model Selection: Configure auto-selection or manual choice
- Explore Extensions: Browse the Extensions Marketplace
- Try Agentic Features: Use AI for code planning and building
- Customize Workspace: Personalize your development environment
- Join Community: Connect with other AegisCode users
Port Already in Use:
# Kill processes using ports 3000/3001
lsof -ti:3000 | xargs kill -9
lsof -ti:3001 | xargs kill -9Docker Not Running:
# Start Docker service
sudo systemctl start docker # Linux
# Or start Docker Desktop on Windows/macOSPermission Denied:
# Fix script permissions
chmod +x setup.sh- Documentation: Check the
docs/directory - Issues: GitHub Issues
- Discussions: GitHub Discussions
- FAQ: See FAQ.md for common questions