OpenProgram Docs

CLI command reference

Full flags: openprogram <command> -h, openprogram logs tail -h, or one generated page per command.

Global

CommandDoes
openprogramOpens the chat. A bare run first asks terminal UI or web UI, and launches a worker if none is running.
--print PROMPTOne-shot prompt; prints the reply and exits. Works in the current directory and runs until the model answers; a failure prints to stderr and exits non-zero. Run in its own process, it makes no model request beside the turn and leaves memory to the next worker: the conversation keeps the title cut from the prompt
--print, stoppedCtrl-C or SIGTERM stops the run, waits up to 30 seconds for it to stop (2 seconds once a second signal comes), writes the usage and transcript files and exits 128 plus the first signal's number (130 for Ctrl-C, 143 for SIGTERM, 129 for SIGHUP), whatever signal follows; a turn still busy then has its commands stopped
-p, --print --p is --print. With no prompt or - the prompt comes from stdin; a prompt plus piped stdin adds the input as a <stdin> block. An empty prompt exits 2
--output-format FORMATWhat --print writes on stdout: text (the reply), json (one record of how the run ended) or stream-json (one event per line, init first, result last); --include-partial-messages adds text and reasoning deltas to the stream
--permission-mode MODEPermission mode for this --print turn only: ask, acceptEdits, plan, auto, bypass. A call that would ask is refused, since nobody can answer; it shows on stderr and the run still exits 0
--continue, --session-id ID, --at REF--continue (-c) runs on this folder's latest conversation; --session-id starts a new one with that id and fails if it exists; --at with --resume or --continue picks a branch or a message to run after
--standalone, --no-project-binding, --no-webRun in this process instead of the App's Worker; keep a new conversation in the profile and write nothing in the folder; run the turn without web tools or the provider's own search
--json-schema PATHRequires JSON Schema output for --print; - reads stdin
--model PROVIDER/MODELModel for a --print run in a new conversation; the provider needs a key from providers login <provider> --api-key-stdin
--effort LEVELReasoning effort for one --print run: off (or none), minimal, low, medium, high, xhigh, max. Not saved; without it the Agent's effort applies
--usage-file PATHAfter --print, writes tokens, cost, model, rounds and how the run ended to PATH as JSON
--transcript-file PATHAfter --print, writes the turn to PATH as JSON lines: each model request with its tokens, the reply text, every tool call with its arguments and its result, in order, with times
--resume SESSION_IDResumes a session; ids from openprogram sessions list or the Web UI sidebar. With --print, an unknown id exits 1
--profile PROFILEState directory ~/.openprogram-<name>/; same as OPENPROGRAM_PROFILE
--no-alt-screenInline TUI, keeps terminal scrollback
--screen-readerInline assistive-technology mode, no mouse tracking
--versionPrints the version

Chat and running

CommandDoes
tui (alias chat)Launches the Ink terminal UI directly on Windows, macOS or Linux; terminals without raw input fall back to Rich. Takes --print, --json-schema, --model, --effort, --usage-file, --transcript-file, --resume, --no-alt-screen, --screen-reader.
webStarts the service and opens http://localhost:18100. --web-port (this run; default stored preference, then 18100), --no-browser. web auth-url prints an authenticated link.
acpAgent Client Protocol server. --agent, --permission.

Background service

CommandDoes
statusRunning or not: PID, port, uptime
stopStops it
restartAfter code or config changes
upgradeUpdates the code, restarts only if it works. --check, --dry-run, --channel, --no-restart, --yes, --json; upgrade status.
VerbDoes
worker runForeground, for debugging; Ctrl-C stops
worker startStarts in the background and returns
worker stopAn installed service stays stopped until the next start or login
worker restartStops and starts a fresh one
worker statusRunning or not, PID, port, uptime
worker installLogin service: launchd on macOS, systemd --user on Linux, Task Scheduler on Windows. Starts at login, restarts after a crash.
worker uninstallRemoves the service

Setup and configuration

CommandDoes
setupFirst-run wizard. menu opens the picker; a section name jumps there: model, tools, agent, skills, ui, memory, profile, search, tts, channels, backend.
configlist (value, group, apply mode), get <key>, set <key> <value>
portsShows or persists the single Web UI port. --port PORT, default 18100.
completionPrints a shell script: bash, zsh, powershell, pwsh
recordingsRecords and replays provider calls: status, record, replay, off, list, show, delete, prune
machinesThe machines OpenProgram reaches, where projects' folders are: list, add, remove, enable, disable, test
permissionscheck explains one operation, test validates expected rule decisions

providers

Alias secrets. With no verb: the status table for all credentials.

VerbDoes
login <provider>--api-key, --api-key-stdin for non-interactive keys; --account; --method forces a login method
logoutRemoves a provider's credentials
listCredential pools by account
available (search, catalog)Every configurable provider; optional QUERY
statusA provider's current credentials
useWhich account a provider uses
discover, adoptScan external credential sources, import them
doctorExpiry, refresh, cooldown, conflicts
setupInteractive first-time setup
aliasesProvider short names
accountslist, create, delete
migrateStored credentials to the current format

