Skip to Content

Binary command reference

TL;DR

The cmdop binary is built with Cobra. With no subcommand, it starts interactive AI chat (same as cmdop chat). Help output splits Commands: (daily use) and Advanced: (config, service, MCP, completion, …). This page mirrors that structure; authoritative source is the Go sources under cmdop_go/go/cmd/cmdop.

What happens when I run cmdop with no arguments?

The root command runs runChat — Bubble Tea TUI in a real terminal, or line-based chat when stdin is not a TTY. Use cmdop chat --plain to force line mode. Session resume: cmdop --resume=<id> (ID printed when you leave the TUI).

What are the global flags?

FlagPurpose
--debugVerbose logs, console format
--log-leveldebug | info | warn | error
--log-formatjson | console
--resumeResume TUI chat by session id

Main command group (Cobra: “Commands:”)

AI chat & assistants

CommandSummary
cmdopDefault: interactive AI chat
cmdop chatSame as above; flags: --model, --plain, --tui, --tools, --prompt, …

Authentication & connection

CommandSummary
cmdop loginOAuth device flow (--dev, --tray, --no-agent, …)
cmdop logoutClear credentials
cmdop connectRegister this machine and open remote access (prints web terminal URL)

Background agent

CommandSummary
cmdop agent startStart daemon (--foreground, --with-mcp, …)
cmdop agent stopStop agent
cmdop agent statusStatus (--debug for details)
cmdop agent restartRestart
cmdop agent logsLog tail (-n, -f, --raw)

Updates & observability

CommandSummary
cmdop updateCheck / install updates; sub: check, apply, schedule
cmdop monitorTUI: logs, metrics, gRPC
cmdop logsDaemon logs (-f, -n, --open, --path)
cmdop doctorDiagnose PATH, login, agent (--install-cli)
cmdop setupInstall binary into user PATH (~/.local/bin)
cmdop versionVersion metadata

Skills, models, local utilities

CommandSummary
cmdop skills …list, show, install, create, check, …
cmdop run …Run a skill
cmdop modelsDefault LLM (when authenticated)
cmdop highlight …Syntax-highlight files

OS automation, triggers, secrets, media

CommandSummary
cmdop os …Desktop automation (windows, keyboard, mouse, screenshots, …)
cmdop trigger …Scheduled agent runs
cmdop password …Protect SDK attach: set, clear, status
cmdop ffmpeg …FFmpeg install / probe / transcode helpers

Other top-level commands in the main group include tui (interactive dashboard; may be build-tagged) and models — see cmdop --help on your build.

Advanced command group (Cobra: “Advanced:”)

Configuration

CommandSummary
cmdop configNo args: settings TUI; else show, get, set <key> <value>
cmdop config set mode <dev|prod>Server mode (deprecated hidden: config set-mode)

Auth namespace

CommandSummary
cmdop auth statusExtended status (daily use: prefer login / logout)

Service & sessions

CommandSummary
cmdop service …install, uninstall, start, stop, restart, status (--system)
cmdop session …create, list, attach, detach, destroy, save, restore

Integrations & tooling

CommandSummary
cmdop mcp …stdio, tools — MCP for Claude Desktop / Cursor
cmdop completion …Shell completion
cmdop debug …Developer diagnostics
cmdop serve …Advanced local server
cmdop extract …Advanced extract helpers

Install and quick start

Chat flags and slash commands

Remote connection flow

Last updated on