Skip to content

CLI commands

Run xopc with no command to open the terminal interface. Use subcommands for setup, scripting, maintenance, and diagnosis.

Basics

bash
xopc --help
xopc <command> --help
xopc --version

Global options such as --config <path> and --workspace <path> select a different configuration or workspace for that invocation. Prefer profiles when you need a reusable isolated setup.

Command overview

CommandDescription
initInitialize state, configuration, and the Agent workspace
setupCreate the base configuration and workspace
profileManage separate xopc state profiles
onboardRun the guided first-time setup
channelsConfigure messaging channels and pairing
authManage authentication credentials
agentSend one message or start interactive Agent chat
tuiOpen the full-screen terminal interface
resumeResume a previous TUI Session
tunnelManage public tunnel access
gatewayRun and manage the Gateway
historyExport Session history for external tools such as ctx
sessionList and manage Sessions
projectManage long-running Projects
doctorDiagnose installation, data, and security issues
supportCreate a redacted diagnostic report for an xopc problem
runtimeManage Node.js and Python tool runtimes
platformConnect to XOPC Cloud or an enterprise platform
updateCheck for and install updates
logsQuery and follow logs
configRead, edit, and validate configuration
imageInspect image provider availability
modelsList models and choose defaults
providersManage provider credentials
voiceConfigure text-to-speech output
searchConfigure web-search providers
skillsInstall, configure, audit, and test Skills
connectorsBrowse and install connector capabilities
tailscaleInspect Tailscale access status
browserManage browser automations and dependencies
agentsCreate, list, and remove Agents
extensionsInstall and manage extensions

This table follows the current top-level xopc --help. Run the command's own --help for available options and examples.

Common tasks

bash
# First setup
xopc onboard --quick

# Start or send Chat
xopc
xopc agent -m "Summarize this folder"

# Model status
xopc providers list
xopc models status

# Gateway
xopc gateway
xopc gateway health

# Platform connection
xopc platform status
xopc platform connect https://xopc.example.com

# Configuration and diagnostics
xopc config validate
xopc doctor
xopc logs tail

To make XOPC Sessions searchable in ctx, see Export history to ctx.

Platform connection, discovery, and runtime registration are documented in XOPC Platform.

Profiles and paths

Profiles keep separate state, Agents, credentials, and Sessions for different contexts. Run xopc profile --help to create or select one. Always confirm the active paths when a command appears to use different data:

bash
xopc profile list
xopc config path

Script-friendly output

Commands that support --json should be preferred in scripts. Check exit status, avoid parsing human tables, and never print unmasked credentials. Use --help on the exact command to confirm its JSON support.

Safety

  • Read confirmation prompts before deletion, cleanup, token rotation, or update actions.
  • Avoid passing secrets directly on the command line on shared systems.
  • Verify the current profile, Agent, workspace, and Gateway before commands with external side effects.
  • Use --help from the installed version; online documentation may describe a newer release.

Released under the MIT License.