Introduction
Last updated
Last updated
To access the plugin’s functionality in the Community Edition, please update the version to v1.0.0.
Plugin is a more developer-friendly and highly extensible third-party service extension module. While the Dify platform already includes numerous tools maintained by the Dify team and community contributors, the existing tools may not fully meet the demands of various niche scenarios. Additionally, developing and integrating new tools into the Dify platform often requires a lengthy process.
We have embraced an open ecosystem to address this issue, enabling every developer to easily create their own tools. By leveraging third-party models and tools, developers can significantly enhance the capabilities of their applications.
The new plugin system goes beyond the limitations of the previous framework, offering richer and more powerful extension capabilities. It supports five distinct plugin types, each designed to solve well-defined scenarios, giving developers limitless freedom to customize and enhance Dify applications.
Additionally, the plugin system is designed to be easily shared. You can distribute your plugins via the Dify Marketplace, GitHub, or as a local file package. Other developers can quickly install these plugins and benefit from them.
Dify Marketplace is an open ecosystem designed for developers, offering a broad range of resources—models, tools, AI Agents, Extensions, and plugin bundles. You can seamlessly integrate third-party services into your existing Dify applications through the Marketplace, enhancing their capabilities and advancing the overall Dify community.
Whether you’re looking to integrate a new model or add a specialized tool to expand Dify’s existing features, the robust plugin marketplace has the resources you need. We encourage more developers to join and help shape the Dify ecosystem, benefiting everyone involved.
Models
These plugins integrate various AI models (including mainstream providers and custom setups) to handle configuration and requests for LLM APIs. For more on creating a model plugin, see the Quick Start: Model-Type Plugin.
Tools
Designed for Chatflow, Workflow, or Agent application types, these plugins provide a complete set of external tools and APIs. They can invoke all sorts of utilities or host custom endpoints.
For example, when developing a Discord Bot, you can use existing tools while also setting up specialized endpoints to handle message sending and receiving. See Quick Start: Tool Plugin to learn more about building a tool plugin.
Agent Strategy
The Agent Strategy plugin defines the reasoning and decision-making logic within an Agent node, including tool selection, invocation, and result processing.
Extensions
Lightweight plugins that only provide endpoint capabilities for simpler scenarios, enabling fast expansions via HTTP services. This approach is ideal for straightforward integrations requiring basic API invoking. For more details, refer to Quick Start: Extension Plugin.
Bundle
A “plugin bundle” is a collection of multiple plugins. Bundles allow you to install a curated set of plugins all at once—no more adding them one by one. For more information on creating plugin bundles, see Plugin Development: Bundle Plugin.
Extend LLM’s Multimodal Capabilities
Plugins can boost an LLM’s ability to handle multimedia. Developers can add tasks like image editing, video processing, and more—ranging from cropping and background removal to working with portrait images.
Developer-Friendly Debugging Capabilities
The plugin system supports popular IDEs and debugging tools. You just configure a few environment variables to remotely connect to a Dify instance—even one running as a SaaS. Any actions you take on that plugin in Dify are forwarded to your local runtime for debugging.
Persistent Data Storage
Designed for more complex use cases, the plugin system now includes data persistence:
Plugin-Level Data Storage: You can share workspace-level information with plugins, enabling richer custom features.
Built-In Data Management: Plugins can reliably store and manage data, making it easier to implement complex business logic.
Convenient Reverse Invocation
Plugins can now interact bidirectionally with Dify’s core functions, including:
AI model invokes
Tool usage
Application access
Knowledge base interaction
Function node calls (such as question classification, parameter extraction, etc.)
This two-way mechanism allows plugins to act not only as a way to leverage existing Dify capabilities, but also as a standalone gateway—expanding the usage scenarios for your applications.
Freely Customizable API Endpoints
Beyond the existing Dify app APIs (like Chatbot or Workflow APIs), you can now create custom APIs within plugins. Developers can wrap their business logic as a plugin, host it on the Dify Marketplace, and automatically get endpoint support for data processing and request handling.
Quick Start
To quickly install and use plugins, see: Install Plugins
To start developing plugins, see: Develop Plugins
Publishing Plugins
To publish your plugin on the Dify Marketplace, fill out the required information and usage documentation. Then submit your plugin code to the GitHub repository. Once approved, it will be listed in the marketplace:
Beyond the official Dify Marketplace, you can also host your plugin on a personal GitHub repository or package it as a file for direct sharing:
• Publish a Plugin on a Personal GitHub Repo • Package and Publish a Plugin File