Automagik Omni logo

Automagik Omni

Organization
namastexlabs

🌐 The omnipresent messaging hub for AI agents. Connect to WhatsApp, Discord, Slack, and more through one unified API. Multi-tenant, production-ready, MCP-native.

Publishernamastexlabs
Repositoryautomagik-omni
LanguagePython
Forks
9
Stars
22
Available tools
0
Transport typestdio
Categories
LicenseApache-2.0
Links
  • Connect tools to AI workflows

    Automagik Omni exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    22 stars and 9 forks from the linked repository.

[!IMPORTANT] This repository has been superseded. Omni v2 — a complete TypeScript/Bun rewrite with event-driven architecture (NATS JetStream), a CLI-first design, and expanded channel support — is now the active project.

New home: automagik-dev/omni

This repo is archived and no longer maintained. Please star and use the new one!


🚀 What is Automagik Omni?

Automagik Omni is your AI agent's universal translator for the messaging world. Think of it as an intelligent postman who:

  • 🗺️ Knows every address (WhatsApp, Discord, Slack, Instagram...)
  • 🌍 Speaks every language (different protocols and APIs)
  • 📬 Delivers messages reliably, every time
  • 👥 Remembers every conversation for analytics and debugging

💔 The Problem: Integration Hell

"Building messaging integrations is a developer's nightmare"

Every time you want your AI agent to work on a new platform, you face:

  • 📚 Learn a new API: Each platform has different docs, authentication, webhooks
  • ♻️ Duplicate code: The same logic written 5 different ways for 5 platforms
  • 🐛 Maintenance nightmare: Updates break across different integrations
  • ⏰ Procrastination paralysis: "I'll add Slack support... later"
  • 🔥 Production fires: When WhatsApp breaks, everything breaks

The result? Months of development, fragile code, and agents that only work on 1-2 platforms.

✨ The Omni Solution: Write Once, Connect Everywhere

What you get:

  • ✍️ Write integration code once → works everywhere
  • 🔌 Plug & Play: Connect new channels in minutes, not weeks
  • 🏗️ Production-grade: Multi-tenant, secure, scalable from day one
  • 📊 Full visibility: Every message traced from input to output
  • 🤖 MCP-native: Control via Claude, Cursor, or any MCP tool

🌟 The Vision: True Omnipresence

Imagine talking to the same AI agent across all your apps, with perfect context:

"Hey assistant, I saw a cool product on Instagram—can you help me order it here on WhatsApp?"

The agent remembers who you are, what you were talking about, and responds naturally—regardless of platform.

Today: Omni makes your agents present on multiple channels Tomorrow: True omnipresence with shared context across all platforms


🌟 Key Features

✅ Production-Ready Today

  • 🔌 Plug & Play Setup: From zero to sending messages in under 5 minutes
  • 🏢 Multi-Tenant Architecture: Complete isolation between instances, teams, and clients
  • 📊 Comprehensive Tracing: Every message logged with performance metrics and payloads
  • 🔐 Enterprise Security: API key authentication, request validation, CORS controls
  • 🤖 MCP Server Built-in: Control from Claude Code, Cursor, or any MCP-compatible tool
  • 🚀 Battle-Tested Scale: Handle 100+ instances and hundreds of concurrent conversations
  • 🔄 Real-Time Streaming: SSE support for Automagik Hive agents
  • 🐳 Deployment Flexible: Docker, PM2, systemd—deploy however you prefer

📱 Supported Channels

ChannelStatusFeatures
WhatsApp✅ ProductionText, media, audio, stickers, reactions, presence, QR login via Evolution API
Discord✅ ProductionMulti-server, text, attachments, voice infrastructure, bot + IPC architecture
Slack🔄 Q4 2025Full workspace integration with threads and reactions
WhatsApp Business🔄 Q4 2025Business API with Flows for structured interactions
Instagram Direct📅 Q1 2026DMs, stories, and engagement
Telegram📅 Q1 2026Bots, channels, and groups
Microsoft Teams📅 Q1 2026Enterprise collaboration
LinkedIn Messages📅 2026-2027Professional networking
WeChat📅 2026-2027China market access
TikTok DMs📅 2026-2027Short-form social engagement
SMS Gateway📅 2026-2027Universal text messaging

