Configure xopc
Use the desktop or web console for routine settings. Use xopc config for terminal changes, automation, and diagnosis. Edit xopc.json directly only when a setting is not available in the UI.
Find the active configuration
xopc config path
xopc config show
xopc config validateThe default file is ~/.xopc/xopc.json. A profile, command-line option, or environment variable can select another file, so xopc config path is more reliable than assuming the default.
Change a setting safely
Use dot paths with the CLI:
xopc config get agents.default
xopc config set agents.default main
xopc config unset gateway.remote.url
xopc config validateValues that look like JSON are parsed as JSON. Quote strings when your shell requires it.
After a change:
- run
xopc config validate; - restart the affected service if the UI does not show the new value;
- perform one small verification action;
- check logs before making more changes.
The Gateway reloads many settings automatically, but credentials, extensions, channels, and runtime changes may require a restart.
Common settings
| Goal | Recommended place | Guide |
|---|---|---|
| Add a provider or choose a model | Settings → Capabilities → Models | Models |
| Create an Agent | Agents | Agents |
| Enable tools | Agent editor | Tools |
| Install or configure a Skill | Skills | Skills |
| Connect an MCP server | Settings → Agent MCP | MCP |
| Connect a messaging app | Channels | Channels |
| Enable remote access | Settings → Remote access | Remote access |
| Connect XOPC Cloud or an enterprise platform | xopc platform | XOPC Platform |
| Change voice or image providers | Settings → Capabilities | Voice, Images |
Editing JSON directly
Back up the file first, keep the JSON syntax valid, and change one section at a time. A minimal shape is:
{
"agents": {
"default": "main",
"list": [
{
"id": "main",
"enabled": true
}
]
},
"gateway": {
"port": 18790
}
}Do not copy this over an existing configuration; it intentionally omits most settings. Use Configuration reference to find the relevant section.
Secrets
Prefer the credential controls in the UI or commands such as xopc providers set-key. Credentials may live in auth profiles or environment variables instead of the main JSON file.
- Never commit
xopc.json,.env, or auth files containing secrets. - Do not share
config showoutput without reviewing it, even though known secrets are masked. - Rotate a token immediately if it appears in chat, logs, screenshots, or source control.
Profiles and overrides
xopc can use separate state profiles and alternate paths. When behavior differs between clients, compare:
xopc profile list
xopc config pathThe most common cause is that two clients use different state directories, configuration files, or Gateway URLs.
For exact top-level fields, environment variables, and data locations, see Configuration reference and Data and file locations.