Prerequisites
Before you begin, ensure you have the following installed:- Python version ≥ 3.12
- Dify CLI
- Homebrew (for Mac users)
Create a Dify Plugin Project
- Mac
- Linux
python and hit Enter to proceed with the Python plugin template.
Run the Plugin
Make sure you are in the hello-world directory.env file to set your plugin’s environment variables, such as API keys or other configurations. You can find these variables in the Dify dashboard. Log in to your Dify environment, click the “Plugins” icon in the top right corner, then click the debug icon (or something that looks like a bug). In the pop-up window, copy the “API Key” and “Host Address”. (Please refer to your local corresponding screenshot, which shows the interface for obtaining the key and host address)
Edit this page | Report an issue