Environment variables are inherited by the process you start. Set them in the terminal or service environment that launches mini-a. An exported variable in a different terminal does not change a running server.

OAF_MODEL

Main model configuration, in SLON or JSON. model= overrides it for a run.

OAF_VISUAL_MODEL

Optional image-analysis model. modelvisual= overrides it; the main model is the fallback.

OJOB_MCP_AUDIT

OpenAF MCP audit control read by the MCP test interface.

OAF_MINI_A_CON_HIST_SIZE

Console input-history capacity. This is distinct from persisted conversation history.

EDITOR

External editor command used when editor= is not set. The final fallback is vi.

OAF_MINI_A_WIKI_RETRIEVAL_V2

Default toggle for the wiki passage-retrieval engine when no explicit value is supplied.

OAF_MINI_A_WIKI_RETRIEVAL_CONFIG

Default wiki retrieval configuration, also consumed by wiki lifecycle utilities.

OAF_MINI_A_WIKI_LEXICAL

Default lexical search analysis configuration; explicit wiki configuration takes precedence.

OAF_MINI_A_WIKI_SOURCE_URL

Default template for source citation URLs on wiki retrieval results.

OAF_MINI_A_WIKI_SECRET

Fallback secret for wiki storage configuration. Never include it in shared examples.

OAF_MINI_A_NOJSONPROMPT

Override the main model JSON-prompt behavior; see provider-specific guidance.

OAF_MINI_A_LCNOJSONPROMPT

Corresponding JSON-prompt override for the low-cost model.

OAF_LC_MODEL

Optional low-cost model. modellc= overrides it; omit for a single-model setup.

OAF_MINI_A_LIBS

Additional startup libraries. Use libs= for an explicit run configuration.

OAF_MINI_A_MODE

Default mode preset or comma-separated preset list. Explicit startup settings take precedence.

OAF_VAL_MODEL

Optional deep-research validation model. modelval= is the run override.

OAF_REFLECT_MODEL

Optional memory-reflection model. memoryreflectmodel takes precedence; then fallback uses LC and main.

OAF_DECIDE_MODEL

Optional structured decision model. Use modeldec= to override it for a run.

OAF_EMBED_MODEL

Embedding provider for enabled history and skill retrieval and optional hybrid wiki graph reconciliation. Ordinary wiki search remains lexical.

OJOB_MCP_MODERN

Set true on the wiki MCP server to enable modern protocol features, including skill publication when supported by OpenAF and oJob-common.

STUDIO_TOKEN

Trusted stable Wiki Studio bearer token, at least 32 high-entropy characters. Omit to generate a process-scoped token.

MINIA_ARTIFACT_WORKER_TOKEN

Shared private artifact-worker authentication secret, at least 32 characters; required when using isolated Web artifact generation.

MINIA_ARTIFACT_LIBS

Trusted validator library paths inside the immutable /openaf artifact-worker runtime.

For connection examples, see models. Use the parameter reference for explicit overrides and per-entry-point defaults. Provider-specific credentials and AWS environment variables belong to the provider adapter, not a separate Mini-a credential format.

14. Docker Environment Variables

Variable Maps to
OAF_MODEL model
OAF_LC_MODEL modellc
OAF_VAL_MODEL modelval — dedicated validation model for deep research scoring
OAF_MINI_A_NOJSONPROMPT Force text prompt mode for main model; Gemini main models auto-enable this behavior when unset
OAF_MINI_A_LCNOJSONPROMPT Force text prompt mode for low-cost model; Gemini low-cost models auto-enable this behavior when unset
OAF_MINI_A_WIKI_RETRIEVAL_V2 Default for wikiretrievalv2 (an explicit argument wins)
OAF_MINI_A_WIKI_RETRIEVAL_CONFIG Default for wikiretrievalconfig (an explicit argument wins)
OAF_MINI_A_CON_HIST_SIZE Maximum console history size (defaults to JLine’s default)
OAF_MINI_A_LIBS Comma-separated library paths to load automatically at startup
OAF_FLAGS OpenAF runtime flags as a SLON/JSON map. Notable: (MCPSERVER: (answerInTOON: true)) makes built-in MCP servers (STDIO and HTTP) return tool results in TOON instead of JSON — see MCP Catalog deployment; (MD_DARKMODE: 'auto') controls markdown dark mode
MINI_A_GOAL goal
MINI_A_PORT onport
OAF_MODEL / OAF_LC_MODEL key field Provider API credential (recommended)
GITHUB_TOKEN GitHub Models token (optional when key is provided in model config)