Sophon Docs
Command Line

Command ReferenceNEW

Every Sophon CLI command and subcommand, grouped by area, with options and examples.

Every Sophon command follows the same shape:

sophon <group> <command> [arguments] [options]

Add --help to any group or command to see its subcommands, arguments, and options inline — e.g. sophon workflows --help or sophon nodes command --help. Global options (--gateway-url/-g, --format/-f, --json, --no-color, --verbose/-v) work on every command. See Configuration & Auth for those, and Scripting & Automation for piping --json output.

Running sophon with no arguments (or sophon chat) opens the interactive chat REPL. Everything below is the non-interactive command surface that talks to the Gateway's REST API.

Chat & sessions

CommandDescriptionExample
sophon chatOpen the interactive chat REPL (--session/-s, --agent/-a)sophon chat -a researcher
sophon sessions listList chat sessionssophon sessions list
sophon sessions get <id>Show session detailssophon sessions get abc123
sophon sessions rename <id> <title>Rename a sessionsophon sessions rename abc123 "Q3 planning"
sophon sessions archive <id>Archive a sessionsophon sessions archive abc123
sophon sessions delete <id>Delete a session (and its messages)sophon sessions delete abc123
sophon sessions events <id>List events for a sessionsophon sessions events abc123
sophon runs activeList active session runssophon runs active
sophon runs get <id>Show run detailssophon runs get run_42
sophon runs cancel <id>Cancel a runsophon runs cancel run_42
sophon runs wait <id>Long-poll until a run completes (--timeout)sophon runs wait run_42 --timeout 600
sophon tasks activeList active background taskssophon tasks active
sophon tasks recentList recently finished tasks (--limit)sophon tasks recent --limit 20
sophon tasks cancel <id>Cancel a running tasksophon tasks cancel task_7
sophon tasks watchStream task lifecycle events livesophon tasks watch
sophon plans cancel <id>Cancel an active plan via the chat hubsophon plans cancel plan_3

Agents & models

CommandDescriptionExample
sophon agents listList agentssophon agents list
sophon agents get <id>Show agent detailssophon agents get default
sophon agents createCreate an agent (--id, --name, --description, --system-prompt)sophon agents create --id researcher --name Researcher
sophon agents delete <id>Delete an agentsophon agents delete researcher
sophon agents soul <id>View or edit an agent's SOUL.md (--edit opens $EDITOR)sophon agents soul researcher --edit
sophon models listList configured model providerssophon models list
sophon models addAdd a provider (interactive)sophon models add
sophon models test <id>Test a provider connectionsophon models test anthropic-1
sophon models remove <id>Remove a providersophon models remove anthropic-1
sophon models gpuDetect GPU hardware and estimate model fit (--model, --quantization)sophon models gpu --model llama-3-70b
sophon models github-copilot loginGitHub Copilot device-flow login (--name)sophon models github-copilot login
sophon usage [providerId]View LLM usage and cost trackingsophon usage anthropic-1
sophon toolsList registered toolssophon tools --json

Channels & connections

CommandDescriptionExample
sophon channels listList configured channelssophon channels list
sophon channels addAdd a channel (interactive: telegram, slack, discord, email, …)sophon channels add
sophon channels test <id>Test a channel connectionsophon channels test slack-1
sophon channels enable <id>Enable a channelsophon channels enable slack-1
sophon channels disable <id>Disable a channelsophon channels disable slack-1
sophon channels remove <id>Remove a channelsophon channels remove slack-1
sophon channels routing <channel-id>Configure per-channel routing (--agent AGENT_ID, --dm-behavior B, --group-behavior B, --allow GROUP_ID …) — see Group Chatssophon channels routing slack-1 --agent support
sophon connect listList connected services and available connectorssophon connect list
sophon connect service <service>Connect via OAuth or token (--remote, --stdin)sophon connect service github
sophon connect test <service>Test a service connectionsophon connect test github
sophon connect revoke <service>Disconnect and revoke a servicesophon connect revoke github

Per-channel debounce overrides (enable/disable, quiet-window duration) are configured through the Dashboard or server config; explicit channels routing debounce flags are on the roadmap.

Skills, workflows & automation

