Opens the chat. A bare run first asks terminal UI or web UI, and launches a worker if none is running.
--print PROMPT
One-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, stopped
Ctrl-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 FORMAT
What --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 MODE
Permission 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-web
Run 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 PATH
Requires JSON Schema output for --print; - reads stdin
--model PROVIDER/MODEL
Model for a --print run in a new conversation; the provider needs a key from providers login <provider> --api-key-stdin
--effort LEVEL
Reasoning 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 PATH
After --print, writes tokens, cost, model, rounds and how the run ended to PATH as JSON
--transcript-file PATH
After --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_ID
Resumes a session; ids from openprogram sessions list or the Web UI sidebar. With --print, an unknown id exits 1
--profile PROFILE
State directory ~/.openprogram-<name>/; same as OPENPROGRAM_PROFILE
--no-alt-screen
Inline TUI, keeps terminal scrollback
--screen-reader
Inline assistive-technology mode, no mouse tracking
--version
Prints the version
Chat and running
Command
Does
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.
web
Starts 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.
Rebuilds 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
Command
Does
doctor
End-to-end health check. --json, --repair, credentials.
rescue
Diagnoses problems, prints fix commands
diagnostics
Redacted support zip. --output PATH, default ./openprogram-diagnostics-<date>.zip. See Diagnostics bundle.