Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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.

OptionDescription
-p, --printRun the prompt and exit. Final output is written to stdout.
--rpcRead 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, --quietSuppress tool progress on stderr.
--tui-mode <regular/fullscreen>Select inline or full-screen terminal rendering.

Model and session options

OptionDescription
-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.
--continueResume 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

OptionDescription
-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-skillsDisable skill discovery.
-e, --extension <PATH>Load an additional extension. Repeatable.
--no-extensionsDisable extension loading.
--prompt-template <PATH>Load an additional prompt template file or directory.
--no-prompt-templatesDisable prompt-template discovery.
--no-context-filesIgnore AGENTS.md, CLAUDE.md, and other instruction files.

Trust, sandbox, and settings

OptionDescription
-a, --approveTrust project-provided .micro/ resources for this run. Does not save the decision.
--no-approveIgnore 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.

CommandPurpose
/helpList 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.
/authShow 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.
/sessionsOpen the session selector, the same as /resume.
/sessionShow the current session information and usage.
/resume [id]Choose a session to continue, or continue the one with this ID.
/cloneDuplicate 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.
/compactSummarize 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.
/reloadReload skills and context files.
/skillsList discovered skills.
/settingsShow settings and their sources.
/set <setting> [value]Read or change a setting.
/remote [pair]Pair a phone or publish the current session.
/shareExport 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.
/copyCopy the last answer.
/hotkeysList terminal key bindings.
/changelogShow changelog entries.
/debugShow runtime details for the current session.
/cwdShow the workspace root.
/new, /clearStart a fresh conversation.
/quitExit micro.

Extensions and prompt templates may add more commands.