CLI reference
Run micro --help for the reference generated by the installed version. This page groups the same options by task and includes the interactive commands that are not available as top-level subcommands.
Run modes
micro [OPTIONS] [PROMPT]...
micro <COMMAND>
With no subcommand, micro opens the terminal interface. A prompt on the command line becomes the first user message.
| Option | Description |
|---|---|
-p, --print | Run the prompt and exit. Final output is written to stdout. |
--rpc | Read JSON-line commands from stdin and write responses to stdout. Cannot be combined with --print. |
-C, --cwd <PATH> | Set the workspace root. Defaults to the current directory. |
-q, --quiet | Suppress tool progress on stderr. |
--tui-mode <regular/fullscreen> | Select inline or full-screen terminal rendering. |
Model and session options
| Option | Description |
|---|---|
-m, --model <QUERY> | Select a model by ID, qualified ID, alias, or unique partial match. |
--provider <ID> | Select a provider when the model query does not determine one. |
--thinking <LEVEL> | Set reasoning effort. Supported levels are model-dependent. |
-r, --resume [ID] | Resume a saved session, or choose one from the session selector. |
--continue | Resume the latest session for the workspace. |
--session-id <ID> | Resume this workspace's session with this exact ID, or start one under it. |
-n, --name <NAME> | Set the session display name at startup. |
--budget <USD> | Stop at the first turn boundary after the session total reaches this amount. |
Tools and project resources
| Option | Description |
|---|---|
-t, --tools <NAMES> | Comma-separated allowlist of model-callable tools. |
-x, --exclude-tools <NAMES> | Comma-separated denylist of tools. |
--skill <PATH> | Load an additional skill file or directory. Repeatable. |
-s, --no-skills | Disable skill discovery. |
-e, --extension <PATH> | Load an additional extension. Repeatable. |
--no-extensions | Disable extension loading. |
--prompt-template <PATH> | Load an additional prompt template file or directory. |
--no-prompt-templates | Disable prompt-template discovery. |
--no-context-files | Ignore AGENTS.md, CLAUDE.md, and other instruction files. |
Trust, sandbox, and settings
| Option | Description |
|---|---|
-a, --approve | Trust project-provided .micro/ resources for this run. Does not save the decision. |
--no-approve | Ignore project-provided .micro/ resources for this run. |
--sandbox <POLICY> | Use read-only, workspace-write, full, or a JSON policy object. |
--theme <NAME> | Select a theme. |
-c, --config <KEY=VALUE> | Override one config value for the run. Repeatable. |
Subcommands
Authentication
micro auth login <PROVIDER> [--method <METHOD>]
micro auth logout <PROVIDER>
micro auth status
micro auth check [PROVIDER|MODEL] [--provider <P>] [--model <M>] [--json] [--credentials] [--no-refresh]
micro auth print-api-key [PROVIDER|MODEL] [--provider <P>] [--model <M>]
micro auth print-bearer-token [PROVIDER|MODEL] [--provider <P>] [--model <M>] [--min-expiry <DURATION>]
See Providers for the sign-in methods and what each command prints.
Models
micro models [QUERY]
micro models --live
micro models --type <chat|image|classifier> [QUERY]
--type lists image and classifier models instead of chat models.
Updates
micro update
Updates are available only for installations created by the release installer. See Getting started for automatic-update controls.
Extensions
micro install [-l|--local] <SOURCE>
micro remove [-l|--local] <SOURCE>
micro list
Sources may be npm packages, Git repositories, or local paths. See Extensions.
MCP servers
micro mcp add [-l|--local] <NAME> [OPTIONS] -- <COMMAND> [ARGS]...
micro mcp add [-l|--local] <NAME> --url <URL> [OPTIONS]
micro mcp remove [-l|--local] <NAME>
micro mcp list [--json]
micro mcp login <NAME> [--timeout <SECONDS>]
micro mcp logout <NAME>
See MCP servers.
llama.cpp
micro llama connect [URL] [--api-key <KEY>]
micro llama status
micro llama search <QUERY>
micro llama download <OWNER/REPOSITORY[:QUANT]>
micro llama load <MODEL> [--unload-others]
micro llama unload <MODEL>
See Local models with llama.cpp.
Sessions and costs
micro sessions list [--all]
micro sessions show <ID> [--turn <N>] [--raw]
micro sessions export <ID>
micro sessions delete <ID>
micro bill <ID> [--diff <TURN>]
micro why-miss <ID> <TURN>
Sandbox diagnostics
micro sandbox try [--sandbox <POLICY>] -- <COMMAND>...
Interactive commands
Type /help in the interface for the list from the installed version.
| Command | Purpose |
|---|---|
/help | List every command. |
/model [--default] [query] | Switch models for the session; --default or ctrl+s also saves it. |
/provider [name] | Choose or switch providers. |
/login [provider] | Sign in to a provider. |
/logout [provider] | Remove a stored provider credential. |
/auth | Show which providers are signed in. |
/thinking [--default] [level] | Change reasoning effort; --default or ctrl+s also saves it. |
/theme [system/dark/light/auto] | Change the terminal theme. |
/sessions | Open the session selector, the same as /resume. |
/session | Show the current session information and usage. |
/resume [id] | Choose a session to continue, or continue the one with this ID. |
/clone | Duplicate the current session at the current position. |
/fork [entry] | Start a new session from before an earlier prompt, with that prompt to edit. |
/tree [id] | Show branches or continue from one. |
/name [title] | Name the session. |
/bill [turn] | Show session or turn cost. |
/why-miss [turn] | Run the local prompt-cache diagnostic. |
/request <turn> [--raw] | Inspect the model-facing request for a turn. |
/compact | Summarize older context. |
/trust [on/off] | Save a project trust decision. |
/sandbox [session/user/project] | Inspect or configure command access. |
/mcp [server] | Show MCP servers, sign in to them, or reconnect them. |
/reload | Reload skills and context files. |
/skills | List discovered skills. |
/settings | Show settings and their sources. |
/set <setting> [value] | Read or change a setting. |
/remote [pair] | Pair a phone or publish the current session. |
/share | Export the session to a secret GitHub gist. Requires a token with gist scope. |
/bug [description] | Write a redacted bug report ZIP to the workspace, optionally with the transcript. Uploads nothing. |
/export [path] | Write the conversation to a file. |
/import <path> | Import and resume a JSONL session. |
/copy | Copy the last answer. |
/hotkeys | List terminal key bindings. |
/changelog | Show changelog entries. |
/debug | Show runtime details for the current session. |
/cwd | Show the workspace root. |
/new, /clear | Start a fresh conversation. |
/quit | Exit micro. |
Extensions and prompt templates may add more commands.