OpenProgram Docs

Configuration reference

openprogram config list              # value, group, apply mode
openprogram config get ui.web_port
openprogram config set ui.web_port 8101

One registry, openprogram/state/settings.py, drives the setup wizard, TUI and Web settings. Every setting, generated from it: Settings keys. Everyday use: Configuration and data directory.

Common settings

Ports

KeyMeaningDefaultApplies
ui.web_portSingle worker port for API, WebSocket and Web UI18100next start
ui.open_browseropenprogram web opens the browsertruenext start

Search, memory, tools, agent

KeyMeaningDefaultApplies
search.default_providerauto picks the highest-priority configured oneautolive
search.google_pse_cxGoogle Programmable Search engine id. GOOGLE_PSE_CX is read when it is empty.emptylive
memory.backendlocal, or none: no prompt memory, recall, automatic writes, organizer or memory threadslocalnext start
memory.writer.modelOptional provider/model for background writing; empty uses the default chat agent'semptylive
tools.disabled.<name>Per-tool switch; members of the tools.disabled listall enabledlive
agent.output_styleHow replies are written; appends to the system prompt. Output stylesdefaultlive
providers.<name>Read-only status row. Configure with openprogram providers login or the Web UI.——

Sandbox

sandbox.modeLocal model-driven commands
offDefault. No sandbox unless a conversation turns it on in its composer menu.
autoSandboxed in every conversation when the backend is available; otherwise runs without one
workspace-writeWrites limited to the working directory and configured roots, deny-read paths blocked, network disabled
danger-full-accessFull user authority
KeyMeaningDefaultApplies
sandbox.writable_rootsExtra writable directories, JSON list[]live
sandbox.deny_readUnreadable globs; defaults include credential paths. Linux cannot enforce middle wildcards such as **/.env: use an exact path or a directory deny such as /absolute/path/to/secrets/**.openprogram config get sandbox.deny_readlive
sandbox.deny_writeUnwritable globs, on top of the function-watcher directory and protected startup files[]live
sandbox.networkNetwork accessfalselive
sandbox.pass_envEnv names passed beyond the built-in allowlist[]live
sandbox.unavailable_policyrefuse fails the command when the backend is missing or cannot isolate; warn runs it unsandboxedrefuse; warn on Windowslive

Backends: Seatbelt on macOS, bubblewrap on Linux, bubblewrap through the default WSL2 distribution on Windows. Docker is not an automatic fallback.

Top-level keys in config.json

Do not edit by hand: use openprogram config set, the setup wizard or the Web UI.

KeyHoldsCode
ui{web_port, open_browser}openprogram/state/settings.py
search{default_provider}openprogram/state/preferences.py
memory{backend, writer: {model}}openprogram/state/settings.py, openprogram/state/memory/
tools{disabled: [tool name, ...]}openprogram/operations/setup.py, openprogram/state/settings.py
sandbox{mode, writable_roots, deny_read, deny_write, network, pass_env, unavailable_policy}openprogram/host/sandbox/__init__.py, openprogram/state/settings.py
last_used_model{provider, model} a new conversation starts on. Empty on a fresh install.openprogram/models/providers/catalog/last_used.py
provider_companiesCatalogue entry id → company id: which company's card and keys an entry the built-in table does not list belongs to. Its own id makes it stand alone.openprogram/models/auth/login/login_method_registry.py
default_workdirDefault agent working directoryopenprogram/state/paths.py
providersPer-provider subtree (enabled and custom models), managed by the Web UI model listingopenprogram/models/providers/settings/config_read.py, storage.py
api_keysNo longer written. Keys found here move into the credential store at start, and the name leaves the file; a name no service reads stays.openprogram/models/auth/key_move.py
spec_migration_versionOne-time marker for the model-spec migrationopenprogram/models/providers/settings/storage.py

Environment variables

Set them in the shell that launches openprogram or the worker.

Paths and instances

VariablePurposeCode
OPENPROGRAM_PROFILESame as --profile; ~/.openprogram-<name>/openprogram/state/paths.py
OPENPROGRAM_WORKDIRDefault agent working directory, above default_workdiropenprogram/state/paths.py

Ports and web

VariablePurposeCode
OPENPROGRAM_WEB_PORTSingle worker port (default 18100); below flags, above the stored preferenceopenprogram/operations/worker/lifecycle.py
OPENPROGRAM_NO_WEB1: worker skips the frontend build gate and serves no web UIopenprogram/operations/worker/runner.py
OPENPROGRAM_DOCS_BASEDocs mount path (default /docs/; must start and end with /). The publishing workflow sets it to the path of the site addressscripts/docs_site/build.py

Behaviour switches

VariablePurposeCode
OPENPROGRAM_NO_AUTO_WORKER1: TUI connects only to an existing workeropenprogram/interfaces/cli/ink.py
OPENPROGRAM_NO_SLEEP1: no memory sleep-consolidation scheduleropenprogram/state/memory/scheduler.py
OPENPROGRAM_NO_PROGRAMS_WATCH1: no file watcher on the programs directoryopenprogram/programs/_host/watcher.py
OPENPROGRAM_PROJECT_AUTOCOMMIT0: no project auto-commitopenprogram/state/store/project/project_commit.py
OPENPROGRAM_WEBSEARCH_DISABLEDisables a search provider by name, e.g. ollamaopenprogram/programs/tools/web/web_search/providers/ollama.py

LLM calls

VariablePurposeCode
AGENTIC_PROVIDER, AGENTIC_MODELPicked first by detect_provider()openprogram/models/providers/catalog/registry.py
OPENPROGRAM_MAX_RETRIESRetries for transient failures (default 6)openprogram/runtime/agent/runtime/shared.py
OPENPROGRAM_RETRY_BACKOFF_BASEBackoff base seconds (default 1.5)openprogram/runtime/agent/runtime/shared.py
OPENPROGRAM_EXEC_TIMEOUT_SDefault wall-clock budget for runtime.exec (unset or 0: unbounded)openprogram/runtime/agent/runtime/shared.py
OPENPROGRAM_FALLBACK_MODELSOverrides the model_fallback setting. Unset: that setting (default off). same-provider: up to two other enabled models of that provider. off or none: disabled. Comma-separated provider/model list: in order, may cross providers.openprogram/models/providers/utils/failures/failover.py
OPENPROGRAM_PROVIDER_STREAM_RETRIESAttempts per streaming request, including the first (default 5). Connection retries have their own allowance of this minus one.openprogram/models/providers/utils/streams/stream_retry.py
OPENPROGRAM_NETWORK_WAIT_MAX_SWait for an unreachable endpoint after retries are spent, checking every 5 to 30 s (default 1800; 0 fails at once). Cancelling ends it.openprogram/models/providers/utils/streams/stream_retry.py
OPENPROGRAM_RETRY_AFTER_CAP_SLongest Retry-After a retry sits through (default 300). Longer fails at once so a fallback model, another account or the user can take over. 0 lifts the cap.openprogram/models/providers/utils/streams/stream_retry.py
OPENPROGRAM_CODEX_WEBSOCKET0: ChatGPT-sign-in Codex turns use HTTP instead of the WebSocket, which is on by default and sends a continuing turn as its new input onlyopenprogram/models/providers/adapters/openai_codex/websocket_transport.py
OPENPROGRAM_CODEX_ZSTD0: uncompressed Codex HTTP turns (zstd by default)openprogram/models/providers/adapters/openai_codex/request_compression.py
OPENPROGRAM_STRICT_TOOLS0: strict tool schemas off (on by default)openprogram/models/providers/schema/__init__.py
OPENPROGRAM_FORCE_IPV41: forces an IPv4 source addressopenprogram/models/providers/utils/http_transport/http_client.py

Debugging

VariablePurposeCode
OPENPROGRAM_LOG_LEVELDEBUG, INFO, WARNING, ERROR, any case. Default INFO for worker, scheduler and foreground Server, WARNING for the CLI. Invalid values are ignored.openprogram/host/process_logging.py
OPENPROGRAM_DEBUG_RUNTIME1: mirrors runtime logs to stderropenprogram/interfaces/server/runtime_management.py
OPENPROGRAM_DEBUG_REGISTRY1: traceback on function-registry import failuresopenprogram/programs/_host/registry.py
OPENPROGRAM_DEBUG_DISPATCHER1: dispatcher logs at INFO, in the worker logopenprogram/runtime/conversation/turn_runtime/runtime_attach.py
OPENPROGRAM_DEBUG_PROVIDER1: provider-layer logs at INFO, in the worker logopenprogram/models/providers/adapters/openai_codex/openai_codex.py
Internal variables

HTTP and SSE timeouts OPENPROGRAM_HTTPX_*, OPENPROGRAM_SSE_*; TCP keepalive OPENPROGRAM_TCP_*; per-provider retries OPENPROGRAM_<PROVIDER>_MAX_RETRIES; OPENPROGRAM_JOB_WORKERS; OPENPROGRAM_IMAGE_DIR. Full list: grep -rn "OPENPROGRAM_" openprogram/.

Last updated · 2026-11-25