A production-ready autonomous AI agent system for businesses. NEXUS automates everything from web research to deployments, email management, social media posting, and more.
Status: β PRODUCTION READY - See INDEX.md for complete documentation navigation.
- INDEX.md - Documentation navigation guide (start here!)
- SUMMARY.md - Executive summary (5 min read)
- QUICKSTART.md - Get running in 5 minutes
- SETUP.md - Detailed configuration guide
- REVIEW.md - Technical validation report
- Web Intelligence: Search, research, and scrape web content
- Browser Automation: Navigate, click, fill forms, extract data
- Code Management: Write, debug, test, and deploy code via Git
- Workflow Automation: Create and manage n8n workflows
- Deployment: Manage Vercel, AWS, and other platforms
- Content Creation: Generate images, videos, and audio
- Social Media: Post to Twitter, LinkedIn, Instagram with scheduling
- Email: Send, receive, search, and manage emails
- Payment Processing: Handle Stripe payments and invoices
- Communication: Telegram bot for command interface
- Memory: Long-term semantic memory with Supabase + pgvector
- Self-Expansion: Install packages and tools on demand
- Smart Routing: Auto-selects optimal AI model per task
- Task Planning: Decomposes complex tasks into subtasks
- Error Handling: Retry logic with exponential backoff
- Cost Tracking: Monitors API costs per task and model
nexus/
βββ agent/ # Core agent logic (router, planner, executor)
βββ tools/ # Tool registry and implementations
βββ memory/ # Short-term (Redis) and long-term (Supabase)
βββ channels/ # Communication interfaces (Telegram)
βββ scheduler/ # Autonomous task scheduling
βββ config.py # Environment and configuration
βββ main.py # Entry point
- Language: Python 3.12
- LLMs: OpenRouter (minimax, GLM-5, Gemini 2.5-flash, Claude Sonnet)
- Browser: Playwright + browser-use
- Memory: Supabase + pgvector
- Cache: Redis
- Messaging: Telegram API
- Scheduler: APScheduler
- Web Search: Tavily API
- Media: Replicate, Kling, Fish Audio
git clone https://github.com/yourusername/nexus.git
cd nexuscp .env.example .env
# Edit .env with your API keyspip install -r requirements.txt
playwright install chromium-- Create tables for memory and entities
CREATE TABLE memories (
id BIGSERIAL PRIMARY KEY,
content TEXT,
metadata JSONB,
embedding vector(32),
created_at TIMESTAMP DEFAULT NOW()
);
CREATE TABLE clients (id BIGSERIAL PRIMARY KEY, name TEXT, email TEXT);
CREATE TABLE tasks (id BIGSERIAL PRIMARY KEY, title TEXT, status TEXT, description TEXT);
CREATE TABLE events (id BIGSERIAL PRIMARY KEY, title TEXT, start_time TIMESTAMP, end_time TIMESTAMP);
CREATE TABLE revenue (id BIGSERIAL PRIMARY KEY, amount FLOAT, source TEXT, description TEXT, date TIMESTAMP);docker run -d -p 6379:6379 redis:7-alpinepython main.pySend any message to your NEXUS Telegram bot to execute tasks
Commands:
/start - Initialize
/help - Show help
/status - Agent status
/tasks - Pending tasks
/revenue - Revenue summary
from agent.core import nexus_core
result = await nexus_core.process_message(
"Search for Python async tutorials",
session_id="session_123"
)- "Search for machine learning trends in 2024"
- "Create a blog post about AI and publish it to WordPress"
- "Post a LinkedIn article with an AI-generated image"
- "Deploy the latest code to Vercel and send me the URL"
- "Send an email summary of today's activity"
- "Execute the 'lead_generation' n8n workflow"
- 6 AM: Morning briefing with yesterday's metrics
- 9 AM: Hunt for Upwork freelance projects
- 11 AM: Post daily LinkedIn content
- 6 PM: Evening summary with costs and results
NEXUS automatically selects the most cost-effective model:
- Simple tasks: Gemini 2.5-flash (cheapest)
- Browser tasks: GLM-5 (best vision)
- Complex tasks: minimax-m2.5 (best tool calling)
- Fallback: Claude Sonnet (most reliable)
Track costs with:
# In Telegram
/status # Shows total API costs- SUMMARY.md - Executive summary with quick overview
- REVIEW.md - Complete validation report and architecture verification
- SETUP.md - Detailed installation and configuration guide
- QUICKSTART.md - 5-minute quick start guide
- CHANGELOG.md - Complete change log of all modifications
- β API keys in .env (never committed)
- β Approval required for payments
- β All actions logged
- β HTTPS for external APIs
- β Token rotation recommended
# Build and run with Docker Compose
docker-compose up -d
# Logs
docker-compose logs -f nexus- Telegram: Real-time notifications
- Logs:
nexus.logwith all operations - Memory: Redis + Supabase for context
- Metrics: Cost, execution time, success rate
Contributions welcome! Please:
- Fork the repo
- Create a feature branch
- Add tests
- Submit a PR
MIT License - See LICENSE file
- GitHub Issues: Bug reports and feature requests
- Email: support@nexusai.com
- Telegram: @nexus_ai_bot
NEXUS - Your autonomous AI operating system for business success π€β¨