OpenProgram Docs

Config keys#

Every user-editable setting, from the single schema that the setup CLI, openprogram config, the TUI settings screen, and the web Settings pages all render from. apply says when a change takes effect: live = immediately, next_start = on the next worker/web start.

Execution#

Key Default Apply Description
execution.prevent_idle_sleep False live Prevent idle system sleep during active agent execution. Disabled by default. Read at the next execution; the display may still sleep. Linux needs systemd-inhibit, and a suspend you ask for waits for the execution there.
execution.instant_steer True live On by default. A message sent while the agent is replying stops the response being generated (text, reasoning or a tool call still being written) and continues with your message. Tools that already started still finish first. Off: the message waits until the current response ends.
execution.code_change_policy keep_original live Durable functions keep their original code by default. use_latest resumes with current code and saved step results. Incompatible progress requires explicit recovery. An individual Continue command can override this choice.
execution.auto_resume_window_seconds -1 live Automatically continue restart-owned checkpoints after interruption. Default: -1 (no time limit). Zero disables automatic restart; positive values set a deadline in seconds. Existing deadlines never extend; user pauses, cancellation and unconfirmed external operations require explicit recovery.
execution.native_delete False live Off by default: files the agent deletes (rm, rmdir, unlink, find -delete, git clean, and Python and Node delete calls) move to a trash that openprogram trash restore brings back, on this computer, in Docker containers and on SSH hosts. On: commands started from then on delete for good. The sandbox and permission rules are unchanged.
execution.trash_retention_days 30 live A run's deleted files are removed from the trash this many days after its last deletion. Default 30; 0 keeps them until the size limit applies.
execution.trash_max_mb 5120 live When the trash on this computer holds more than this, the oldest runs' deleted files go first. Default 5120 (5 GB); 0 means no limit.
shell.windows_bash_path `` live The bash.exe commands, hooks and the environment block use on Windows, for a Git or MSYS2 installed where it is not found on its own. The environment variable OPENPROGRAM_GIT_BASH_PATH wins over this setting. A path that is not a file is passed over: the shell is looked for as usual and openprogram doctor says the path is not used. Ignored on macOS and Linux.

Ports#

Key Default Apply Description
ui.web_port 18100 next_start The port the web UI itself is served on — the address you open in the browser. Must differ from the backend port.
ui.open_browser True next_start When you run openprogram web, also pop open a browser window pointed at the UI. Turn off to start the server only and open the address yourself (e.g. on a headless server).
web.host 127.0.0.1 next_start Network interface the server listens on. The default only accepts connections from this machine. Setting 0.0.0.0 exposes the authenticated UI to other interfaces and requires at least one exact web.allowed_origins entry. Prefer HTTPS through a same-host reverse proxy for any untrusted network.
web.allowed_origins [] next_start Exact browser Origins allowed to address this OpenProgram instance. Each value is scheme://host[:port], such as https://agent.example.com. This is a request-Origin and Host allowlist, not a CORS list for cross-origin frontends.
web.anywhere False next_start Publish this OpenProgram at a public https://<name>.ts.net address through the Tailscale built into OpenProgram, so other devices reach it from any network with no app. Every device still pairs with a one-time code. Settings → Devices switches it at once; set here, it applies on the next start.

MCP server#

Key Default Apply Description
mcp_server.exposed_tools [] next_start Runtime tools available to authenticated MCP clients. Empty by default; changes apply on the next server start.

Security#

Key Default Apply Description
security.outbound_url {'exceptions': []} live Owner-only exact Origin or CIDR exceptions for declared configured-service consumers, plus an optional policy proxy that explicitly asserts target-policy enforcement.
security.outbound_url.model_tools open live What web_fetch and image downloads may reach in the owner's own turns. open (default) reaches any address, including this machine and the private network. strict blocks private addresses and unusual ports. Everyone else's turns are always strict.

Voice#

Key Default Apply Description
voice.engine auto live Turns the composer microphone's recording into text. auto uses local whisper.cpp when its model is downloaded, then OpenAI, then Groq. local keeps audio on this computer (needs brew install whisper-cpp).
voice.language auto live auto lets the engine detect the language of each phrase.
voice.model `` live Empty uses the engine's default: gpt-4o-mini-transcribe (OpenAI), whisper-large-v3-turbo (Groq), large-v3-turbo-q5_0 (local). Applies only when an engine is chosen.

Computer use#

