mBm TUI (mbm2)
Menu

THE mBm TERMINAL CLIENT

Your work stays
in the terminal.

mBm TUI (mbm2) connects a focused terminal interface to the mBm runtime. Open a project in as many tabs as you need, follow every session, decide what tools may do, and upgrade without closing a window. Its agents work as a team: they split the work between them and message each other, on this computer or another.

Linux / macOS

curl -fsSL https://tui.mbm.mn/install | bash

Windows PowerShell

irm https://tui.mbm.mn/install.ps1 | iex

An install password may be required. The installer verifies SHA-256 checksums before installing the client and bundled runtime.

Latest release: v2.24.99-f88fc66f. Every download is checked against its SHA256SUMS before it is installed.

CONNECTION MODEL01 / 02

$ mbm2 --dir /your/project

terminal clientlocal Go engine

OR ATTACH TO A RUNNING SERVER

$ mbm2 --attach https://server.example

terminal clientoperator runtime

OR DRIVE IT FROM A SCRIPT

$ mbm2 run "fix the failing test" --strict-exit

$ mbm2 send docs "update the API guide"

$ mbm2 peers # agents you can reach

$ mbm2 upgrade # windows keep working

$ mbm2 web # same sessions in a browser

ONE ENGINE, EVERY WINDOW

One engine serves every window Two mbm2 windows on this computer and a phone or browser through the relay at tui.mbm.mn, «mbm code», all reach the same Go engine. The engine keeps every session and streams its events to each of them, and it calls the models you connect: OpenAI, DeepSeek, Ollama or any OpenAI-compatible endpoint, with your own keys. mbm2 upgrade replaces the engine while the windows run. mbm2 window · tabs mbm2 another window mbm code phone · browser relay Shared Go engine every session · tools · events · upgraded while windows run OpenAI · DeepSeek several accounts each Ollama local Any OpenAI API your keys, your models
HTTP + EVENTSSERVER OWNS SESSION STATE

01 / AGENTS AS A TEAM

Agents that work as a team.

Give a goal to a lead agent: it hands the parts to worker agents, each in its own worktree, they message each other on this computer or another, and every permission still comes to you.

Agents that work as a team You give a goal to a lead agent. The lead hands tasks to two worker agents, each in its own git worktree and tab, and the workers message each other with mbm2 send. A question a worker asks goes back to the lead that sent its task; a permission goes only to you. Through the relay at tui.mbm.mn, a peer agent on another computer reaches the team, and mbm2 peers lists who can be reached. THIS COMPUTER You your goal Lead agent /team lead tasks question to its sender permission only to you Worker agent own worktree · tab Worker agent own worktree · tab mbm2 send Relay tui.mbm.mn/relay mbm2 peers ANOTHER COMPUTER Peer agent mbm2, Claude Code, Codex

Each agent is a session you can open, read and take over: its tab shows what it does, and you can type to it at any point.

  • /team lead <worker> names the lead. It splits your goal into tasks and hands each to a worker agent in its own git worktree and tab; you see the branch and checks, and nothing merges until you confirm.
  • mbm2 send lets any agent, script or shell message a session by its id, directory or label. Each message waits for your approval in /team unless you let the team's messages through.
  • mbm2 peers lists who can be reached: the sessions on this computer and your account's mbm2s on other computers, linked through the relay with no token to set up.
  • mbm2 answer replies to a question an agent sent back. A question goes to whoever sent the message; a permission only ever goes to you.
  • /mode auto lets a worker run while nobody watches: your rules decide first, a small-model judge takes what they leave open, hard guardrails always ask a person, and an ask nobody answers becomes a hand-off while the worker carries on.
  • mbm2 team joins a project's roles across machines through the project's own team store (.mbm2/team, its history in the project's git remote): setup makes a role's folder and agent, and a hand-off arriving in a role's inbox wakes its session.

02 / THE WORKFLOW

One conversation.
Clear boundaries.

  1. 01

    Choose a project

    Start a local server or attach to one your operator runs. The directory scopes the session you see.

  2. 02

    Ask and inspect

    Read the transcript and tool activity in the terminal before accepting the result.

  3. 03

    Keep control

    Permission requests remain explicit. Review their scope before replying: Reject refuses one call and the agent carries on, Reject & stop ends the turn, and Allow always keeps a rule for the session or the project. Only you answer them: in mbm2, or with remote control on, from your own signed-in browser.

03 / WHERE THINGS LIVE

A client is not a server.

01 / THIS TERMINAL

mBm TUI

The mbm2 command draws the interface and sends authenticated requests. It needs no other program: an existing mbm v1 is left untouched.

02 / YOUR RUNTIME

mbm-runtime

v2's own Go engine holds session state and serves the tools and event stream, locally or on a server you choose. Several mbm2 windows on one machine share it, and mbm2 upgrade replaces it while they run: /restart moves each window over with its tabs.

03 / YOUR ACCOUNT

tui.mbm.mn

Documentation, verified installation and your v2 account live here. Sign in with Google or GitHub to buy a plan and manage licences, keys and usage.

04 / MODES

You decide what it may change.

FULL ACCESS

Build

Runs tools under the configured permissions and asks before paths outside the project or reading .env. Allow always keeps an answer for the session or the project.

READ AND PROPOSE

Plan

Cannot edit project files. Use it to understand code and agree a plan before anything changes.

DEFAULT · ASK FIRST

Safe

Asks before every shell command, edit and write, and never offers “allow always”. Press tab to switch.

How agents and permissions work → · What you can ask it to do → · Questions →

GET STARTED

Install, then open a project.

curl -fsSL https://tui.mbm.mn/install | bash, then run mbm2 in your project directory.

Read the documentation