RepositoryTypeScriptDEGermany
bunkeriot

bunkeriot/BunkerM

🚀 BunkerM: Eclipse Mosquitto MQTT management platform, featuring dynamic security, MQTT ACL management, monitoring,and AI integrations

502stars
33forks
5issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: mosquitto

#1 Repository of the month

1
TINIX TRENDING·Topic: mosquitto-clients

#1 Repository of the month

1
TINIX TRENDING·Topic: mosquitto-authentication

#1 Repository of the month

BunkerM Logo

BunkerM - Mosquitto MQTT Management Platform

The world's first all-in-one, self-hosted MQTT broker manager with built-in AI assistant, smart anomaly detection, and local automation agents.

Documentation

Docker Pulls GitHub Stars License Latest Release

Reddit Community LinkedIn X (Twitter)

Donate via PayPal


📋 Table of Contents


🔍 What is BunkerM?

BunkerM is a free, open-source, containerized MQTT management platform. It bundles Eclipse Mosquitto with a full-featured web dashboard, packaging everything into a single Docker container — one command to get a production-ready MQTT broker with a management UI.

On top of the core broker management, BunkerM includes a local statistical engine (smart anomaly detection), a local automation engine (schedulers and watchers), and a local AI engine (LM Studio integration) — all running entirely inside your container. BunkerAI is the optional cloud AI layer that adds a more powerful natural-language assistant reachable via Telegram, Slack, or the built-in web chat.

What you get out of the box:

  • Pre-configured Eclipse Mosquitto broker (MQTT 3.1.1 + 5)
  • Web-based ACL management — clients, roles, groups, topic permissions
  • Real-time monitoring dashboard, connected clients, and event logs
  • MQTT Explorer — live topic tree with publish-from-browser
  • Message History & Replay — every MQTT message stored locally in SQLite, searchable and replayable
  • Statistical anomaly detection (Z-score, EWMA, spike, silence detectors)
  • Local automation agents — cron schedulers and condition-based watchers
  • Local LLM AI assistant via LM Studio — fully private, no cloud required
  • AWS IoT Core and Azure IoT Hub bridge configuration
  • Optional BunkerAI subscription — cloud AI assistant with Telegram, Slack, and unlimited interactions

🚀 Quick Start

Prerequisites

Minimal — one command

docker run -d -p 1900:1900 -p 2000:2000 bunkeriot/bunkerm:latest

Open http://localhost:2000 and set up your first Admin account.

PortService
1900MQTT broker
2000Web UI

Default MQTT credentials: username bunker / password bunker


docker run -d \
  -p 1900:1900 \
  -p 2000:2000 \
  -v mosquitto_data:/var/lib/mosquitto \
  -v mosquitto_conf:/etc/mosquitto \
  -v auth_data:/data \
  bunkeriot/bunkerm:latest

Remote access

docker run -d \
  -p 1900:1900 \
  -p 2000:2000 \
  -e HOST_ADDRESS=<YOUR_IP_OR_DOMAIN> \
  bunkeriot/bunkerm:latest

Docker Compose

services:
  bunkerm:
    image: bunkeriot/bunkerm:latest
    ports:
      - "1900:1900"
      - "2000:2000"
    volumes:
      - mosquitto_data:/var/lib/mosquitto
      - mosquitto_conf:/etc/mosquitto
      - auth_data:/data
    environment:
      - HOST_ADDRESS=localhost          # change to your IP/domain for remote access
      # - BUNKERAI_API_KEY=bkai_...     # optional: connect to BunkerAI
    restart: unless-stopped

volumes:
  mosquitto_data:
  mosquitto_conf:
  auth_data:

First steps after launch

  1. Open http://localhost:2000 and create your Admin account (first-time setup wizard)
  2. Go to ACL → Clients and create an MQTT client with a username and password
  3. Connect your MQTT device or client to localhost:1900 using those credentials
  4. Explore the Dashboard to see live broker stats

⭐ Core Features

Broker Dashboard

Real-time overview of your broker health:

  • Connected clients count and history
  • Message publish/receive rates
  • Byte throughput (in/out)
  • Subscription and retained message counts
  • Recent MQTT connection events (connect, disconnect, subscribe, publish)

