AGENT SKILL
opencode
Use this skill when the user wants to run an AI coding agent non-interactively, launch the opencode TUI, or manage opencode providers and models.
使用场景Skill与智能体开发
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 57
- Forks
- 5
01 前言 Front Matter
- name
- opencode
- description
- Use this skill when the user wants to run an AI coding agent non-interactively, launch the opencode TUI, or manage opencode providers and models.
03 SKILL.md 正文
opencode Plugin
opencode is SST's terminal-first AI coding agent. It is provider-agnostic, has an interactive TUI, and a headless opencode run mode that emits JSON events for pipelines.
Commands
Agent
opencode agent run— Run a prompt non-interactively (opencode run)opencode _ _— Passthrough (bareopencodeopens the TUI;opencode serveruns the HTTP server)
Setup
opencode self version— Show versionopencode models list— List models from configured providersopencode auth manage—auth login/auth list/auth logoutopencode self upgrade— Upgrade to latest (or pass a version)opencode stats show— Token usage statistics
Usage Examples
- "Run opencode headlessly to fix the lint errors"
- "What models can opencode use?"
- "Set up provider credentials for opencode"
- "Start the opencode server on port 4096"
Installation
curl -fsSL https://opencode.ai/install | bash
# or: npm install -g opencode-ai
# or: brew install opencode
Examples
# Headless run with JSON event output
supercli opencode agent run "Fix the failing test" --json
# Choose model and limit turns
supercli opencode agent run "Refactor auth.ts" -m anthropic/claude-sonnet-4-5
# See available models
supercli opencode models list
# TUI
supercli opencode
Key Features
- Provider-agnostic: Anthropic, OpenAI, Google, Bedrock, Azure, local providers
opencode runheadless mode emits structured JSON events (--json) for scriptsopencode serveexposes the same agent over HTTP for other clients- Sessions are shareable via
opencodeshare links - LSP-aware editing and built-in subagents (
/init, plan/build modes)
04 同仓库更多 Skills
sc-machin-mcp
暂无简介
★ 57
supercli.quickstart
SuperCLI capability router — discover and execute CLI commands through namespace.resource.action interface
★ 57
zzdoc
Use this skill to compile scdoc manpages with a fast Zig-based compiler.
★ 57
zx
Use this skill when the user wants to a tool for writing better scripts using node.js.
★ 57
zvm
Use this skill when the user wants to manage multiple Zig compiler versions.
★ 57
quickstart
暂无简介
★ 57