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

Configuration

Initialize, inspect, and validate configuration with:

mirmir config init
mirmir config show
mirmir config validate

The main file is ~/.config/mirmir/config.toml. Secrets are stored separately with protected permissions and are never returned in clear text by the TUI, web dashboard, CLI, or private gRPC API.

Runtime settings

KeyDefaultMeaning
runtime.kv_block_sizeautomaticTokens stored in one K/V block.
runtime.kv_blocksautomaticTotal block capacity.
runtime.kv_cache_dtypeautoBackend-resolved K/V storage type.
runtime.max_batch_requestsautomaticConcurrent decode batch limit.
runtime.max_batch_tokensautomaticScheduler token budget.
runtime.vision_max_pixelsautomaticHard cap on resized image area.
runtime.vision_attention_budget_bytesautomaticVision attention workspace cap.
runtime.vision_memory_percent80Memory available to automatic vision budgeting.

Server settings

KeyDefaultMeaning
server.http_bind127.0.0.1:8080HTTP listen address.
server.allow_remotefalsePermits a non-loopback bind.
server.web_enabledfalseServes the embedded dashboard on /ui/.
server.cors_origins[]Exact allowed browser origins.
server.body_limit_bytes29360128Maximum request body.
server.request_timeout_seconds300HTTP request timeout.
server.max_concurrency16In-flight HTTP request limit.

Most runtime and server settings require a restart. The UI identifies this per row.

Set and remove secrets

printf '%s' "$HF_TOKEN" | mirmir config set hugging_face.token
printf '%s' "$MIRMIR_HTTP_API_KEY" | mirmir config set server.api_key
mirmir config remove server.api_key

Environment values take precedence when present. MiRMiR recognizes HF_TOKEN and MIRMIR_HTTP_API_KEY for these two secrets.