🧩 Integrations

Works seamlessly with the Automagik ecosystem:

  • Automagik Hive: Multi-agent orchestration with streaming SSE
  • Automagik Spark: Scheduled messaging and workflows
  • Automagik Tools: MCP tools for enhanced agent capabilities
  • Any OpenAPI-Compatible Agent: Bring your own agent with standard HTTP APIs

📦 Quick Start

Prerequisites

  • Python 3.12+ (3.11+ supported)
  • PostgreSQL (recommended) or SQLite (for development)
  • Node.js 20+ (for Evolution API - WhatsApp integration)
  • Discord Bot Token (optional, for Discord) - Create here

Note: Evolution API (WhatsApp) is included as a git submodule with SQLite support - no Docker required!

Installation

bash
# 1. Clone with submodules (includes Evolution API for WhatsApp)
git clone --recurse-submodules https://github.com/namastexlabs/automagik-omni.git
cd automagik-omni

# 2. Run the setup script (installs everything)
./update-automagik-omni.sh
# This installs Python deps, Evolution API deps, and runs migrations

# 3. Configure your API keys
cp .env.example .env
nano .env  # Set EVOLUTION_API_KEY and AUTOMAGIK_OMNI_API_KEY

# 4. Start all services with PM2
pm2 start ecosystem.config.js

# ✅ Done! Services running:
# - Omni API: http://localhost:8882
# - Evolution API (WhatsApp): http://localhost:18082

What gets installed:

  • ✅ Omni Backend - Multi-tenant messaging hub (Python/FastAPI)
  • ✅ Evolution API - WhatsApp integration with SQLite (no Docker!)
  • ✅ Health Checks - Ensures services start in correct order
  • ✅ Discord Manager - Multi-bot Discord integration (optional)

Your First Message in 60 Seconds

Quick Start with Defaults

Use this curl command to create your first instance with local Evolution API:

bash
# Create instance with local Evolution API (started via PM2)
curl -X POST http://localhost:8882/api/v1/instances \
  -H "x-api-key: YOUR_OMNI_API_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "my-first-bot",
    "channel_type": "whatsapp",
    "evolution_url": "http://localhost:18082",
    "evolution_key": "YOUR_EVOLUTION_API_KEY_HERE",
    "agent_api_url": "http://localhost:8886",
    "agent_api_key": "YOUR_AGENT_API_KEY_HERE",
    "default_agent": "template-agent"
  }'

Replace the placeholders:

  • YOUR_OMNI_API_KEY_HERE → Value from AUTOMAGIK_OMNI_API_KEY in your .env
  • YOUR_EVOLUTION_API_KEY_HERE → Value from EVOLUTION_API_KEY in your .env
  • YOUR_AGENT_API_KEY_HERE → Your AI agent's API key (e.g., Automagik Hive)

Default ports:

  • Evolution API (WhatsApp): localhost:18082
  • Omni API: localhost:8882
  • Automagik Hive (optional): localhost:8886

Complete Example

bash
# Check health
curl http://localhost:8882/health
# {"status": "healthy"}

# Get QR code to connect WhatsApp
curl http://localhost:8882/api/v1/instances/my-first-bot/qr \
  -H "x-api-key: YOUR_OMNI_API_KEY_HERE"
# Scan with WhatsApp → Connected!

# Send a test message
curl -X POST http://localhost:8882/api/v1/instances/my-first-bot/send-text \
  -H "x-api-key: YOUR_OMNI_API_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "phone": "+1234567890",
    "message": "🎉 Hello from Automagik Omni!"
  }'

That's it! Your agent is now live and responding on WhatsApp.

Security Note: Always use strong, unique API keys in production. Never commit real keys to git.


🏗️ Architecture

How Omni Works

