mBm TUI (mbm2)
Menu

Your First mBm Session

You have Start with
Nothing yet curl -fsSL https://tui.mbm.mn/install | bash (client and runtime), then mbm2 in your project
mbm2 installed mbm2 in your project directory (local mode)
The URL of a running mBm runtime mbm2 --attach <url> --dir <path>

mbm2 is the v2 terminal client. It installs beside v1's mbm command and does not replace it. This page walks through one complete session: install, start, connect a model, ask, approve, leave and come back. Each step shows what you type and what appears on screen.

1. Install

curl -fsSL https://tui.mbm.mn/install | bash        # Linux, macOS
irm https://tui.mbm.mn/install.ps1 | iex            # Windows PowerShell

The installer asks for the install password you were given, checks the download's SHA-256 and installs to ~/.mbm2/bin/mbm2, linked where your shell finds it at once. It ends with mbm2 <version> installed — run mbm2; only when it prints a Run: export PATH=… line, run that line (or open a new terminal) first. Then check:

$ mbm2 --version

Details, options, upgrade and uninstall: Install.

2. Start In A Project

cd ~/src/shop-api
mbm2                     # or, from anywhere: mbm2 ~/src/shop-api

Local mode starts the bundled runtime for you (v2's Go engine, on Linux, macOS and Windows alike), or joins the one another mbm2 on this machine already started; it stops after the last mbm2 using it quits (Connect). Until the runtime answers, the home screen shows a startup strip:

Connecting to the local server at http://127.0.0.1:…
Finishing startup...

The first line shows while the runtime starts, the second for a moment once it answered.

Then the prompt box appears with a rotating example in it:

┃ Ask anything... "Fix a TODO in the codebase"
┃ Safe · <model> <provider>
  tab agents  ctrl+p commands  Unlicensed

The second row is the metadata row: the agent (Safe unless the runtime sets a default_agent), the model and its provider, in the agent's colour. The row under the box shows the keys, and later the session's token usage and your licence edition (Prompts). To work on a remote runtime instead, see Connect.

3. Connect A Provider And Pick A Model

If Do
No provider is connected yet Type /connect and press return (sending a first prompt opens it too). Pick a provider in Connect a provider, then a method in Select auth method, and paste the key when asked. For ChatGPT Plus/Pro choose OpenAI → ChatGPT Pro/Plus (headless) over SSH: open the URL shown on any device and enter the code (c copies it)
You have an mBm key from v1 mbm2 auth mbm --from-v1 in a shell copies your v1 keys and imports the licence v1 applied on this computer (mbm2 license import does the licence alone); elsewhere mbm2 license apply <key> activates it (Moving from v1)
You want a second key or account /connect → + Add account (Connect)
You want this session on your phone, or every session in mbm code mbm2 login once in a shell (a code you approve at tui.mbm.mn/account/device), then /rc or /rc machine; /rc shows the code itself when the computer is not signed in (Remote control)
You want a guided start /setup opens Guided setup: 1 Connect a provider, 2 Choose the default model, 3 Add workers, 4 Pick a theme. esc skips a step
A provider is connected <leader>m (that is ctrl+x, then m) or /models opens Select model. Type to filter, return picks

<leader> is ctrl+x by default: press ctrl+x, release, then press the next key within two seconds. More on models and variants: Agents and models.

4. Pick An Agent

Press tab to cycle the primary agents (shift+tab switches workspace tabs, not agents). The metadata row changes:

┃ Safe · <model> <provider>      tab →   ┃ Build · <model> <provider>      tab →   ┃ Plan · …

mbm2 --agent build starts on a chosen agent. Unverified: the order of the tab cycle after safe, which follows the runtime's agent list.

Agent Use it when
build You want changes made; by default it asks before touching paths outside the project, reading .env files and repeating the same call in a loop
safe You want to approve every shell command and file edit
plan You want reading, planning or review only; it cannot edit project files

What each agent may do: Permissions and questions.

5. Ask Something

Type a small task and press return:

┃ Explain what @cmd/server/main.go does and list its flags

Typing @ opens a file list; keep typing to narrow it and press tab or return to insert the path. The first return on the prompt creates the session. The transcript shows your message, the agent's tool calls (for example a read of the file) and its reply. While it works:

You want to Press
Stop the turn esc (on an idle session esc does nothing)
Add to the request while it works Type and return; the message waits with a QUEUED badge
Scroll the transcript pageup / pagedown, the mouse wheel
Jump to the first / last message ctrl+g / ctrl+alt+g
Copy the last reply <leader>y; a toast says Message copied to clipboard!

shift+return or ctrl+j inserts a newline instead of sending. More: Prompts.

6. Approve A Request

On safe (the default) ask for a change, for example Add a --port flag to main.go. Before the edit the session shows a permission prompt, with a left stripe in the agent's colour:

┃  △ Permission required
┃     → edit cmd/server/main.go
┃
┃   Allow once    Reject
┃   ⇆ select  enter confirm  ctrl+f fullscreen

The highlighted button is the one return confirms. left/right move between buttons, or click one. Allow once lets this one call run; Reject (or esc) refuses it. Nothing is approved automatically. Every prompt and reply is explained in Permissions and questions.

7. Leave And Come Back

Action How
Quit <leader>q, /exit, exit typed alone, or ctrl+c twice on an empty prompt (the first press shows Press ctrl+c again to quit). While the agent works ctrl+c interrupts it, as esc does. With text in the prompt, the first ctrl+c clears the text and <leader>q waits
Reopen the newest session mbm2 -c (--continue)
Reopen this exact session The Continue line mbm2 prints on exit
Find any session <leader>l or /sessions inside the client

On exit mbm2 prints the session title and the command that reopens it:

  Session   Explain cmd/server/main.go
  Continue  mbm2 -s ses_…

With --attach or --dir, the Continue line carries them too. Sessions live on the runtime, so a different --attach URL or --dir shows a different set.

Find Anything Else

Need Key or command
Every command, searchable ctrl+p (command palette); type to filter
Commands as you type / at the start of the prompt
Which keys work here ctrl+alt+k (which-key panel)
A short help dialog /help
The screen is stuck ctrl+alt+r or /reset-ui

Common First-Day Problems

Symptom Fix
/compact says Connect a provider to summarize this session Run /connect, then /models
The prompt sends when you wanted a new line Use shift+return or ctrl+j; some terminals send plain return for shift+return, then use ctrl+j
ctrl+x then m does nothing You waited longer than leader_timeout (2000 ms); press both again
The agent edits without asking You are on build; switch to safe with tab
return opened Connect a provider No provider yet; connect one, then send again
You type учшэ instead of exit (Cyrillic layout) /alias exit=учшэ once; then it quits (Configuration cookbook)
Sessions from yesterday are missing Start in the same directory, or with the same --attach and --dir

Next

Topic Page
Write better prompts: files, shell, paste, editor Prompts
Fork, compact, undo, export, share Sessions
Several agents and tools in tabs Workers, Claude Code tab
Split work into parallel tasks, /delegate, merge with approval Parallel work, Background jobs
Every slash command and key Slash commands, Shortcut cheat sheet
Settings Configuration cookbook
Something does not work Troubleshooting
Account and licence https://tui.mbm.mn in a browser; mbm2 never asks for account credentials

Published from revision f88fc66f 2026-11-30