micro documentation
micro is a terminal coding agent. It can run interactively, print one response for a script, or expose a JSONL RPC interface. Sessions are stored locally as append-only logs.
If this is your first time using micro, follow Getting started. The CLI reference is the quickest way to look up a command or flag.
Start here
- Getting started: install micro, authenticate, run a first prompt, and resume a session.
- CLI reference: command-line options, subcommands, and interactive slash commands.
Use micro
- Sessions: saved conversations, billing, budgets, request inspection, and cache-miss analysis.
- Tools and integrations: built-in tools, workspace boundaries, tool selection, and deferred tool search.
- MCP servers:
mcp.json, HTTP servers, OAuth sign-in, exposure, andmicro mcp. - Codemode: let the model write scripts that call tools and models side by side.
- Project context: instruction files, skills, system prompts, and prompt templates.
- Providers and models: subscription and API-key sign-in, model selection, live listings, and custom endpoints.
- Image and classifier models: image generation and classification for extensions and scripts.
- Local models with llama.cpp: connect a llama.cpp router and manage its models.
- Remote control: pair a phone and publish an active terminal session.
Configure and extend it
- Configuration: settings, paths, models, trust defaults, and MCP servers.
- Extensions: write, install, and permission TypeScript extensions.
- Virtual models: route each request to a physical model from an extension.
- Testing extensions: compatibility and terminal test harnesses.
Security and internals
- Security model: project trust, command confinement, and extension capabilities.
- Command sandbox: policies, platform support, and refusal behavior.
- RPC mode: control micro from another process over newline-delimited JSON.
- Ledger format: the JSONL schema and the events recorded for each session.
- Architecture: crate boundaries, request flow, persistence, and streaming.