What should I do if mcode: command not found appears after installation?
What should I do if mcode: command not found appears after installation?
mcode --version. If the command is
still unavailable, check whether the installation directory is included in
PATH.On Windows, an open VS Code window may retain old environment variables after
installation. Exit and restart VS Code completely instead of opening only a
new terminal tab.What should I check when installation fails?
What should I check when installation fails?
HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, or NO_PROXY
environment variables in your terminal before trying again.How do I sign in to a mainland China or Global account?
How do I sign in to a mainland China or Global account?
mcode login. For a Global account, run
mcode login --region global. After signing in, open the TUI and use
/status to check your account, model, and runtime status.What if the browser does not open when I sign in from Windows WSL or a remote development machine?
What if the browser does not open when I sign in from Windows WSL or a remote development machine?
/login and mcode login start a temporary callback service on 127.0.0.1
in the current Linux environment, then use xdg-open to open a browser. The
callback port is assigned dynamically for each sign-in attempt, and the
sign-in command must keep running until the callback completes.Recommended for WSL: install a browser-opening utilityOn Debian or Ubuntu, run:/login or mcode login again. The browser should normally open and
complete the callback automatically.The browser sign-in succeeds, but the localhost callback page does not open- Keep the original sign-in command running.
- Copy the complete callback URL from the browser address bar. It looks like
http://127.0.0.1:<PORT>/auth/callback?accessToken=...&state=.... - Open a second WSL terminal and request the complete URL, enclosed in single quotes:
&state=... as a
separate background command. To confirm that the callback service is still
listening, run:- Run
mcode loginon the development machine and keep it running. If the system does not havexdg-open, installxdg-utilsfirst. - Find
callback_port=<PORT>in the sign-in URL. - Open another terminal on your local computer and forward the same port:
45919:- Keep the SSH tunnel running, open the complete URL printed by
mcode loginin your local browser, and finish signing in. When the browser accesses the local callback port, the request is forwarded to MCode on the development machine.
45919.What is the difference between Plan Mode and permission modes?
What is the difference between Plan Mode and permission modes?
Shift+Tab or /plan.Permission modes determine how tool operations are confirmed. Use Alt+M or
/permission to switch among Ask, Auto, and Full access. The two settings are
independent.How do I continue a previous task?
How do I continue a previous task?
mcode --continue in the original workspace to continue its most recent
session. Run mcode --session to open the session manager. If you know the
ID, run mcode --session <session-id>. In the TUI, use /sessions [query]
to search and manage sessions.Can I send more messages while a task is running?
Can I send more messages while a task is running?
Alt+Up (Option+Up on macOS) to manage queued
messages. To steer the current response immediately, enter a draft and press
Ctrl+X.How do I use the CLI in scripts or CI?
How do I use the CLI in scripts or CI?
mcode exec with --output-format json or --output-format stream-json
for machine-readable results. Task results are written to stdout, while
diagnostics are written to stderr.--permission, --timeout, --max-steps,
and --output-schema.Why can't I paste an image with Ctrl+V?
Why can't I paste an image with Ctrl+V?
Ctrl+V and confirm that the clipboard
contains an actual local image or video file. Some terminals intercept the
shortcut, and remote SSH environments cannot directly access files from your
local clipboard.How do I browse, search, and copy a long conversation?
How do I browse, search, and copy a long conversation?
PgUp / PgDn to browse history and End to return to the latest item.
Use /transcript to open the complete transcript, search it, and inspect
details.The default interface preserves the terminal’s native scrollback. Mouse-wheel
scrolling, drag selection, and copying are handled by the terminal host, such
as Windows Terminal, iTerm2, or WezTerm.What if Zed or another ACP client cannot find mcode?
What if Zed or another ACP client cannot find mcode?
mcode --version in a regular terminal. If the command works there
but the editor still cannot find it, restart the editor to refresh PATH, or
set command in the ACP configuration to the absolute path of the mcode
executable.How do I update MiniMax Code CLI?
How do I update MiniMax Code CLI?
mcode update, or run /update in the TUI. Restart the current MCode
process after the update completes.