Dify plugins and custom tools

Extending a self-hosted Dify with plugins and custom tools: choosing the plugin type, building and distributing private plugins, and operating the plugin daemon.

Choosing a Dify plugin type

Deciding between tool, model, agent strategy, extension, datasource and trigger plugins for an internal integration, and when an OpenAPI tool or custom endpoint avoids writing a plugin at all.

Building a custom Dify model provider plugin

Making an internal model gateway or fine-tuned model selectable in Dify through a model plugin: model types it can expose, credential schema and why model plugins cannot bundle tools.

Private Dify plugin distribution

Choosing between Marketplace, GitHub and local .difypkg distribution for internal plugins, versioning releases, and signing packages so production keeps signature checks on.

Operating the Dify plugin daemon

Running the plugin daemon in production: timeouts, package and file size limits, model schema caches, remote debugging ports and the shared inner API key with the API service.

Dify plugin installation policy on Enterprise

Controlling plugin risk across many workspaces: allowing all, official and partner, or Marketplace-only plugins, and installing one approved version in every current and future workspace.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.