Configuration
Configuration
This page shows where OpenVaala keeps its configuration, what every field in config.yaml does, and how to check and apply your changes.
You can run OpenVaala without writing any configuration by hand: the first-run setup in the terminal or web UI adds a model provider for you. Read on when you want to change defaults, add executors or extensions, or run OpenVaala on more than one machine.
The configuration directory
By default everything lives in ~/.config/openvaala/:
~/.config/openvaala/
├── config.yaml application settings (this page)
├── agents/ one <name>.yaml per agent → agents.md
├── models/ one <provider-id>.yaml per provider → models.md
├── executors/ one <id>.yaml per extra executor → executors.md
├── mcp_servers/ one <id>.yaml per MCP server → extensions.md
├── hooks/ any number of *.yaml hook files → extensions.md
├── skills/ <name>/SKILL.md → extensions.md
└── plugins/ one directory per plugin → extensions.mdA few rules apply to all of these:
- Only files ending in
.yamldirectly inside a definition directory are read..ymlfiles and subdirectories are ignored (exceptskills/andplugins/, which are directory-based). - Files are parsed strictly. An unknown field, a wrong type or invalid YAML is an error that names the file.
- A directory that does not exist is treated as empty.
- Agent, provider, executor and MCP server files carry a
nameoridthat must match the file name.
To use a different configuration file, pass --config-file to any command or set OPENVAALA_CONFIG:
openvaala --config-file ~/work/openvaala/config.yamlRelative directory paths in config.yaml are resolved against the directory that contains config.yaml, and a leading ~ expands to your home directory. If the file is missing at the default or a custom path, OpenVaala loads the built-in defaults and creates the file at that path when it first saves settings.
OpenVaala also writes to a few locations outside the configuration directory:
| Path | Contents |
|---|---|
~/.local/share/openvaala/ | Conversations and their index. See Conversations. |
~/.local/state/openvaala/runtime-server.yaml | Address and token of the local runtime server, read by local clients. |
~/.local/state/openvaala/openvaala.log | Default log file. See Telemetry. |
openvaala/models-dev.json in your user cache directory (~/.cache on Linux, ~/Library/Caches on macOS) | The model catalog used by provider setup. |
~/.cache/openvaala/hooks/, ~/.cache/openvaala/plugins/ on each executor's machine | Hook scripts and plugin files copied there to run. See Hooks. |
Set data_dir, OPENVAALA_DATA_DIR, or the global --data-dir to put conversation data, memory, the local server connection file, sockets, and the default log in one directory. Relative paths from all three sources resolve next to config.yaml. An explicit telemetry.log_file still takes precedence. Use the same data directory for serve, local clients, serve stop, serve reload, and reindex.
A complete config.yaml
Every field is optional. This example shows each one with its default value, except where a comment says otherwise:
data_dir: "" # empty uses the default data and state directories
agents:
directory: agents # agent definitions
models:
directory: models # model provider definitions
default_model: "" # provider_id/model_id, e.g. openai/gpt-5; empty = first model by provider id, then model id
defaults: # values a model inherits when it omits a field (see models.md)
context_window: 256000
max_output_tokens: 32000
thinking: true
reasoning_efforts: []
default_reasoning_effort: ""
merge_message_roles: []
capabilities:
input: [] # empty means [text]
skills:
directory: skills # your private skills
executors:
directory: executors # extra executors (ssh, virtual, more local directories)
mcp_servers:
directory: mcp_servers
hooks:
directory: hooks
plugins:
directory: plugins
disabled: [] # plugin names that are not loaded at all
tools:
max_image_kb: 500 # largest image read_file hands to the model, in KB; larger images are compressed
run:
agent_name: default # root agent for the terminal UI, editors and Codex
server:
listen: 127.0.0.1:8790 # address of `openvaala serve`
token: "" # empty = reuse the token in runtime-server.yaml, or generate one
workspace_directory: "" # empty = the directory serve was started in
conversation_idle_timeout: 30m # stop saved conversations nobody is watching; 0s = never
client:
url: "" # empty = the local runtime server, started on demand
token: ""
path_mappings: [] # e.g. [{client: /Users/me/code, server: /srv/code}]
http:
headers: {} # extra request headers for outside requests, on top of three built-in ones (see below)
telemetry:
log_level: info
log_file: "" # empty uses openvaala.log in the runtime state directory
otlp_endpoint: "" # e.g. http://127.0.0.1:4318; empty = no export
otlp_headers: {}
capture_content: trueField reference
Definition directories
agents.directory, models.directory, skills.directory, executors.directory, mcp_servers.directory, hooks.directory and plugins.directory point to the directories described above. None of them may be empty. --agents-dir and --models-dir override the first two for a single command.
models
default_model— the model used by agents that do not name one, writtenprovider_id/model_id. It must exist in the models directory. When empty, OpenVaala picks the first model after sorting by provider id and then model id. The provider settings in the terminal UI (/provider), the web UI and the desktop app can set it for you.defaults— the values every model inherits when it leaves a field out. The fields are documented in Models.context_windowandmax_output_tokensmust be positive.
plugins
disabled— names of plugins to skip entirely: none of their skills, hooks or MCP servers load. Unknown names are ignored.openvaala plugin disableandenableedit this list for you.
tools
max_image_kb— the largest image, in KB, thatread_filepasses to a model. Larger images are scaled down to fit. Must be greater than zero. If you raise it, stay below your provider's per-image limit: Claude, for example, rejects images whose base64 form exceeds about 5 MB, so keep this well under 3700.
run
agent_name— the root agent for conversations started from the terminal UI, editors (ACP) and Codex.--agentoverrides it for one command. The web UI and the desktop app always start conversations with thedefaultagent.
server
These settings belong to openvaala serve, the runtime server.
listen—host:portto listen on. The default only accepts connections from the same machine. Use0.0.0.0:8790to accept connections from your network; see Web UI before you do.public_url— the origin browsers use to reach the Runtime through a reverse proxy, for examplehttps://openvaala.example.com. Use HTTP(S) with a host and optional port and trailing slash.openvaala webreads it on each invocation to generate thePublic:link.token— the access token clients must present, stored in plain text. When empty, serve reuses the token from~/.local/state/openvaala/runtime-server.yamlor generates a random one on first start. Clients send it as anAuthorization: Bearer <token>header or a?token=query parameter. Clients on the same machine read it from that file, so you only need to set it when you want a fixed token.workspace_directory— the working directory thelocalexecutor uses when a new conversation does not specify one. Must be an absolute path or start with~/. When empty, serve uses the directory it was started in. A runtime server started automatically by a client runs in your home directory.conversation_idle_timeout— how long a saved conversation with no viewer, running turn or background command stays loaded before serve stops it. Its history is untouched; the next time you open it, serve loads it again and its MCP servers reconnect. Default30m; use0sto never stop conversations. Changing it needs a serve restart; a reload does not apply it.- When a conversation stops, these are lost: the output of background commands that already finished, agent messages that were queued but not yet delivered, and files in virtual executors other than the default one.
- Conversations whose default executor is a virtual one (its files only exist in memory) and conversations created without executors are never stopped this way.
client
These settings tell client commands — the terminal UI, web, acp, app-server and codex — which runtime server to use. The desktop app defaults to the local runtime and accepts remote World links.
url— the server's WebSocket address, for examplews://10.0.0.5:8790/api/v1/openvaala. When empty, clients connect to the local runtime server and start it if it is not running.--urloverrides it for one command.token— the token forurl. Ifurlcontains a?token=query parameter, that value wins. When both are empty andurlpoints at the local runtime server, clients use the local token automatically.client.tokenis never read fromserver.token; the two are separate on purpose.path_mappings— translates directories between a client machine and the server, so a conversation opened from/Users/me/code/appon your laptop runs in/srv/code/appon the server:yamlclient: path_mappings: - client: /Users/me/code server: /srv/code - client: 'C:\Users\me\code' # Windows clients: drive-letter paths, \ and / are equivalent server: /mnt/c/Users/me/codeMappings match whole directory names, and the longest matching prefix wins. Both sides must be absolute paths,
servermust be a Unix path, and the sameclientorserverdirectory cannot appear twice. Drive-letter mappings only apply to Windows clients. Editors (ACP) and Codex clients translate paths in both directions; the terminal UI translates only the directory it was started in. Path mappings can only be set in the file.
ws:// traffic is not encrypted. Use client.url across machines only on a network you trust, or put the server behind an HTTPS reverse proxy and use wss://. A token in a URL can end up in shell history and proxy logs.
http
headers sets request headers for everything OpenVaala sends to outside services: model requests, a provider's model list, the model catalog download, remote MCP servers (including the ones your editor brings) and images the desktop app downloads. OTLP export and requests that stay on your machine are not affected.
Three headers are sent unless you change them:
http:
headers:
User-Agent: "openvaala/${OPENVAALA_VERSION} (${OPENVAALA_OS}; ${OPENVAALA_ARCH})"
Session-Id: "${OPENVAALA_SESSION_ID}"
Conversation-Id: "${OPENVAALA_CONVERSATION_ID}"
X-Team: infra # your own header, sent with every outside requestHeader names are not case-sensitive. An entry you write replaces the built-in default with the same name; defaults you do not mention are still sent.
A provider's
headers(Models) and an MCP server'sheaders(MCP servers) are sent only to that provider or server, and replace an entry of the same name here.On model requests, the global and provider headers replace the protocol's own headers of the same name, such as
Authorization. On a provider's model list the provider's headers do the same; the global headers there, and every header on MCP servers and other requests, only fill in headers the request does not already have.Write
""as the value to stop sending a header, for exampleSession-Id: "".Values can contain these variables:
Variable Value ${OPENVAALA_VERSION}The OpenVaala version. ${OPENVAALA_OS},${OPENVAALA_ARCH}The operating system and CPU architecture, such as linuxandamd64.${OPENVAALA_CONVERSATION_ID}The ID of the conversation the request belongs to. ${OPENVAALA_SESSION_ID}The ID of the session that sends the request. The main agent and each sub-agent have their own session, so a gateway can use it to keep each of them on one channel. ${OPENVAALA_PARENT_SESSION_ID}The session that started the sub-agent. Empty for the main agent. ${OPENVAALA_AGENT_NAME}The name of the agent that sends the request. A header is left out when a variable in it has no value for that request. The conversation and session variables have no value when OpenVaala downloads the model catalog or lists a provider's models. Only
${OPENVAALA_...}is treated as a variable; any other${...}is sent as written.A variable name OpenVaala does not know is a configuration error, so a typo cannot silently drop a header:
~/.config/openvaala/config.yaml: http.headers.Session-Id: unknown variable OPENVAALA_SESION_ID.http.headerscan only be set in the file. These headers are sent to every outside request: all providers, MCP servers, the model catalog, and images the desktop app downloads, even after a redirect to another site. Put credentials in a provider's or MCP server's ownheadersinstead.config showprintshttp.headersas stored.
openvaala serve reload applies changes to model requests and MCP servers. The model catalog and provider model lists (runtime server), MCP servers from your editor (openvaala acp) and the desktop app's image downloads read http.headers when their process starts; restart that process to apply a change.
telemetry
log_level, log_file, otlp_endpoint, otlp_headers and capture_content control logs, traces and metrics. See Telemetry.
Environment variables
Any scalar setting can be overridden with an environment variable named OPENVAALA_ followed by the field path in upper case, with dots replaced by underscores:
OPENVAALA_SERVER_LISTEN=0.0.0.0:8790 openvaala serve
OPENVAALA_CLIENT_URL=ws://10.0.0.5:8790/api/v1/openvaala openvaala
OPENVAALA_MODELS_DEFAULT_MODEL=openai/gpt-5 openvaalaSettings are applied in this order, later ones winning: built-in defaults, config.yaml, environment variables, then command-line flags (--data-dir, --agents-dir, --models-dir, --agent, plus --listen and --relay-mode on both serve commands). Maps and lists of objects — telemetry.otlp_headers, http.headers and client.path_mappings — can only be set in the file.
OPENVAALA_CONFIG selects the configuration file itself; when it is set it must not be empty.
Check your configuration
Three commands help you work with configuration. None of them contacts a model provider.
openvaala config init # create config.yaml and the agents/, models/, plugins/ directories if missing
openvaala config show # print the effective settings, defaults and resolved paths included
openvaala config check # load every definition and check the selected agentconfig init never overwrites existing files; it prints the path of config.yaml. config show prints tokens, OTLP headers and HTTP headers as stored, so be careful where you paste its output.
config check loads models, executors, MCP servers, hooks, plugins and agents, validates every reference between them, and prints the selected agent and model:
configuration valid: agent=default provider=openai model=gpt-5It does not read skill files; a malformed skill in your skills/ directory is reported when the runtime server starts or reloads.
Apply changes
The runtime server reads configuration when it starts. After editing files, reload it:
openvaala serve reloadYou can do the same with /reload in the terminal UI or Settings → Reload config in the web UI. Changes made through the provider settings in the terminal or web UI, and through openvaala plugin, reload automatically.
A reload replaces agents, models, executors, MCP servers, hooks, skills, plugins and server.workspace_directory. Idle open conversations switch immediately, and conversations opened later use the new definitions too. Busy conversations prepare and hold the new configuration, then apply it automatically once all sessions finish their turns, queued input, pending context and background commands. The command lists conversations waiting to apply it; no second reload is needed. Long-running commands, paused agent messages or pending context can prolong the wait; the latter two may need another user input to be consumed.
If loading the configuration files fails, the server keeps its previous definitions. If preparing one open conversation fails, that conversation keeps its current configuration and any previously prepared update; other conversations still update, and the failure is logged by the server. If a session created while waiting needs an agent absent from the prepared configuration, that update is discarded and the conversation keeps its working configuration; the server logs the error. An empty waiting list does not prove every conversation prepared successfully. Applying a configuration rebuilds sessions and execution environments: saved history remains, but runtime files in virtual workspaces and output from finished commands are not migrated.
Some settings are only read at startup. To change server.listen, server.token, server.conversation_idle_timeout, tools.max_image_kb or anything under telemetry, stop the server and let it start again:
openvaala serve stopClient settings (client.* and run.agent_name) are read each time you start a client command.
World
In Settings → World, you can join a World, choose which Agents to advertise, and enable the local node or control plane. Confirming a save restarts serve. Clients briefly disconnect and running turns are interrupted.
world.relaysdefaults to[]. Nodes try direct URLs first, then their home relay followed by the configured relays in order, skipping duplicates. Theworld.server.domainsetting is the name shared by members. It does not require a DNS domain.world.server.public_urlsets the HTTP or HTTPS base URL written into new join codes. Set it to the address nodes can reach, such as the HTTPS address of a reverse proxy.world.relay_modeacceptsoff,domain(members only, requires the local control plane), orpublic. It defaults todomainwith the control plane enabled andoffotherwise. A standalone relay requirespublic. On bothopenvaala serveandopenvaala world serve,--relay-modeoverrides the file for that run.world.relay_instanceslists the HTTPS addresses (also accepts HTTP, WS and WSS) of the instances of a public relay. Configure the same list on each instance. An empty list enables single-instance operation. Nodes and domain cards continue to use the entry address inworld.relays.world.remote_access.enableddefaults to false. When you enable it with an empty relay list, Settings addshttps://open.vaa.lato the draft. Save and restart, then scan the code to connect. World membership is optional.world.remote_access.namedefaults to the hostname.world.web_urlcan specify the page origin (HTTP or HTTPS, host and optional port). Otherwise the server prefers a public HTTPS relay, then a direct HTTPS address, skipping the implicit home control plane. Settings labels a local-only address.
openvaala world serve runs the enabled control plane, relay, or both on world.server.listen (default 0.0.0.0:8791), without starting a Runtime or World node. Enable at least one role. Binaries with the embedded Web App serve it at /web/v1/ on the same port, including on a relay-only deployment.
For a control plane only, put the following in config.yaml and run openvaala world serve.
world:
server: {enabled: true, domain: example.org}
relay_mode: offFor a relay only, leave the control plane disabled (the default) and run this command.
openvaala world serve --relay-mode public