Key Default Apply Description
computer_use.refused_apps [] live Applications computer_use refuses to read or operate, as a JSON list of names or bundle ids. Empty by default. For example com.apple.keychainaccess.
computer_use.refuse_password_fields False live When on, computer_use will not type into password fields. Off by default.
computer_use.whole_screen False live When on, computer_use also offers type="screen": a whole display of this computer, operated with your real pointer and keyboard (macOS). Off by default: the agent operates one application at a time.
computer_use.locked_use False live When on (macOS), a computer_use turn you attend, such as one you start from your phone, unlocks the locked Mac to operate its applications: every display shows that OpenProgram is using it, any key or pointer touch locks it again, and it locks when the turn ends. Scheduled runs never unlock it. Turning it on installs an unlock plug-in and asks for an administrator's password; off removes it. Off by default.
computer_use.paired_devices False live When on, a computer paired with this one can send computer_use calls here: they run on this computer, under its own settings, permissions and rules (its whole screen stays off unless turned on here). Off by default.
computer_use.chrome_extension_token (secret) live The token shown by the Playwright Extension in your Chromium browser (Chrome, Edge, Brave, Vivaldi, Opera, Arc or Chromium). With it, computer_use with that browser as app (app="chrome", app="brave", ...) connects to it without asking which tab to share; empty asks each time. Each browser's extension shows its own token. Safari and Firefox need no token.
Key Default Apply Description
search.default_provider auto live auto picks the highest-priority configured provider.

Memory#

Key Default Apply Description
memory.backend local next_start local = on-disk memory tool; none = disabled.
memory.writer.model `` live Empty writes each conversation on the model it chatted with, and organizes on the last used model, then the default Agent's. Set provider/model to use one model for all background memory writing and organizing.
memory.writer.enabled True live Turn completed conversations into Topic records in the background.
memory.writer.verify False live After a background write, ask a question about one fact it recorded, search Memory for the answer, and repair the Topics when the answer cannot be found. Costs several extra model calls per write.
memory.writer.trigger_tokens 16000 live Conversation tokens accumulated before a background write.
memory.organize.daily_tokens 3000000 live Tokens each memory (personal, each project's, each Agent's) may spend organizing per day. Once one reaches it, its organizing waits for the next day and resumes where it stopped; writing is not limited. 0 turns the cap off.
memory.retrieval.method bm25 live Retrieval used for automatic recall and Memory search.
memory.retrieval.hybrid.weighting auto live How hybrid recall weighs keywords against meaning. auto favours keywords for queries with a date, a quoted phrase or a name, and balances them otherwise.
memory.retrieval.hybrid.file_boost True live In hybrid recall, raise the best paragraph of a Topic that several matches come from.
memory.retrieval.top_k 5 live Maximum matching records added automatically to a turn.
memory.layers.project True live A conversation in a project also reads that project's own Memory, kept in ~/.openprogram/projects/<project>/memory.
memory.layers.project_writes True live With Project memory on, write what a project's conversations record into that project's Memory instead of the personal one.
memory.core.inject True live Inject the compact Core view into each system prompt.
memory.recent.limit 50 live Latest records retained in the Recent derived view.

Recordings#

Key Default Apply Description
record_replay.mode off next_start Record or strictly replay all LLM provider calls on the next process start.
record_replay.file `` next_start Managed recording ID or an explicit replay file path; record mode accepts IDs only.

Models#

Key Default Apply Description
model_fallback.mode off live When a reply fails before any text arrives because the model is rate limited, overloaded, down or unreachable, try another model. same-provider tries up to two other enabled models of the same provider; list tries the Fallback model list in order. off shows the error instead.
model_fallback.models [] live Used when Fallback models is list: "provider/model" ids tried in order, for example ["anthropic/claude-sonnet-5-5"].
context.auto_compact_percent 80 live When a conversation fills this much of what the model can hold, its older messages are replaced by a short summary so it can keep going. Lower: each message uses fewer tokens, but the model loses details sooner. Higher: the model remembers more, but each message uses more tokens. Most people can leave this at 80.
models.prompt_cache_ttl 5m live Only matters when you use Anthropic models. Between messages, Anthropic can keep your conversation ready so the next message costs less. 5 minutes suits back-and-forth chats. 1 hour costs more up front and is worth it if you often return to a conversation after a break of more than five minutes.
privacy.redact_requests False live Before a request goes to the model provider, replace API keys, tokens, passwords, private keys and email addresses with placeholders such as [[SECRET_1]], and put the real values back into the reply and the tool calls it makes. The provider never sees them.

Harnesses#

Key Default Apply Description
usage.third_party_harnesses True live Read the session files Claude Code and Codex keep on this computer and show their sessions, tokens, estimated cost and Codex plan quota on the Third-Party Harnesses page. Read only; the files never leave this computer.

Harness Models#

