Self-Hosting
Mudabbir is designed to be self-hosted. Here’s how to deploy it on your own server.
Requirements
- Python 3.11+
- 2GB RAM minimum (4GB recommended with Mem0)
- Linux, macOS, or Windows (Linux recommended for servers)
- Anthropic API key (for Claude Agent SDK backend)
Basic Deployment
Install
# Create a dedicated user (optional)sudo useradd -m -s /bin/bash mudabbir
# Install Mudabbircurl -fsSL https://mudabbir.fly.dev/install.sh | shConfigure
Create the config file:
mkdir -p ~/.mudabbircat > ~/.mudabbir/config.json << 'EOF'{ "anthropic_api_key": "sk-ant-your-key", "agent_backend": "claude_agent_sdk", "tool_profile": "coding"}EOFchmod 600 ~/.mudabbir/config.jsonRun
mudabbirThe dashboard starts on http://0.0.0.0:8888.
Production Deployment
Behind a Reverse Proxy
For production, put Mudabbir behind nginx or Caddy:
Caddy (recommended):
mudabbir.example.com { reverse_proxy localhost:8888}nginx:
server { listen 443 ssl; server_name mudabbir.example.com;
ssl_certificate /etc/ssl/certs/mudabbir.crt; ssl_certificate_key /etc/ssl/private/mudabbir.key;
location / { proxy_pass http://localhost:8888; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; }}Warning
The WebSocket connection requires Upgrade and Connection headers to be properly proxied. Without these, real-time streaming won’t work.
Environment Variables
Set environment variables in a .env file or your system’s environment:
MUDABBIR_ANTHROPIC_API_KEY=sk-ant-...MUDABBIR_WEB_HOST=127.0.0.1MUDABBIR_WEB_PORT=8888MUDABBIR_TOOL_PROFILE=codingSecurity Hardening
- Run as a dedicated user — Don’t run as root
- Restrict file permissions — Config files should be 600
- Use a firewall — Only expose the reverse proxy port
- Enable Guardian AI — Active by default with Anthropic key
- Set allowed IDs — Restrict channel access to specific users
- Run security audit —
mudabbir --security-audit
Resource Planning
| Component | RAM | CPU | Notes |
|---|---|---|---|
| Mudabbir core | ~100MB | Minimal | FastAPI + agent loop |
| Mem0 + Qdrant | ~500MB | Minimal | Embedded vector store |
| Ollama (local) | 4-16GB | GPU recommended | Depends on model size |
| Playwright | ~200MB | Moderate | Browser automation |
For a typical deployment with Claude Agent SDK (cloud) and Mem0 with Ollama:
- Minimum: 4GB RAM, 2 CPU cores
- Recommended: 8GB RAM, 4 CPU cores
Was this page helpful?