Transform stdio-based MCP servers into a first‑class CLI tool.
Apollo Agent
By AlexandrosLiaskos
AI-powered coding agent with semantic code understanding and structured reasoning
- Views
- 2
- Repository stars
- 6
- Platforms
- macOS, Linux
- Workspace
- CLI
Use cases
- 🔍 Semantic Code Analysis - Understands code structure, symbols, and relationships via Serena MCP
- 🧠 Structured Reasoning - Plans and executes multi-step tasks systematically
- 📚 Knowledge Base - Maintains context and learnings across sessions
- 🔧 Terminal Integration - Execute commands with smart sudo handling
- 📊 Symbol Indexing - Fast code navigation and search
- 🎨 Rich CLI Interface - Beautiful, informative terminal output
Platforms
macOS, Linux
System requirements
Required:
- Node.js ≥18.0.0 (install)
- uv - Python package manager (install)
- Linux or macOS (primary development platform)
Optional:
- OpenRouter API key (get one)
Component Minimum Recommended
----------- --------- -------------
OS Linux, macOS Arch Linux, Ubuntu 22.04+
Node.js 18.0.0 20.0.0+
RAM 2GB 4GB+
Storage 500MB 1GB+
Network Required High-speed
Configuration guide
Serena MCP (oraios/serena)
- Semantic code operations
- Symbol navigation
- Intelligent code editing
- Memory management
Sequential Thinking MCP (@modelcontextprotocol/server-sequential-thinking)
- Step-by-step reasoning
- Plan validation
- Structured problem solving
Cause: uv not installed or not in PATH
Fix:
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# Verify
uv --versionApollo Agent
█████╗ ██████╗ ██████╗ ██╗ ██╗ ██████╗
██╔══██╗██╔══██╗██╔═══██╗██║ ██║ ██╔═══██╗
███████║██████╔╝██║ ██║██║ ██║ ██║ ██║
██╔══██║██╔═══╝ ██║ ██║██║ ██║ ██║ ██║
██║ ██║██║ ╚██████╔╝███████╗███████╗╚██████╔╝
╚═╝ ╚═╝╚═╝ ╚═════╝ ╚══════╝╚══════╝ ╚═════╝
AI-powered coding agent with semantic code understanding and structured reasoning
Apollo Agent integrates cutting-edge MCP (Model Context Protocol) servers with OpenRouter LLMs to provide intelligent, context-aware assistance for software development tasks. It combines semantic code analysis (Serena), structured problem-solving (Sequential Thinking), and powerful language models to understand and manipulate codebases at a deep level.
🎯 Features
- 🔍 Semantic Code Analysis - Understands code structure, symbols, and relationships via Serena MCP
- 🧠 Structured Reasoning - Plans and executes multi-step tasks systematically
- 📚 Knowledge Base - Maintains context and learnings across sessions
- 🔧 Terminal Integration - Execute commands with smart sudo handling
- 📊 Symbol Indexing - Fast code navigation and search
- 🎨 Rich CLI Interface - Beautiful, informative terminal output
Prerequisites
Required:
- Node.js ≥18.0.0 (install)
- uv - Python package manager (install)
- Linux or macOS (primary development platform)
Optional:
- OpenRouter API key (get one)
Installation
# Clone the repository
git clone https://github.com/AlexandrosLiaskos/apollo-agent.git
cd apollo-agent
# Install dependencies
npm install
# Configure environment
cp .env.example .env
nano .env # Add your OPENROUTER_API_KEY
# Start Apollo
npm start
Interactive Mode
Apollo provides an interactive CLI where you can:
Give tasks:
? 🚀 Task: Refactor the UserService class to use async/await
Use commands:
status - Show agent status
tasks - View current task list
knowledge - List knowledge entries
symbols - Show symbol index stats
search <name> - Search for symbols
help - Show all commands
exit - Quit Apollo
Example Tasks
Code Analysis:
? Task: Find all uses of the calculateTotal function
? Task: Show me the structure of the UserController class
? Task: List all API endpoints in this project
Code Modification:
? Task: Add error handling to the login method
? Task: Convert all var declarations to const/let
? Task: Add TypeScript types to user.js
System Operations:
? Task: Install and configure the axios package
? Task: Update all dependencies to latest versions
? Task: Set up ESLint with standard config
Environment Variables
Edit .env:
# OpenRouter Configuration (REQUIRED)
OPENROUTER_API_KEY=your_api_key_here
# Model Selection (optional)
OPENROUTER_MODEL=anthropic/claude-sonnet-4
# Sudo Configuration (see below)
SUDO_MODE=auto # auto | nopasswd | interactive | password
Sudo Commands
Apollo can execute sudo commands. Configure via SUDO_MODE:
Option 1: Auto (Default)
SUDO_MODE=auto
Tries passwordless sudo first, falls back to interactive if needed.
Option 2: Passwordless Sudo (Recommended)
# Configure system for passwordless package management
sudo visudo
# Add (replace 'user' with your username):
user ALL=(ALL) NOPASSWD: /usr/bin/pacman
user ALL=(ALL) NOPASSWD: /usr/bin/apt-get
user ALL=(ALL) NOPASSWD: /usr/bin/dnf
# Then in .env:
SUDO_MODE=nopasswd
Option 3: Interactive
SUDO_MODE=interactive
Apollo pauses and prompts for password when needed.
Option 4: Password in Env (⚠️ Less Secure)
SUDO_MODE=password
SUDO_PASSWORD=your_password
Only for personal development with disk encryption.
MCP Servers
Serena MCP (oraios/serena)
- Semantic code operations
- Symbol navigation
- Intelligent code editing
- Memory management
Sequential Thinking MCP (@modelcontextprotocol/server-sequential-thinking)
- Step-by-step reasoning
- Plan validation
- Structured problem solving
"Serena MCP failed to connect"
Cause: uv not installed or not in PATH
Fix:
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# Verify
uv --version
📊 System Requirements
| Component | Minimum | Recommended |
|---|---|---|
| OS | Linux, macOS | Arch Linux, Ubuntu 22.04+ |
| Node.js | 18.0.0 | 20.0.0+ |
| RAM | 2GB | 4GB+ |
| Storage | 500MB | 1GB+ |
| Network | Required | High-speed |
OpenSeek - 广度求索: open-source TUI coding agent with multi-provider routing, MCP, LSP, and Plan/Agent/YOLO modes.
AdaL is an AI agent for video: launch films, product demos and UGC ads. This is the community home for the AdaL CLI. adalagent.ai
Open-source AI coding agent and agent runtime: one binary, any model, MCP-native. Runs in terminal, CI, or as a daemon.
