A comprehensive reference guide for Dify plugin development, including environment requirements, installation methods, development process, plugin categories and types, common code snippets, and solutions to common issues. Suitable for developers to quickly consult and reference.
Learn more: Initializing Development Tools
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):
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
.
Follow the prompts to complete the basic plugin information configuration
Learn more: Dify Plugin Development: Hello World Guide
Configure the .env
file, then run the following command in the plugin directory:
Learn more: Remote Debugging Plugins
Package the plugin:
Learn more: Publishing Overview
Category tag
class ToolLabelEnum(Enum)
Dify supports the development of various types of plugins:
Learn more: Tool Plugin Development
Learn more: Model Plugin Introduction, Quick Integration of a New Model
Learn more: Agent Strategy Plugins
Learn more: Extension Plugins
Edit this page | Report an issue