sophon-cli
2.2.1
See the version list below for details.
dotnet tool install --global sophon-cli --version 2.2.1
dotnet new tool-manifest
dotnet tool install --local sophon-cli --version 2.2.1
#tool dotnet:?package=sophon-cli&version=2.2.1
nuke :add-package sophon-cli --version 2.2.1
sophon — the Sophon command-line interface
Sophon is an enterprise-grade AI personal assistant — "an intelligent operating system for your digital life." This package is its cross-platform CLI, distributed as a .NET global tool.
Install
dotnet tool install -g sophon-cli
To upgrade:
dotnet tool update -g sophon-cli
Requires the .NET 10 SDK on your machine.
Quick start
# First-run setup wizard (guides you through your first model provider + channel)
sophon onboard
# Start the local Sophon Gateway (or point at a remote one)
sophon start
# Open the interactive chat REPL — streaming tokens, inline approvals, tool progress
sophon
If you run sophon with no arguments, you drop straight into a terminal chat that feels like Claude Code or GitHub CLI: token-by-token streaming, plan trees that update in place, tool-progress lines, inline approval cards, and Ctrl+C to cancel (once to cancel the task, twice to exit).
Full-screen chat (default)
On capable terminals sophon opens a full-screen chat (alternate buffer, like Claude Code or opencode): an app-managed scrollback you scroll with the wheel/PgUp/PgDn, a live subagent status band, bottom-stack approval and question cards with live countdowns, /theme with live full-frame preview, session and agent pickers behind bare /resume and bare /agent, a permissions dialog behind bare /permissions, choice dialogs behind bare /mode, /trust and /export (the classic and pinned surfaces show the same lists as arrow-key prompts, plus bare /save, /canvas and /model, and bare /effort as a list of Default, Auto and Low…Max with the levels the model does not accept greyed out; on full screen bare /effort opens the /model overlay on its Effort row), and a /plan overlay. Non-capable terminals (redirected stdio, the Dashboard's embedded terminal, screen readers, tiny windows) automatically fall back to the previous pinned/classic surfaces — nothing to configure. The one loud case: a terminal that passes every probe but where VT modes can't actually be enabled gets an explicit error with the opt-out, instead of a silent fallback (see the fallback chain in docs/CLI.md).
The composer sits on a tinted input band. Above it a context line shows the folder the chat works in, the trusted branch with a * for uncommitted changes and its open pull request (~/src/demo [⎇ main*] [#42], on a Gateway that serves workspace git status), and the session's usage (ctx 11% · Session: $0.13 used). The footer leads with the permission mode and the approval policy (Interactive · Manual Approval · / commands · ? help) and shows the model the last reply ran on; ? on an empty composer opens the key help. A new session opens on a short welcome (an opener for the time of day, Getting started and one random tip), which goes once the conversation starts. Where the terminal can reset it afterwards (Windows Terminal, VS Code, iTerm2, WezTerm, Ghostty, kitty, Alacritty, foot, GNOME Terminal), the chat sets the terminal's own background to the theme's while it runs, so no frame of the profile colour shows around it; opt out with SOPHON_CLI_TERMINAL_BACKGROUND=0 or "terminalBackground": false.
Opt out with SOPHON_CLI_FULLSCREEN=0 (env) or "fullScreen": false in ~/.sophon/config/cli.json; the v2 pinned-input surface is unchanged underneath. If a crash ever leaves your terminal in a broken state (or tinted with the theme's background), sophon doctor --reset-terminal restores it.
Key bindings in chat
| Key | Action |
|---|---|
↩ |
Send (with a picker open: select) |
⌥↩ |
Insert newline — full-screen only; in the pinned/classic fallback use ⇧↩ |
↑ / ↓ |
Walk input history; with a picker open: move the selection |
Wheel / PgUp / PgDn |
Scroll the transcript (full-screen) |
Home / End |
Jump the transcript to top/bottom when the draft is empty; otherwise cursor movement |
o |
Expand/collapse the newest folded tool-output card (empty draft) |
⌃← / ⌃→ |
Move by word (also ⌥← / ⌥→ and ⌥B / ⌥F) |
⌃A / ⌃E |
Jump to the start / end of the current line |
⌃⌫ / ⌥⌫ |
Delete the previous word (stops at punctuation) |
⌃Delete / ⌥D |
Delete to the end of the next word |
⌃K |
Delete to the end of the line |
⌃W / ⌃U |
Delete back to the previous space / clear current line |
⌃C |
Clear draft, or cancel the running task; twice in quick succession exits |
⌃V / ⌥V |
Paste the clipboard image as [Image #n], sent with the message (in Windows Terminal use ⌥V) |
⌃T |
Attach an image |
Tab |
Accept slash menu / mention completion; with an approval card up: focus it |
A / R / E / S |
Approve / Reject / Edit / Skip a pending approval card (empty draft) |
? |
Key help (full-screen, empty composer; it types ? otherwise) |
Discovery
- Type
/at column 0 → slash menu opens with fuzzy filter, ordered bySlashCommandCatalog.DisplayOrder(not registration order) so the most-used commands lead /themeworks on every surface (bare: a list of the themes);F2toggles select & copy mode on the full-screen surface- v2.2 removed
/provider,/quit,/select,/tokens,/info,/tasks,/approvals,/agents,/sessionsand/auto-approve; for one release, typing one prints what replaced it (see docs/CLI.md Slash commands) - Type
@anywhere → file-mention popover with type-to-filter (@agent:/@session:categories are on the roadmap) - Multi-line paste auto-detected via bracketed paste (pinned and classic too); a dragged-in image file attaches as
[Image #n]
Themes
Ten themes: sophon-code (the default), sophon-code-light, sophon-code-dimmed, sophon-code-high-contrast, catppuccin-mocha, dracula, and the Sophon Core four named after the Dashboard's themes, core-light, core-dark, core-extra-dark and graphite (the pre-v2.2.0 daylight, indigo-core and deep-void still work). /theme opens a picker (full-screen: a live preview, Enter persists, Esc reverts; classic re-themes at once; pinned applies it on the next run), /theme <name> or sophon config set theme <name> sets one, and the choice is saved as theme in ~/.sophon/config/cli.json. SOPHON_THEME=<name> overrides the saved theme; NO_COLOR=1 strips all color. See docs/CLI.md Themes.
Opting out
Every surface layer has its own escape hatch, env always winning over cli.json: SOPHON_CLI_FULLSCREEN=0 / "fullScreen": false (back to pinned input), SOPHON_CLI_PINNED=0 / "pinnedInput": false (back to the classic prompt), SOPHON_CLI_V2=0 / "v2": false (legacy CLI).
Workspace binding: once the Gateway serves the coding tools, the chat binds each session to the folder it runs in (the git top-level) and asks once per folder whether to trust it (y trust, n keep untrusted, q don't bind this run); /trust changes the answer later. A trusted folder's AGENTS.md (else CLAUDE.md) steers the agent, and /init asks the agent to write one (you approve the file before it is written). Turn binding off with SOPHON_CLI_WORKSPACE=0 or "workspaceBinding": false in cli.json (=1 / true turns it on before then).
Terminal title: the chat REPL names the terminal tab with a state glyph — ✦ Sophon when idle, an animated braille spinner while working, and ✦ <session title> - Sophon once the session is titled (default-on; suppressed when output is redirected / TERM=dumb / embedded terminal). Opt out with SOPHON_CLI_TERMINAL_TITLE=0 or "terminalTitle": false in cli.json.
For the full reference (slash commands, fallback chain, scripting, embedded-terminal degradation, troubleshooting, roadmap), see docs/CLI.md.
What you can do from the CLI
Every surface the Sophon Dashboard exposes is available as a sophon subcommand.
| Area | Command |
|---|---|
| Chat | sophon (REPL), sophon chat, -m <model> for either; headless sophon -p "…" and sophon exec (NDJSON, exit codes, --allow rules, -m/--model-role/--allow-fallback) |
| Sessions | sophon sessions list\|get\|rename\|archive\|delete |
| Agents | sophon agents list\|get\|create\|soul |
| Models & providers | sophon models list [--details]\|add\|test\|remove\|set-default\|priority\|enable\|disable, sophon models embeddings status\|rebuild, sophon models github-copilot login |
| Approvals (HITL) | sophon approvals pending\|decide\|edit\|history\|watch |
| Tasks / runs / plans | sophon tasks active\|recent\|cancel\|watch, sophon runs active\|get\|cancel\|wait, sophon plans list\|show\|resume\|retry\|cancel |
| Channels | sophon channels list\|add\|test\|enable\|disable\|remove |
| Connections (OAuth + keys) | sophon connect list\|service\|test\|revoke |
| Skills & marketplace | sophon skills list\|install\|uninstall\|generate\|marketplace |
| Workflows | sophon workflows list\|create\|validate\|execute\|versions\|rollback\|test-node\|check-credentials |
| Cron | sophon cron list\|add\|pause\|resume\|trigger\|history\|delete |
| Documents & memory | sophon docs upload\|ask\|summarize\|search, sophon memory list\|add\|search\|daily-logs |
| Voice | sophon voice providers list\|add, sophon voice transcribe, sophon voice runtime start\|stop |
| Nodes (remote desktop) | sophon nodes pair\|approve\|permissions\|command\|wait |
| MCP | sophon mcp list\|add\|reconnect\|tools\|bundles |
| Webhooks | sophon webhooks list\|create\|toggle\|history\|test |
| Insights & home | sophon insights show, sophon home |
| Push notifications | sophon push register\|preferences\|test |
| Canvas / ClaudeCode / PTY | sophon canvas follow, sophon claude-code stream, sophon pty open |
| Ops (admin) | sophon ops status\|logs\|doctor\|action |
| CLI config | sophon config get\|set\|list\|path\|validate\|reset |
Run sophon --help for the full tree, or sophon <command> --help for any subcommand.
Inside the chat REPL
The chat REPL accepts normal messages and slash commands:
sophon (default) > /plan # show the current execution plan
sophon (default) > /context # this session, its context window, tokens, cost and model
sophon (default) > /cancel # cancel the running task or plan
sophon (default) > /retry # resume, retry or continue the latest stopped plan
sophon (default) > /attach ./a.pdf # upload + send a file in your next message
sophon (default) > /save 1 # download the Nth attachment from the last batch (bare, with several: pick one)
sophon (default) > /mode # pick this session's execution mode (default, graph or classic); /mode graph sets it
sophon (default) > /effort # pick this chat's effort (Default, Auto, Low…Max); /effort high sets it, /effort reset inherits, /effort save makes it your default
sophon (default) > /thinking # replaced by /effort: it only says which /effort to use and changes nothing
sophon (default) > /trust # trust, keep untrusted or unbind this folder; /trust status prints it
sophon (default) > /export # pick md, json or txt, written to ./sophon-<id>-<time>.<ext>; /export md prints to stdout
sophon (default) > /model # pick the model for this chat (full-screen: the routing overlay); /model list lists them
sophon (default) > /new # start a fresh session
sophon (default) > /resume <id> # resume an existing session (bare /resume: pick one)
sophon (default) > /agent <id> # switch this chat's agent (bare /agent: pick one)
sophon (default) > /permissions # mode, approval policy, plan approval and rules (a dialog; /permissions show prints them)
sophon (default) > /permissions auto-approve on medium # auto-approve up to medium risk (replaces /auto-approve)
sophon (default) > /permissions allow-all # every tool call runs without a card until it expires (host opt-in; see docs/CLI.md)
sophon (default) > /help # full slash-command list
Press Ctrl+C once to cancel the currently running task or plan without leaving the REPL; press it again within two seconds to exit.
Configuration
The CLI stores its own settings at ~/.sophon/config/cli.json. Inspect or change them with:
sophon config list
sophon config set gatewayUrl https://sophon.example.com
sophon config set defaultModel auto:balanced # the model of conversations this CLI creates
sophon config path
Environment overrides (take precedence over the config file):
| Variable | Purpose |
|---|---|
SOPHON_GATEWAY_URL |
Gateway base URL |
SOPHON_AUTH_TOKEN |
Bearer token used by the CLI |
SOPHON_FORMAT |
Default output format (table, json, yaml, csv) |
The CLI and the Sophon Gateway/Dashboard share ~/.sophon/ as a user-owned data directory — see the Sophon data directory reference.
Links
- Product: https://sophon.buildersoft.io
- Documentation: https://sophon.buildersoft.io/docs
- Terms / EULA: https://sophon.buildersoft.io/terms
- Issues: https://github.com/buildersoftio/sophon/issues
License
Proprietary — Copyright (c) Buildersoft LLC. Use of this software is governed by the Sophon EULA. See LICENSE.txt.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.2.2 | 127 | 11/11/2026 |
| 2.2.1 | 115 | 11/11/2026 |
| 2.2.0 | 125 | 11/10/2026 |
| 2.1.2 | 130 | 11/1/2026 |
| 2.1.1 | 132 | 10/30/2026 |
| 2.1.0 | 114 | 10/30/2026 |
| 2.0.0 | 176 | 9/19/2026 |
| 1.15.0 | 255 | 7/29/2026 |
| 1.14.0 | 160 | 7/14/2026 |
| 1.13.5 | 168 | 7/9/2026 |
| 1.13.0 | 156 | 7/5/2026 |
| 1.12.0 | 165 | 6/23/2026 |
| 1.11.0 | 175 | 6/12/2026 |
| 1.10.0 | 169 | 6/4/2026 |
| 1.9.1 | 161 | 5/22/2026 |
| 1.9.0 | 160 | 5/22/2026 |
| 1.8.0 | 172 | 5/14/2026 |
| 1.7.0 | 152 | 5/14/2026 |
| 1.6.0 | 162 | 5/10/2026 |
| 1.5.0 | 164 | 5/10/2026 |