MiniBox is configured exclusively through environment variables — there is no configuration file. Daemon variables are read at startup byDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/chaitu426/minibox/llms.txt
Use this file to discover all available pages before exploring further.
internal/config/config.go. CLI variables are read at invocation time. This page documents every supported variable with its type, default, and recommended usage.
Daemon Variables (miniboxd)
Filesystem path where
miniboxd stores all persistent state: OCI blobs, container overlay filesystems, state.json, volumes, and build cache.TCP
host:port the daemon HTTP API listens on. The default binds to loopback only. Change this if you need the daemon reachable from other hosts, and pair it with MINIBOX_API_TOKEN to protect the endpoint.When set, every incoming API request must present the token as either:
Authorization: Bearer <token>header, orX-API-Token: <token>header.
401 Unauthorized. Set the same value on both the daemon and the CLI.Comma-separated list of filesystem path prefixes that are allowed as build context directories. Any
build context submitted to POST /containers/build must resolve to a path under one of these prefixes. This prevents path-traversal attacks from reaching arbitrary host directories.First host UID/GID used for user-namespace ID mapping. Container UID
0 maps to this UID on the host rather than to root (UID 0), following the rootless-container convention.The size of the
[container → host] UID/GID map. Must be large enough to cover all UIDs used inside container images. The default (65536) covers the full 16-bit range.When
1, the daemon walks DataRoot/blobs/sha256 on startup to index all known blobs. Set to 0 to skip this scan and reach a ready state faster, at the cost of deferred index consistency.When
1, the daemon creates the minibox0 bridge and configures iptables NAT at startup. When 0, the bridge is created lazily the first time a container with port mappings is started.When
1, layer blobs are indexed after each build finalization. Set to 0 to disable layer indexing for faster build finalization at the cost of deferred index updates.When set, must be a 32-byte value encoded as a 64-character hexadecimal string. Used to encrypt container metadata at rest. Leave unset for plaintext storage in trusted environments.
CLI Variables (minibox)
Base URL of the
miniboxd daemon API. Override when the daemon is bound to a non-default address or port.Token sent by the CLI with every API request. Must match the token configured on the daemon. The CLI sends the value as
Authorization: Bearer <token>.Disables ANSI color codes in all CLI output. This is the standard
NO_COLOR convention recognized by many CLI tools.Minibox-specific plain output mode. Disables colors and decorative formatting, suitable for log aggregation or piping output to other tools.
Recipes
Safe data root setup
Generating and wiring an API token
Startup performance tuning
By default, the daemon indexes blobs and brings up the network bridge at startup. In environments where startup latency matters (e.g., CI ephemeral runners), you can defer both:With
MINIBOX_INDEX_ON_STARTUP=0 the daemon starts faster but minibox images may show a stale list until a build or explicit index operation occurs. Suitable for CI pipelines that always build before querying.