CommandDescriptionExample
sophon skills listList installed skillssophon skills list
sophon skills get <id>Show skill detailssophon skills get pdf-tools
sophon skills delete <id>Delete a skillsophon skills delete pdf-tools
sophon skills marketplaceBrowse the marketplace (--search, --category)sophon skills marketplace --search pdf
sophon skills install <skillId>Install a marketplace skillsophon skills install pdf-tools
sophon skills uninstall <skillId>Uninstall a marketplace skillsophon skills uninstall pdf-tools
sophon skills generateGenerate a skill from a markdown doc (--from-doc, --name, --output)sophon skills generate --from-doc spec.md
sophon workflows listList workflowssophon workflows list
sophon workflows get <id>Show a workflow (with recent runs)sophon workflows get wf_1
sophon workflows createCreate from a JSON file (--file)sophon workflows create --file flow.json
sophon workflows delete <id>Delete a workflowsophon workflows delete wf_1
sophon workflows execute <id>Run a workflow manuallysophon workflows execute wf_1
sophon workflows history <id>View execution historysophon workflows history wf_1
sophon workflows versions <id>View version historysophon workflows versions wf_1
sophon workflows rollback <id> <version>Roll back to a versionsophon workflows rollback wf_1 3
sophon workflows draw <id>Draw the workflow graph in the terminal (--json)sophon workflows draw wf_1
sophon workflows test-node <json>Dry-run a single node with a JSON payloadsophon workflows test-node '{...}'
sophon workflows check-credentials <json>Verify required service credentialssophon workflows check-credentials '{...}'
sophon cron listList scheduled jobssophon cron list
sophon cron addAdd a job (--name, --cron, --message, --agent)sophon cron add --name daily --cron "0 7 * * *" --message "Brief me"
sophon cron delete <id>Delete a jobsophon cron delete daily
sophon cron pause <id> / resume <id>Pause or resume a jobsophon cron pause daily
sophon cron trigger <id>Trigger a job immediatelysophon cron trigger daily
sophon cron history <id>Show a job's run history (--limit)sophon cron history daily
sophon discuss listList discussion definitionssophon discuss list
sophon discuss show <id>Show a discussion definitionsophon discuss show disc_1
sophon discuss createCreate from a JSON file (--file)sophon discuss create --file panel.json
sophon discuss delete <id>Delete a definitionsophon discuss delete disc_1
sophon discuss run <definitionId>Run with a seed prompt (--seed, --rounds, --detach)sophon discuss run disc_1 --seed "Ship or wait?"
sophon discuss cancel <runId>Cancel a running discussionsophon discuss cancel run_9
sophon discuss runsList recent runs (--definition, --limit)sophon discuss runs --limit 5
sophon discuss show-run <runId>Show a run transcript and verdictsophon discuss show-run run_9

Approvals & tasks

CommandDescriptionExample
sophon approvals pendingList pending approval requestssophon approvals pending
sophon approvals decide <id>Approve or reject (--approve, --reject)sophon approvals decide ap_1 --approve
sophon approvals edit <id>Open the preview in $EDITOR, then approve with edits (--content)sophon approvals edit ap_1
sophon approvals historyView approval historysophon approvals history
sophon approvals watchWatch for new approval requests in real timesophon approvals watch

Task and run commands are listed under Chat & sessions above.

Memory & documents

CommandDescriptionExample
sophon memory listList memory entries (--agent, --scope)sophon memory list --scope shared
sophon memory addAdd an entry (--key, --content, --scope, --agent)sophon memory add --key tz --content "UTC+1"
sophon memory forget <id>Delete a memory entrysophon memory forget mem_5
sophon memory search <query>Search memorysophon memory search "billing address"
sophon memory reindexRebuild the memory graph (--llm for LLM extraction)sophon memory reindex --llm
sophon memory daily-logsShow recent daily logs (--agent, --days)sophon memory daily-logs --days 14
sophon docs listList uploaded documentssophon docs list
sophon docs upload <file>Upload and index a documentsophon docs upload report.pdf
sophon docs summarize <id>Summarize a documentsophon docs summarize doc_1
sophon docs ask <id> <question>Ask a question about a documentsophon docs ask doc_1 "What is the deadline?"
sophon docs search <query>Search documentssophon docs search "auth flow"
sophon docs delete <id>Delete a documentsophon docs delete doc_1