┌─────────────────────────────────────────────────────────────┐
│                         OMNI HUB                             │
├─────────────────────────────────────────────────────────────┤
│                                                               │
│  ┌──────────────┐      ┌───────────────┐      ┌──────────┐ │
│  │   WhatsApp   │─────▶│   Instance    │─────▶│   AI     │ │
│  │   Webhook    │      │   Manager     │      │  Agent   │ │
│  └──────────────┘      └───────────────┘      └──────────┘ │
│                               │                              │
│  ┌──────────────┐             │                              │
│  │   Discord    │─────────────┤                              │
│  │   Bot + IPC  │             │                              │
│  └──────────────┘             │                              │
│                         ┌─────▼──────┐                       │
│  ┌──────────────┐      │   Message   │      ┌──────────┐   │
│  │   Slack      │─────▶│   Router    │─────▶│  Trace   │   │
│  │   (Soon)     │      │  & Handler  │      │  Store   │   │
│  └──────────────┘      └─────────────┘      └──────────┘   │
│                                                               │
└─────────────────────────────────────────────────────────────┘

Core Components

  1. Instance Manager: Multi-tenant instance management with complete isolation
  2. Channel Handler Factory: Pluggable architecture for platform-specific logic
  3. Message Router: Validates, enriches, and routes messages to appropriate agents
  4. Trace System: Complete message lifecycle tracking with performance metrics
  5. MCP Server: Remote control interface for AI coding agents

Message Flow

User sends message → Platform webhook → Omni validates
                                      ↓
                              Access control check
                                      ↓
                              Route to AI agent
                                      ↓
                              Agent processes (with streaming support)
                                      ↓
                              Format for platform
                                      ↓
                              Send via channel
                                      ↓
                              Store trace for analytics

🤖 MCP: Control from Anywhere

Automagik Omni includes a Model Context Protocol (MCP) server, enabling AI agents to programmatically manage messaging instances and send messages.

Available MCP Tools

ToolDescriptionOperations
manage_instancesInstance CRUD operationslist, get, create, update, delete, status, qr, restart, logout
send_messageSend messages to any channeltext, media, audio, sticker, contact, reaction
manage_tracesMessage history and analyticslist, get, analytics, cleanup
manage_profilesUser profile managementfetch, update_picture

Quick MCP Setup

Add to your Claude Code MCP servers configuration:

json
{
  "mcpServers": {
    "omni": {
      "command": "uvx",
      "args": ["--from", "automagik-omni", "mcp-server-omni"],
      "env": {
        "OMNI_URL": "http://localhost:8000",
        "OMNI_API_KEY": "your-api-key-here"
      }
    }
  }
}

Usage:

"List all my messaging instances"
"Send a WhatsApp message to +1234567890: Hello!"
"Show me message analytics for the last 24 hours"

Add to Cursor's MCP settings:

json
{
  "mcp.servers": {
    "omni": {
      "command": "uvx",
      "args": ["--from", "automagik-omni", "mcp-server-omni"],
      "env": {
        "OMNI_URL": "http://localhost:8000",
        "OMNI_API_KEY": "your-api-key-here"
      }
    }
  }
}

For the Cline extension:

json
{
  "cline.mcpServers": [
    {
      "name": "omni",
      "command": "uvx",
      "args": ["--from", "automagik-omni", "mcp-server-omni"],
      "env": {
        "OMNI_URL": "http://localhost:8000",
        "OMNI_API_KEY": "your-api-key-here"
      }
    }
  ]
}

For any MCP-compatible tool:

json
{
  "command": "uvx",
  "args": ["--from", "automagik-omni", "mcp-server-omni"],
  "env": {
    "OMNI_URL": "http://localhost:8000",
    "OMNI_API_KEY": "your-api-key-here"
  }
}

MCP Usage Examples

bash
# From Claude Code or any MCP client

"Create a new WhatsApp instance named 'support-bot'"
→ Uses manage_instances to create and configure

"Send a message to customer +5511999999999: Your order has shipped!"
→ Uses send_message with proper formatting

"Show me all failed messages from yesterday"
→ Uses manage_traces with filters

"Get QR code for my WhatsApp instance 'sales-team'"
→ Uses manage_instances(operation="qr")

🛠️ API Reference

Core Endpoints

Instance Management

http
# List all instances
GET /api/v1/instances
Headers: x-api-key: your-key

# Create new instance
POST /api/v1/instances
{
  "name": "my-bot",
  "channel_type": "whatsapp|discord",
  "evolution_url": "https://...",  # WhatsApp only
  "evolution_api_key": "...",      # WhatsApp only
  "discord_token": "...",          # Discord only
  "agent_url": "https://your-agent.com/chat",
  "agent_api_key": "optional"
}

# Get instance details
GET /api/v1/instances/{name}

