mBm TUI (mbm2)
Menu

mbm2 Command Line

mbm2 [project]            open the TUI on a local engine in project
                          (or --dir <path>)
mbm2 --attach <url> [--dir <path>] [-c|-s <sessionID>] [--fork]
mbm2 --version
mbm2 <command> [args]     run a command (mbm2 help lists them)
mbm2 help <command>       a command's purpose, flags and examples

This is the usage text mbm2 --help prints (its first lines). After the flags it lists every command by group, one line each, and ends with Run mbm2 help <command> for examples.

Help

You type You get
mbm2 --help, mbm2 -h, mbm2 help The usage and flags above, then every command grouped: Sessions and TUI; Scripting and agents; Remote and web; Account and licence; Providers and models; Knowledge (rag); Integrations; Maintenance. Fits 80 columns
mbm2 help <command> [subcommand], mbm2 <command> [subcommand] --help (or -h) That command's page: Purpose (what it is for and when to use it), Usage, its subcommands, Flags with their defaults, Examples with a comment each, and See also. mbm2 help mcp add, mbm2 mcp add --help and mbm2 help auth (an alias) all work
mbm2 help <unknown> mbm2: unknown command "<word>" and Did you mean "mbm2 <closest>"? on stderr, exit 1

Help is printed on stdout and exits 0. A --help after -- is an argument, not a request for help. A command's usage error (mbm2 <command>: <reason>) is followed by the same page on stderr. One command table in the client drives all of these and the command index below.

Flags

Flag Value Default Effect
--attach URL — Connect to a running server at this http/https URL; never spawns one
--dir path current directory Directory for project requests. An existing local path also becomes the working directory; a non-existent one is passed to the server as is
-c, --continue — off Open the most recent top-level session
-s, --session id — Open this session; checked before the interface starts
--fork — off Fork the session chosen by -c or -s before opening it
-m, --model provider/model stored choice Model for this run; outranks the stored preference. Checked once the model list is in: a malformed value is Invalid model format, an unknown one Model <provider>/<model> is not valid
--agent name default_agent, else safe Agent for this run; it beats a resumed session's own agent. A hidden, subagent or unknown name answers Agent not found: <name>. If that agent's configured model is missing: Agent <name>'s configured model <provider>/<model> is not valid
--open worker name — Open and focus this worker's tab at start (mbm2 team start uses it for a role whose card runs agy or codex)
--prompt text — Put this text in the first home prompt and send it once the agents are loaded and a model resolves; it is not sent if you edit it first. With -c it waits until there is nothing to continue
-u, --username name $MBM_SERVER_USERNAME, else mbm Basic auth username
-p, --password password $MBM_SERVER_PASSWORD, else the development default Basic auth password
--insecure — off Skip TLS certificate verification; prints a warning
--debug — off Write debug-level entries to the log file
--version — — Print version information and exit
-h, --help — — Print the usage, the flags and every command by group on stdout, and exit 0 (Help)

Single and double dashes are both accepted (-attach equals --attach). One project path may be given instead of --dir, as in v1: mbm2 ~/src/app and mbm2 ~/src/app -c both start in that directory (relative to MBM_INITIAL_DIR, else $PWD; symbolic links resolved). A path that cannot be entered stops with mbm2: Failed to change directory to <path> and exit status 1 before anything starts. A second path, or a path beside --dir, is unexpected argument "…". --session, --continue, --fork and --prompt address the main tab, which opens in front of any worker tabs restored for the project. Not built: v1's reading of a piped stdin into the prompt.

Command Index

Every command and subcommand mbm2 runs, as mbm2 --help groups them; mbm2 help <command> prints its page. The client's tests check that this table is the command table's. For team head, see Team head seats for syntax and the operator walkthrough.

Command Group Does
mbm2 help Sessions and TUI list the commands, or one command's help
mbm2 session Sessions and TUI list or delete this project's sessions
mbm2 session list Sessions and TUI list sessions
mbm2 session delete Sessions and TUI delete a session
mbm2 pr Sessions and TUI check out a GitHub pull request and open mbm2 on it
mbm2 run Scripting and agents run one message through the engine and print the reply
mbm2 send Scripting and agents send a message to another agent's session
mbm2 peers Scripting and agents list the sessions and windows mbm2 send reaches
mbm2 answer Scripting and agents answer a permission, question or escalation
mbm2 inbox (needs) Scripting and agents list and answer what waits for you
mbm2 todo Scripting and agents read and edit the project's work log
mbm2 todo list Scripting and agents the work log's items
mbm2 todo add Scripting and agents add an item
mbm2 todo done Scripting and agents check an item
mbm2 todo archive Scripting and agents move the checked items to history/
mbm2 todo index Scripting and agents regenerate INDEX.md
mbm2 todo history Scripting and agents dated snapshots of current.md from git
mbm2 auto Scripting and agents inspect auto mode's decisions
mbm2 auto log Scripting and agents print the decisions auto mode made in a session
mbm2 agent Scripting and agents list or create agents
mbm2 agent create Scripting and agents create a new agent
mbm2 agent list Scripting and agents list all available agents
mbm2 skill Scripting and agents install, list or remove skills
mbm2 skill install Scripting and agents install skill(s) from a catalogue URL
mbm2 skill list Scripting and agents list installed skills
mbm2 skill remove Scripting and agents remove an installed skill
mbm2 team Scripting and agents the project's team: inbox, hand-offs, roles; the token pool
mbm2 team inbox Scripting and agents list the open hand-offs of your role (or another)
mbm2 team send Scripting and agents hand work, a question or evidence to another role
mbm2 team reply Scripting and agents answer a hand-off and mark it done
mbm2 team status Scripting and agents set a hand-off's status, or show the board
mbm2 team who Scripting and agents print the team and its roles
mbm2 team setup Scripting and agents make a role's folder and its mbm2 agent
mbm2 team roles Scripting and agents list the team's members and the roles set up on this host
mbm2 team start Scripting and agents open mbm2 in a role's folder on its agent
mbm2 team generate Scripting and agents make, migrate or reset a team from one of seven presets
mbm2 team edit (new) Scripting and agents make or reorganize the team by chatting (in a window)
mbm2 team block Scripting and agents mark a hand-off blocked and say what it waits for
mbm2 team unblock Scripting and agents clear a hand-off's blocked state
mbm2 team decline Scripting and agents decline a hand-off and say why; the heads are told
mbm2 team budget Scripting and agents limit what a role may spend in a day
mbm2 team open-on-start Scripting and agents open a member's tab when the window starts
mbm2 team lead Scripting and agents say who leads the team
mbm2 team rights Scripting and agents show the authority table and who holds which row
mbm2 team models Scripting and agents show every member's models and whether they work
mbm2 team head Scripting and agents add, remove, list and name the seats of the head role
mbm2 team model Scripting and agents change a role's model for good
mbm2 team head add Scripting and agents add a seat of the head role on a runner
mbm2 team head remove Scripting and agents take a seat of the head role out
mbm2 team head list Scripting and agents list the seats of the head role
mbm2 team head whoami Scripting and agents print the address of the seat this shell's runner is
mbm2 team head claim Scripting and agents bind a head seat to this runner, or claim this terminal as the person's
mbm2 team add Scripting and agents add a member by the standard, or a helper under a role
mbm2 team remove Scripting and agents take a member out of the team without losing its work
mbm2 team move Scripting and agents move a member to another project's team
mbm2 team alias Scripting and agents list, repoint or drop the team's role aliases
mbm2 team watch Scripting and agents keep a windowless engine waking this host's roles
mbm2 team people Scripting and agents the roles this host counts as people
mbm2 team note Scripting and agents add one line of progress to a hand-off
mbm2 team show Scripting and agents print a hand-off with its progress and answer
mbm2 team sent Scripting and agents list the hand-offs you sent
mbm2 team check Scripting and agents check for store inconsistencies and generated-file drift (--fix repairs); even without --fix, can migrate a legacy store
mbm2 team share Scripting and agents link this host's role folders to the project's store
mbm2 team agents Scripting and agents list what runs each role
mbm2 team link Scripting and agents tell this team where another project's team is
mbm2 team outbox Scripting and agents inspect or retire local waiting deliveries without sending them
mbm2 team rename Scripting and agents give a role a display name, or the team a new name
mbm2 team group Scripting and agents keep named groups of roles a message can address at once
mbm2 team init Scripting and agents make the project's team store
mbm2 team sync Scripting and agents the team history's backup in the project's remote
mbm2 team import Scripting and agents move a team off a .teams clone into the project
mbm2 team install-alias Scripting and agents make mteam a name of mbm2 team
mbm2 team pool Scripting and agents manage team mode (pooled tokens across devices)
mbm2 team pool status Scripting and agents show team mode of the applied licence
mbm2 team pool enable Scripting and agents turn pooled token sharing on
mbm2 team pool disable Scripting and agents turn pooled token sharing off
mbm2 team enable Scripting and agents old name of team pool enable (one more release)
mbm2 team disable Scripting and agents old name of team pool disable (one more release)
mbm2 worker Scripting and agents list, remove and consolidate the project's worker tabs
mbm2 worker list Scripting and agents list the project's workers: roles, helpers and extras
mbm2 worker remove Scripting and agents take a worker out of its workers file
mbm2 worker consolidate Scripting and agents merge the scattered workers files into the project's and the team's
mbm2 permissions Scripting and agents list, add, remove and tidy permission rules
mbm2 permissions list Scripting and agents list the permission rules and where each lives
mbm2 permissions add Scripting and agents add a rule, host, path or waiver to the project or the global file
mbm2 permissions remove Scripting and agents remove one listed rule after showing what changes
mbm2 permissions tidy Scripting and agents remove the allow rules that can never match a later call
mbm2 web Remote and web start the mBm engine and open its web client
mbm2 login Account and licence sign this computer in to your tui.mbm.mn account
mbm2 logout Account and licence sign this computer out and remove the mBm key and the licence
mbm2 device-id Account and licence print this computer's device ID
mbm2 about (info) Account and licence show the version, mode, tier and device
mbm2 license Account and licence show, apply, sync and import this computer's licence
mbm2 license status Account and licence show the licence, its tier, limits and expiry
mbm2 license apply Account and licence activate a licence key on this computer
mbm2 license sync Account and licence refresh the stored licence from tui.mbm.mn
mbm2 license device-id Account and licence print this computer's device ID
mbm2 license import Account and licence import the licence mbm v1 left on this computer
mbm2 license activate Account and licence install an offline licence file
mbm2 license remove Account and licence remove the installed offline licence file
mbm2 wallet Account and licence show the credit balance and today's usage
mbm2 wallet add Account and licence open the wallet top-up page in the browser
mbm2 console Account and licence manage console accounts and organizations
mbm2 console login Account and licence log in to a console server
mbm2 console logout Account and licence log out from console
mbm2 console switch Account and licence switch the active organisation
mbm2 console orgs Account and licence list organisations
mbm2 console open Account and licence open the active console account in the browser
mbm2 providers (auth) Providers and models list, add and remove provider credentials
mbm2 providers list (ls) Providers and models list providers and credentials
mbm2 providers login Providers and models log in to a provider
mbm2 providers mbm Providers and models store your mBm API key, or copy v1's keys
mbm2 providers logout Providers and models log out from a configured provider
mbm2 models Providers and models list the models the engine can run
mbm2 rag Knowledge (rag) index, search and maintain the project's knowledge base
mbm2 rag index Knowledge (rag) index files and directories into the knowledge base
mbm2 rag search Knowledge (rag) search the knowledge base
mbm2 rag inject Knowledge (rag) inject knowledge base context into a system prompt
mbm2 rag status Knowledge (rag) show knowledge base statistics
mbm2 rag health Knowledge (rag) run the knowledge base's health check
mbm2 rag info Knowledge (rag) show the RAG infrastructure: servers, models, status
mbm2 rag config Knowledge (rag) show every RAG configuration value
mbm2 rag set Knowledge (rag) set RAG configuration values
mbm2 rag dbs Knowledge (rag) list every project database with its chunks and size
mbm2 rag queue-status Knowledge (rag) show the offline queue of pending operations
mbm2 rag reindex Knowledge (rag) reindex only the files changed since the last index
mbm2 rag reindex-full Knowledge (rag) clear every chunk and reindex from source
mbm2 rag optimize Knowledge (rag) remove duplicates and stale entries
mbm2 rag migrate Knowledge (rag) re-embed every chunk with the current model
mbm2 rag backup Knowledge (rag) back the knowledge base up to a SQL file
mbm2 rag clear Knowledge (rag) clear the knowledge base (asks first)
mbm2 rag purge Knowledge (rag) permanently delete all of a project's data
mbm2 rag enable Knowledge (rag) turn RAG auto-sync on
mbm2 rag disable Knowledge (rag) turn RAG auto-sync off
mbm2 rag hook Knowledge (rag) install, remove or check the auto-index git hooks
mbm2 rag sync-loop Knowledge (rag) run the auto-sync loop in the foreground
mbm2 rag repair Knowledge (rag) detect and repair corrupt .mbm-project-id files
mbm2 rag setup Knowledge (rag) first-run setup of the RAG infrastructure
mbm2 github Integrations install and run the GitHub CI/CD agent
mbm2 github install Integrations install the GitHub agent in this repository
mbm2 github run Integrations run the GitHub agent for an event
mbm2 gitlab Integrations install and run the GitLab CI agent
mbm2 gitlab install Integrations install the GitLab agent in this project
mbm2 gitlab run Integrations run the GitLab agent inside the mbm CI job
mbm2 acp Integrations serve the Agent Client Protocol on stdin and stdout
mbm2 mcp Integrations manage MCP (Model Context Protocol) servers
mbm2 mcp list (ls) Integrations list MCP servers and their status
mbm2 mcp add Integrations add an MCP server
mbm2 mcp auth Integrations authenticate with an OAuth-enabled MCP server
mbm2 mcp auth list (ls) Integrations list OAuth-capable MCP servers and their sign-in state
mbm2 mcp logout Integrations remove OAuth credentials for an MCP server
mbm2 mcp debug Integrations debug OAuth connection for an MCP server
mbm2 plugin (plug) Integrations install a plugin and add it to the config
mbm2 generate Integrations print the engine's OpenAPI document
mbm2 upgrade Maintenance install the latest (or named) release from tui.mbm.mn
mbm2 migrate-v1 Maintenance import mbm v1's licence, API keys and sessions
mbm2 export Maintenance print a session as JSON
mbm2 import Maintenance import a session from a JSON file or a share URL
mbm2 stats Maintenance show token usage and cost statistics
mbm2 serve Maintenance run a headless mBm engine until interrupted
mbm2 db Maintenance inspect and manage the session store
mbm2 db query Maintenance list the sessions or messages that match every filter
mbm2 db path Maintenance print the session store's directory
mbm2 db migrate Maintenance upgrade the session store to the current version
mbm2 db cleanup Maintenance delete sessions older than the retention period
mbm2 db vacuum Maintenance remove orphaned and empty files from the session store
mbm2 doctor Maintenance check the session store for sessions over 20 MB

