Hey Baigalaa!
mBm — Your AI Assistant Terminal

↓ Install — All Platforms

The installer auto-detects your OS, architecture, and CPU features. No manual selection needed.

Linux / macOS
curl -fsSL https://get.mbm.mn/install | bash
Windows (PowerShell)
irm https://get.mbm.mn/install.ps1 | iex
Specific Version
curl -fsSL https://get.mbm.mn/install | bash -s -- --version 1.0.180

◆ mBm TUI Preview

Terminal-native interface — no browser, no Electron, no GUI. Runs entirely in your terminal via SSH or locally.

mBm TUI — Server Performance Analysis

⊞ Multi-Platform — Auto-Detected

The curl/irm installer automatically selects the correct binary. Direct downloads below — enter your password to unlock.

🔒 Downloads Locked

Linux

x86_64 Baseline
glibc · No AVX2 required
Download →
x86_64 Base musl
Alpine · No AVX2
Download →
x86_64
glibc · AVX2
Download →
x86_64 musl
Alpine · AVX2
Download →
ARM64
glibc · Raspberry Pi 4/5
Download →
ARM64 musl
Alpine · ARM64
Download →

macOS

Apple Silicon
ARM64 · M1/M2/M3/M4
Download →
Intel
x86_64 · AVX2
Download →
Intel Baseline
x86_64 · No AVX2
Download →

Windows

x86_64
AVX2 required
Download →
x86_64 Baseline
No AVX2 required
Download →
ARM64
Snapdragon X
Download →

◆ Core Capabilities

Multi-Provider AIOpenAI · Anthropic · Google Gemini · OpenRouter · Amazon Bedrock · GitHub Copilot · Cloudflare · Ollama · Local models
RAG Knowledge Basepgvector-powered retrieval augmented generation with git auto-sync, embeddings, and semantic search
Custom AgentsAI agents with configurable permissions, tools, and models — primary, subagent, or combined modes
MCP ProtocolModel Context Protocol servers (local/remote) with OAuth authentication
Usage AnalyticsToken usage, cost tracking, and session statistics across all models
Server ModeHeadless server or full web UI with mDNS discovery
Session ManagementImport/export, sharing, forking, and continuation of AI sessions
Plugin Systemnpm-based plugin ecosystem with manifest detection and config patching

⌘ Command Reference

CommandDescription
mbmLaunch interactive Terminal UI (TUI)
mbm runRun with a message (non-interactive)
mbm modelsList all available AI models
mbm providersManage AI provider credentials & auth
mbm ragManage RAG knowledge base
mbm agentCreate and list custom agents
mbm mcpManage Model Context Protocol servers
mbm sessionList, delete, export, import sessions
mbm statsToken usage and cost statistics
mbm dbDatabase tools & interactive sqlite shell
mbm serveStart headless server
mbm webStart server + open web interface
mbm attachAttach to a running server
mbm acpAgent Client Protocol server
mbm pluginInstall plugins & update config
mbm prCheckout & run on a GitHub PR
mbm upgradeUpgrade to latest version
mbm uninstallRemove mbm and all data
mbm debugDebugging & troubleshooting tools
mbm exportExport session as JSON
mbm importImport session from JSON/URL
mbm aboutVersion and installation info

mbm run — Options

--model, -m Model (provider/model)
--agent Agent name to use
--continue, -c Continue last session
--session, -s Session ID to continue
--fork Fork session before continuing
--file, -f File(s) to attach
--format default | json
--title Session title
--command Command name, use message for args
--interactive, -i Interactive split-footer mode
--variant Provider-specific reasoning effort
--thinking Show thinking blocks
--share Share the session
--dangerously-skip-permissions Auto-approve permissions

mbm rag — RAG Knowledge Base

SubcommandDescription
rag setupInstall pgvector + embeddings + auto-sync infrastructure
rag enableEnable RAG auto-sync (installs git hook)
rag disableDisable RAG auto-sync
rag status [--all]Show knowledge base statistics
rag index [path]Index files/folders into KB
rag search <query>Semantic search the knowledge base
rag pruneRemove duplicates, stale entries, optimize
rag clear [--force]Clear all knowledge base data
rag dbsList project databases with sizes
rag backup [-o file]Backup KB to SQL file (pg_dump)
rag hookManage git post-commit auto-index hook

