opencode-plugin-api

Document the OpenCode plugin API, hooks, event types, and module format.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/xuezhaojun/oh-your-opencode --skill opencode-plugin-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode-plugin-api
Source: https://github.com/xuezhaojun/oh-your-opencode/tree/main/.opencode/skills/opencode-plugin-api
Command: npx skills add https://github.com/xuezhaojun/oh-your-opencode --skill opencode-plugin-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide helps developers implement the OpenCode plugin system by detailing the API surface, available hooks, and module format.

Core Features & Use Cases

  • Documented plugin module format (v1) and how to define a plugin with an id and server entry.
  • Readable list of hooks, event types, and tool/provider patterns to enable custom extensions.
  • Quick reference for integrating with the OpenCode server to register tools, authentication providers, and chat interactions.

Quick Start

Install OpenCode project tooling and reference this skill to scaffold a minimal plugin using the standard module format.

Frequently Asked Questions about opencode-plugin-api

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

FAQPage Schema
What is the OpenCode plugin module format for registering custom tools?

OpenCode plugin development uses specific hooks to register tools, authentication providers, and chat interactions, enabling custom extensions for software engineers building project plugins.

How do I develop a custom OpenCode plugin with TypeScript?

You develop OpenCode plugins by defining a module with an id and server entry, then applying documented hooks and event types to integrate custom tools and authentication providers.

What hooks and event types are available for OpenCode plugin extensions?

OpenCode provides documented hooks, event types, and tool/provider patterns that allow developers to build custom extensions and register them with the OpenCode server.

Can I register custom authentication providers using the OpenCode plugin API?

You can register custom authentication providers by utilizing the documented tool and provider patterns available in the OpenCode plugin API reference for software engineers.

Does the OpenCode plugin API require any specific dependencies to start building?

You need to install the OpenCode project tooling to scaffold a minimal plugin using the standard module format, as no external dependencies are required for the API reference.