CLI
maki without a subcommand starts the TUI. Subcommands cover auth, models, MCP OAuth, updates, and a few debug helpers. Many flags only apply to one of three run paths: TUI, one-shot --print, or SDK (--print --input-format stream-json).
maki [OPTIONS] [PROMPT]
maki <COMMAND>
If you pass a prompt (or pipe stdin) without --print, the TUI still opens and that text is the first message. With --print, Maki runs non-interactively and exits when done.
Flags by run path
| Flag | TUI | --print | SDK (stream-json) |
|---|---|---|---|
-m / --model | yes | yes | yes |
--yolo | yes | yes | yes (or --permission-mode bypassPermissions) |
--no-plugins / --no-commands / --no-jit | yes | yes | yes |
--allowed-tools / --disallowed-tools | yes | yes | yes |
-c / --continue, -s / --session | yes | no (always new session) | yes |
--exit-on-done | yes | n/a (always exits) | n/a |
--image | no (use Ctrl+V paste) | yes | via wire protocol |
--verbose, --output-format | no | yes | stream only |
--system-prompt, --append-system-prompt | no | no | yes |
--max-turns, --session-id, --fork-session | no | no | yes |
--permission-mode | no | no | yes |
--include-partial-messages | no | no | yes |
Shared flags (detail)
| Flag | Description |
|---|---|
-p, --print | Non-interactive run. See Headless Mode |
--image <PATH> | Attach an image in --print mode (repeatable). Paths must be png, jpeg, gif, or webp |
-m, --model <SPEC> | Model as provider/model-id. Fallback: last used → provider.default_model in config → auto-detect from available providers |
--verbose | Full turn-by-turn messages in --print output |
-c, --continue | Resume the most recent session in this directory (TUI / SDK only) |
-s, --session / --resume <ID> | Resume a specific session (TUI / SDK only) |
--output-format <text|json|stream-json> | Output shape for --print (default text) |
--input-format <text|stream-json> | With --print, stream-json enters SDK mode |
--no-commands | Skip custom commands from .maki/commands, .claude/commands, etc. |
--no-plugins | Skip user init.lua (global and project); keep the Lua host and builtin plugins so tools and the default keymap still load |
--no-jit | Run plugin Lua on the interpreter with full debug info |
--yolo | Skip permission prompts on gated tools (alias: --dangerously-skip-permissions). Deny rules still apply |
--trust | Load the project's .maki config for this run without asking, recording no decision. See Folder Trust |
--exit-on-done | Exit when the agent finishes (TUI automation wrappers) |
--allowed-tools <LIST> | Comma-separated allow list (PascalCase or snake_case) |
--disallowed-tools <LIST> | Comma-separated deny list |
--session-id <ID> | Session id for SDK mode |
--fork-session | Load a session's history under a new id (SDK) |
--max-turns <N> | Cap agent turns (SDK) |
--system-prompt <TEXT> | Replace the system prompt (SDK only) |
--append-system-prompt <TEXT> | Append to the built-in system prompt (SDK only) |
--permission-mode <MODE> | SDK: default, acceptEdits, plan, or bypassPermissions |
--include-partial-messages | Stream partial deltas in SDK mode |
Tool name lists
--allowed-tools / --disallowed-tools accept Claude Code PascalCase (Read,Edit,Bash) or snake_case (read,edit,bash). Maki lowercases PascalCase to snake_case and checks the result against the built-in tool names, so CodeExecution works but MultiEdit errors: it normalizes to multi_edit, and the tool is called multiedit. Write multiedit or edit_lines as-is. Unknown names error out with the list of valid names. The edit plugin's sub-tools (multiedit, edit_lines, insert_lines) are valid names here even when disabled. Listing a disabled tool has no effect until you enable it in config.
Permission modes (SDK)
| Mode | Effect |
|---|---|
default | Normal permission prompts |
acceptEdits | Accepted for Claude Code compatibility; currently same as default |
plan | Agent mode plan with plan file ./plan.md under cwd |
bypassPermissions | Same as --yolo for the SDK path |
If both --yolo and --permission-mode are set, the explicit mode wins. Unknown mode names warn and fall back to default.
Several other Claude Code flags are accepted and ignored so existing scripts keep parsing. Maki prints a warning when you pass one of them.
Subcommands
maki auth
maki auth login [provider] # interactive picker if omitted
maki auth logout <provider>
maki auth status
login stores credentials under the state directory and can write plan / base URL choices into providers.toml (see Configuration for the platform path). OpenAI and Copilot have dedicated flows; other providers prompt for a key (and a plan when the provider has more than one). Custom providers can be created from the interactive picker.
status shows each provider as configured (key on disk), env-only, or missing.
maki models
maki models
maki models --refresh # refetch the models.dev catalog
One spec per line, warnings on stderr. Built-in and script providers are listed live, catalog-backed providers from the models.dev cache, which expires after 24 hours and supplies model pricing and context windows. --refresh refetches it. When the refetch fails, the cached catalog stays in place, the list still prints, and the command exits non-zero.
maki session
maki session list # sessions for the current directory
maki session list --global # sessions from all projects
maki session delete <id> # asks first, -f skips
Prints stored sessions as a table (id, title, project directory with $HOME collapsed to ~, last update as a relative age), newest first. A listed id works with maki --session <id> to resume it. delete removes the session log along with its archives and index entries, and asks for confirmation first unless you pass -f / --force; without a terminal to ask on it refuses outright. A maki that already has the session open will not notice the delete and will lose the rest of that conversation, so close it first. Inside the TUI the same data lives behind /sessions (Ctrl+P), where Ctrl+D deletes.
maki mcp
maki mcp auth <server> # OAuth for an HTTP MCP server
maki mcp logout <server> # drop stored tokens
Server names come from your MCP config. On a machine without a browser, auth prints a URL you open elsewhere and paste back.
maki update / maki rollback
maki update # install latest release
maki update -y # skip confirmation
maki update --no-color
maki rollback # previous version
Uses the same install locations as the install scripts.
maki acp
maki acp
maki acp -m anthropic/claude-sonnet-4-6
maki acp --yolo
maki --no-jit acp
Starts an ACP server on stdio for editors like Zed. Subcommand flags are only -m / --model and --yolo. Global flags like --no-jit must come before the subcommand.
maki index
maki index path/to/file.rs
Runs the index tool on a file and prints the skeleton, so you can see what the agent will get before a session. Builtin plugins always load here; --no-plugins only skips user init.lua.
maki prompt
maki prompt # rendered system prompt (default: system variant)
maki prompt research
maki prompt general
maki prompt --plan # system prompt + plan-mode reminder (system only)
maki prompt --tools # tool definitions as JSON
maki prompt --tools --names # tool names only, one per line
Debug helper for inspecting the prompt and tool surface the agent sees. --plan is rejected on non-system variants.
maki migrate
maki migrate xdg
Moves data from ~/.maki/ into platform directories. Safe to re-run. See Configuration.
maki trust
maki trust add [PATH]
maki trust add [PATH] --yes
maki trust remove [PATH]
maki trust list
Records whether a folder's .maki configuration may load. PATH defaults to
the current directory, --yes skips the confirmation, and list shows trusted
and rejected folders. See Folder Trust for what is gated
and for the --trust flag that grants trust for a single run.
Everyday examples
# TUI on a project
cd ~/code/my-app && maki
# One-shot with YOLO and a model pin
maki -p --yolo -m anthropic/claude-sonnet-4-6 "summarize the architecture"
# Resume yesterday's session
maki --continue
# List models, then log in
maki models
maki auth login
# Inspect tools without starting a session
maki prompt --tools --names
For JSON / stream-json output, stdin prompts, and SDK wire mode, see Headless Mode.