opencode-extensions
Use when extending OpenCode — MCP servers, plugins/hooks, custom commands, agent skills, rules/AGENTS.md, or migrating from Claude Code. Covers the full extensibility layer.
| Model | Source |
|---|---|
| sonnet | pack: opencode |
Full Reference
OpenCode Extensions
Section titled “OpenCode Extensions”OpenCode’s extensibility layer: MCP servers (external tools), plugins (hooks/events), custom commands (slash commands), agent skills (reusable instructions), and rules (AGENTS.md). Current version: v1.2.10 (Feb 2026).
Quick Ref
Section titled “Quick Ref”| I want to… | File |
|---|---|
| Add an MCP server (local or remote) | reference/mcp-servers.md |
| Configure MCP OAuth | reference/mcp-servers.md |
| Disable or scope MCP tools | reference/mcp-servers.md |
| Write a plugin / hook into events | reference/plugins.md |
| Register a custom tool via plugin | reference/plugins.md |
| Inject env vars into shell executions | reference/plugins.md |
| Create a slash command | reference/custom-commands.md |
| Use template variables / shell injection | reference/custom-commands.md |
| Build an agent skill (SKILL.md) | reference/agent-skills.md |
| Control skill permissions | reference/agent-skills.md |
| Set up AGENTS.md or project rules | reference/rules-and-agents-md.md |
| Load external instruction files | reference/rules-and-agents-md.md |
| Migrate from Claude Code | reference/claude-code-migration.md |
Reference Index
Section titled “Reference Index”reference/mcp-servers.md— Local + remote MCP config, OAuth flows, tool control, troubleshootingreference/plugins.md— Plugin structure, context object, all hooks, custom tools, env injectionreference/custom-commands.md— File format, frontmatter fields, template variables, JSON alternativereference/agent-skills.md— Skill structure, SKILL.md frontmatter, discovery, permissionsreference/rules-and-agents-md.md— AGENTS.md search order, instructions config, remote URLsreference/claude-code-migration.md— Auto-recognized files, compat env vars, migration checklist
Usage: Read the reference file matching your current task from the index above. Each file is self-contained with code examples and inline gotchas.
Announcement
Section titled “Announcement”┏━ 🔌 opencode-extensions ━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ MCP servers, plugins, custom commands, skills, and rules for OpenCode ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