# Update instance
PATCH /api/v1/instances/{name}
{
  "agent_url": "https://new-endpoint.com"
}

# Delete instance
DELETE /api/v1/instances/{name}

Channel Operations

http
# Get WhatsApp QR Code
GET /api/v1/instances/{name}/qr

# Check connection status
GET /api/v1/instances/{name}/status

# Restart connection
POST /api/v1/instances/{name}/restart

# Logout/disconnect
POST /api/v1/instances/{name}/logout

Messaging

http
# Send text message
POST /api/v1/instances/{name}/send-text
{
  "phone": "+1234567890",
  "message": "Hello!",
  "quoted_message_id": "optional"
}

# Send media (image, video, document)
POST /api/v1/instances/{name}/send-media
{
  "phone": "+1234567890",
  "media_url": "https://example.com/image.jpg",
  "media_type": "image|video|document",
  "caption": "Optional caption"
}

# Send audio/voice note
POST /api/v1/instances/{name}/send-audio
{
  "phone": "+1234567890",
  "audio_url": "https://example.com/audio.mp3"
}

# Send reaction
POST /api/v1/instances/{name}/send-reaction
{
  "phone": "+1234567890",
  "message_id": "message-to-react-to",
  "emoji": "👍"
}

Traces & Analytics

http
# List message traces
GET /api/v1/traces?instance_name=my-bot&limit=50

# Get specific trace
GET /api/v1/traces/{trace_id}

# Analytics summary
GET /api/v1/traces/analytics/summary?start_date=2025-01-01

# Cleanup old traces
POST /api/v1/traces/cleanup
{
  "days_old": 30,
  "dry_run": false
}

Authentication

All API requests require the x-api-key header:

bash
curl -H "x-api-key: your-secret-key" \
  http://localhost:8000/api/v1/instances

Set your API key in .env:

env
OMNI_API_KEY=your-super-secret-key-here

🎯 Agent Integration

Automagik Hive (Recommended)

Omni has first-class support for Automagik Hive with streaming Server-Sent Events:

python
# Hive agent responds with SSE streaming
# Omni automatically:
# 1. Buffers the stream
# 2. Formats for the target channel
# 3. Sends when complete
# 4. Handles errors gracefully

# Just point agent_url to your Hive endpoint!

Custom HTTP Agent

Any agent that accepts HTTP POST with JSON:

json
POST https://your-agent.com/chat
Content-Type: application/json

{
  "message": "User's message",
  "user_id": "platform:user_id",
  "platform": "whatsapp|discord",
  "context": {
    "phone": "+1234567890",
    "instance_name": "my-bot"
  }
}

Response:
{
  "response": "Agent's reply message"
}

OpenAPI-Compatible Agent

If your agent has an OpenAPI spec, it just works:

bash
# Create instance pointing to any OpenAPI endpoint
curl -X POST http://localhost:8000/api/v1/instances \
  -H "x-api-key: your-key" \
  -d '{
    "agent_url": "https://api.yourservice.com/v1/chat",
    "agent_api_key": "service-api-key"
  }'

🗺️ Roadmap

Q4 2025 - Foundation Strengthening

  • 🎯 Robustness & Scale: Performance beyond Evolution API limitations
  • 📋 Access Control: Whitelist/blacklist for user management
  • 💼 WhatsApp Business API: Flows for structured interactions
  • 💬 Slack Integration: Full workspace support with threads
  • 🔄 Fallback System: Multiple WhatsApp engines for redundancy

Q1-Q2 2026 - Channel Expansion

  • 📱 Instagram Direct: DMs, stories, engagement
  • ✈️ Telegram: Bots, channels, groups
  • 👔 Microsoft Teams: Enterprise collaboration
  • 🌐 Meta Messenger: Facebook messaging
  • 🌟 Unified User Management: Link users across platforms
  • 🧠 True Omnipresence: Shared context across all channels

2026-2027 - Global Scale

  • 💼 LinkedIn Messages: Professional networking
  • 🇨🇳 WeChat: China market access
  • 🎵 TikTok DMs: Short-form social engagement
  • 📱 SMS Gateway: Universal text messaging
  • 🔌 Open Architecture: Plugin system for any messaging platform
  • 🌍 Enterprise Features: SSO, audit logs, compliance tools