Voice & nodes

CommandDescriptionExample
sophon voice providers listList configured TTS providerssophon voice providers list
sophon voice providers voices <providerId>List voices for a provider (--language)sophon voice providers voices eleven-1
sophon voice providers addAdd a TTS provider (--name, --type, --api-key)sophon voice providers add --name El --type elevenlabs
sophon voice providers remove <providerId>Remove a TTS providersophon voice providers remove eleven-1
sophon voice providers test <providerId>Test a provider's healthsophon voice providers test eleven-1
sophon voice transcribe <file>Transcribe an audio file to textsophon voice transcribe call.mp3
sophon voice runtime listList voice runtimes on nodessophon voice runtime list
sophon voice runtime start/stop/interrupt <nodeId>Control the voice runtime on a nodesophon voice runtime start my-mac
sophon nodes listList paired desktop nodessophon nodes list
sophon nodes pendingList nodes awaiting pairing approvalsophon nodes pending
sophon nodes pairRequest pairing (--name)sophon nodes pair --name my-mac
sophon nodes approve <id> / revoke <id>Approve or revoke a nodesophon nodes approve my-mac
sophon nodes permissions <id>Set permission scopes (--scopes)sophon nodes permissions my-mac --scopes shell screenshot
sophon nodes rotate-token <id>Issue a fresh node tokensophon nodes rotate-token my-mac
sophon nodes command <id> <kind>Enqueue a command — screenshot, shell, file (--payload)sophon nodes command my-mac screenshot
sophon nodes wait <commandId>Long-poll for a command resultsophon nodes wait cmd_5

MCP & webhooks

CommandDescriptionExample
sophon mcp listList configured MCP serverssophon mcp list
sophon mcp get <name>Show one server's detailssophon mcp get github
sophon mcp addRegister a server (--name, --transport, --endpoint, --risk, --arg)sophon mcp add --name fs --transport stdio --endpoint mcp-fs
sophon mcp remove <name>Remove a serversophon mcp remove fs
sophon mcp reconnect <name>Reconnect a serversophon mcp reconnect fs
sophon mcp tools <name>List tools exposed by a serversophon mcp tools fs
sophon mcp bundlesList discoverable MCP bundlessophon mcp bundles
sophon mcp serveRun Sophon as an MCP server over stdio (--name, --no-resources)sophon mcp serve
sophon webhooks listList webhookssophon webhooks list
sophon webhooks createCreate a webhook (--name, --url, --secret)sophon webhooks create --name ci --url https://…
sophon webhooks get <id>Show a webhooksophon webhooks get wh_1
sophon webhooks update <id> <json>Update via a JSON bodysophon webhooks update wh_1 '{"enabled":false}'
sophon webhooks delete <id>Delete a webhooksophon webhooks delete wh_1
sophon webhooks test <id>Send a test payloadsophon webhooks test wh_1
sophon webhooks toggle <id>Enable or disable a webhooksophon webhooks toggle wh_1
sophon webhooks history <id>Show delivery historysophon webhooks history wh_1
sophon push registerRegister an Expo push token (--token, --platform, --device-id)sophon push register --token … --platform ios
sophon push unregisterRemove this devicesophon push unregister
sophon push statusShow registration statussophon push status
sophon push preferences get/setGet or set notification preferencessophon push preferences get
sophon push testSend a test notificationsophon push test

Diagnostics & system

CommandDescriptionExample
sophon statusShow overall system statussophon status
sophon healthShow detailed component healthsophon health
sophon doctorDiagnose configuration — gateway, auth, providers, Docker, data dir, config (--verbose for detailed per-check output)sophon doctor --verbose
sophon homeShow the home feed (sessions, tasks, insights, channel health)sophon home
sophon insights showFull insights payloadsophon insights show
sophon insights metricsRaw metrics onlysophon insights metrics
sophon canvas follow <sessionId>Subscribe to canvas frames for a sessionsophon canvas follow sess_1
sophon canvas list <sessionId>List persisted canvas framessophon canvas list sess_1
sophon canvas action <sessionId> <frameId> <action>Submit a canvas action (--context)sophon canvas action sess_1 fr_1 submit
sophon claude-code sessionsList ClaudeCode IDE sessionssophon claude-code sessions
sophon claude-code send <sessionId> <message>Send a message to a sessionsophon claude-code send cc_1 "run tests"
sophon claude-code end <sessionId>End a sessionsophon claude-code end cc_1
sophon claude-code streamFollow a ClaudeCode event streamsophon claude-code stream
sophon completions <shell>Generate completion scripts (bash, zsh, fish, powershell)sophon completions zsh
sophon upgradeCheck for Sophon updatessophon upgrade

