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

FlagTUI--printSDK (stream-json)
-m / --modelyesyesyes
--yoloyesyesyes (or --permission-mode bypassPermissions)
--no-plugins / --no-commands / --no-rtk / --no-jityesyesyes
--allowed-tools / --disallowed-toolsyesyesyes
-c / --continue, -s / --sessionyesno (always new session)yes
--exit-on-doneyesn/a (always exits)n/a
--imageno (use Ctrl+V paste)yesvia wire protocol
--verbose, --output-formatnoyesstream only
--system-prompt, --append-system-promptnonoyes
--max-turns, --session-id, --fork-sessionnonoyes
--permission-modenonoyes
--include-partial-messagesnonoyes

Shared flags (detail)

FlagDescription
-p, --printNon-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
--verboseFull turn-by-turn messages in --print output
-c, --continueResume 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-commandsSkip custom commands from .maki/commands, .claude/commands, etc.
--no-rtkDisable rtk command rewriting
--no-pluginsSkip user init.lua (global and project); keep the Lua host and builtin plugins so tools and the default keymap still load
--no-jitRun plugin Lua on the interpreter with full debug info
--yoloSkip permission prompts on gated tools (alias: --dangerously-skip-permissions). Deny rules still apply
--exit-on-doneExit 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-sessionLoad 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-messagesStream 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 opt-in edit tools (edit_lines, insert_lines, multiedit) are always valid names here, even while disabled; listing one does nothing until you enable the tool in config.

Permission modes (SDK)

ModeEffect
defaultNormal permission prompts
acceptEditsAccepted for Claude Code compatibility; currently same as default
planAgent mode plan with plan file ./plan.md under cwd
bypassPermissionsSame 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

Lists every model Maki currently knows about (built-ins, discovered, catalog). One model spec per line. Warnings from discovery go to stderr.

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.

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.