mbm mcp

mcp addAdd MCP server (local or remote, with OAuth)
mcp listList MCP servers and status
mcp auth [name]Authenticate with OAuth MCP server
mcp logout [name]Remove OAuth credentials
mcp debug <name>Debug OAuth connection

mbm serve & web

--hostname Bind hostname
--port Bind port
--mdns Enable mDNS discovery
--mdns-domain Custom mDNS domain

⚙ Global Options

--help, -h Show help
--version, -v Show version
--print-logs Print logs to stderr
--log-level DEBUG | INFO | WARN | ERROR
--pure Run without external plugins
--safe Confirm all write operations

? About mBm

You can do anything by chatting. No menus, no wizards, no clicking around — just describe what you want in plain language and mBm figures out the rest. It is your AI superpower in the terminal: thinks like a principal engineer, operates like a veteran operator. It reads your entire codebase and system, remembers project context across sessions, and executes complex software engineering tasks with surgical precision. Beyond code, mBm manages servers with unrestricted access: troubleshoot production incidents, diagnose system failures, inspect logs, restart services, audit security, and orchestrate infrastructure — all from a single terminal session.

Three Modes of Operation

Safe ModeAnalyzes and explains without making changes. Safe is the default when mBm detects high-risk operations. Perfect for code review, architecture analysis, troubleshooting, and learning — zero side effects, zero risk. Every write operation requires explicit confirmation — mBm proposes each change one by one, you read the diff, decide what to allow or reject, and only confirmed actions are executed.
Plan ModeREAD ONLY MODE — mBm reads and analyzes your codebase and system (OS) but makes zero changes to any file or configuration. Designs a detailed implementation plan before writing a single line. mBm considers edge cases and presents the approach for your approval. Plan is the intelligent default for new features and refactors.
Build ModeFull autonomous execution — reads, writes, runs commands, commits code, deploys. Build mode is for when you trust the plan and want mBm to execute end-to-end. Every action is tracked, every change is reversible via git.

Server & System Management

Unrestricted AccessFull root/sudo capability on your servers — every action requires your explicit approval. mBm proposes each command and change one by one, you review the details and approve or reject before anything runs. Manages users, permissions, firewall rules, systemd services, cron jobs, disk partitions, network interfaces — everything a veteran operator handles, accelerated by AI. If mBm itself ever breaks — corrupted install, bad config, missing binary — it can diagnose and repair its own installation. Run mbm upgrade to fetch a fresh binary, or mbm uninstall then reinstall to start clean.
Remote Server TroubleshootingSSH into remote servers, diagnose issues across your infrastructure, compare configs between machines, run health checks, and fix problems — whether the server is local, in the same datacenter, or across the world.
Production Incident ResponseParse logs in real-time, trace error stacks, identify root causes, roll back deployments, restart failed services, and document the incident — all in one continuous AI-driven workflow.
Infrastructure as ConversationDescribe what you need — "scale the API to 3 replicas", "migrate this Postgres database", "set up Let's Encrypt on nginx" — and mBm figures out the exact commands, handles errors, and confirms success.

Development Superpowers

Persistent MemoryRAG (Retrieval-Augmented Generation) knowledge base with pgvector semantic search — auto-indexes your code on every commit. mBm remembers your project across sessions, across reboots, across weeks. Team members come and go, but your project knowledge stays — new developers are productive from day one with zero handover.
Full Code & System AwarenessUnderstands the full directory tree, file relationships, project conventions, and system state — running services, installed packages, network config, disk usage, and OS details. Searches, reads, edits, and creates files with surgical precision. Refactors across hundreds of files and diagnoses system issues without breaking anything.
Terminal-Native, Zero BloatNo browser, no Electron, no GUI. Runs entirely in your terminal — the natural habitat of developers and sysadmins. Lightweight, fast, and always available via SSH.
Multi-Agent ArchitectureCustom AI agents with configurable tools, permissions, and model routing. Deploy subagents for specialized tasks (database, frontend, security audit) while the primary agent orchestrates.
MCP ProtocolModel Context Protocol integration — connect external tools, APIs, and data sources via standardized MCP servers with OAuth authentication. Extend mBm's reach to any system.

Built by mBm TECHNOLOGY LLC. Visit mbm.technology for more information.