Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content
Using the harness

CLI usage

Besides the interactive TUI, minima runs in two non-interactive modes and exposes two subcommands.

Usage

minima [prompt] [--print|--mode json] [options]
minima auth              sign in to Mubit + provision this repo's project
minima config [set|get]  manage stored credentials

Run modes

ModeInvocationBehavior
Interactive (default)minimaFull Ink TUI. See Interactive TUI.
One-shot printminima -p "…"Runs the prompt, prints the final reply, exits.
Event streamminima --mode json "…"Streams agent events as JSON lines for scripting.
# one-shot
minima -p "explain this repo"
 
# machine-readable event stream
minima --mode json "refactor the config loader" | jq .
ℹ️Note

--print / --mode json require a prompt argument. Without one, the harness exits with an error.

Options

FlagArgumentMeaning
-p, --printOne-shot: print the reply and exit.
--modeinteractive | print | jsonSelect the run mode explicitly.
--modelIDPin a model, bypassing routing.
--providerNAMEProvider for a pinned --model (registers unknown models on the fly).
--thinkingoff | minimal | low | medium | high | xhighExtended-thinking level for models that support it.
--offlineBypass Minima routing entirely.
-t, --toolsLISTComma-separated tool allowlist (only these run).
-xt, --exclude-toolsLISTComma-separated tool denylist.
-nt, --no-toolsDisable all tools.
-b, --budgetUSDSession budget with graduated warnings at 50/75/90/100%.
--budget-enforceRefuse new runs once the budget is exhausted (default: warn only).
--slider0–10Cost/quality tradeoff — 0 = cheapest acceptable, 10 = highest quality (default 5).
-h, --helpPrint usage and exit.
# pin a specific model and raise thinking effort
minima --model claude-opus-4-8 --provider anthropic --thinking high -p "review this diff"
 
# read-only, no shell: allow only read/ls/grep
minima -t read,ls,grep -p "where is auth handled?"
 
# run without the recommender at all
minima --offline --model gpt-4o-mini --provider openai -p "quick summary"
💡Tip

--model (optionally with --provider) pins one model and skips routing; --offline skips the recommender while still using the seeded catalog. See Model routing for how these interact. Tool filtering with -t/-xt/-nt composes with the interactive permission system.

minima auth

Browser login → provisions a Mubit project for the current repo → stores MUBIT_API_KEY (and MINIMA_URL) → records the repo mapping in ~/.minima-harness/projects.json.

minima auth                 # default region
minima auth --region eu     # or --region us

The console URL defaults to https://console.mubit.ai (override with MUBIT_CONSOLE_URL).

minima config

Manage the per-user credential store without opening the TUI — works before any keys exist.

minima config                    # list every key (secrets masked)
minima config set MUBIT_API_KEY mbt_…
minima config get MINIMA_URL

See Configuration for every key, storage backend, and precedence rules.