Skip to content

Getting Started

Use this page as the full map: what runs, setup modes, surfaces, and where to go next.

If you have not tried xopc yet, start with the PC Desktop app for the friendliest path, or First 5 Minutes for a terminal-first path — both cover the actual install commands step by step.

Your first run needs only model → agent → session. Add a Project / Goal when work must survive across sessions, Notes / Workspace for durable material, and a Workflow / Automation when execution repeats or fans out. See The Continuous Work Model for the complete model.

What xopc runs

xopc is one package with several surfaces:

SurfaceEntry pointRequires gateway
CLI one-shotxopc agent -m "..."No
Interactive CLIxopc agent -iNo
Local TUIxopc or xopc tuiNo
PC Desktop appGitHub ReleasesBundled gateway
Gateway consolexopc gateway, then open the printed URLYes
Gateway TUIxopc tui --gateway or xopc tui --url ...Yes
ChannelsTelegram, Weixin, Feishu/Lark configs under channels.*Yes

Requirements

  • Node.js 22 or newer for the CLI package.
  • At least one model provider key, local model server, or configured OpenAI-compatible endpoint.
  • pnpm only when building from this repository.

Setup modes

GoalCommandNotes
Fast local trialxopc onboard --quickModel credentials only; skips gateway and channels
Guided first runWeb console onboarding or xopc onboardModel first, optional personal profile, then chat
Create base filesxopc setupCreates config/workspace skeleton only
Configure a model laterxopc providers set-key <provider> and xopc models set <provider>/<model>See Configure your first model

Configuration is stored in ~/.xopc/xopc.json by default. Override it with XOPC_CONFIG or XOPC_CONFIG_PATH.

Choose the next surface

NeedStart here
Easiest first runPC Desktop app
Fastest terminal first runFirst 5 Minutes
Browser chat, settings, logsGateway
Telegram botConnect Telegram
Mobile accessMobile app and Remote access
Another dedicated agentCreate a second agent
Gateway on another deviceExpose the gateway safely
Broken setupDiagnose setup issues

Core paths

TopicPage
CLI commandsCLI
TUI behaviorTerminal UI
Configuration fieldsConfiguration and Configuration reference
Models and providersModels
ChannelsChannels
ToolsTools
SkillsSkills
ExtensionsExtensions
Session routingRouting system
Projects, goals, and notesProjects, Goals, and Notes

Development from source

bash
git clone https://github.com/xopcai/xopc.git
cd xopc
pnpm install
pnpm run dev -- --help
pnpm run dev:init        # optional: create isolated ~/.xopc-dev state
pnpm run dev:gateway     # gateway from source using ~/.xopc-dev and info logs
pnpm run build

Use pnpm run dev:gateway -- --port 18791 (or another option after --) if your normal gateway is already using the default port.

Common checks:

bash
pnpm test
pnpm run typecheck
pnpm run docs:build

Troubleshooting

SymptomCheck
Config does not loadxopc config validate
Model calls failxopc models status and provider credentials
Gateway does not respondxopc gateway status and xopc gateway health
Channel does not replyxopc channels show <channel> and gateway logs
Unknown local failurexopc doctor, then xopc logs tail

Released under the MIT License.