Skip to main content

Environment Requirements

  • Python version ≥ 3.12
  • Dify plugin scaffold tool (dify-plugin-daemon)
Learn more: Initializing Development Tools

Obtaining the Dify Plugin Development Package

Dify Plugin CLI

Installation Methods for Different Platforms

macOS Brew (Global Installation):
After installation, open a new terminal window and enter the dify version command. If it outputs the version information, the installation was successful. macOS ARM (M Series Chips):
macOS Intel:
Linux:
Global Installation (Recommended):

Running the Development Package

Here we use dify as an example. If you are using a local installation method, please replace the command accordingly, for example ./dify-plugin-darwin-arm64 plugin init.

Plugin Development Process

1. Create a New Plugin

Follow the prompts to complete the basic plugin information configuration
Learn more: Dify Plugin Development: Hello World Guide

2. Run in Development Mode

Configure the .env file, then run the following command in the plugin directory:
Learn more: Remote Debugging Plugins

3. Packaging and Deployment

Package the plugin:
Learn more: Publishing Overview

Plugin Categories

Tool Labels

Category tag class ToolLabelEnum(Enum)

Plugin Type Reference

Dify supports the development of various types of plugins:
Edit this page | Report an issue