Initialize Development Tools
Last updated
Last updated
Before start to develop Dify plugins please prepare the following prerequisites:
Dify plugin scaffolding tool
Python environment, version ≥ 3.12
The Dify plugin development scaffolding tool, also known as
dify-plugin-daemon
, can be regarded as a plugin development SDK.
Visit the and select and download the version suitable for your operating system.
Using macOS with M-series chips as an example: Download the 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:
Run the following command to verify successful installation.
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
.
Please refer to the following content for examples of different types of plugin development.
For detailed instructions, please refer to the tutorial. Python version 3.12 or higher is required.