Answer: Use opencode run to submit a prompt without opening the interactive interface; it is designed for scripts, CI jobs, and other workflows that need model output directly in the terminal. Status: Confirmed Entry: tool/opencode/agents-and-automation/run-non-interactive Revision: 1 Digest: sha256:44a805afcbd4801d (changes whenever the content changes) Timeline: Created: 2026-11-13T03:56:06Z Last changed: 2026-11-13T03:56:06Z Last verified: 2026-11-20T13:44:54Z Next check: 2026-11-21T13:44:54Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of command | opencode run | [1] | 2026-11-20 example | opencode run "Explain this repository" | [1] | 2026-11-20 Sources: [1] opencode. "CLI intro | OpenCode". https://opencode.ai/docs/cli/ Role: primary. Accessed: 2026-11-20T13:44:54Z Quote: "Use opencode run to submit a prompt without opening the interactive interface." (Supports: command) Quote: "opencode run "Explain this repository"" (Supports: example) Snapshot SHA-256: 5522f9c7384c5ff25011aaf2de4e8d5ed394f96f342588d775a3170f8b510486 (captured 2026-11-18T13:38:33Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:38:33Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:44:54Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:44:54Z Last attempt: 2026-11-20T13:44:54Z Notes and limitations: Extracted automatically from a single official source (section "Automation"). Related: https://latestn.com/tool/opencode/agents-and-automation/select-agent How do I switch between or select different opencode agents? https://latestn.com/tool/opencode/agents-and-automation/server-plugin-lifecycle-setup How do I define a server plugin in opencode and run code when it loads? https://latestn.com/tool/opencode/agents-and-automation/server-plugin-transforms How do I transform or modify opencode behavior using the plugin API? https://latestn.com/tool/opencode/agents-and-automation/builtin-agents What built-in agents does opencode include and what are their modes? https://latestn.com/tool/opencode/agents-and-automation/create-skill How do I create a skill in opencode? https://latestn.com/tool/opencode/agents-and-automation/export-effect-plugin How do I export an Effect plugin so opencode loads it automatically? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:56:06Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/agents-and-automation/run-non-interactive/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/opencode/agents-and-automation/run-non-interactive POST: https://latestn.com/dispute/tool/opencode/agents-and-automation/run-non-interactive with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/agents-and-automation/run-non-interactive?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I run opencode non-interactively for scripts or CI? Revision 1, last verified 2026-11-20T13:44:54Z. https://latestn.com/tool/opencode/agents-and-automation/run-non-interactive (accessed 2026-11-21T10:00:16Z). @misc{LatestN_tool_opencode_agents_and_automation_run_non_interactive_r1, title = {How do I run opencode non-interactively for scripts or CI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/agents-and-automation/run-non-interactive}}, note = {Revision 1; digest sha256:44a805afcbd4801d; last verified 2026-11-20T13:44:54Z; accessed 2026-11-21T10:00:16Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/opencode/agents-and-automation/run-non-interactive