opencode-runner
OpenCode Runner
Delegate coding tasks to opencode using free models — zero cost, fully automated.
OpenCode (opencode.ai) is a terminal AI coding assistant that supports multiple providers and models. This skill automates the process of selecting the best available free model, launching the task, and reporting progress back to you.
Prerequisites
- opencode installed:
which opencodemust succeed; install vianpm i -g opencode-ai@latestorbrew install opencodeif missing - Internet access: required for cloud model selection and task execution via OpenCode Zen
- Project context: the current working directory should be the project root for file-context tasks
Critical Rules
-
Never do the task yourself. This skill exists solely to delegate work to opencode. If opencode is not installed, fails to run, or no free cloud model is available — report the problem to the user and stop. Do not fall back to editing files directly, writing code yourself, or using any other tool to accomplish the user's coding task. The whole point is that opencode does the work.
-
Only select cloud models. Never select local models (e.g.,
ollama/*,lmstudio/*, or any model running on localhost). Only select models from theopencode/*provider namespace, which are cloud-hosted on OpenCode Zen. Local models have unpredictable availability, performance, and may not support the tool-use capabilities opencode needs. -
Always clean up after yourself. opencode spawns background processes (LSP servers, MCP servers, node workers) that persist after the task finishes. Every execution path — success, failure, error, timeout — must end with the cleanup steps in Phase 6. Orphaned opencode processes silently eat CPU and memory, and users won't notice until their machine slows to a crawl.