🔒 ACL & Client Management

Full dynamic security management powered by Mosquitto's Dynamic Security plugin:

Client Management

  • Create, update, and delete MQTT clients
  • Set credentials (username + password hash)
  • Enable / disable clients individually
  • Assign clients to groups

Role Management

  • Create roles with fine-grained topic ACL rules
  • Define allow / deny permissions per topic
  • Wildcard topic support (#, +)
  • ACL types: publishClientSend, subscribeLiteral, and more

Group Management

  • Create groups and assign roles to them
  • Add / remove clients from groups
  • Set role priorities within groups

ACL Import / Export

Back up and restore your complete security configuration in one click:

  • Export — downloads a JSON snapshot of all clients (including password hashes), roles, and groups
  • Import — upload a previously exported JSON to fully restore your configuration; the broker reloads automatically
  • Available in ACL → Clients next to the Create Client button

🔭 MQTT Explorer

Inspect and interact with live broker traffic directly from the browser:

  • Live topic tree — full hierarchy of all active topics, refreshed every 3 seconds
  • Per-topic metadata — latest value, message count, QoS, retain flag, last-updated timestamp
  • Search & filter — instantly narrow the tree by typing a topic path fragment
  • Publish panel — send messages from the browser: pick a client, enter a topic, choose payload type (RAW / JSON / XML with built-in validation), set QoS and retain flag

📼 Message History & Replay

Every MQTT message published through your broker is automatically captured and stored in a local SQLite database — no configuration required. History starts accumulating from the moment BunkerM starts, and it keeps running silently in the background.

What gets stored

All messages published to the broker are captured, excluding internal $SYS/ diagnostics. Each record stores:

FieldDescription
TimestampMillisecond-precision UTC time of receipt
TopicFull topic path
PayloadMessage content (binary payloads stored as base64)
QoSQuality of service level (0 / 1 / 2)
Retain flagWhether the message was retained
SizePayload size in bytes

Querying history

Navigate to Logs → Message History in the sidebar to access:

  • Stats overview — total stored messages, unique topic count, database size on disk, and retention window
  • Topic filter — dropdown populated from all topics seen by the broker, with message counts
  • Free-text search — matches against topic path or payload content
  • Paginated table — 100 messages per page, newest-first, with full metadata

Replay

Every message row has a Replay button. Click it to open a dialog pre-filled with the original topic and payload. You can edit the payload, choose QoS and retain flag, then publish directly back to the broker — useful for retesting device logic or simulating conditions.

Retention limits

By default, BunkerM keeps up to 50,000 messages and 7 days of history. Older messages are pruned automatically. These limits are configurable via environment variables:

-e HISTORY_MAX_MESSAGES=50000   # max records in the database
-e HISTORY_MAX_AGE_DAYS=7       # max age of any stored message

Storage

History is stored in a SQLite file at /var/lib/history/history.db inside the container. To persist history across container restarts, mount a Docker volume:

docker run -d \
  -p 1900:1900 -p 2000:2000 \
  -v history_data:/var/lib/history \
  bunkeriot/bunkerm:latest

The Docker Compose file already includes this volume by default.


🤖 Smart Anomaly Detection

A fully local statistical engine that continuously monitors your MQTT traffic and raises alerts when behavior deviates from the baseline. No cloud dependency — everything runs inside the container.

How it works

The engine polls the broker every 10 seconds, builds statistical baselines over 1-hour and 24-hour sliding windows, and runs four independent detectors every 60 seconds:

DetectorWhat it catches
Z-scoreValues that deviate more than 3σ from the rolling mean
EWMAGradual drift via exponentially weighted moving average
SpikeSudden burst in message rate (>3× the 30-minute baseline)
SilenceTopics that stop publishing for longer than 2× their normal interval

Alerts are generated with severity levels: low / medium / high / critical.

Monitoring pages (Monitoring sidebar section)

PageDescription
MetricsPer-topic baselines — mean, std dev, message count for 1h and 24h windows
AnomaliesAll detected anomalies with entity, type, severity, and raw detection context
AlertsActionable alert feed with severity badges and one-click Acknowledge

⚙️ Agents — Schedulers & Watchers

A local automation engine built into every BunkerM instance. Agents run entirely on your infrastructure — no cloud connectivity required after creation.

Schedulers

Publish MQTT messages on a recurring cron schedule:

  • Full cron expression support with built-in presets (every minute, hourly, daily, weekly, etc.)
  • Live cron preview showing next 5 run times
  • Tracks last fired time and total execution count
  • Examples: "turn on pump every day at 06:00", "send heartbeat every 5 minutes"

Watchers

Monitor MQTT topics and trigger actions when conditions are met:

  • Condition operators: > < >= <= == != contains starts_with any_change
  • JSON field extraction using dot-path notation (sensors.temperature)
  • Response message templates with {{value}}, {{topic}}, {{timestamp}}
  • Cooldown enforcement (minimum time between triggers)
  • One-shot mode (auto-delete after first trigger)
  • Real-time notification bell in the dashboard (Server-Sent Events, sub-2s delivery)

Limits

CommunityBunkerAI StarterBunkerAI Pro / Team
Agents (schedulers + watchers combined)Up to 2Up to 2Unlimited
Local execution (no cloud required)✓✓✓
Agents kept after downgrade / offline✓✓✓
AI-created agents via natural language✗✓✓
Telegram / Slack watcher notifications✗✗✓

Activation: A one-time free activation is required to unlock agent creation. BunkerM attempts this automatically on first start. For air-gapped deployments, create a free account at bunkerai.dev and paste your Community key into the dashboard — no ongoing internet connection required after that.


🖥️ Local LLM — Private AI via LM Studio

BunkerM Community includes a built-in Local LLM integration. Connect any model running in LM Studio to get a fully private, offline-capable AI assistant that understands your live broker state and can take actions on your behalf — no cloud account or subscription required.

How it works

On every chat message, BunkerM injects a live snapshot of your broker (connected clients, active topics with their latest payloads, broker stats, registered ACL clients) directly into the model's context. The model can then respond accurately to questions about your live MQTT environment and execute actions through BunkerM's internal APIs.

Capabilities

  • Plain-English device control — say "turn off my room light" and the AI figures out the right topic and payload from your annotations and context, then publishes it
  • ACL management — create, enable, disable, delete MQTT clients and batch-create multiple clients at once
  • Live topic queries — "What is the current value of the door sensor?" returns the actual retained payload
  • Broker awareness — ask about connected clients, message rates, subscriptions, and uptime

Setup

  1. Install LM Studio and load a model (Qwen2.5-7B-Instruct or Llama-3-Instruct recommended)
  2. Start the LM Studio local server (default port: 1234)
  3. In BunkerM go to Settings → Integrations → Local LLM, enter http://host.docker.internal:1234, fetch models, and save
  4. Switch to Local LLM mode in AI → Chat

Full guide: bunkerai.dev/docs/local-llm


🧠 BunkerAI — Cloud AI Assistant

BunkerAI is the optional cloud AI layer for BunkerM. Subscribe at bunkerai.dev to unlock a more powerful natural-language assistant with cross-channel memory, Telegram and Slack integrations, and higher interaction limits.

BunkerM handles your local broker. BunkerAI handles the cloud intelligence.

Capabilities

  • READ — query live broker stats, topic payloads, connected clients, anomaly alerts, and topic annotations
  • WRITE — publish MQTT messages by describing the intent ("turn on light 1", "set thermostat to 22°C")
  • CREATE — build schedulers and watchers through natural conversation ("alert me if temperature exceeds 80")
  • MANAGE — full ACL management, broker configuration, and agent control through plain English

Channels

ChannelStarterPro / Team
Web Chat (built-in at AI → Chat)✓✓
Telegram (message your dedicated bot)✗✓
Slack (OAuth workspace connection)✗✓

Configure connectors at Settings → Cloud in the dashboard.

Plans

PlanMonthlyInteractions / monthChannelsAgents
Starter$5100Web Chat onlyUp to 2
Pro$15500Web Chat + Telegram + SlackUnlimited
Team$492,000Web Chat + Telegram + SlackUnlimited
BusinessCustomCustomAll channelsUnlimited

One interaction = one complete AI request/response cycle (may involve multiple internal tool calls). Manage your subscription and credit balance at Settings → Credits in the BunkerM dashboard.


☁️ Cloud Bridge Integrations

Forward MQTT traffic to major cloud providers:

AWS IoT Core Bridge

  • Configure AWS IoT endpoint and region
  • Upload device certificates directly from the UI
  • Define topic mapping rules (local ↔ cloud)
  • Secure TLS mutual authentication

Azure IoT Hub Bridge

  • Configure IoT Hub connection string
  • SAS token management and rotation
  • Device-to-cloud and cloud-to-device topic routing

📊 Feature Comparison

Infrastructure & Scaling

FeatureCommunityProEnterprise
Max MQTT ClientsUnlimitedUnlimitedUnlimited
High Availability & Clustering✗✗✓
Cluster Management UI✗✗✓
Load Balancer✗✗✓
Enhanced HA Monitoring✗✗✓

Security

FeatureCommunityProEnterprise
Client Authentication (Username + Password)✓✓✓
Dynamic Security Plugin✓✓✓
ACLs (Client, Role, Group levels)✓✓✓
ACL Import / Export (JSON backup & restore)✓✓✓
Self-Signed SSL✓✓✓
OAuth 2.0 / JWT Authentication✓✓✓
Offline Authentication✗✓✓
Anonymous Client Access✗✓✓
Client Certificate Authentication✗✗✓
LDAP Authentication✗✗✓
HTTPS/TLS Termination✗✗✓
Audit Trail✗✗On-demand
Custom CAs✗✗On-demand
PSK Authentication✗✗On-demand

Monitoring & AI

FeatureCommunityProEnterprise
Broker Dashboard & Stats✓✓✓
Connected Clients Listing✓✓✓
Real-time MQTT Event Logs✓✓✓
Message History & Replay (50K messages, 7d)✓✓✓
Statistical Anomaly Detection✓✓✓
AI Metrics Engine (1h / 24h baselines)✓✓✓
Smart Alert Feed with Severity Levels✓✓✓
BunkerAI natural-language assistant✗BunkerAI planBunkerAI plan
Anomaly alert forwarding (Telegram / Slack)✗BunkerAI planBunkerAI plan
Behavioral Security Analysis✗✗✓
AI-generated ACL Recommendations✗✗✓

Agents & Automation

FeatureCommunity / StarterPro / TeamEnterprise
MQTT Scheduler (cron-based publishes)Up to 2UnlimitedUnlimited
MQTT Watcher (condition-based alerts)Up to 2UnlimitedUnlimited
Local agent execution (no cloud required)✓✓✓
Agents kept after downgrade / offline✓✓✓
Real-time notification bell (SSE)✓✓✓
AI-created agents via natural language✗✓✓
Telegram / Slack watcher notifications✗✓✓

Protocol Support

FeatureCommunityProEnterprise
MQTT 3.1.1✓✓✓
MQTT 5✓✓✓
MQTT over TLS (MQTTS)✓✓✓
WebSockets (WS)✓✓✓
WebSockets over TLS (WSS)✓✓✓
QoS 0 / 1 / 2✓✓✓
Retained Messages✓✓✓
Last Will Messages✓✓✓
Persistent Sessions✓✓✓
Sparkplug✗✗✓

Platform Support

FeatureCommunityProEnterprise
Docker (Linux, Windows, macOS, Raspberry Pi)✓✓✓
Kubernetes✓✓✓
OpenShift✓✓✓
ARM / RPi native✓✓✓
White Labeling✗✗✓

💰 BunkerM Community vs BunkerAI

BunkerM Community is the free, self-hosted MQTT management platform. It is open-source and always will be.

BunkerAI is a separate, optional subscription service that adds AI intelligence to your BunkerM instance. You do not need BunkerAI to run BunkerM — it simply adds a natural-language assistant and cross-channel notifications on top.

Pricing philosophy

Pay for AI intelligence. Agents are yours to keep.

  • Agents (schedulers + watchers) are a local BunkerM feature. They run on your infrastructure regardless of any subscription status. Once created, agents keep executing even if you cancel BunkerAI or run out of interactions.
  • BunkerAI is billed monthly by interaction quota. When your quota runs out, the AI assistant pauses — your broker, agents, and all local features continue unaffected.
  • Subscribing to Pro or Team removes the 2-agent ceiling and unlocks Telegram/Slack channels in addition to the larger interaction quota.

This model is designed for self-hosted, industrial, and air-gapped environments where production automations cannot be held hostage by a billing event.

Activation

BunkerM Community requires a one-time free activation to enforce the 2-agent limit:

  1. BunkerM silently attempts auto-activation on first start.
  2. For air-gapped deployments, create a free account at bunkerai.dev, copy your Community key, and paste it into the dashboard.
  3. The license key is stored locally and verified offline using cryptographic signatures — BunkerAI does not need to be reachable again after activation.

🛠️ Troubleshooting

ProblemSolution
Can't reach the web UICheck that port 2000 is not in use: docker ps and lsof -i :2000
MQTT clients can't connectVerify port 1900 is mapped; check client credentials in ACL → Clients
Container won't startRun docker logs <container_id> to inspect errors
Agents not firingConfirm the container has internet access for one-time activation; check agent status in AI → Agents
BunkerAI not connectingVerify BUNKERAI_API_KEY env var is set correctly; check Settings → Cloud status card
SSL/TLS errorsEnsure certificates are valid and paths are correctly mounted

❤️ Support the Project

BunkerM is built and maintained by a solo developer. If it saves you time or powers your IoT projects, consider supporting its development:

PayPal

Your support funds:

  • New feature development
  • Bug fixes and security patches
  • Documentation and guides
  • Community support

🌐 Websitebunkerai.dev
📧 Supportsupport@bunkerai.dev
💼 LinkedInmehdi-idrissi
🐙 GitHubbunkeriot/BunkerM
💬 DiscussionsGitHub Discussions
🐦 X / Twitter@BunkerIoT
🟠 Redditr/BunkerM

📜 License

This project is licensed under the Apache License 2.0 — free to use, modify, and distribute, including for commercial purposes.

Full license text →


Made with ❤️ for the IoT community · bunkerai.dev

Similar Projects

Discover other similar projects and AI models.

RepositoryC
eclipse-mosquitto/mosquitto

Eclipse Mosquitto - An open source MQTT broker

11.5k
Nov 19, 2026
RepositoryC#
dotnet/MQTTnet

MQTTnet is a high performance .NET library for MQTT based communication. It provides a MQTT client and a MQTT server (broker). The implementation is based on the documentation from http://mqtt.org/.

5.1k
Nov 27, 2026
RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

213.0k
Dec 3, 2026
RepositoryPython
langgenius/dify

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

162.3k
Dec 2, 2026
RepositoryTypeScript
mqttjs/MQTT.js

The MQTT client for Node.js and the browser

9.1k
Nov 30, 2026
RepositoryJava
thingsboard/thingsboard

All-in-one IoT Platform - Device management, data collection, processing and visualization.

22.7k
Nov 30, 2026
RepositoryErlang
emqx/emqx

The most scalable and reliable MQTT broker for AI, IoT, IIoT and connected vehicles

17.0k
Dec 1, 2026
RepositoryGo
kubeedge/kubeedge

Kubernetes Native Edge Computing Framework (project under CNCF)

7.6k
Nov 28, 2026
RepositoryJava
jetlinks/jetlinks-community

JetLinks 基于Java,Spring Boot ,WebFlux,Netty,Vert.x,Reactor等开发, 是一个全响应式的企业级物联网平台。支持统一物模型管理,多种设备,多种厂家,统一管理。统一设备连接管理,多协议适配(TCP,MQTT,UDP,CoAP,HTTP等),屏蔽网络编程复杂性,灵活接入不同厂家不同协议等设备。实时数据处理,设备告警,消息通知,数据转发。地理位置,数据可视化等。能帮助你快速建立物联网相关业务系统。

6.7k
Nov 26, 2026