🚀 Development

Local Development

bash
# Start with hot reload
make dev

# Run tests
make test

# View logs
make logs

# Check code quality
make lint
make format

# Database operations
make migrate        # Run migrations
make db-reset      # Reset database (caution!)
make db-shell      # Open database shell

Docker Deployment

bash
# Build and run
docker-compose up -d

# View logs
docker-compose logs -f omni-api

# Restart services
docker-compose restart

# Stop everything
docker-compose down

Production Deployment with PM2

bash
# Install PM2
npm install -g pm2

# Start all services
pm2 start ecosystem.config.js

# Monitor
pm2 monit

# View logs
pm2 logs omni-api

# Restart
pm2 restart all

# Stop
pm2 stop all

Environment Variables

Key configuration options (see .env.example for complete list):

env
# Omni API Configuration
AUTOMAGIK_OMNI_API_HOST=0.0.0.0
AUTOMAGIK_OMNI_API_PORT=8882
AUTOMAGIK_OMNI_API_KEY=CHANGE-THIS-TO-SECURE-KEY

# Database (SQLite for development)
AUTOMAGIK_OMNI_SQLITE_DATABASE_PATH=./data/automagik-omni.db
# Or PostgreSQL for production:
# AUTOMAGIK_OMNI_DATABASE_URL=postgresql://user:pass@localhost:5432/automagik_omni

# Evolution API (WhatsApp - runs locally via PM2)
EVOLUTION_API_PATH=resources/evolution-api
EVOLUTION_API_URL=http://localhost:18082
EVOLUTION_API_PORT=18082
EVOLUTION_API_KEY=CHANGE-THIS-TO-SECURE-KEY
EVOLUTION_LOG_LEVEL=ERROR,WARN

# Discord (optional)
DISCORD_TOKEN=YOUR-DISCORD-BOT-TOKEN-HERE

# Logging
LOG_LEVEL=INFO  # DEBUG, INFO, WARNING, ERROR, CRITICAL

Important: Generate strong, unique API keys for production. Never use default values!


🤝 Contributing

We love contributions! Here's how to get started:

Quick Contribution Guide

  1. Fork the repository
  2. Clone your fork locally
  3. Create a feature branch: git checkout -b feature/amazing-feature
  4. Make your changes
  5. Test thoroughly: make test
  6. Commit with conventional commits: feat: add slack integration
  7. Push to your fork: git push origin feature/amazing-feature
  8. Open a Pull Request with clear description

Development Setup

bash
# Clone your fork
git clone https://github.com/YOUR_USERNAME/automagik-omni.git
cd automagik-omni

# Install dependencies with UV (recommended)
make install

# Create .env file
cp .env.example .env

# Run migrations
make migrate

# Start development server
make dev

# Run tests before committing
make test
make lint

Contribution Guidelines

  • Follow existing code style (use make format)
  • Write tests for new features
  • Update documentation
  • Use conventional commits (feat:, fix:, docs:, refactor:)
  • Keep PRs focused on a single feature/fix

See CONTRIBUTING.md for detailed guidelines.


🙏 Acknowledgments

Special thanks to:

  • Evolution API Team: For excellent WhatsApp infrastructure
  • Discord.py Community: For the powerful bot framework
  • Automagik Community: Early adopters and contributors
  • FastAPI Team: For the amazing Python web framework

📄 License

MIT License - see LICENSE file for details.


🔗 Links


Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "namastexlabs-automagik-omni": {
      "command": "",
      "args": []
    }
  }
}

Use Automagik Omni MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Automagik Omni is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Automagik Omni as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Automagik Omni MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "namastexlabs-automagik-omni": {
      "command": "npx",
      "args": [
        "-y",
        "automagik-omni"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Automagik Omni MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Automagik Omni MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Automagik Omni to help me with this task?
Automagik Omni
Sure. I read it.
Here is what I found using Automagik Omni.

Frequently asked questions

What is the Automagik Omni MCP server used for?

Automagik Omni is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Automagik Omni MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Automagik Omni with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Automagik Omni MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Automagik Omni connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Automagik Omni MCP to TypingMind?

Automagik Omni runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Automagik Omni MCP provide in TypingMind?

Automagik Omni exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Automagik Omni MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Automagik Omni requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