Skip to main content

Quick Start: Tool-Only Plugin

The simplest plugin wraps a CLI tool or API.

Step 1: Create the package

Step 2: Write the manifest

Step 3: Implement the plugin

Step 4: Write documentation

SKILL.md (for agents):

Examples

Step 5: Register in config

Step 6: Restart the gateway


Multi-Tool Plugin

If your plugin provides multiple tools, use dot notation:
Agent config:

Channel Plugin

A plugin that provides a messaging channel:

Plugin with Hooks

A plugin that intercepts messages:

Cross-Plugin Interaction

Plugins can invoke tools from other plugins via ctx.invokeTool():

Distributing Plugins

As an npm package

As a GitHub repo

Package with multiple plugins

Put multiple plugins in subdirectories:
All plugins are discovered and installed automatically.

Migration from v1 Tools

If you have existing tools using the old tool.json + createHandler() format:
Rename tool.json to plugin.json and update its structure to match the plugin manifest format (see above).