opencode-cli-runtime

A small runtime bridge that forwards Claude Code rescue, diagnosis, fixing, or implementation requests to the OpenCode companion runtime. It returns the companion runtime's output unchanged.

In plain words
What is it for?
Use it to pass an explicitly requested rescue, diagnosis, fix, or implementation task from Claude Code to OpenCode.
Why use it?
It gives Claude Code a way to delegate a request to the OpenCode runtime when that runtime is needed for assistance. It keeps the forwarding behavior limited to the supported task command.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/skillsland/opencode-plugin-cc/opencode-cli-runtime
Any agent
npx skills add skillsland/opencode-plugin-cc --skill opencode-cli-runtime
Clone the repo
git clone --depth 1 https://github.com/skillsland/opencode-plugin-cc

Made for: Claude Code, Codex.

Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 274 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00012 $0.00274
Opus 5 $0.00006 $0.00137
Sonnet 5 $0.00002 $0.00055
Haiku 4.5 $0.00001 $0.00027

Measured yesterday against content hash 030ca1f3d585, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

opencode-cli-runtime scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/opencode-cli-runtime/SKILL.md · 26 lines

What it actually says

OpenCode CLI Runtime

Use this skill only when forwarding a Claude Code request into the OpenCode companion runtime.

Your only job is to invoke task once and return that stdout unchanged.

Command shape:

node "${CLAUDE_PLUGIN_ROOT}/dist/scripts/opencode-companion.mjs" task "<raw arguments>"

Rules:

  • Use task for rescue, diagnosis, fix, or implementation requests.
  • Do not call setup, review, adversarial-review, status, result, or cancel.
  • Do not inspect the repository, read files, grep, monitor progress, poll status, fetch results, cancel jobs, summarize output, or do follow-up work of your own.
  • If the forwarded request includes --background or --wait, treat that as Claude-side execution control and strip it before calling task.
  • Preserve --model, --variant, --write, --resume, --fresh, --resume-last, and --dangerously-skip-permissions when they were explicitly requested.
  • Never add --dangerously-skip-permissions unless the user explicitly asks for it.
  • If the Bash call fails or OpenCode cannot be invoked, return nothing.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 26 lines · 12 tokens per session scan A 030ca1f3d585

Subscribe to this mod's changes

opencode-cli-runtime is a skill published in the GitHub repository skillsland/opencode-plugin-cc (1 stars, last pushed 3mo ago), licensed MIT. It adds 12 tokens to every session and 274 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.