Skip to content

Configuration reference

This page maps the main configuration areas. For a specific installed version, xopc config show, xopc config get <path>, and the settings UI are the authoritative view of effective values.

Locations and commands

Default file: ~/.xopc/xopc.json.

bash
xopc config path
xopc config show
xopc config get <dot.path>
xopc config set <dot.path> <value>
xopc config unset <dot.path>
xopc config validate

XOPC_CONFIG or XOPC_CONFIG_PATH can select another configuration file. State profiles can also change the default root.

Top-level areas

SectionControls
agentsOne inherited default (agents.defaults) plus Agent profiles and explicit overrides (agents.list)
userContextShared user-owned context, privacy, and recall behavior
providersModel provider configuration and credential references
channelsTelegram, Weixin, Feishu, and extension channel settings
gatewayPort, binding, authentication, remote connection, and Tailscale behavior
toolsSearch, browser, media, runtime, and other tool settings
messagesOutbound message and text-to-speech behavior
mcpExternal MCP server connections and lifecycle settings
extensionsExtension enable/disable and extension-specific configuration
runtimeToolsManaged Node.js and Python runtimes
heartbeatPeriodic Agent checks when enabled

Workflows and Automations are normally managed in their own Gateway pages rather than written directly into xopc.json.

Common path overrides

VariablePurpose
XOPC_STATE_DIRState root
XOPC_CONFIG / XOPC_CONFIG_PATHConfiguration file
XOPC_WORKSPACEPrimary workspace override
XOPC_CREDENTIALS_DIRCredential directory
XOPC_LOG_DIRLog directory
XOPC_LOG_LEVELLog verbosity

Provider-specific variables such as OPENAI_API_KEY are shown by provider setup and xopc providers schema <provider>.

Validation and secrets

Run xopc config validate after direct edits. Use JSON syntax: no trailing commas or duplicate keys. Prefer UI or CLI credential commands for secrets, and review any output before sharing it.

Task-oriented instructions are in Configure xopc.

Released under the MIT License.