← Back to Leaderboard
Dlanggenius

langgenius/dify-plugin-daemon

Go daemon for Dify plugin lifecycle and local, debug, and serverless execution

View on GitHub ↗
AI FrameworkQuickstart ↓
Engineering Health (Methodology)
A+ · 95/100
Maintenance Activity
● Updated 4d ago
Latest Release
0.6.16
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption20/25
Release Cadence20/20
License Clarity20/20
Self-HostedCLI
Total Stars
★ 463
24h Growth
+0
7d Growth
+1
Forks
328

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

langgenius/dify-plugin-daemon Star History (2024-11-27 - 2026-12-04) ALL-TIME STAR HISTORY (2024-11 – 2026-12) +462 in 737d · avg +1/day 489 245 0 2024-11-27: ★ 12025-01-11: ★ 162025-03-01: ★ 502025-04-19: ★ 1612025-06-07: ★ 2172025-07-26: ★ 2652025-09-13: ★ 3052025-11-01: ★ 3362025-12-20: ★ 3662026-02-07: ★ 3892026-03-28: ★ 4032026-05-16: ★ 4212026-07-04: ★ 4332026-08-22: ★ 4502026-10-10: ★ 4572026-12-04: ★ 463 ★ 463 2024-11 2025-11 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Dify Plugin Daemon is a Go service between the Dify API server and plugin executors. Dify uses HTTP to query plugin state, including workspace installations, and to invoke plugins. The daemon launches local plugins as subprocesses and exchanges data over stdin/stdout. In debug mode, it listens for an incoming plugin connection over full-duplex TCP. For serverless execution, it invokes the packaged plugin over HTTP through the Serverless Runtime Interface (SRI), with AWS Lambda as an example target.

The repository separates the server entry point at cmd/server/main.go from command-line tooling under cmd/commandline/. The dependency manifest includes go-redis and redisotel, Prometheus, and OpenTelemetry instrumentation for Gin and HTTP. Redis supports caching, pub/sub, and distributed locks. This is Dify-specific execution infrastructure: it manages and routes plugins rather than selecting models or providing an independent agent runtime.

Key Capabilities & Differentiators

The daemon gives Dify a common management and invocation interface across three execution modes. Operators can run plugins alongside Dify, developers can attach a plugin to the debug listener, and serverless deployments can move plugin execution to an external platform without changing the Dify-facing HTTP interface. The separate Dify CLI supports local plugin development and is distributed via Homebrew and release binaries.

For Python plugins, uv manages dependencies. The daemon can probe official PyPI and candidate mirrors in parallel at startup, and an explicit PIP_MIRROR_URL overrides auto-detection. PLUGIN_IGNORE_UV_LOCK allows resolution without the lockfile when using a mirror, at the cost of potentially resolving different dependency versions. REDIS_KEY_PREFIX defaults to plugin_daemon and covers both keys and pub/sub channels; switching the prefix selects a new namespace without migrating existing cache or coordination data.

Trade-offs & Limitations

Compared with calling an AWS Lambda function directly, the daemon adds Dify workspace lifecycle management, a shared invocation interface, and local and debug execution paths. That integration is useful when Dify owns the plugin lifecycle but adds a service to deploy and monitor for a standalone function. Local mode avoids an external execution service, but Python initialization and plugin resource use share host capacity with Dify. Serverless mode shifts execution off-host while adding an HTTP and provider dependency.

The unreleased HTTP error-handling change is an upgrade consideration, not a guarantee of 0.6.16 behavior. Once the change is deployed, clients should use status and error codes rather than matching exception text. If a response stream fails after headers are sent, clients must treat the body as incomplete and discard partial results. Updating only some daemon nodes or leaving plugins on older SDK builds is insufficient to cover all paths that can expose exception details.

Hardware & Deployment Guide

The daemon supports Linux and macOS. For source deployment, copy .env.example to .env and configure database connectivity, including DB_HOST. The Go manifest declares Go 1.26.0 and toolchain go1.26.10. Install uv and point PYTHON_INTERPRETER_PATH at Python 3.11 or newer for local Python plugins. The server entry point is cmd/server/main.go, and the database migration command is go run ./cmd/commandline/ migrate.

In Docker, use a Docker-managed volume for the shared plugin working directory; network volumes and off-host mounts can delay plugin startup. Do not assume the community edition will scale cleanly by adding Kubernetes replicas. Release 0.6.14 fixed JSON preservation across agent calls and history; 0.6.15 added periodic activation for long-running serverless invocations and fixed multipart temporary-file cleanup; 0.6.16 updated brotli, x/net, and compress for CVEs.

Runtime routing: one Dify-facing HTTP API dispatches to subprocess stdio, full-duplex TCP, or serverless HTTP.
Workspace lifecycle: the daemon exposes which plugins are installed in each Dify workspace and handles invocation requests.
Python setup: uv manages plugin dependencies; PyPI mirrors can be probed at startup or selected explicitly.
Redis isolation: REDIS_KEY_PREFIX namespaces keys and pub/sub channels; changing it does not migrate existing data.
Observability dependencies: go.mod includes Prometheus, OpenTelemetry instrumentation for Gin and HTTP, and Redis instrumentation via redisotel.
Developer tooling: the Dify CLI is available via Homebrew or release binaries; Homebrew supports Linux and macOS on arm64 and amd64.
Best For

Self-hosted Dify operators who need workspace-scoped plugin management, and plugin developers who need local execution or TCP debugging before deploying to a serverless runtime.

Skip If

You need a standalone agent framework, only invoke functions outside Dify, or require a community daemon that scales smoothly by adding Kubernetes replicas.

Reviewed on 2026-12-01 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Self-HostedCLI
brew tap langgenius/dify
brew install dify

Comparison vs. Top Agents & Frameworks Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
dify-plugin-daemon ★463+1GoApache-2.0Go daemon for Dify plugin lifecycle and local, debug, and serverless execution
browser-use122.7k+477PythonMITPython REPL and CDP for adaptive browser automation
ag-ui22.6k+611TypeScriptMITA typed event protocol and SDKs that connect agent backends to interactive apps
ruflo82.8k+342TypeScriptMITA TypeScript orchestration layer for coding agents, with shared memory and MCP

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/langgenius/dify-plugin-daemon.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

langgenius/dify-plugin-daemon Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about dify-plugin-daemon

Where does the daemon sit in a Dify plugin invocation?

Dify API calls the daemon over HTTP for plugin management and invocation. The daemon dispatches the call over stdin/stdout to a local subprocess, over a full-duplex TCP connection to a debug plugin, or over HTTP to a serverless runtime. The development CLI is not in the production invocation path.

Does the daemon need a GPU, and what should I measure for sizing?

There is no baseline GPU or VRAM requirement established for the Go daemon. Size the daemon and its local plugin processes separately: measure CPU and memory during Python environment setup and concurrent invocations, and account for disk use from plugin dependencies. If a plugin runs GPU workloads, size VRAM for that workload rather than for the daemon.

Can we self-host it commercially under Apache-2.0?

Yes. Apache-2.0 permits commercial use and self-hosting. If you redistribute the daemon or a modified build, comply with the license's notice and modification-marking requirements. That license does not automatically cover plugins, their dependencies, or external services.

Why use the daemon instead of calling AWS Lambda directly?

Direct Lambda integration can be simpler for a standalone function, but it does not by itself provide Dify's workspace installation state, local subprocess execution, or TCP debugging. Use the daemon when those Dify-specific lifecycle and runtime features matter; call the function directly when no Dify integration is needed.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining langgenius/dify-plugin-daemon? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature langgenius/dify-plugin-daemon on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare