This document details the necessary preparations before developing Dify plugins, including complete steps for installing the Dify plugin scaffold tool (dify-plugin-daemon) and configuring a Python environment (version requirement ≥3.12). The document also provides reference links for developing various types of plugins.
The Dify plugin development scaffolding tool, also known as dify-plugin-daemon
, can be regarded as a plugin development SDK.
dify-plugin-darwin-arm64
file from the project address mentioned above. Then, in the terminal, navigate to the file’s location and grant it execution permissions:
If the system shows an “Apple cannot verify” error, go to Settings → Privacy & Security → Security, and click the “Open Anyway” button.After running the command, the installation is successful, if the terminal returns version information like
v0.0.1-beta.15
.
dify
command globally in your system to run the scaffolding tool, it’s recommended to rename the binary file to dify
and copy it to the /usr/local/bin
system path.After configuration, entering the dify version
command in the terminal will output the version number.