opencode-cli-runner
CommunityRun opencode CLI for arbitrary prompts, enabling headless access and JSON event parsing.
Authorfkguo
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill allows users to run the local opencode CLI for arbitrary prompts in headless mode, providing JSON event parsing, file-based prompts, and safe fallback to the CLI default model when a model alias is unavailable.
Core Features & Use Cases
- Headless
opencodeExecution: Invokeopencodefrom shell scripts or other automation tools without TUI mode. - JSON Event Parsing: Parse JSON output from
opencodeand provide only assistant text (type=text) to the output. - File-based System/User Prompts: Support file-based system/user prompts and JSON event parsing into plain text output.
- Safe Fallback Model: Safely fall back to the CLI default model when a model alias is unavailable.
- Use Case: This runner is particularly useful for cross-model work when you need to invoke
opencodefrom a different host (e.g., Claude, Codex) without entering TUI mode.
Quick Start
Use the opencode-cli-runner skill to run the opencode CLI for a given model with the provided prompts and output the results to a file.
Dependency Matrix
Required Modules
opencodepython
Components
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: opencode-cli-runner Download link: https://github.com/fkguo/nullius/archive/main.zip#opencode-cli-runner Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.