You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LLaMA Panel is a self-hosted AI assistant ecosystem built by Efe Aydın, designed to run local LLMs (via llama.cpp, Ollama, or any OpenAI-compatible server) with three integrated interfaces:
Component
File
Port
Description
🖥️ Admin Panel
app.py
5050
Full LLM management dashboard with model control, memory management, bot monitoring, and admin chat
💬 Web Chat
chat_client.py
5051
Standalone web chat UI with user accounts, rate limiting, file uploads, and AI expert tools
📱 WhatsApp Bot
whatsapp_bot.js
—
Responds to WhatsApp messages with AI, Google search, image analysis, and conversation memory
Multimodal Support: mmproj projector toggle and selector UI for vision models
Chat Interface: Built-in admin chat with system prompt customization
Contact Management: View/toggle AI permissions per WhatsApp contact
Bot Control: Start/stop/restart the WhatsApp bot process with health monitoring
Real-time Metrics: SSE-powered live dashboard with message counts, cache stats, DB size
Maintenance: Manual/automatic DB maintenance — VACUUM, WAL checkpoint, L2→L3 archival
Web Chat Users: Manage web chat user accounts, limits, and expert tool access
🔒 Security
API Key Authentication: Optional PANEL_API_KEY for all /api/* endpoints
Rate Limiting: Configurable per-user hourly and daily message limits
Input Sanitization: DOMPurify for HTML, secure filename handling for uploads
No Hardcoded Secrets: All sensitive configuration via environment variables
🚀 Quick Start
Prerequisites
Python 3.10+
Node.js 18+
Local LLM server running on port 8080 (llama.cpp, Ollama, etc.)
Installation
# Clone the repository
git clone https://github.com/eeea2222/EfeMultiAIbot.git
cd EfeMultiAIbot
# 1. Install Python dependencies
pip install -r requirements.txt
# 2. Install Node.js dependencies (for WhatsApp bot)
npm install
# 3. Start the Admin Panel
python app.py
# 4. (Optional) Start the Web Chat in a separate terminal
python chat_client.py
# 5. Open the admin panel# → http://localhost:5050# 6. Open the web chat# → http://localhost:5051
CLI Options
python app.py # Panel (5050) + WhatsApp bot
python app.py --panel-only # Web panel only (no bot)
python app.py --bot-only # WhatsApp bot only
python app.py --setup # Install npm dependencies
python app.py --stats # Show memory/system statistics
python app.py --maintenance # Run manual DB maintenance
python app.py --gunicorn # Start with Gunicorn (production)
⚠️Critical: SSE endpoints (/api/chat, /api/logs, /api/stats/stream, /api/webchat/chat, /api/send) require proxy_buffering off — this is pre-configured in nginx.conf.
Bu projelerin geliştiricilerine ve açık kaynak topluluğuna teşekkürler! ❤️
⚠️ Bildiri (Disclaimer)
Bu proje eğitim ve kişisel kullanım amaçlıdır.
Bu yazılım "olduğu gibi" (as-is) sunulmaktadır. Yazar, yazılımın kullanımından doğabilecek herhangi bir zarardan sorumlu değildir.
WhatsApp botu, whatsapp-web.js kütüphanesini kullanır. Bu kütüphane WhatsApp'ın resmi olmayan bir API'sidir. Kullanımı WhatsApp'ın Hizmet Şartları'na aykırı olabilir. Hesap askıya alma riski kullanıcıya aittir.
Bu yazılımı spam, taciz, izinsiz veri toplama veya yasalara aykırı herhangi bir amaçla kullanmak kesinlikle yasaktır.
LLM (Büyük Dil Modeli) çıktıları her zaman doğru olmayabilir. Yapay zeka yanıtlarını doğrulamadan kritik kararlarda kullanmayın.