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
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
platformStandalone or connected mode, the platform base URL, optional workspace, and validated discovery snapshot

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

Agent definitions, inherited defaults, routing bindings, and surface defaults live in ~/.xopc/xopc.db. Manage them from Agents, xopc agents, or an Agent conversation; they are intentionally absent from 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
XOPC_AUTOMATION_WEBHOOK_SECRETSJSON object mapping Automation webhook secret ids to secrets

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.