Key Default Apply Description
harnesses.codex.model `` live Empty for Codex's own sign-in, or an OpenProgram model as provider/model.
harnesses.codex.terminal False live Whether ~/.codex/config.toml points Codex at OpenProgram's model.
harnesses.codex.tiers {} live The model Codex's subagents start on and the one it writes its memories with, each left out for Codex's own; scope profile wires only codex -p openprogram; async turns on Codex's background compaction, at its own 65% of the window or at the share given.
harnesses.claude_code.model `` live Empty for Claude Code's own sign-in, or an OpenProgram model as provider/model.
harnesses.claude_code.tiers {} live The model each Claude Code tier and its subagents run on; one left out uses the Claude Code model.
harnesses.claude_code.terminal False live Whether ~/.claude/settings.json points Claude Code at OpenProgram's model.

Agent#

Key Default Apply Description
agent.output_style default live Appends a block of guidance to the system prompt describing how replies should be written. default appends nothing. Drop a <name>.md file in ~/.openprogram/output-styles/ or ./output-styles/ to add your own.
agent.max_spawn_depth 1 live How many generations of NEW agents one chain may create. 1 (default): the main agent spawns helpers and a helper does the work itself, so a helper has no agent tool. 2 lets a helper spawn its own helper; 0 = no limit. Only creating an agent counts, so an agent that reads a helper's result can still create the next wave.
agent.max_messages 0 live Older limit on how many messages one collaboration chain may pass. Still honoured when set; agent.max_hops and agent.max_sends_per_hour now bound agent-to-agent messages. 0 (default) = no limit.
agent.max_hops 4 live How many times one chain of work may pass a message on to another agent with send_message (A to B to C counts 2). A reply coming back does not count. 4 (default); 0 = no limit.
agent.max_sends_per_hour 20 live How many messages one conversation may send to other agents with send_message in an hour. 20 (default); 0 = no limit.
agent.max_running_agents 6 live How many helper agents one conversation runs at the same time; more wait in a queue and start as others finish. The worker pool (OPENPROGRAM_JOB_WORKERS, 8 by default) still bounds all conversations together. 6 (default); 0 = only the pool bounds it.
agent.max_tree_usd 2.0 live How much the helpers started from one turn may spend together, in US dollars. Once reached, no new helper starts from that turn, the running ones are stopped and the conversation is told. Usage whose price is unknown does not count. 2 (default); 0 = no limit.
agent.stall_minutes 10 live A helper agent with no model or tool activity for this long is marked stalled and the conversation that started it is told; it keeps running. 10 (default); 0 = never.
agent.max_agent_hours 2 live A helper agent still running after this many hours is stopped and reported as timed out. 2 (default); 0 = no limit.
agent.max_spawn_fanout 0 live How many agents ONE turn may create, counted per (session, turn). The chain budgets bound how deep and how far a chain goes, not how wide one turn opens it. 0 (default) = no limit; the task pool still bounds how many run at once. A spawn past the limit is refused and points the agent at the ones it already has.

Agent resources#

Key Default Apply Description
agent.resource_limits.max_live_per_session — live Empty means inherit or unlimited; non-empty values must be positive.
agent.resource_limits.max_queued_per_session — live Empty means inherit or unlimited; non-empty values must be positive.
agent.resource_limits.max_jobs_per_session — live Empty means inherit or unlimited; non-empty values must be positive.
agent.resource_limits.max_total_tokens — live Empty means inherit or unlimited; non-empty values must be positive.
agent.resource_limits.max_cost_usd — live Empty means inherit or unlimited; non-empty values must be positive.
agent.resource_limits.max_runtime_seconds — live Empty means inherit or unlimited; non-empty values must be positive.
agent.resource_limits.idle_timeout_seconds — live Empty means inherit or unlimited; non-empty values must be positive.

Hooks#

Key Default Apply Description
hooks {} next_start Shell commands subscribed to bus events, as {"<event>": [{"command": "...", "timeout": 60}]}. An entry may add "shell": "bash" (the default) or "powershell", or "args": [...] to run the command directly without a shell. The event arrives as JSON on the command's stdin. Gate events (tool.before, turn.stop) follow the Claude Code hooks exit-code protocol: exit 0 allows, exit 2 denies with stderr as the reason, any other exit code is ignored (fail-open). Notify events (turn.start, turn.end, session.start, goal.update) run the command in the background and ignore the exit code. Timeout defaults to 60 seconds per command. Read once at worker start — restart to apply.

Sandbox#

