opencode-agent

Delegate coding tasks to opencode agents running alternative AI models via subprocess.

1|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/ETdoFresh/claude-marketplace --skill opencode-agent-etdofresh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode-agent
Source: https://github.com/ETdoFresh/claude-marketplace/tree/main/plugins/opencode-agent/skills/opencode-agent
Command: npx skills add https://github.com/ETdoFresh/claude-marketplace --skill opencode-agent-etdofresh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It lets you hand off coding tasks to opencode, an alternative AI coding agent, so you can run work on non-Claude models like zai-coding-plan/glm-5-turbo without leaving your Claude Code session. ## Core Features & Use Cases - Task Delegation: Runs opencode run as a subprocess with the user's task, defaulting to the zai-coding-plan/glm-5-turbo model. - Model and Agent Selection: Supports overriding the model with the -m flag, plus custom prompts and named agents via --prompt and --agent. - Duration-Aware Execution: Chooses inline, extended-timeout, or background execution based on whether the task is short, medium, or long-running. - Use Case: A user asks to scaffold a small utility script using GLM instead of Claude; the skill runs opencode run -m zai-coding-plan/glm-5-turbo with the task, then verifies the generated files and reports the outcome. ## Quick Start Ask the agent to run a specific coding task with opencode, optionally naming the model you want to use.

Frequently Asked Questions about opencode-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a task with opencode from Claude Code?

Ask the agent to run your task with opencode and it will execute `opencode run -m zai-coding-plan/glm-5-turbo` with your task as the message. You can specify a different model, and the skill passes it via the `-m` flag.

How do I use a different model with opencode?

Specify the provider and model in your request, and the skill runs `opencode run -m <provider/model>` with your task. Run `opencode models` to list the models available in your local configuration.

Can opencode run long-running tasks in the background?

Yes, long tasks like large codebase changes or full project scaffolding are run in the background so you are not blocked. You are notified when the task completes and the result is reported back.

Why does opencode fail with command not found?

The error means the opencode CLI is not installed or not on your PATH. Install it with `npm install -g opencode` or verify your PATH configuration, then retry the task.

Can I continue a previous opencode session?

Yes, use `opencode run -c` with a follow-up message to continue an earlier session. This is useful for iterating on a task without restating the full context.