OpenProgram Docs

Global flags#

OpenProgram — build, run, and chat with agentic programs.

Global flags of the bare openprogram command. Each subcommand has its own page in this section.

Option Description
--print, -p PROMPT One-shot prompt; send, print reply, exit. '-' or no value reads the prompt from stdin; text with piped stdin appends it as a <stdin> block
--standalone Run in this process instead of the running App's Worker
--output-format OUTPUT_FORMAT What a --print call writes on stdout: text (the reply), json (one record of how the run ended) or stream-json (one event per line, init first and result last)
--include-partial-messages With --output-format stream-json, also stream text and reasoning deltas
--permission-mode MODE Permission mode for this --print turn only (ask, acceptEdits, plan, auto, bypass); not saved to the conversation
--continue, -c Continue the most recently updated conversation of this folder's project
--session-id ID Start the --print conversation with this id; fails if it exists
--at REF With --resume or --continue: run on this branch, or after this message (a message inside a branch starts a new branch)
--no-project-binding Do not bind a new --print conversation to this folder: nothing is written here, the conversation is kept in the profile
--no-web Run this --print turn without any web tool (search, fetch) and without the provider's own web search
--version show program's version number and exit
--json-schema PATH Require JSON Schema output for a one-shot --print call; '-' reads stdin
--model PROVIDER/MODEL Model for a one-shot --print call in a new conversation, e.g. anthropic/claude-sonnet-4-6; the provider needs a saved key (openprogram providers login <provider> --api-key-stdin)
--effort LEVEL Reasoning effort for a one-shot --print call (off, minimal, low, medium, high, xhigh, max; none is off); without it the Agent's own effort applies. Not saved to the conversation
--usage-file PATH After a one-shot --print call, write its token usage, cost, model, rounds and how it ended to PATH as JSON
--transcript-file PATH After a one-shot --print call, write its turn to PATH as JSON lines: every model request, reply text, tool call with its arguments and tool result, in order, with times
--profile PROFILE State-dir profile name. Reroutes config/sessions/logs to ~/.openprogram-<name>/ so parallel workspaces don't share state. Env: OPENPROGRAM_PROFILE.
--resume SESSION_ID Resume a prior CLI chat session. Find ids via openprogram sessions list or the Web UI sidebar.
--no-alt-screen Render the TUI inline and preserve terminal scrollback.
--screen-reader Use an assistive-technology-friendly inline TUI without mouse tracking.