Key Default Apply Description
sandbox.mode off live off (the default) runs local commands without a sandbox unless a conversation turns Sandbox on in its composer menu, which then uses the backend when it is available. auto uses the sandbox in every conversation when its backend is available and otherwise keeps local commands usable without one. danger-full-access runs local model-driven commands with your full user authority. workspace-write applies the host-native sandbox (macOS sandbox-exec, Linux bubblewrap, or bubblewrap delegated to the default WSL2 distribution on Windows), restricts writes to the working directory and configured roots, blocks the paths listed under Blocked read paths, and disables network. Read per command, so a change applies to the next command everywhere — including background threads and spawned subprocesses.
sandbox.writable_roots [] live Directories a sandboxed command may write besides the working directory, as a JSON list. ~ is expanded.
sandbox.deny_read ['~/.ssh/**', '~/.aws/**', '~/.gnupg/**', '~/.openprogram/auth/**', '~/.claude.json', '~/.claude/.credentials.json', '~/.config/gh/**', '~/.netrc', '~/Library/Keychains/**', '**/.env'] live Globs a sandboxed command cannot read, as a JSON list. Ships loaded with the credential paths, because a command that reads a key can still deliver it without any network: the memory writer's output returns to a later session's context. ** matches any depth; on Linux a pattern containing a wildcard in the middle has no equivalent and is skipped, since bubblewrap masks paths rather than matching them. Protect sensitive Linux content with an exact path or a directory-level deny whose prefix is concrete, such as /absolute/path/to/secrets/**; do not rely on **/.env there.
sandbox.allow_read [] live Concrete paths re-opened inside a wider sandbox.deny_read entry. Narrower path wins; an equally-specific deny still blocks. Cannot open ~/.openprogram/auth or the agentics directory.
sandbox.deny_write [] live Globs a sandboxed command cannot write even inside the working directory, as a JSON list — the paths that arrange for code to run later outside the sandbox. Shell startup files, the repository's git hooks and config, editor task folders and OpenProgram's state folder are always blocked too. Empty otherwise.
sandbox.network False live Off means a sandboxed command has no network at all, which is what stops anything it read from leaving the machine. Turn it on and sandboxed package downloads work again, along with every other outbound connection.
sandbox.network_domains — live Optional macOS-only domain map, for example {"example.com": "allow", "*.example.org": "deny"}. Requires network enabled. Null preserves ordinary network mode; an empty map denies all. Deny wins. Only public HTTP port 80 and HTTPS CONNECT port 443 are supported. Commands cannot bypass the managed proxy; unsupported platforms fail closed.
sandbox.pass_env [] live A sandboxed command inherits only PATH, HOME, SHELL, USER, LOGNAME, TERM, TMPDIR, TZ, PWD, LANG and LC_*, so API keys in your environment do not reach it. Name any additional variables here.
sandbox.unavailable_policy refuse live What happens when the mode is on but the platform backend is missing or cannot create its required isolation. refuse fails the command and says why. warn runs it unsandboxed and logs a warning — convenient, and the reason a security setting can end up doing nothing without anyone noticing. The default is refuse, except on Windows, where the sandbox needs WSL2 that most machines do not have: there it is warn, and the Sandbox switch and openprogram doctor say the sandbox needs WSL2.

Telemetry#

Key Default Apply Description
telemetry.otel.enabled False next_start Off by default. On: each turn, model call and tool call is sent as an OpenTelemetry trace, with token, cost and tool metrics, over OTLP to the endpoint below or to OTEL_EXPORTER_OTLP_ENDPOINT. The environment variable OPENPROGRAM_ENABLE_TELEMETRY=1 turns it on as well; OTEL_SDK_DISABLED=true keeps it off. Prompts and tool content stay out unless the two switches below are on.
telemetry.otel.endpoint `` next_start The collector's base address, such as http://localhost:4318 for HTTP or http://localhost:4317 for gRPC; /v1/traces and /v1/metrics are added for HTTP. Empty uses OTEL_EXPORTER_OTLP_ENDPOINT, then the OpenTelemetry default on this computer.
telemetry.otel.protocol auto next_start auto uses OTEL_EXPORTER_OTLP_PROTOCOL, then http/protobuf. gRPC needs the telemetry-grpc extra, which the App does not include.
telemetry.otel.headers (secret) next_start Headers sent with every export, such as an Authorization header. Empty uses OTEL_EXPORTER_OTLP_HEADERS. The values go only to the collector.
telemetry.otel.log_user_prompts False next_start Off by default: a turn carries only the prompt's length. On: the prompt text, with secrets removed, is added to the turn's span.
telemetry.otel.log_tool_details False next_start Off by default: a tool call carries its name, outcome, duration and result length. On: its arguments and result text, with secrets removed, are added to its span.

Editor#

Key Default Apply Description
editor.vim_mode False live Off by default. On: the message input in the TUI and the Web composer edits like Vim, starting in INSERT mode; Esc switches to NORMAL mode and a NORMAL/INSERT label shows on the input. /vim turns it on or off.

Updates#

Key Default Apply Description
update.channel stable live Which line of releases openprogram upgrade follows. Managed installs use the latest stable GitHub Release; source checkouts use origin/main.