Modular AI agent platform with multi-provider LLM support.
π This is a demo project for learning and exploration purposes.
π·πΊ Π ΡΡΡΠΊΠ°Ρ Π²Π΅ΡΡΠΈΡ
| Feature | Description |
|---|---|
| π Plug & Play LLMs | Switch between Gemini, OpenRouter, or any OpenAI-compatible API |
| π§© Modular Agents | Each agent is independent β add your own in minutes |
| π οΈ Real Tool Execution | Agents don't just chat β they do things: search, code, analyze |
| π Live Crypto Data | Binance API integration with real-time prices, orderbook, trades |
| π³ Docker Sandbox | Code execution in isolated containers β safe and reproducible |
| β‘ Native Tool Calling | Gemini 2.5 Pro uses native function calling for reliable execution |
Intelligent conversational agent with web capabilities
- Smart Search β Multi-source web search with result aggregation
- Page Reading β Extract and summarize content from any URL
- Context Awareness β Maintains conversation history and session state
Full-featured coding assistant that actually executes code
- File Operations β Create, read, list files in isolated workspace
- Code Execution β Run Python in sandboxed Docker environment
- Multi-File Projects β Import between files, build complete projects
- Native Tool Calling β Gemini 2.5 Pro uses native function calling
- Tool Support Indicator β β
/
β οΈ shows which models support native tools
Example:
User: Calculate fibonacci sequence up to 100
Agent: I'll create and run a Python script for you.
[Creates fibonacci.py β Executes β Returns result]
Output: [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
Professional cryptocurrency analyzer with real-time Binance data
Real-time data from Binance API:
- π° Price & Candles β Current price, 24h change, multi-timeframe data
- π 12 Technical Indicators β RSI, MACD, EMA, Bollinger, StochRSI, ADX, ATR, VWAP, OBV, Ichimoku, SuperTrend, CMF
- π Orderbook Analysis β Deltas at 7 levels (1.5%, 3%, 5%, 15%, 30%, 60%, 90%)
- π Trade Flow β Buy/sell pressure, whale activity, trade velocity, size distribution
- π Futures Data β Funding Rate, Open Interest, Long/Short Ratio
- π― Smart Money Concepts β FVG, Order Blocks, Market Structure (HH/HL/LL/LH), Liquidity Zones
- ποΈ Multi-Timeframe β Short/Medium/Long-term analysis (3 horizons)
- π Volume Analysis β Volume Delta, Relative Volume, Volume Profile (POC, VAH, VAL)
- π¨ Market Context β Fear & Greed Index, total market cap
Modular Queries:
"analyze BTC" β Full analysis
"indicators ETH" β Technical indicators only
"orderbook SOL" β Orderbook analysis
"smc BTC" β Smart Money Concepts
"sentiment ETH" β Fear&Greed + Funding Rate
"volume SOL" β Volume analysis
"mtf BTC" β Multi-timeframe
Example Analysis:
π BTC/USDT Analysis | 2025-12-07
Price: $89,690.73 (-0.03% 24h)
MTF Signal: Bearish (Short: bullish, Medium: mixed, Long: bearish)
Order Flow: 82.6% buys β BUT whales selling (6 whale sells, 0 buys)
Smart Money: Downtrend structure (2 LH, 2 LL), 3 bearish FVG targets
Futures: L/S Ratio 2.17 (longs overloaded β squeeze risk)
Verdict: SELL β Retail buying into whale distribution
βββββββββββββββ ββββββββββββββββ βββββββββββββββββββ
β Frontend ββββββΆβ FastAPI ββββββΆβ LLM Provider β
β (React) β β (routes) β β Gemini/OpenRouterβ
βββββββββββββββ ββββββββββββββββ βββββββββββββββββββ
β
ββββββββ΄βββββββ
βΌ βΌ
βββββββββββ βββββββββββ
β Agent β β Session β
β Dialog/ β β Manager β
β Coder/ β βββββββββββ
β Crypto β
ββββββ¬βββββ
βΌ
βββββββββββ
β Tools β
β search/ β
β files/ β
β code/ β
β crypto β
βββββββββββ
This project implements multiple layers of security for code execution:
| Layer | Protection |
|---|---|
| π³ Sandbox Container | Code runs in isolated Docker container with no network access |
| π Path Validation | All file operations restricted to session workspace |
| β±οΈ Resource Limits | CPU, memory, and timeout constraints |
| π€ Non-root User | Sandbox runs as unprivileged user |
β οΈ Disclaimer: This is a demonstration project. For production use, consider additional hardening (gVisor, Firecracker, etc.)
| Issue | Description | Status |
|---|---|---|
| Sandbox Fallback | If sandbox is unavailable, code may execute locally | |
| Context Window | Long conversations may exceed token limits (no RAG) | Demo scope |
| Regex JSON Fallback | Legacy fallback for non-native tool calling models | Use Gemini 2.5 Pro |
git clone https://github.com/nssanta/Multi-Agent-Router.git
cd Multi-Agent-Router
cp .env.example .env
# Add your API keys to .env
docker compose up --buildOpen: http://localhost:3000
# Required
GEMINI_API_KEY=your_gemini_key
OPENROUTER_API_KEY=your_openrouter_key
# Optional
LLM_PROVIDER=gemini # or openrouter
LLM_MODEL=gemini-2.5-pro # default model# backend/agents/my_agent/agent.py
def create_my_agent(llm_provider, session_path):
return Agent(
name="my_agent",
llm_provider=llm_provider,
instruction="Your custom prompt",
tool_definitions=[...],
)# backend/tools/my_tool.py
def my_tool(param: str) -> str:
"""Tool description for LLM"""
return f"Result: {param}"backend/
βββ agents/ # Dialog, Coder, Crypto agents
β βββ dialog/ # Conversational agent
β βββ coder/ # Code execution agent
β βββ crypto/ # Cryptocurrency analyst
βββ api/ # FastAPI routes
βββ core/ # LLM providers, sessions, executor
βββ tools/ # Agent tools
βββ web/ # Search, page reader
βββ crypto/ # Binance API, indicators
frontend/
βββ src/components/ # React components
βββ src/services/ # API client
Full technical documentation: TECHNICAL_DOCS.md
MIT

