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 CLIInstallation Methods for Different Platforms
macOS Brew (Global Installation):dify version command. If it outputs the version information, the installation was successful.
macOS ARM (M Series Chips):
Running the Development Package
Here we usedify 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
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
4. Packaging and Deployment
Package the plugin:Learn more: Publishing Overview
Plugin Categories
Tool Labels
Categorytag class ToolLabelEnum(Enum)
Plugin Type Reference
Dify supports the development of various types of plugins:-
Tool plugin: Integrate third-party APIs and services
Learn more: Dify Plugin Development: Hello World Guide
-
Model plugin: Integrate AI models
Learn more: Model Plugin, Quick Integration of a New Model
-
Agent strategy plugin: Customize Agent thinking and decision-making strategies
Learn more: Agent Strategy Plugin
-
Extension plugin: Extend Dify platform functionality, such as Endpoints and WebAPP
Learn more: Extension Plugin
-
Data source plugin: Serve as the document data source and starting point for knowledge pipelines
Learn more: Data Source Plugin
-
Trigger plugin: Automatically trigger Workflow execution upon third-party events
Learn more: Trigger Plugin
Edit this page | Report an issue