Moving From mbm (v1)
mbm2 is the new terminal client. It installs beside v1 and never replaces, renames or shadows the
mbm command: mbm stays v1's, and you can use both while you move.
One Command
$ mbm2 migrate-v1
It brings over, in one step, what v1 left on this computer: your API keys, your licence and
every project's sessions. It prints a short plan and asks
Import from mbm v1 (licence, keys, sessions)? [Y/n]. The installer asks once too, and the first
mbm2 start offers it inside the TUI, so you may have done this already.
$ mbm2 migrate-v1
mbm v1 on this computer (its files are only read; nothing of v1 runs):
API keys 2 to copy: deepseek, mbm; kept: anthropic
Licence MBM-39BA-CB6D-7806-XXXX to import
Sessions 59 to import in 3 projects; 3 already in mbm2
RAG nothing to move: mbm2 uses v1's knowledge base as it is
Import from mbm v1 (licence, keys, sessions)? [Y/n]
✓ API keys 2 copied: deepseek, mbm
✓ Licence MBM-39BA-CB6D-7806-XXXX: key applied on tui.mbm.mn: m-Pro, device build-01, devices 1/3
███████████░░░░░░░░░░░░░ 47% 28/59 sessions · ~/src/api
The bar fills to 100% in place, naming the project being imported, and then gives way to the sessions line and one summary line:
✓ Sessions 59 imported, 3 already in mbm2
Done: 2 API keys copied; licence imported; sessions: 59 imported, 3 already in mbm2. mbm v1 is unchanged and `mbm` still runs it.
A line that starts with ✗ is a step that did not go, with the reason; the summary then says
Done, with the problems above: … and that running it again finishes the rest. In a pipe or a log
there is no bar: 28/59 sessions · ~/src/api is written at each tenth. A project whose directory was
moved or deleted is imported too.
At The First Start
The first mbm2 start opens as usual and, when mbm v1 left something that is not in mbm2 yet, shows
a dialog over it. Nothing is printed in the terminal before the interface, and nothing waits for Enter.
┃ Import from mbm v1? esc
┃
┃ Not in mbm2 yet:
┃
┃ API keys 2: deepseek, mbm
┃ Sessions 59 in 3 projects
┃
┃ mbm v1's files are only read; nothing of v1 runs.
┃
┃ No Yes
| Answer | What happens |
|---|---|
Yes |
The dialog shows the progress bar and 28/59 sessions · /home/you/src/api, then the one summary line, and closes a few seconds later. Closing it earlier lets the import finish; its result comes as a toast |
No |
Remembered: the dialog is not shown again |
esc |
Nothing is recorded; the next start asks again |
There is no licence line when mbm2 already has a licence, and no keys line when it has every key.
The command palette's Import from mbm v1 opens the same dialog at any time, also after a No, and
says Nothing left to import when that is so.
| Step | What it does |
|---|---|
| API keys | Copies the api entries of v1's auth.json (mbm-console becomes mbm); a key mbm2 already has is kept. OAuth sign-ins (ChatGPT) are not copied: sign in again with /connect |
| Licence | Applies v1's licence key as the same device, so it takes no extra seat, and copies a valid offline licence file, as mbm2 license import does (below); a licence mbm2 already has is never replaced |
| Sessions | Every v1 project's sessions (not the archived ones), with their messages, tool calls and todos, into mbm2's session store. A project whose directory was moved or deleted is imported too. Without this step each project's sessions arrive when you first open mbm2 there |
| RAG | Nothing: mbm2 reads the same knowledge base v1 uses, so nothing is reindexed |
| Option | Effect |
|---|---|
--check |
Show the plan and change nothing |
--yes |
Do not ask (for scripts and servers) |
--sessions-only, --no-sessions |
Only the sessions, or only the keys and the licence |
--decline |
Remember "no", so the installer and the first start's dialog do not offer it again |
It is safe to run again and safe to stop: what is already in mbm2 is skipped, so a run stopped with
Ctrl-C (✗ Sessions Stopped: 20 sessions imported so far; …) is finished by running it again. v1's
files are only read. You need not close your mbm2 windows: while one is open its engine imports the
sessions under the same bar, and they appear in its session list at once:
✓ Sessions 12 imported, 0 already in mbm2 (through the running engine, v2.17.0, pid 1025420)
An engine from v2.16.97 or earlier cannot import them. Then the run says
✓ Sessions later: the running engine (v2.16.80, pid 1025420) is too old to import them; mbm2 imports them once it runs its own engine, which is not a failure: once the old windows have restarted or quit
(see Install), the first mbm2 on its own engine imports them and shows
a toast with the count.
| Install | curl -fsSL https://tui.mbm.mn/install | bash (Windows: irm https://tui.mbm.mn/install.ps1 | iex) |
|---|---|
| Run | mbm2 in your project, or mbm2 --dir <path> |
| Files | ~/.mbm2/bin (client) and ~/.mbm2/runtime (runtime); v1's files are not touched |
| Update | mbm2 upgrade |
What Carries Over
| From v1 | In mbm2 |
|---|---|
tui.json (theme, keybindings, mouse, scrolling) |
Read as is: the same file and keys. Settings v1 has no key for go in mbm2.json |
mbm.json (providers, models, agents, MCP servers, permissions) |
Read by the runtime as is |
| Sessions | mbm2 migrate-v1 imports every project's at once; otherwise the bundled runtime copies each project's v1 sessions when mbm2 starts there. Read only; v1's database is not changed |
| Skills and custom themes | Found in the same directories (~/.config/mbm/…, .mbm/…) |
| Provider keys | mbm2 migrate-v1, or mbm2 auth mbm --from-v1, copies every API key from v1's auth.json once (v1's file is only read); or connect each with /connect. v1's numbered openai-N, custom-N and ollama-N keys become accounts |
| Your licence | On a computer where v1 is licensed, mbm2 migrate-v1 (or mbm2 license import, or mbm2 auth mbm --from-v1) applies v1's key as the same device, so it takes no extra seat, and copies a valid offline licence file. The installer and the first start offer mbm2 migrate-v1 once. Elsewhere: mbm2 license apply <key> |
| Keys and shortcuts | v1's defaults; <leader> is still ctrl+x, and on a Cyrillic layout ctrl+ч works as the leader |
| Default agent | safe, as in v1, unless the runtime sets default_agent |
| Start flags | mbm2 <project>, --agent, --prompt, -m, -c, -s, --fork as v1's (a piped stdin is not read yet) |
What Changes
| v1 | mbm2 |
|---|---|
mbm |
mbm2; v1's commands run in mbm2 itself: mbm2 run, mbm2 models, mbm2 export, …. No release ships v1's runtime, so the few mbm2 does not serve, such as debug, need your own v1 mbm named by MBM_SERVER_BIN; mbm2 does not use an mbm on PATH (ADR 0282) |
mbm license apply <key> |
mbm2 license apply <key> |
console.mbm.mn |
tui.mbm.mn/account for licences, devices, keys, usage, wallet and payments; /account inside mbm2 |
| Share links | tui.mbm.mn/share/… |
docs.mbm.mn, "$schema": "https://docs.mbm.mn/config.json" |
tui.mbm.mn/docs/; "$schema": "https://tui.mbm.mn/config.json" (themes: https://tui.mbm.mn/theme.json) |
| One session per terminal | Workers: several session and terminal tabs for one project (Workers) |
| Plugin manager | /plugins: plugins are MCP and skills packages (Skills and plugins) |
mbm mcp add (CLI only) |
Also /mcps → + Add server inside the client, by form or pasted JSON |
Fixed provider slots (custom-1 … custom-10) |
Any number of accounts per provider: /connect → + Add account (Connect) |
Claude Pro/Max through mBm's claude-code provider |
/claude: the official Claude Code CLI in a tab; Anthropic API keys stay ordinary accounts |
| Nested dialogs replace each other | /config pages go back one level with esc |
Typing exit on the wrong layout (учшэ) |
/alias exit=учшэ makes it work (Configuration cookbook) |
What Is Dropped
| v1 | Why, and what to do |
|---|---|
TypeScript plugins (the plugin list in mbm.json) |
The Go runtime does not run them; /plugins lists them as not run. Rebuild one as a package: tools as an MCP server, prompt additions as skills |
| Client-side TUI plugins | The client draws its own interface; use the panels and slash commands |
| The licence nag and local licence checks | Your licence is checked by the runtime and shown in /status and /account; the client never decides it |
Moving Step By Step
-
Install
mbm2, and answer yes toImport from mbm v1 (licence, keys, sessions)? [Y/n](the first start's dialog names only what is left), or runmbm2 migrate-v1(above). Then runmbm2in a project you use with v1: its sessions appear in<leader>l. Steps 2 and 3 are whatmbm2 migrate-v1already did, one at a time. -
Copy your v1 keys once:
$ mbm2 auth mbm --from-v1 Copied from /home/you/.local/share/mbm/auth.json: anthropic, deepseek, mbmmbm2 login: no API keys in <path>means v1 stored none; OAuth sign-ins (ChatGPT) are not copied — sign in again with/connect. -
Bring your licence. If
mbm2 migrate-v1ran, it is done. Otherwise:$ mbm2 license import mbm v1 licence found in /home/you/.config/mbm License key: MBM-39BA-CB6D-7806-XXXX (applied by v1 as build-01) Device ID: 3f2a9c1d7b6e4a50 (v1's formula, this computer) License key: applied on tui.mbm.mn: m-Pro, device build-01, devices 1/3 Imported. `mbm2 license` shows it.It reads v1's
license-applied.jsonandlicense.licensein~/.config/mbm(or$XDG_CONFIG_HOME/mbm) and runs nothing of v1. The device ID is computed as v1 computes it, so the licence service sees the same device; if the computer was renamed since v1 applied the key, the lineNote: v1 applied it as …says the service may count a new device. An offline file bound to another device or expired is not copied, with v1's reason. On a computer without v1, apply the key yourself:mbm2 license apply MBM-XXXX-XXXX-XXXX-XXXX.mbm2 licenseshows the licence later;/accountshows it inside the client. -
If you type commands with a Cyrillic layout active, add aliases once:
/alias exit=учшэ,/alias continue=ёүиэшигу. -
Open
/configto check your theme, keys and workers;/pluginsto see which v1 plugins need a package. -
Keep
mbmuntil you no longer need it; nothing in v2 removes it.
Related: Install, First session, Command line, Troubleshooting.
Published from revision f88fc66f 2026-11-30