Skip to content

Configuration reference

Use this page when you need exact locations for xopc configuration.

The main configuration file is ~/.xopc/xopc.json unless XOPC_CONFIG or XOPC_CONFIG_PATH points elsewhere.

For the full field reference, see Configuration. For task-oriented setup, prefer:

Top-level sections

SectionPurpose
agentsAgent manifests, optional capability presets, default agent id
providersLLM provider API key references and provider ids
bindingsRoute inbound channels/peers to agents
sessionSession scope, identity links, reset behavior
channelsTelegram, Weixin, Feishu, and extension channel config
gatewayHTTP/SSE gateway host, port, auth, CORS, remote access
browserBrowser automation backend, URL policy, timeout behavior
toolsWeb search and other tool-level settings
messages / ttsOutbound message and text-to-speech settings
mcpOutbound MCP server registry
extensionsExtension enable/disable and extension-specific config

Agent configuration

Current agent configuration is manifest-first:

json
{
  "agents": {
    "default": "main",
    "list": [
      {
        "id": "main",
        "identity": { "name": "Main", "role": "General assistant" },
        "responsibilities": { "primary": ["Help the user complete tasks"] },
        "workspace": { "root": "~/.xopc/workspace/main" },
        "models": {
          "defaultRole": "deep",
          "roles": {
            "deep": { "model": "deepseek/deepseek-v4-flash" }
          }
        },
        "tools": { "builtin": {} },
        "skills": { "mode": "all" },
        "memory": { "mode": "confirmWrite", "sources": ["session"] },
        "workflows": {},
        "boundaries": { "requiresConfirmation": [], "forbidden": [], "escalation": [] }
      }
    ]
  },
  "providers": {
    "deepseek": "${DEEPSEEK_API_KEY}"
  }
}

There is no agents.defaults merge layer. Put runnable agents in agents.list[]. Use agents.capabilityPresets and agents.defaultPreset only when you want reusable policy patches.

Released under the MIT License.