# Dify

Dify is an open-source large language model (LLM) application development platform. It is open source and self-hosted, installable on ZimaOS and Kubernetes (Helm).

Canonical page: https://ourlocalhost.com/app/3794/dify

## Description

Dify is an open-source large language model (LLM) application development platform. It combines the concepts of Backend-as-a-Service and LLMOps to enable developers to quickly build production-grade generative AI applications. Even non-technical personnel can participate in the definition and data operations of AI applications.

## Platform availability

Available on 3 of 10 platforms: ZimaOS, Helm, Any server.

## Health score

80/100 (Excellent), based on 4 of 4 factors.
- Maintained: 100 (last commit 13 days ago)
- Popular: 100 (160,677 GitHub stars)
- Easy to install: 55 (3 install platforms, install notes, Docker image)
- Light to run: 30 (4 GB minimum RAM)

## Links

- ZimaOS: https://github.com/IceWhaleTech/CasaOS-AppStore/tree/main/Apps/Dify
- Official website: https://dify.ai
- Kubernetes (Helm): https://artifacthub.io/packages/helm/douban/dify
- GitHub: https://github.com/langgenius/dify

## Common questions

### Why does the Docker Compose deploy script fail with “Remote branch null not found in upstream origin”?

The script resolves the latest Dify version through the GitHub API before cloning. If that request fails, often because of GitHub’s rate limit on unauthenticated requests, jq outputs null and git reports the missing null branch.

### What Dify environment variable must be valid for the agent service to start?

DIFY_AGENT_SERVER_SECRET_KEY must contain a randomly generated secret. If the value is malformed, the agent service refuses to start.

### Which web UI environment variables need to match the backend address in a source-code deployment?

Set NEXT_PUBLIC_API_PREFIX and NEXT_PUBLIC_PUBLIC_API_PREFIX to the base addresses for the Dify console and public web app. If they point to the wrong host or port, the browser cannot reach Dify’s backend, so login and app pages will fail.

### How should I reset a Dify account password when running from source code?

For source-code deployments, run the same command from the api directory. Enter the account email and new password when prompted.

## Alternatives

- Claude Code: Claude Code is a self-hosted Docker container that keeps an always-on Claude Code session on your homelab, so the agent stays reachable fro…
- Codex: Codex is a web-based comic archive browser and reader for organizing, importing, and reading personal CBZ, CBR, CB7, CBT, and PDF comic lib…
- Cursor: The AI-first Code Editor.
- Emdash: EmDash is a full-stack TypeScript CMS based on Astro; the spiritual successor to WordPress
- GitHub Copilot: GitHub Copilot leverages the power of OpenAI Codex to provide real-time suggestions for code and complete functions, all within your editor.
- Google Opal: Build, edit and share mini-AI apps using natural language.
- Jules: Jules is an asynchronous agent that gets out of your way.
- Pi Agent
- Xiaomi MiMo Code
- opencode: OpenCode is an open-source AI (artificial intelligence) coding agent for terminal, editor, and desktop environments that helps developers w…

---
Source: Our Local Host (https://ourlocalhost.com/app/3794/dify), the self-hosted and open-source app directory.