Admin & accounts

CommandDescriptionExample
sophon onboardFirst-run setup wizard (--non-interactive, --skip-profile)sophon onboard
sophon login / register / logoutSign in, create an account, or sign outsophon login
sophon whoamiShow the current usersophon whoami
sophon profile showShow your personalization profilesophon profile show
sophon profile statusWhether the personalization wizard is neededsophon profile status
sophon profile wizardRun the personalization wizard (--from-file, --non-interactive)sophon profile wizard
sophon profile setSet a single field (--field name=value)sophon profile set --field preferredName=Alex
sophon profile skip / resetSkip or reset the profile (reset --yes)sophon profile reset --yes
sophon config list / get / set / path / validate / resetManage ~/.sophon/config/cli.jsonsophon config set defaultAgent researcher
sophon licenseView license info (license validate to validate)sophon license
sophon admin users / rolesList users or roles (Admin role)sophon admin users
sophon admin auditView the audit log (--limit, --action)sophon admin audit --limit 50
sophon tenant listList tenants (Enterprise)sophon tenant list
sophon tenant show <id>Show tenant detailssophon tenant show acme
sophon tenant createCreate a tenant (interactive)sophon tenant create
sophon tenant update <id>Update (--name, --max-users, --description)sophon tenant update acme --max-users 100
sophon tenant enable/disable <id>Enable or disable a tenantsophon tenant disable acme
sophon tenant delete <id> --confirmSoft-delete a tenantsophon tenant delete acme --confirm
sophon tenant add-member <id> --email --roleAdd a membersophon tenant add-member acme --email a@b.com --role Viewer
sophon tenant remove-member <id> <userId>Remove a membersophon tenant remove-member acme u_1
sophon tenant list-members <id>List tenant memberssophon tenant list-members acme

See Configuration & Auth for config, env overrides, and remote-gateway setup.

Advanced

Self-hosting, service management, backups, ops, and the local developer toolkit.

CommandDescriptionExample
sophon startStart the Sophon Gateway (--port, --open-browser)sophon start --port 9000
sophon stopSignal the Gateway to shut downsophon stop
sophon service install / uninstall / statusManage Sophon as a system service (systemd, launchd, Windows Service)sophon service install
sophon backupBack up ~/.sophon (--output)sophon backup
sophon restore <file>Restore ~/.sophon from a backupsophon restore backup.zip
sophon snapshotCreate a verified snapshot (--description)sophon snapshot --description "pre-upgrade"
sophon snapshot-restore <archive> <manifest>Restore from a snapshotsophon snapshot-restore snap.zip snap.json
sophon snapshot-listList available snapshotssophon snapshot-list
sophon ops statusFull system diagnostics (admin/SRE)sophon ops status
sophon ops doctorRun server self-diagnosticssophon ops doctor
sophon ops logsTail server logs (--level, --tail)sophon ops logs --tail 200 --level error
sophon ops configInspect server runtime configsophon ops config
sophon ops action <action>Run a named ops action (reload-config, reload-runtime, restart-process)sophon ops action reload-config
sophon dev new <type> <name>Scaffold a skill, agent, plugin, or appsophon dev new skill my-skill
sophon dev validate [path]Validate a project's structure and manifestsophon dev validate
sophon dev build [path]Build a distributable package (--output)sophon dev build
sophon dev install [path]Install a project locally for testingsophon dev install
sophon dev test [path]Run a project's tests (--integration, --gateway)sophon dev test

sophon start, sophon stop, sophon service, the backup/snapshot family, and sophon dev are intended for self-hosted installs and local development. On the personal tier the Gateway is managed for you. See Configuration & Auth.