mcp

VerbDoes
token createCreates and prints a token for the local stdio server
serveAuthenticated MCP over local stdio; needs an exact OPENPROGRAM_MCP_TOKEN
list, showServers and status; one server's tools and schemas
addStdio command server; writes mcp_servers.json and starts it
rmStops and deletes the config
restart, enable, disabledisable stops it and keeps the config
editRemoved; reports to use add/rm or the MCP settings page
testStarts a config temporarily to check its tool list; writes nothing
openprogram mcp token create
export OPENPROGRAM_MCP_TOKEN="<paste the token printed above>"
openprogram mcp serve

token create prints the raw token once and does not set the variable. If one exists, reuse the saved token.

Content

agents

VerbDoes
list, show, addList, view, create
rmDeletes the agent and all its sessions
set-defaultDefault agent

sessions

VerbDoes
listEvery session across agents
archive, unarchiveHide from or return to the default list; deletes nothing
resumeAnswers a waiting session
attach, detachRoute a channel user into a session, remove it. --channel, --peer required; --account, --peer-kind.
aliasesAll session-to-channel-user aliases
exportMarkdown or HTML file: --format, --output
importClaude Code and Codex conversations; rerunning adds only what is new

subagent

VerbDoes
spawnNew branch in a session. --session, --prompt required; --parent-msg, --label, --agent (default main), --context inherit|clean or --clean, --no-json.
mergeMerges into a target with a new turn. --target, repeatable --branch SID required; --message, --agent, --base N, --no-json.
list, showJob resource views in a session

programs

VerbDoes
listKind, owner, load state, directory, exposure tiers
run <name> [operation]Entry in this process, or an application operation in the service. --arg key=value, --input, --project, --request-key, --provider, --model.
status, cancelAn application operation run
checkValidates; tests and commits a package so it can be called
install, uninstallDirectory, git URL or owner/repo. --upgrade, --replace, --trust.
enable, disableAn application's UI, resource, services and entries. Tools cannot be disabled.

skills

VerbDoes
listDiscovered skills
search, installFrom a discovery source, ClawHub by default
updateRe-pulls stale skills, comparing SKILL.md hashes
removeProject, user or remote-cache skills only
doctorScans skill directories

plugins

VerbDoes
list, searchInstalled plugins; configured marketplaces
installDeclarative plugin from npm, git or a path; a manifest that names code is refused
uninstall, updateRemove; re-install from npm
enable, disable, reloadreload re-reads manifest and files
inspectWhat a plugin may contain, what is refused, each entry's exposure tier

channels

VerbDoes
listEnable and configuration status per platform
setupWizard: pick a channel, log in (QR or token), bind an agent
accountsBot accounts: list, add, rm, login, set, group-users
bindingsRoutes inbound messages to agents
accesslist, approve <code>, allow <user_id>, revoke <user_id>. Unknown senders follow pairing; allow adds a known user directly. See Chat Channels.

memory

One workspace per instance, shared by every agent and conversation, including channels.

VerbDoes
statusContents, revision, writer health, pending turns
recall QUERY...Prints matching paragraphs
show PATH, edit PATHOne file; edit uses $EDITOR and lands only if valid
sleepReorganises topic files now. --model MODEL.
exporttar+gzip the directory. --out PATH, default ./openprogram-memory-<date>.tar.gz.

Recovery of content

CommandDoes
trashlist, restore: recoverable local deletions, no overwriting
backupcreate, list, restore, prune: tar.gz snapshots in <state>/backups/

Execution

CommandDoes
executionpause, continue, step, steer, cancel, fork, retry, wait-answer, wait-decline
jobslist, get: job resource views
transcriptRebuilds a --print run's transcript from its stored state, as --transcript-file writes it, for a run killed before it wrote one. --state DIR, --session ID, --output PATH
scheduler-worker (cron-worker)Foreground loop for one-time, recurring and monitor tasks. A failed daemon tick logs a warning and traceback to stderr, then evaluation continues at the next minute without replaying a failed initial @reboot tick. --once runs one tick and propagates failures; --list shows match state.

Maintenance

CommandDoes
doctorEnd-to-end health check. --json, --repair, credentials.
rescueDiagnoses problems, prints fix commands
diagnosticsRedacted support zip. --output PATH, default ./openprogram-diagnostics-<date>.zip. See Diagnostics bundle.
logslist; tail [name] with -n, -f; path [name]. Names: worker (default), runtime, ink.
self-updatestatus, repair: inspects or recovers an in-chat App update. See Upgrade.
devstatus, deploy, open, copy-models, auth-url. See Upgrade.
updateLeftover that currently raises ImportError. Use upgrade.
Last updated · 2026-11-25