Commands

Command Does
mbm2 upgrade [version] [--no-runtime] Install the latest (or named) release from tui.mbm.mn, checked against SHA256SUMS. The install password comes from MBM2_PASSWORD, the digest saved at install, or a prompt
mbm2 login Signs this computer in to your tui.mbm.mn account with a device code: prints To sign this computer in, open https://tui.mbm.mn/account/device and and enter the code: XXXX-XXXX, opens the browser, waits for the approval and prints Signed in as <email>.; /rc, /rc machine and mbm code use the computer's own token, listed under Devices at tui.mbm.mn/account/devices (Rename, Revoke). An expired or denied code exits 1
mbm2 auth mbm Asks Enter your API key: (no echo), checks the mBm key with the licence service and stores it in v2's credential file, for CI and headless runs (an API key never links a computer to mbm code); prints Done, or Failed to validate API key: …. mbm2 login --api-key does the same this release, after a note that it moved
mbm2 migrate-v1 One step from mbm v1, in this order: API keys (v1's auth.json entries as auth mbm --from-v1 copies them, except that a key mbm2 already has is kept: Already in mbm2 (kept): …), the licence (as license import does), and every project's sessions from v1's mbm.db, now rather than one project at a time when mbm2 is opened there. Prints a short plan, one row each for API keys (2 to copy: deepseek, mbm; kept: anthropic), Licence (MBM-…-XXXX to import, already in mbm2 or no mbm v1 licence found), Sessions (482 to import in 12 projects) and RAG (nothing to move: mbm2 uses v1's knowledge base as it is), asks Import from mbm v1 (licence, keys, sessions)? [Y/n] , then one line for the keys (✓ API keys 2 copied: deepseek, mbm), one for the licence, a progress bar for the sessions (227/482 sessions · ~/src/api, redrawn in place on a terminal, a line at each tenth in a pipe), ✓ Sessions <n> imported, <m> already in mbm2 and one summary line, Done: 2 API keys copied; licence imported; sessions: …. A project whose directory is gone is imported too. v1's files are only read and nothing of v1 runs. Run again it imports only what is new, so a run stopped with Ctrl-C (✗ Sessions Stopped: <n> sessions imported so far; …) is finished by running it again. Sessions need the bundled runtime. With an mbm2 open its engine imports them (… (through the running engine, <version>, pid <n>)); an engine from v2.16.97 or earlier cannot, and the line ✓ Sessions later: the running engine (…) is too old to import them; … says they are imported by the first mbm2 on its own engine, which shows a toast with the count
mbm2 migrate-v1 --check Prints the same short plan and changes nothing; exits 0 only when the one-time offer applies (something to import, not answered before), otherwise Not offered: nothing to import or Not offered: already answered: <answer> and 1. The installer asks on it
mbm2 migrate-v1 --yes, --decline --yes prints the plan and imports without asking (for scripts); --decline records a "no" so neither the installer nor the first start's dialog offers it again
mbm2 migrate-v1 --sessions-only, --no-sessions Only the sessions step, or only the keys and the licence; with --check too
mbm2 auth mbm --from-v1 (and mbm2 login --from-v1 this release) Copies every API key from v1's ~/.local/share/mbm/auth.json once (v1's mbm-console key becomes mbm; other providers keep their names); prints Copied from <path>: anthropic, deepseek, mbm. Then, when v1 left a licence, imports it as mbm2 license import does. v1's files are only read
mbm2 logout Signs this computer out (its token revoked at tui.mbm.mn, so /rc and mbm code stop) and removes the mBm key and the licence (copied provider keys stay): Logged out, or Not logged in
mbm2 license apply <key> Activates a licence on this computer and prints License activated: <tier>, device, tokens per day, sessions, devices, owner and email. It also links this computer to the licence for remote control (no mbm2 login needed); on a team licence it adds mbm code: sign in at tui.mbm.mn/account/machine and type XXXX-XXXX (for a day), the code that adds the computer to your own mbm code. Without a key: Usage: mbm2 license apply <license-key>
mbm2 license (or license status) Device ID and name, the licence (masked key), its tier (live) or (stored), tokens per day and month, sessions, devices, expiry, models and plugins
mbm2 license sync Refreshes the stored licence from the server: Syncing with license server..., then License refreshed
mbm2 license import Imports the licence a v1 mbm left on this computer for you: the applied key from ~/.config/mbm/license-applied.json is applied on tui.mbm.mn as license apply does, from this computer's device ID (v1's formula, so no extra seat), and a valid offline license.license is copied as license activate does. Prints mbm v1 licence found in <dir>, the masked key, the file and the device ID, then what it did and Imported.; run again it changes nothing (already in mbm2). A licence mbm2 already has is never replaced. Exits 1 with no mbm v1 licence found (looked in …), nothing to import (an expired file or one for another device), or Apply failed: <reason>
mbm2 license import --check Reports what v1 left and exits 0 only when the one-time offer applies (a licence to import, none in mbm2, not answered before); otherwise Not offered: <reason> and 1. --decline records a "no" so the offer is not made again
mbm2 device-id (or license device-id) Prints this computer's device id
mbm2 rag index [paths..] [--quiet] [-p <project>] Indexes files and directories into the RAG knowledge base through the local mBm engine, which it starts for the call; with no path, the current directory. Prints v1's summary (below); the git hooks run it after each commit and merge. On Windows it is still v1's command
mbm2 rag <command> The other knowledge base commands, each on the local engine like rag index, with v1's options and output: status [--all], search <query> [--type] [--tags] [--limit] [--json] [--context], health, config, queue-status, dbs, info, reindex [path] [--device], reindex-full [path] [--confirm yes] [--backup], optimize [--keep-stale] [--keep-cache], migrate, purge [--confirm yes], clear [-f] [--all], backup [-o <file>], set KEY=VALUE…, enable [-f], disable, hook install|uninstall|status [-f], repair [path] [--scan], inject <query> [--limit] (the prompt on stdin). Most take -p <project>; mbm2 rag <command> --help shows its options. setup prints that setup is the interface's RAG panel (/rag setup); sync-loop runs the engine's sync every RAG_SYNC_INTERVAL_MINUTES in the foreground until Ctrl-C or SIGTERM, printing nothing. With the interface open they use its engine. On Windows every rag command is
mbm2 todo [list|add|done|archive|index|history --from-git] The project work log docs/todo/current.md on the open interface's engine, else the local one: list, add (-p P1, -s <section>), check, archive the done items to history/, write INDEX.md. See Todo lists
mbm2 auto log <session> [--format json] The decisions auto mode made in the session and its subagents' sessions, oldest first, one line each: 2026-11-25 10:04:05 judge allow bash "go test ./..." runs the tests the task asks for (who decided: rule, guardrail <name>, judge, question, confirm; the decision: allow, deny, escalate, answer). No auto decisions in this session. when there is none; --format json prints the list (GET /session/{id}/auto). An unknown session exits 1 with Session not found: <id>
mbm2 send <session|label> <message..>, mbm2 send --dir <path>, mbm2 peers, mbm2 answer <id> … Message another agent's session on this computer's mbm2 engine, or a window of your account elsewhere through the relay, and list them; answer a permission or question a send --wait handed back, or an auto-mode escalation (esc_…); see mbm2 send and mbm2 peers
mbm2 run [message..], mbm2 models, mbm2 session list|delete, mbm2 export <id>, mbm2 import <file|url>, mbm2 stats v1's commands with v1's options, output and exit codes, run on the open interface's engine, else on the local mBm engine, which each starts for the call; run --attach <url> uses a running server. Not served yet: run --interactive, export without an id, models --refresh. See Scripting mbm2. They run the same way on Windows
mbm2 providers (auth), agent list, agent create, mcp list, mcp add, mcp auth, mcp logout, mcp debug, skill, plugin, serve, generate v1's commands with v1's options, output and exit codes, run by mbm2 on the open interface's engine or the local one. See Managing mbm2. On Windows they are still v1's commands
mbm2 about (or info) This installation: the version, the mode (Online (API Key) with the key's tier, team pool, today's mBm tokens and when they reset, devices; Offline (License File) with an activated licence file; else m-Free), the device id and the account page on tui.mbm.mn/account
mbm2 license activate <file> Checks an offline licence file (format, signature, this device, expiry) and installs it; prints License activated successfully., or Activation failed: <reason> and exits 1. mbm2 license then shows it as Activated
mbm2 license remove Removes the installed licence file: License removed.
mbm2 team inbox [<team>/<role>] The open hand-offs in a role's inbox of the project's team store .mbm2/team (yours by default: TEAM_ME, the nearest .mbm2/role, else mbm2's registry), one <status> inbox/<role>/<file> line each, (nothing open) when none (The team store). mteam inbox is the same command
mbm2 team send <team>/<role> <title> [<file>|-] [--wake] [--new-session] A new hand-off <date>-from-<your role>-<topic>.md in that role's inbox with From, To, Status: open, Evidence, the body from the file or stdin; committed under the store's lock and pushed in the background; prints its path
mbm2 team note <file> <text|->, mbm2 team show <file>, mbm2 team sent [--all] One line (≤ 500 characters) of progress in the hand-off's ## Явц, by its recipient or sender only, the recipient's first note taking it; the hand-off whole with its progress and answer; the hand-offs you sent, open and taken ones unless --all
mbm2 team reply <file> [<answer>|<file>|-] The answer beside the hand-off as <file>-result.md, the hand-off marked done; committed and pushed; prints the reply's path
mbm2 team status <file> <status>, mbm2 team status [<team>] [--stale <hours>], mbm2 team status --all Sets a hand-off's Status (open, taken, done, declined, withdrawn), or prints the board: every open or taken hand-off, oldest first, with its age, how long its recipient has been quiet on it and ⚠ silent from 4 hours, and a count per role (work a role marked team block is listed first as blocked with what it waits for, never as ⚠ silent, and after 24 hours the owner is told); --all lists every task of the team — hand-offs, the lead's tasks, the board's items — with owner, state, last progress and age; a problem with the history's backup is told on stderr once a day. Until a later release a bare mbm2 team status where no team is found prints the token pool's status after a note
mbm2 team who, mbm2 team roles, mbm2 team agents, mbm2 team check The team (team.json: name, prefix, each role and its card's «Хэн» line); the team's members with role_type, runner, folder and registry line, then the other roles set up on this host (mbm2's team-roles; roles outside a project prints it as it is); what runs each role (session, claude, agy, codex) with its model and folder; the store's consistency (statuses, names, prefixes, cards, and that every hand-off and board item is a task whose view is its file), exit 1 on a finding; team check also reports model availability and generated-file drift. Plain team check can migrate a legacy store, commit and sync if enabled; --fix changes the store. See member records and repair.
mbm2 team init <name> [--prefix <P>], mbm2 team sync [status|enable|push|off] Makes the project's store (.mbm2/team, its own git repository, /.mbm2/ in .gitignore); turns on and checks the history's backup to the project's remote as refs/mbm2/team (the mbm2-team branch where custom refs are refused); enable on a host with no store brings the team from the remote
mbm2 team import --from <path> [--team <name>] [--all] [--dry-run] Moves one team off a .teams clone into the project's store once: cards, agents, shared files, open and taken hand-offs with their progress (--all: every one), the role folders on this host linked and their role block rewritten; the source is never changed and a second run changes nothing
mbm2 team install-alias [--dir <dir>] [--force], mbm2 team share A link mteam to mbm2 beside it or in ~/.local/bin, refusing a file mbm2 did not make unless --force (which backs it up as <file>.bak-<time>); an earlier mteam on PATH is named with the command that fixes it, and --force backs it up and links mbm2 in its place when it is inside your home folder; links every role folder of this host to the project's one store (--dedicated is refused)
mbm2 team setup <team>/<role> [<dir>] [--from <repo>], mbm2 team setup <team> [--from <repo>] [--only a,b] A role folder (a worktree of --from, --clone <url>, or an existing folder) with .mbm2/role, its .mbm2/team-store link to the project's store, the start block naming mbm2 team in CLAUDE.local.md and AGENTS.local.md, the excludes and mbm2's registry line, and the role's agent .mbm/agents/<role>.md from its card unless the store holds the team's, never over an existing one (--force, --base <dir>)
mbm2 team start <team>/<role> Opens mbm2 in the role's registered folder on its agent (--agent <role>) with the role's start prompt; when the role's card says - **Agent:** claude [model], agy or codex, opens that terminal tab instead (--open <role>, agy tab, codex tab)
mbm2 team generate [--migrate|--reset] [--preset app-dev|small] [--without <role>] [--model <role>=<m>] [--fallback <role>=<m>] [--name <team>] [--yes] [--dry-run] [--wait] [--any-model] [--team-auto] Makes the app-dev team (<prefix>-pm, -lead the architect, -ui, -api, -worker, -qa, -docs; --preset small: lead, api, worker, qa; --without docs drops one) with the row 7.206 role fields (and model_escalate on the lead: gpt-6.2-astra for one /escalate turn) into the project's team store .mbm2/team (card, <role>.agent.md, workers.json, flows/default.yaml); a project with no team gets a new store named after its folder (or --name), made on Apply, taking its .mbm/agents roles in; the prefix is the team's own (team.json prefix_roles, else its roles' common first word, else its name), and Migrate keeps a prefixed legacy role's name (zve-dev is the backend); --model/--fallback set a role's models by short name, and the preview prints each role's mbm2 team model line; a fallback is never of a dearer class than its primary; models only from the providers GET /provider lists as connected, suggested from the preset's (gpt-6.2-sol, gpt-6.2-astra, deepseek-v4.1-flash, qwen3.8-flash, the Claude models; ui and api run as Claude tabs), the rest with --any-model; each role's card and agent say where its work goes next (the default flow); --team-auto sets team_auto: true in the project's mbm2.json; shows a preview before writing; --migrate keeps existing roles, --reset archives them (backup first, alias map aliases.json); refuses while sessions run unless --wait; --yes never edits a git-tracked instruction file (--edit-tracked does). --team <name> (a project with no store gets one), --move-role-text, --wait-timeout (guide)
mbm2 team remove <role> [--to <role>] [--yes] [--wait], mbm2 team move <role> --to-project <path> Takes a role out (card and agent archived in the backup, open hand-offs and escalations moved to --to, an alias, the worker, graph and flow updated; the last lead or gated reviewer asks for a replacement) or moves it to another project's team store; running work is waited for, never killed (guide)
mbm2 team rename <new-team-name> [--dry-run] [--yes] Renames the team: team.json's name (the old one kept in former_names), every role with the old prefix (zbackup-docs → zb-docs, the role zbackup → zb) with its card, agent, inbox, worker and flow member, aliases for the old names so zbackup/zbackup-docs still reaches zb/zb-docs; this host's role folders and registry follow; one commit after the preview and a backup (guide)
mbm2 team add <role_type> [--name <n>] [--model <m>] [--yes], mbm2 team add --helper <name> --under <role> Adds one role from the preset's template (or custom --name <n> --duty <line> [--read-only]): card, agent, worker, models as team generate, its place in the handoff graph and the default flow; a second worker is <team>-worker-2; a helper is a worker under a role with no card (guide)
mbm2 team block <file> <waiting on>, mbm2 team unblock <file> Marks the recipient's own hand-off blocked: it stays Status: taken and gains a Blocked: <waiting on> header with a progress note; the pm (else the lead) is sent a hand-off; unblock clears it (guide)
mbm2 team budget <team>/<role> <limit|unlimited> [--yes] [--dry-run] Sets a role's cost limit per local day after a preview and a backup: the agent's budget (unlimited, or tokens_per_day and/or usd_per_day; a limit is $5, 400k, 1.5m or both). At the limit the role's next turn waits for the next day or a higher limit; a Claude tab is not measured and takes none. team status --all adds each owner's spend today (guide)
mbm2 team open-on-start <team>/<role> on|off [--yes] [--dry-run] Sets open_on_start of the member's entry in the team's workers.json after a preview and a backup (a role from its card gets an entry of its name and agent): with it on, the tab opens when mbm2 starts in the project. Not team_auto_open, which opens a closed member's tab when work reaches it (guide)
mbm2 team model <team>/<role> [<model>] [--fallback <model>|none] [--escalate <model>|none] [--yes] [--dry-run] Changes a role's model for good after a preview and a backup: the agent's model_primary/model_fallback/model_escalate (--escalate alone keeps the model; a Claude tab has none), or a Claude model's Agent: claude card line; moving a role to or from a Claude model moves it between a Claude tab and a session (guide)
mbm2 team pool status Scripting and agents
mbm2 team pool enable Scripting and agents
mbm2 team pool disable Scripting and agents
mbm2 team enable Scripting and agents
mbm2 team disable Scripting and agents
mbm2 worker Scripting and agents
mbm2 worker list Scripting and agents
mbm2 worker remove Scripting and agents
mbm2 worker consolidate Scripting and agents
mbm2 web Remote and web
mbm2 login Account and licence
mbm2 logout Account and licence
mbm2 device-id Account and licence
mbm2 about (info) Account and licence
mbm2 license Account and licence
mbm2 license status Account and licence
mbm2 license apply Account and licence
mbm2 license sync Account and licence
mbm2 license device-id Account and licence
mbm2 license import Account and licence
mbm2 license activate Account and licence
mbm2 license remove Account and licence
mbm2 wallet Account and licence
mbm2 wallet add Account and licence
mbm2 console Account and licence
mbm2 console login Account and licence
mbm2 console logout Account and licence
mbm2 console switch Account and licence
mbm2 console orgs Account and licence
mbm2 console open Account and licence
mbm2 providers (auth) Providers and models
mbm2 providers list (ls) Providers and models
mbm2 providers login Providers and models
mbm2 providers mbm Providers and models
mbm2 providers logout Providers and models
mbm2 models Providers and models
mbm2 rag Knowledge (rag)
mbm2 rag index Knowledge (rag)
mbm2 rag search Knowledge (rag)
mbm2 rag inject Knowledge (rag)
mbm2 rag status Knowledge (rag)
mbm2 rag health Knowledge (rag)
mbm2 rag info Knowledge (rag)
mbm2 rag config Knowledge (rag)
mbm2 rag set Knowledge (rag)
mbm2 rag dbs Knowledge (rag)
mbm2 rag queue-status Knowledge (rag)
mbm2 rag reindex Knowledge (rag)
mbm2 rag reindex-full Knowledge (rag)
mbm2 rag optimize Knowledge (rag)
mbm2 rag migrate Knowledge (rag)
mbm2 rag backup Knowledge (rag)
mbm2 rag clear Knowledge (rag)
mbm2 rag purge Knowledge (rag)
mbm2 rag enable Knowledge (rag)
mbm2 rag disable Knowledge (rag)
mbm2 rag hook Knowledge (rag)
mbm2 rag sync-loop Knowledge (rag)
mbm2 rag repair Knowledge (rag)
mbm2 rag setup Knowledge (rag)
mbm2 github Integrations
mbm2 github install Integrations
mbm2 github run Integrations
mbm2 gitlab Integrations
mbm2 gitlab install Integrations
mbm2 gitlab run Integrations
mbm2 acp Integrations
mbm2 mcp Integrations
mbm2 mcp list (ls) Integrations
mbm2 mcp add Integrations
mbm2 mcp auth Integrations
mbm2 mcp auth list (ls) Integrations
mbm2 mcp logout Integrations
mbm2 mcp debug Integrations
mbm2 plugin (plug) Integrations
mbm2 generate Integrations
mbm2 upgrade Maintenance
mbm2 migrate-v1 Maintenance
mbm2 export Maintenance
mbm2 import Maintenance
mbm2 stats Maintenance
mbm2 serve Maintenance
mbm2 db Maintenance
mbm2 db query Maintenance
mbm2 db path Maintenance
mbm2 db migrate Maintenance
mbm2 db cleanup Maintenance
mbm2 db vacuum Maintenance
mbm2 doctor Maintenance

Commands

Command Does
mbm2 upgrade [version] [--no-runtime] Install the latest (or named) release from tui.mbm.mn, checked against SHA256SUMS. The install password comes from MBM2_PASSWORD, the digest saved at install, or a prompt
mbm2 login Signs this computer in to your tui.mbm.mn account with a device code: prints To sign this computer in, open https://tui.mbm.mn/account/device and and enter the code: XXXX-XXXX, opens the browser, waits for the approval and prints Signed in as <email>.; /rc, /rc machine and mbm code use the computer's own token, listed under Devices at tui.mbm.mn/account/devices (Rename, Revoke). An expired or denied code exits 1
mbm2 auth mbm Asks Enter your API key: (no echo), checks the mBm key with the licence service and stores it in v2's credential file, for CI and headless runs (an API key never links a computer to mbm code); prints Done, or Failed to validate API key: …. mbm2 login --api-key does the same this release, after a note that it moved
mbm2 migrate-v1 One step from mbm v1, in this order: API keys (v1's auth.json entries as auth mbm --from-v1 copies them, except that a key mbm2 already has is kept: Already in mbm2 (kept): …), the licence (as license import does), and every project's sessions from v1's mbm.db, now rather than one project at a time when mbm2 is opened there. Prints a short plan, one row each for API keys (2 to copy: deepseek, mbm; kept: anthropic), Licence (MBM-…-XXXX to import, already in mbm2 or no mbm v1 licence found), Sessions (482 to import in 12 projects) and RAG (nothing to move: mbm2 uses v1's knowledge base as it is), asks Import from mbm v1 (licence, keys, sessions)? [Y/n] , then one line for the keys (✓ API keys 2 copied: deepseek, mbm), one for the licence, a progress bar for the sessions (227/482 sessions · ~/src/api, redrawn in place on a terminal, a line at each tenth in a pipe), ✓ Sessions <n> imported, <m> already in mbm2 and one summary line, Done: 2 API keys copied; licence imported; sessions: …. A project whose directory is gone is imported too. v1's files are only read and nothing of v1 runs. Run again it imports only what is new, so a run stopped with Ctrl-C (✗ Sessions Stopped: <n> sessions imported so far; …) is finished by running it again. Sessions need the bundled runtime. With an mbm2 open its engine imports them (… (through the running engine, <version>, pid <n>)); an engine from v2.16.97 or earlier cannot, and the line ✓ Sessions later: the running engine (…) is too old to import them; … says they are imported by the first mbm2 on its own engine, which shows a toast with the count
mbm2 migrate-v1 --check Prints the same short plan and changes nothing; exits 0 only when the one-time offer applies (something to import, not answered before), otherwise Not offered: nothing to import or Not offered: already answered: <answer> and 1. The installer asks on it
mbm2 migrate-v1 --yes, --decline --yes prints the plan and imports without asking (for scripts); --decline records a "no" so neither the installer nor the first start's dialog offers it again
mbm2 migrate-v1 --sessions-only, --no-sessions Only the sessions step, or only the keys and the licence; with --check too
mbm2 auth mbm --from-v1 (and mbm2 login --from-v1 this release) Copies every API key from v1's ~/.local/share/mbm/auth.json once (v1's mbm-console key becomes mbm; other providers keep their names); prints Copied from <path>: anthropic, deepseek, mbm. Then, when v1 left a licence, imports it as mbm2 license import does. v1's files are only read
mbm2 logout Signs this computer out (its token revoked at tui.mbm.mn, so /rc and mbm code stop) and removes the mBm key and the licence (copied provider keys stay): Logged out, or Not logged in
mbm2 license apply <key> Activates a licence on this computer and prints License activated: <tier>, device, tokens per day, sessions, devices, owner and email. It also links this computer to the licence for remote control (no mbm2 login needed); on a team licence it adds mbm code: sign in at tui.mbm.mn/account/machine and type XXXX-XXXX (for a day), the code that adds the computer to your own mbm code. Without a key: Usage: mbm2 license apply <license-key>
mbm2 license (or license status) Device ID and name, the licence (masked key), its tier (live) or (stored), tokens per day and month, sessions, devices, expiry, models and plugins
mbm2 license sync Refreshes the stored licence from the server: Syncing with license server..., then License refreshed
mbm2 license import Imports the licence a v1 mbm left on this computer for you: the applied key from ~/.config/mbm/license-applied.json is applied on tui.mbm.mn as license apply does, from this computer's device ID (v1's formula, so no extra seat), and a valid offline license.license is copied as license activate does. Prints mbm v1 licence found in <dir>, the masked key, the file and the device ID, then what it did and Imported.; run again it changes nothing (already in mbm2). A licence mbm2 already has is never replaced. Exits 1 with no mbm v1 licence found (looked in …), nothing to import (an expired file or one for another device), or Apply failed: <reason>
mbm2 license import --check Reports what v1 left and exits 0 only when the one-time offer applies (a licence to import, none in mbm2, not answered before); otherwise Not offered: <reason> and 1. --decline records a "no" so the offer is not made again
mbm2 device-id (or license device-id) Prints this computer's device id
mbm2 rag index [paths..] [--quiet] [-p <project>] Indexes files and directories into the RAG knowledge base through the local mBm engine, which it starts for the call; with no path, the current directory. Prints v1's summary (below); the git hooks run it after each commit and merge. On Windows it is still v1's command
mbm2 rag <command> The other knowledge base commands, each on the local engine like rag index, with v1's options and output: status [--all], search <query> [--type] [--tags] [--limit] [--json] [--context], health, config, queue-status, dbs, info, reindex [path] [--device], reindex-full [path] [--confirm yes] [--backup], optimize [--keep-stale] [--keep-cache], migrate, purge [--confirm yes], clear [-f] [--all], backup [-o <file>], set KEY=VALUE…, enable [-f], disable, hook install|uninstall|status [-f], repair [path] [--scan], inject <query> [--limit] (the prompt on stdin). Most take -p <project>; mbm2 rag <command> --help shows its options. setup prints that setup is the interface's RAG panel (/rag setup); sync-loop runs the engine's sync every RAG_SYNC_INTERVAL_MINUTES in the foreground until Ctrl-C or SIGTERM, printing nothing. With the interface open they use its engine. On Windows every rag command is
mbm2 todo [list|add|done|archive|index|history --from-git] The project work log docs/todo/current.md on the open interface's engine, else the local one: list, add (-p P1, -s <section>), check, archive the done items to history/, write INDEX.md. See Todo lists
mbm2 auto log <session> [--format json] The decisions auto mode made in the session and its subagents' sessions, oldest first, one line each: 2026-11-25 10:04:05 judge allow bash "go test ./..." runs the tests the task asks for (who decided: rule, guardrail <name>, judge, question, confirm; the decision: allow, deny, escalate, answer). No auto decisions in this session. when there is none; --format json prints the list (GET /session/{id}/auto). An unknown session exits 1 with Session not found: <id>
mbm2 send <session|label> <message..>, mbm2 send --dir <path>, mbm2 peers, mbm2 answer <id> … Message another agent's session on this computer's mbm2 engine, or a window of your account elsewhere through the relay, and list them; answer a permission or question a send --wait handed back, or an auto-mode escalation (esc_…); see mbm2 send and mbm2 peers
mbm2 run [message..], mbm2 models, mbm2 session list|delete, mbm2 export <id>, mbm2 import <file|url>, mbm2 stats v1's commands with v1's options, output and exit codes, run on the open interface's engine, else on the local mBm engine, which each starts for the call; run --attach <url> uses a running server. Not served yet: run --interactive, export without an id, models --refresh. See Scripting mbm2. They run the same way on Windows
mbm2 providers (auth), agent list, agent create, mcp list, mcp add, mcp auth, mcp logout, mcp debug, skill, plugin, serve, generate v1's commands with v1's options, output and exit codes, run by mbm2 on the open interface's engine or the local one. See Managing mbm2. On Windows they are still v1's commands
mbm2 about (or info) This installation: the version, the mode (Online (API Key) with the key's tier, team pool, today's mBm tokens and when they reset, devices; Offline (License File) with an activated licence file; else m-Free), the device id and the account page on tui.mbm.mn/account
mbm2 license activate <file> Checks an offline licence file (format, signature, this device, expiry) and installs it; prints License activated successfully., or Activation failed: <reason> and exits 1. mbm2 license then shows it as Activated
mbm2 license remove Removes the installed licence file: License removed.
mbm2 team inbox [<team>/<role>] The open hand-offs in a role's inbox of the project's team store .mbm2/team (yours by default: TEAM_ME, the nearest .mbm2/role, else mbm2's registry), one <status> inbox/<role>/<file> line each, (nothing open) when none (The team store). mteam inbox is the same command
mbm2 team send <team>/<role> <title> [<file>|-] [--wake] [--new-session] A new hand-off <date>-from-<your role>-<topic>.md in that role's inbox with From, To, Status: open, Evidence, the body from the file or stdin; committed under the store's lock and pushed in the background; prints its path
mbm2 team note <file> <text|->, mbm2 team show <file>, mbm2 team sent [--all] One line (≤ 500 characters) of progress in the hand-off's ## Явц, by its recipient or sender only, the recipient's first note taking it; the hand-off whole with its progress and answer; the hand-offs you sent, open and taken ones unless --all
mbm2 team reply <file> [<answer>|<file>|-] The answer beside the hand-off as <file>-result.md, the hand-off marked done; committed and pushed; prints the reply's path
mbm2 team status <file> <status>, mbm2 team status [<team>] [--stale <hours>], mbm2 team status --all Sets a hand-off's Status (open, taken, done, declined, withdrawn), or prints the board: every open or taken hand-off, oldest first, with its age, how long its recipient has been quiet on it and ⚠ silent from 4 hours, and a count per role (work a role marked team block is listed first as blocked with what it waits for, never as ⚠ silent, and after 24 hours the owner is told); --all lists every task of the team — hand-offs, the lead's tasks, the board's items — with owner, state, last progress and age; a problem with the history's backup is told on stderr once a day. Until a later release a bare mbm2 team status where no team is found prints the token pool's status after a note
mbm2 team who, mbm2 team roles, mbm2 team agents, mbm2 team check The team (team.json: name, prefix, each role and its card's «Хэн» line); the team's members with role_type, runner, folder and registry line, then the other roles set up on this host (mbm2's team-roles; roles outside a project prints it as it is); what runs each role (session, claude, agy, codex) with its model and folder; the store's consistency (statuses, names, prefixes, cards, and that every hand-off and board item is a task whose view is its file), exit 1 on a finding; team check also reports model availability and generated-file drift. Plain team check can migrate a legacy store, commit and sync if enabled; --fix changes the store. See member records and repair.
mbm2 team init <name> [--prefix <P>], mbm2 team sync [status|enable|push|off] Makes the project's store (.mbm2/team, its own git repository, /.mbm2/ in .gitignore); turns on and checks the history's backup to the project's remote as refs/mbm2/team (the mbm2-team branch where custom refs are refused); enable on a host with no store brings the team from the remote
mbm2 team import --from <path> [--team <name>] [--all] [--dry-run] Moves one team off a .teams clone into the project's store once: cards, agents, shared files, open and taken hand-offs with their progress (--all: every one), the role folders on this host linked and their role block rewritten; the source is never changed and a second run changes nothing
mbm2 team install-alias [--dir <dir>] [--force], mbm2 team share A link mteam to mbm2 beside it or in ~/.local/bin, refusing a file mbm2 did not make unless --force (which backs it up as <file>.bak-<time>); an earlier mteam on PATH is named with the command that fixes it, and --force backs it up and links mbm2 in its place when it is inside your home folder; links every role folder of this host to the project's one store (--dedicated is refused)
mbm2 team setup <team>/<role> [<dir>] [--from <repo>], mbm2 team setup <team> [--from <repo>] [--only a,b] A role folder (a worktree of --from, --clone <url>, or an existing folder) with .mbm2/role, its .mbm2/team-store link to the project's store, the start block naming mbm2 team in CLAUDE.local.md and AGENTS.local.md, the excludes and mbm2's registry line, and the role's agent .mbm/agents/<role>.md from its card unless the store holds the team's, never over an existing one (--force, --base <dir>)
mbm2 team start <team>/<role> Opens mbm2 in the role's registered folder on its agent (--agent <role>) with the role's start prompt; when the role's card says - **Agent:** claude [model], agy or codex, opens that terminal tab instead (--open <role>, agy tab, codex tab)
mbm2 team generate [--migrate|--reset] [--preset app-dev|small] [--without <role>] [--model <role>=<m>] [--fallback <role>=<m>] [--name <team>] [--yes] [--dry-run] [--wait] [--any-model] [--team-auto] Makes the app-dev team (<prefix>-pm, -lead the architect, -ui, -api, -worker, -qa, -docs; --preset small: lead, api, worker, qa; --without docs drops one) with the row 7.206 role fields (and model_escalate on the lead: gpt-6.2-astra for one /escalate turn) into the project's team store .mbm2/team (card, <role>.agent.md, workers.json, flows/default.yaml); a project with no team gets a new store named after its folder (or --name), made on Apply, taking its .mbm/agents roles in; the prefix is the team's own (team.json prefix_roles, else its roles' common first word, else its name), and Migrate keeps a prefixed legacy role's name (zve-dev is the backend); --model/--fallback set a role's models by short name, and the preview prints each role's mbm2 team model line; a fallback is never of a dearer class than its primary; models only from the providers GET /provider lists as connected, suggested from the preset's (gpt-6.2-sol, gpt-6.2-astra, deepseek-v4.1-flash, qwen3.8-flash, the Claude models; ui and api run as Claude tabs), the rest with --any-model; each role's card and agent say where its work goes next (the default flow); --team-auto sets team_auto: true in the project's mbm2.json; shows a preview before writing; --migrate keeps existing roles, --reset archives them (backup first, alias map aliases.json); refuses while sessions run unless --wait; --yes never edits a git-tracked instruction file (--edit-tracked does). --team <name> (a project with no store gets one), --move-role-text, --wait-timeout (guide)
mbm2 team remove <role> [--to <role>] [--yes] [--wait], mbm2 team move <role> --to-project <path> Takes a role out (card and agent archived in the backup, open hand-offs and escalations moved to --to, an alias, the worker, graph and flow updated; the last lead or gated reviewer asks for a replacement) or moves it to another project's team store; running work is waited for, never killed (guide)
mbm2 team rename <new-team-name> [--dry-run] [--yes] Renames the team: team.json's name (the old one kept in former_names), every role with the old prefix (zbackup-docs → zb-docs, the role zbackup → zb) with its card, agent, inbox, worker and flow member, aliases for the old names so zbackup/zbackup-docs still reaches zb/zb-docs; this host's role folders and registry follow; one commit after the preview and a backup (guide)
mbm2 team add <role_type> [--name <n>] [--model <m>] [--yes], mbm2 team add --helper <name> --under <role> Adds one role from the preset's template (or custom --name <n> --duty <line> [--read-only]): card, agent, worker, models as team generate, its place in the handoff graph and the default flow; a second worker is <team>-worker-2; a helper is a worker under a role with no card (guide)
mbm2 team block <file> <waiting on>, mbm2 team unblock <file> Marks the recipient's own hand-off blocked: it stays Status: taken and gains a Blocked: <waiting on> header with a progress note; the pm (else the lead) is sent a hand-off; unblock clears it (guide)
mbm2 team budget <team>/<role> <limit|unlimited> [--yes] [--dry-run] Sets a role's cost limit per local day after a preview and a backup: the agent's budget (unlimited, or tokens_per_day and/or usd_per_day; a limit is $5, 400k, 1.5m or both). At the limit the role's next turn waits for the next day or a higher limit; a Claude tab is not measured and takes none. team status --all adds each owner's spend today (guide)
mbm2 team open-on-start <team>/<role> on|off [--yes] [--dry-run] Sets open_on_start of the member's entry in the team's workers.json after a preview and a backup (a role from its card gets an entry of its name and agent): with it on, the tab opens when mbm2 starts in the project. Not team_auto_open, which opens a closed member's tab when work reaches it (guide)
mbm2 team model <team>/<role> [<model>] [--fallback <model>|none] [--escalate <model>|none] [--yes] [--dry-run] Changes a role's model for good after a preview and a backup: the agent's model_primary/model_fallback/model_escalate (--escalate alone keeps the model; a Claude tab has none), or a Claude model's Agent: claude card line; moving a role to or from a Claude model moves it between a Claude tab and a session (guide)
mbm2 team pool status Team mode of the applied licence: ✓ ENABLED or ✗ DISABLED, the masked licence key, its tier, and with team mode the active devices and today's pooled tokens
mbm2 team pool enable, mbm2 team pool disable Turns pooled token sharing on or off for a licence you own (tui.mbm.mn checks the owner); a refusal prints ✗ <reason> and still exits 0. mbm2 team pool alone exits 1. The old mbm2 team enable and mbm2 team disable do the same for one more release, after mbm2 team enable is now mbm2 team pool enable; the old name goes in a later release on stderr
mbm2 wallet Credit balance, tier, today's usage and free tokens left for your mBm key. mbm2 wallet add [amount] opens tui.mbm.mn/account/wallet in the browser (with ?amount= from 10 up)
mbm2 pr <number> Checks a GitHub pull request out as pr/<number> with gh, tracks a fork's branch, imports the session its description links (tui.mbm.mn/share/…), then opens mbm2 on it
mbm2 db path Prints where the engine keeps its sessions (~/.local/share/mbm/mbm2/engine)
mbm2 db cleanup Deletes sessions not updated for the global file's cleanup.retention_days (default 30; a project's value is not read, as in v1) and prints Retention cleanup (<n> days): removed …. Every start of the engine does the same sweep without printing; mbm2 db starts its engine without it
mbm2 db [query] [sessions|messages] [filter…] [--format tsv|json] [--limit n] Lists the sessions (or messages) that match every filter: a header line and tab-separated rows, or JSON with --format json. The store is JSON, not SQL; the filter syntax is below and in mbm2 db query --help
mbm2 db migrate Upgrades the session store to the current version: Session store version 0 -> 2 (version 2 stores each session as a folder of segments; a session in the older one-file form moves on its next save anyway), then Migration complete: <n> projects, <n> sessions, <n> messages; on a current store Session store version 2 is current. and zeros
mbm2 db vacuum Removes orphaned files (interrupted saves, saved tool outputs of deleted sessions) and empty files from the session store, then prints Removed <n> files (<n> orphaned, <n> empty), <n> bytes. (or No orphaned or empty files found.) and VACUUM complete: <a> MB -> <b> MB (freed <c> MB). Files from the last hour stay
mbm2 doctor Checks the session store and changes nothing: Session store: <dir> (<n> sessions, <x> MB), then each session over 20 MB, largest first — its id, size, segments or one file (stored by an older mbm2, moved to segments on its next save; mbm2 db migrate moves them all) and title — or No session is over 20 MB. Keep a copy of a large session with mbm2 export <id> > <id>.json
mbm2 acp [--cwd <dir>] An Agent Client Protocol server on stdin and stdout for editors such as Zed: sessions, prompts, tool calls, plans and permission requests on the mBm engine (the open interface's, else one started in --cwd). It ends when the editor closes stdin
mbm2 console login <url> Signs this terminal in to a console server (mbm2 console login https://tui.mbm.mn): prints Go to: <url>/account/device and Enter code: XXXX-XXXX, opens the browser, and waits while you type the code on that page, signed in with Google or GitHub, check the address and time it shows for the request, and approve it; then Logged in as <email>. A denied or expired code says so. The account and its tokens are kept in ~/.local/share/mbm/mbm2/console.json (0600)
mbm2 console orgs Lists the organisations of every signed-in console account, one line each (name, email, server, id), the active one marked ●; under an organisation bound to a team licence, its masked key, the seats its members take and its team pool (Organisations). Your first console sign-in creates one called Default; manage them on tui.mbm.mn/account/orgs (create, rename, add and remove members by email, bind a team licence, set the members' configuration)
mbm2 console switch Lists the organisations numbered and makes the one you type active: Switched to <name>
mbm2 console logout [email] Forgets a console account on this computer (Logged out from <email>); without an email it lists the accounts to choose from
mbm2 console open Opens the active console account's server in the browser
mbm2 web [--port <n>] [--hostname <h>] [--mdns] [--cors <origin>] Starts the mBm engine as a server (port 8027 by default) and opens its web chat client in the browser, or opens the open interface's engine; the password rules are serve's. See Web client. On Windows it is still v1's command
mbm2 github install In a clone of a GitHub repository: makes sure the mbm-agent GitHub App is on it (opening its page and waiting), asks for a provider and a model, and writes .github/workflows/mbm.yml, which answers /mbm and /oc comments; then lists the secrets to add (GitHub agent)
mbm2 github run [--event <json>] [--token <github_pat_…>] What that workflow runs inside GitHub Actions: reads the comment, runs it on the mBm engine and answers on the issue or pull request, pushing a branch or opening a pull request when files changed. --event and --token run one event from your machine
mbm2 gitlab install In a clone of a GitLab project (gitlab.com or self-hosted): asks for the GitLab URL, a provider and a model, a project access token and a pipeline trigger token, registers the project with your tui.mbm.mn account (sign in first with mbm2 console login https://tui.mbm.mn), writes .gitlab/mbm.yml and prints the webhook URL and secret to add (GitLab agent)
mbm2 gitlab run What the mbm job runs in GitLab CI when a /mbm note triggers it: reads the note, runs it on the mBm engine and answers as a note, pushing a branch and opening a merge request (or pushing to the merge request's branch) when files changed
mbm2 debug, … v1's commands, run by v1's mbm with the same arguments. No release bundles v1 on any platform (ADR 0277), so they need MBM_SERVER_BIN naming a v1 mbm you installed yourself (an mbm on PATH is not used, ADR 0282), else mbm2 exits 1 with this command needs a v1 mbm named by MBM_SERVER_BIN; …

The runtime commands are the bundled mbm binary's; mbm2 finds it the way local mode does (Connect) and passes its exit status through.

Team head seats

Run these commands in the team's project. For the worked example, required terminals, pending output, refusal and restart recovery, see Set up, claim and reclaim a head seat.

Command What it does
mbm2 team head list Lists each seat's address, runner and instruction file.
mbm2 team head whoami [--runner <runner>] Resolves an address, not a binding. Runner values: claude, codex, agy, session, window.
mbm2 team head add [<name>] --runner <runner> [--adopt|--keep-text] [--yes] Adds or refreshes a seat as a recognized head or person. Runner values: claude, codex, agy, session. Use --yes with either preview option to skip confirmation.
mbm2 team head remove <name> Removes a named seat as a recognized head or person; main cannot be removed.
mbm2 team head claim <seat> From the external runner, requests a binding for a named seat; accepts a full address or the local seat name.
mbm2 team head claim main From the person's separate shell, requests recognition of that login session.
mbm2 answer <need_claim_…> allow|deny Answers the claim from an already-recognized person terminal. A seat cannot answer it.

The aggregate mbm2 team head --help shows the full add forms. The add --help entry omits --keep-text and --yes. Claim support is limited to the contexts in the walkthrough.

Team model health

Unreleased. mbm2 team models inspects each member's configured and last-used models without sending requests to providers. Use --format json for scripts. Add --probe to send a small test request per distinct model target on its runner. The CLI warns about token cost and asks first; in scripts without a terminal, it refuses unless you pass --yes.

mbm2 team check reports static model problems. mbm2 team check --fix can repair bare Claude IDs in agent files by adding the claude/ prefix. For status marks and runtime recovery, see Inspect and repair team models.

mbm2 rag index Output

$ mbm2 rag index README.md
Project: 1a2b3c4d-5e6f708192a3b4c5
File: README.md
  chunks=4 inserted=4 duplicated=0 skipped=0 errors=0

$ mbm2 rag index
Project: 1a2b3c4d-5e6f708192a3b4c5
Directory: /home/me/src/shop-api
  files=340 chunks=2210 inserted=2205 duplicated=5 skipped=12 errors=0

$ mbm2 rag index src/cart.go src/tax.go
Project: 1a2b3c4d-5e6f708192a3b4c5
Paths: 2
  files=2 chunks=7 inserted=7 duplicated=0 skipped=0 errors=0

An unchanged file counts as skipped=1. --quiet prints nothing on success. -p <project> files the chunks under another project id; a value with a / means that directory's project. When the knowledge base's database cannot be reached it prints Database connection refused. Is PostgreSQL running? with two hint lines and exits 0, as v1 does; any other failure prints Error: <message> and exits 1. Unlike v1 it shows no per-file progress line while it works.

Other mbm2 rag Output

$ mbm2 rag status
Knowledge Base Status (1a2b3c4d-5e6f708192a3b4c5):
  Total chunks: 2210
  By type: {
    "code": 1980,
    "doc": 230
  }
  Pending files: 0
  Compated sessions: 0
  Embedding cache: 0 entries

$ mbm2 rag search "tax rounding" --limit 2
1. [code] tax.go: roundCents (score: 0.8123)
   /home/me/src/shop-api/src/tax.go

2. [doc] docs/tax.md: Rounding (score: 0.7740)
   /home/me/src/shop-api/docs/tax.md

$ mbm2 rag purge
WARNING: This will PERMANENTLY DELETE all data for project '1a2b3c4d-5e6f708192a3b4c5'
  Chunks: 2210
  By type: {"code": 1980, "doc": 230}

To proceed: add --confirm yes

$ mbm2 rag hook install
Hook installed: /home/me/src/shop-api/.git/hooks/post-commit
Hook installed: /home/me/src/shop-api/.git/hooks/post-merge

The texts are v1's, Compated included. --json prints the hits as JSON and --context the block the model would see. purge and reindex-full only preview until --confirm yes; clear asks Are you sure? Type 'yes' to confirm: unless -f; with MBM_SAFE_MODE=1 clear and optimize ask first. A database that cannot be reached prints the same three lines as rag index and exits 0 for status, dbs, reindex, optimize and clear; purge and reindex-full --confirm yes print Error: Database unreachable. Run: docker start mbm-rag-pg-1 and exit 1. config and info show the database URL with its password as ***. set writes the values as given, without a backup.

mbm2 upgrade Output

$ mbm2 upgrade
<v1's mBm logo>
Enter password:
✓ Download         mbm2 <version>
✓ Verify checksum
✓ Unpack
✓ Runtime
✓ Switch
mbm2 <version> installed — run mbm2

$ mbm2 upgrade
<v1's mBm logo>
mbm2 <version> is already installed

$ mbm2 upgrade --no-runtime
<v1's mBm logo>
✓ Download         mbm2 <version>
✓ Verify checksum
✓ Switch
mbm2 <version> installed — run mbm2

A step that fails ends with ✗ and the reason, and nothing is replaced. When only a fresh install can go on (an install not made by the installer, a runtime this client cannot install, an install directory it cannot write, no build for this computer, a saved password digest it cannot read), a box follows with Found, Why and the install command to copy (Install). On a terminal each step shows a spinner while it runs; in a pipe there is no spinner and no colour (NO_COLOR=1 also turns colour off).

Enter password: appears only when no saved digest or MBM2_PASSWORD is available. A failure prints mbm2 upgrade: <reason> and exits with status 1. While mbm2 windows or the engine of the old version run, two more lines say what happens to them, for example 2 mbm2 windows are open; they keep working and switch on /restart (Install). Inside the TUI, /upgrade runs the same steps and restarts the window on the new version (Install).

Organisations

An organisation on tui.mbm.mn is billed to a team licence its owner holds, not to a plan of its own. Members keep using their own mBm key and devices; while the pool has tokens left, their use is free and counted in the licence's team pool. Past the pool, a member is back on their own allowance and their own wallet: the owner's wallet is never charged for a member. Every member takes one of the licence's seats.

You want Do
A billed organisation Turn team mode on for the licence (mbm2 team pool enable, or Turn team mode on on /account), then create the organisation on tui.mbm.mn/account/orgs: it is bound to your newest team licence unless you pick another or No team licence
Another licence, or none Bind licence on the organisation's card (admins who own the licence only)
Colleagues on the pool Add member with their email; they sign in with that email and use their own key as usual. Each member takes a seat (once, however many of the licence's organisations they are in); when every seat is taken the page says so and the member is not added. Removing a member frees their seat
Settings for every member Configuration for members takes a JSON object (at most 32 KiB); empty clears it. mbm2 reads the selected organisation's configuration (GET /api/config with the console token and the organisation in x-org-id) when it starts and when its configuration reloads, and keeps it five minutes. It sits above your project's mbm.json and MBM_CONFIG_CONTENT and below a managed configuration; when it cannot be read, mbm2 starts without it
A member of several organisations mbm2 console switch picks the organisation whose pool you draw on and whose configuration you get; your use counts in that pool only. With none picked, or one with no team licence, it is the oldest bound one. The switch applies when mbm2 next starts
To see the pool mbm2 console orgs, or the organisation's card
$ mbm2 console orgs
  ● Acme  [email protected]  https://tui.mbm.mn  org_9f2c…
    licence MBM…DDDD · 4 / 5 seats · team pool 12,400 / 500,000 tokens today
    Lab  [email protected]  https://tui.mbm.mn  org_31aa…

The pool is a seat's daily allowance (the licence's own key) times its seats; with no daily allowance, the monthly one. When the owner turns team mode off, the line reads team mode off and members use their own allowance.

mbm2 db Filters

mbm2 db reads the sessions through the open interface's engine, else the local one it starts for the call, so a running interface's store is never changed behind its back. Each filter is one argument, field<op>value, and a row is listed when every filter holds.

Operator Meaning
=, != Equal, not equal
~, !~ Contains, does not contain (ignoring case)
<, >, <=, >= Numbers and times as numbers, other values as text
Target Fields
sessions (the default) id, title, parent, project, directory, created, updated, archived, shared (the share link)
messages id, session, role, agent, model (provider/model), created, parts (how many), text

created, updated and archived are milliseconds since 1970; a filter on them also takes a date (2026-11-01), an RFC 3339 time, or an age such as 30m, 12h or 7d, meaning that long ago. An empty value matches a missing field, so archived= lists the sessions that are not archived.

$ mbm2 db title~refactor updated>7d
id	title	parent	project	directory	created	updated	archived	shared
ses_…	Refactor the parser		…	/home/ann/tools	1795378917822	1795378918409

$ mbm2 db messages session=ses_… role=user --format json
[
  {
    "id": "msg_…",
    "session": "ses_…",
    "role": "user",
    …
  }
]

An unknown field, a bad --format or an argument that is not a filter prints mbm2 db: <reason> and exits 1; no match prints nothing ([] with --format json).

mbm2 send And mbm2 peers

mbm2 send <session|label> <message..> [--from <name>] [--auto] [--wait [--timeout <s>]] [--format default|json]
mbm2 send --dir <path> [--spawn] <message..> [...]
mbm2 peers [--json] [-n N]
mbm2 answer [--format json]
mbm2 answer <ses_…> [allow|once|always|deny|reject|<option>]
mbm2 answer <per_…> once|always|reject [--message <text>] [--stop] [--wait [--timeout <s>]] [--format default|json]
mbm2 answer <que_…> --option <label> [--option <label>..] [--wait …]
mbm2 answer <que_…> reject
mbm2 answer <esc_…> allow|always|deny [--message <why>]
mbm2 answer <esc_…> "<the question's answer>"
mbm2 answer <esc_…>

mbm2 send puts a message from another agent into a session of this computer's running mbm2 engine — by session id, by the directory's relay label ("<host> <directory name>"), or with --dir by directory (--spawn starts a session there when it has none) — or, for a label no session here has, into that window of your account on another computer through the agent relay. The window that shows the session applies its team auto and budget; a session no window shows is run by the engine within team_auto_budget (default 20) such messages between two other prompts. The message is framed From <name> (mbm2 send, ref <ref>) with the note that the name is information, never the owner's approval: the name never approves anything. --wait prints the reply and exits when the turn ends. Exit codes: 0 delivered (with --wait, the turn ended without an error), 1 usage, 2 no such session, label or session in --dir, 3 not delivered, 4 held for the window's user or the budget spent, 5 the turn failed, 6 --timeout passed, 10 a permission or question waits for an answer (with --wait, no terminal), 130 interrupted. See Teamwork.

With --wait, a permission or question the turn asks comes back to the sender:

Sender What happens
A person at a terminal (stdin is a terminal) The ask is shown there: [y] allow once [a] allow always (this session) [n] reject (n <reason>: with a reason) [s] reject & stop, or a question's options numbered (type the numbers, your own answer, or - to dismiss). With ask_timeout a line counts down, rejects in 42s. An ask answered in a window or rejected by the timeout is dropped: per_… ended elsewhere: …
Another agent's command (no terminal) send exits 10 and prints the ask on stderr (--format json: a {"type":"ask","kind","id","sessionID","ref","hint","request"} line on stdout). A question is answered with mbm2 answer que_… --option <label>; a permission is answered by a person in the mbm2 window, on /rc or at tui.mbm.mn/code

mbm2 answer answers the ask by its id and, with --wait, follows the turn and prints its reply as send --wait does. It answers a permission only when a person's terminal send started the turn that asked; for another agent's message it is refused (exit 4), because the agent that sent the message would otherwise approve the very call its message caused. reject lets the agent carry on; --stop also ends its turn. Exit codes: 0 answered, 1 usage, 2 no such pending permission or question, 3 not delivered, 4 refused; with --wait also 5, 6, 10 and 130 as send.

mbm2 answer with no id lists every permission, question and escalation that waits on this engine, oldest first — its id, the session id and title, what it asks and its age (--format json prints the list as JSON); a request that is both an escalation's and the tab's own prompt is listed once, as the escalation. mbm2 answer ses_… answers the one request waiting in that session as its id would: allow or once, always, deny or reject for a permission (an escalation also takes --message <why>), an option's text or dismiss for a question. A session with several waiting requests gets the list and exit 1 (answer one by its id), one with none gets nothing waits for an answer in ses_… and exit 2.

An esc_… id is an auto-mode escalation that no one answered in time and was handed off (Permissions); mbm2 auto log <session> and the hand-off file name it.

Answer Effect
allow (or once) The session continues in a new turn, Approved: <action> — run it now and continue, and that one call runs once
always The same, and the call's patterns are allowed for the rest of the session
deny [<why>] (or reject, or --message <why>) A new turn, Denied: <action> — do not run it. Why: <why>.; for a question it dismisses it
"<text>" A question's answer: an option's label or your own words
nothing Reads the reply to the team hand-off (mbm2 team reply's …-result.md beside it) and answers with its first line

A permission is answered only from a terminal (a person): another agent's mbm2 answer is refused (exit 4). An escalation takes one answer: a second, an expired one or one with no reply to read yet exits 2 with the reason (escalation esc_… was already answered: allow (answer, …)). --wait, --stop and --option do not apply.

mbm2 peers lists the running engine's sessions (id, state busy/idle, label, directory, title; the newest 20, -n for more) and, while the relay is on, your account's windows on every computer (label, last seen, workers). It starts no engine.

Option Meaning
--from <name> The sender shown to the agent, e.g. team/role; your user name by default
--dir <path> The directory's most recent top-level session
--spawn With --dir: start a session there (titled Messages from <name>) when it has none
--auto Put the session in auto mode before the message (PATCH /session/{id} with mode: "auto"), so the rules, the guardrails and the judge decide what would ask; only this computer's sessions. It does not wake a worker that is not running yet
--wait Wait for the reply and print it; only this computer's sessions
--timeout <seconds> With --wait: stop waiting after that long (exit 6)
--format json A {"type":"send",…} line, then mbm2 run's JSON events with --wait; an ask is a {"type":"ask",…} line
answer --message <text> With reject: the reason the agent reads
answer --stop With reject: «Reject & stop», the turn ends
answer --option <label> A question's chosen option, or its own answer; once per label, in the order the questions were asked

The HTTP routes these use — /session, /session/{id}/message, /permission, /question and their reply routes, with ?directory= — are stable for every v2.x release: their paths, the fields mbm2 send, mbm2 answer and mbm2 run use and the meaning of ?directory= change only in v3. New optional fields may appear.

Exit Codes

Code When
0 Normal exit, --version, --help, mbm2 help [command], mbm2 <command> --help
1 mbm2 help <unknown command> (the closest command is suggested on stderr)
1 Usage error (unknown flag, unexpected argument "<arg>", --fork requires --continue or --session), Failed to change directory to <path>, no server binary found, the server failed to start, --session could not be checked, or the interface stopped unexpectedly and you chose not to reset it
1 mbm2 rag <command>: an unknown option, the engine did not start, or the command failed (Error: …); a database that cannot be reached is 0 except for purge, reindex-full and search
1 mbm2 run, models, session, export, import, stats: v1's usage errors, a session or provider not found, a refused flag or request, or the engine did not start; run exits 0 when the model failed and prints Error: …, unless --strict-exit is given (Scripting mbm2)
1, 3 mbm2 run --strict-exit: 1 after an error, 3 after an auto-rejected permission (Scripting mbm2)
130 mbm2 run and the other engine commands stopped by Ctrl-C or SIGTERM (Scripting mbm2)
0-6, 10, 130 mbm2 send and mbm2 answer: see mbm2 send and mbm2 peers
1 mbm2 migrate-v1: a usage error, no answer to its question, a step that failed (a refused apply, sessions that could not be imported or a stopped run); --check when the offer does not apply
1 mbm2 license import: no v1 licence, nothing in it to import, or the apply was refused; mbm2 license activate: the file was refused; mbm2 pr: not a git repository, no number, the checkout failed or mbm2 exited non-zero; mbm2 acp: the engine did not start; mbm2 team without a subcommand
Any A runtime command (mbm2 providers …) exits with that command's status

Examples

Goal Command
Local runtime in a project mbm2 ~/src/app (or mbm2 --dir ~/src/app)
Start on the plan agent with a first task mbm2 ~/src/app --agent plan --prompt "Review internal/cart for rounding bugs"
Bring over everything from v1 (keys, licence, every project's sessions) mbm2 migrate-v1; see first with mbm2 migrate-v1 --check
Bring over v1's keys and licence only mbm2 auth mbm --from-v1 (it imports the licence too); the licence alone: mbm2 license import
Run on a v1 build for one run, for example to compare MBM_SERVER_BIN=/path/to/mbm mbm2
Continue where you left off mbm2 -c
Fork the latest session and open the fork mbm2 -c --fork
Attach with credentials from the environment MBM_SERVER_USERNAME=me MBM_SERVER_PASSWORD=… mbm2 --attach https://runtime.example.com --dir /srv/app
Reopen a remote session mbm2 --attach https://runtime.example.com --dir /srv/app -s <id> (the line mbm2 prints on exit)
Pin a model for one run mbm2 -m anthropic/claude-sonnet-4-5
Open the session list first MBM_ROUTE=sessions mbm2
Use a runtime build you trust MBM_SERVER_BIN=/opt/mbm/bin/mbm mbm2
Ignore the project's config files MBM_DISABLE_PROJECT_CONFIG=1 mbm2
Debug a startup problem MBM_TUI_LOG=/tmp/mbm2.log mbm2 --debug, then read the file (Troubleshooting)
Export a session as JSON mbm2 export <id> > session.json
Import it elsewhere mbm2 import session.json
List the runtime's models from a script mbm2 models
Ask one question from a script mbm2 run "Summarise README.md" -m mbm/deepseek-v4-flash > summary.txt

Environment Variables

Variable Read by Effect
MBM_SERVER_USERNAME, MBM_SERVER_PASSWORD Client Credentials when the flags are not given; also handed to a spawned server
MBM_SERVER_BIN Client, local mode Path of a v1 mbm binary to spawn, before the bundled runtime; the only way mbm2 reaches v1 (never PATH, ADR 0282); setting it also skips the Go engine
MBM2_ENGINE Client, local mode Removed on Linux and macOS (ADR 0277): off is an error there, since no v1 runtime is bundled; ignored on Windows
MBM2_ENGINE_BIN Client, local mode Path of a Go engine (mbm-runtime) to start instead of the bundled one
MBM_EXPERIMENTAL_DISABLE_COPY_ON_SELECT Client v1's switch, read before copy_on_select: true/1 turns copy on select off, false/0 on
MBM_INITIAL_DIR Client Base for a relative project path, as in v1
MBM_TUI_SERVER_START_TIMEOUT Client, local mode How long the spawned server may take to start (Go duration, default 30s)
MBM_TUI_LOG Client Write the log to this exact file instead of the per-run file
MBM_TUI_CONFIG Client One extra tui.json file, merged after the global one
MBM_CONFIG_DIR Client Replaces the config directory
MBM_DISABLE_PROJECT_CONFIG Client 1/true: skip project tui.json, mbm2.json[c] and workers.json[c]
MBM_DISABLE_MOUSE Client 1/true: no mouse capture, whatever mouse says
MBM_DISABLE_TERMINAL_TITLE Client Set (any value): never change the terminal title
MBM_DISABLE_WATCHDOG Client Set (any value): no stall dump in the log when the interface freezes (Troubleshooting)
MBM_DISABLE_SHARE Runtime 1/true where the runtime runs (a local runtime inherits it from mbm2): sharing is off
MBM_ROUTE Client First screen: home, sessions, session (needs --session) or terminal
MBM_EXPERIMENTAL, MBM_EXPERIMENTAL_WORKSPACES Client 1/true: show the experimental workspace surfaces (/warp), as in v1
MBM2_PASSWORD mbm2 upgrade, /upgrade, installer The install password instead of the prompt (or the /upgrade dialog's field)
MBM2_ENGINE_WAIT Client How long a window of a new version waits for the old engine after an upgrade before its band reports it (a CLI command gives up then), as a duration (30m); default 10 minutes
XDG_CONFIG_HOME, XDG_STATE_HOME, XDG_DATA_HOME Client Move the config, state and data directories when set to absolute paths
VISUAL, EDITOR Client Editor for export, /editor and raw config edits; with neither set, raw config edits open the built-in editor

Published from revision f88fc66f 2026-11-30