# Dify | An Open Source LLM Application Development Platform

**URL:** <https://onehack.st/t/dify-an-open-source-llm-application-development-platform/292241>\
**Category:** Tools & Scripts\
**Tags:** programming, hacking, ai, self-improvement\
**Created:** [September 27, 2024, 7:30pm UTC](https://onehack.st/t/dify-an-open-source-llm-application-development-platform/292241 "2024-09-27T19:30:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PlayBoy83](https://onehack.st/user_avatar/onehack.st/playboy83/32/164314_2.png) [@PlayBoy83](https://onehack.st/u/PlayBoy83)\
**Post date:** [September 27, 2024, 7:30pm UTC](https://onehack.st/t/dify-an-open-source-llm-application-development-platform/292241/1 "2024-09-27T19:30:00Z")

</div>

[![cover-v5-optimized](https://private-user-images.githubusercontent.com/13230914/321628871-f9e19af5-61ba-4119-b926-d10c4c06ebab.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mjc0MzE0MTAsIm5iZiI6MTcyNzQzMTExMCwicGF0aCI6Ii8xMzIzMDkxNC8zMjE2Mjg4NzEtZjllMTlhZjUtNjFiYS00MTE5LWI5MjYtZDEwYzRjMDZlYmFiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTI3VDA5NTgzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU0YzJlNzI5NzMyMjZhN2FiNzE2ZGJmZGUzY2E5ZGYzZTEzNzllMmE3MDhkZGRlNmIwZWVjNjhhZTM2MWJlNDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.9Gvh2i9NHc6OULvuxW1jnO02p8QVX0k0daDadRT9sWU)](https://private-user-images.githubusercontent.com/13230914/321628871-f9e19af5-61ba-4119-b926-d10c4c06ebab.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mjc0MzE0MTAsIm5iZiI6MTcyNzQzMTExMCwicGF0aCI6Ii8xMzIzMDkxNC8zMjE2Mjg4NzEtZjllMTlhZjUtNjFiYS00MTE5LWI5MjYtZDEwYzRjMDZlYmFiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTI3VDA5NTgzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU0YzJlNzI5NzMyMjZhN2FiNzE2ZGJmZGUzY2E5ZGYzZTEzNzllMmE3MDhkZGRlNmIwZWVjNjhhZTM2MWJlNDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.9Gvh2i9NHc6OULvuxW1jnO02p8QVX0k0daDadRT9sWU)

[Dify Cloud](https://cloud.dify.ai/) · [Self-hosting](https://docs.dify.ai/getting-started/install-self-hosted) · [Documentation](https://docs.dify.ai/) · [Enterprise inquiry](https://udify.app/chat/22L1zSxg6yW1cWQg)

[![Static Badge](https://camo.githubusercontent.com/e4d3e3a3b7203f1bd5a1e9144ce7af493c3183bf6a8546a988590c7f909b3d81/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50726f647563742d463034343338)](https://dify.ai/) [![Static Badge](https://camo.githubusercontent.com/f3d943aef56f510c9781e462c999559456eb28e3f81ca50706c78e6c08d72604/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f667265652d70726963696e673f6c6f676f3d6672656526636f6c6f723d253230253233313535454546266c6162656c3d70726963696e67266c6162656c436f6c6f723d253230253233353238626666)](https://dify.ai/pricing) [![chat on Discord](https://camo.githubusercontent.com/ffe5c639c62f16796a399e01c9f904c7b4dea8ca9445bb96f802271d98ddc030/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f313038323438363635373637383331313435343f6c6f676f3d646973636f7264266c6162656c436f6c6f723d253230253233353436326562266c6f676f436f6c6f723d25323025323366356635663526636f6c6f723d253230253233353436326562)](https://discord.gg/FngNHpbcY7) [![follow on Twitter](https://camo.githubusercontent.com/9e2ee38a4e37afa0e34d51e110505a5effac5baad24b2e9f704328f58fdfefba/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f646966795f61693f6c6f676f3d5826636f6c6f723d253230253233663566356635)](https://twitter.com/intent/follow?screen_name=dify_ai) [![Docker Pulls](https://camo.githubusercontent.com/998ddcc6017278e9c17929934047ebf52939ff27ffa80414088d57e466b89bc1/68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f70756c6c732f6c616e6767656e6975732f646966792d7765623f6c6162656c436f6c6f723d25323025323346444230363226636f6c6f723d253230253233663739303039)](https://hub.docker.com/u/langgenius) [![Commits last month](https://camo.githubusercontent.com/f78778297444feef3cdb23823cca530246ea07d611261d75261c5239918fd723/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d69742d61637469766974792f6d2f6c616e6767656e6975732f646966793f6c6162656c436f6c6f723d25323025323333326235383326636f6c6f723d253230253233313262373661)](https://github.com/langgenius/dify/graphs/commit-activity) [![Issues closed](https://camo.githubusercontent.com/1ca2342e333e2f72efb1f139e165baefb3a701389dfa666720ea8fcdc49fddf3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d7365617263683f71756572793d7265706f2533416c616e6767656e697573253246646966792532306973253341636c6f736564266c6162656c3d697373756573253230636c6f736564266c6162656c436f6c6f723d25323025323337643839623026636f6c6f723d253230253233356436623938)](https://github.com/langgenius/dify/) [![Discussion posts](https://camo.githubusercontent.com/d8b118db444d52194c7c8decdcd7024154c327061e6963decbb94fa22f07278a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f64697363757373696f6e732f6c616e6767656e6975732f646966793f6c6162656c436f6c6f723d25323025323339623861666226636f6c6f723d253230253233376135616638)](https://github.com/langgenius/dify/discussions/)

[![README in English](https://camo.githubusercontent.com/7b4d7d7635efe8fb99f1d7d76ac00635e1cc9a591384a404abef3e1e23b93f6d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456e676c6973682d643964396439)](https://github.com/langgenius/dify/blob/main/README.md) [![简体中文版自述文件](https://camo.githubusercontent.com/8f15589a114444cac77ce5357c770e152bd2e9deceda4cee7df89c9731863da8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652fe7ae80e4bd93e4b8ade696872d643964396439)](https://github.com/langgenius/dify/blob/main/README_CN.md) [![日本語のREADME](https://camo.githubusercontent.com/ea035aa20ea354b2145233d774e13285f2ae9926010e55527fe562c247aca245/68747470733a2f2f696d672e736869656c64732e696f2f62616467652fe697a5e69cace8aa9e2d643964396439)](https://github.com/langgenius/dify/blob/main/README_JA.md) [![README en Español](https://camo.githubusercontent.com/9bf1629ab426db622af4d4ab12fc638b406739cffdd2da7330cbbfe52948a97b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f45737061c3b16f6c2d643964396439)](https://github.com/langgenius/dify/blob/main/README_ES.md) [![README en Français](https://camo.githubusercontent.com/a2bbe876b48709007980dccccdec986d82771ee47513016cb196a45fbbbba1e8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4672616ec3a76169732d643964396439)](https://github.com/langgenius/dify/blob/main/README_FR.md) [![README tlhIngan Hol](https://camo.githubusercontent.com/082cbac811dfeca1a50ffd5326a54584d9dc1fd8cf37fdc7eb18d44b1b32355b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4b6c696e676f6e2d643964396439)](https://github.com/langgenius/dify/blob/main/README_KL.md) [![README in Korean](https://camo.githubusercontent.com/a9ddea687e96c0e46575cb3eaffdfd4ef222153acaaaab3b8f4194555a1eb82f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652fed959ceab5adec96b42d643964396439)](https://github.com/langgenius/dify/blob/main/README_KR.md) [![README بالعربية](https://camo.githubusercontent.com/e0906774800a5dba15c3afaaa32ffbe18e380eb9a92b89aac470c8f3b10dc63d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652fd8a7d984d8b9d8b1d8a8d98ad8a92d643964396439)](https://github.com/langgenius/dify/blob/main/README_AR.md) [![Türkçe README](https://camo.githubusercontent.com/19e23c764f64751b25fa2f92b0dfe9e05c2cdee21abb610cc18e73b58a8b7f1c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54c3bc726bc3a7652d643964396439)](https://github.com/langgenius/dify/blob/main/README_TR.md) [![README Tiếng Việt](https://camo.githubusercontent.com/75837818b49dda490093a0bb9b092603f40a49a27c3d03f09bac1f96b2a77fed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54692545312542412542466e672532305669254531254242253837742d643964396439)](https://github.com/langgenius/dify/blob/main/README_VI.md)

Dify is an open-source LLM app development platform. Its intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production. Here’s a list of the core features:

**1. Workflow** : Build and test powerful AI workflows on a visual canvas, leveraging all the following features and beyond.

optimized\_workflow\_intro.mp4

**2. Comprehensive model support** : Seamless integration with hundreds of proprietary / open-source LLMs from dozens of inference providers and self-hosted solutions, covering GPT, Mistral, Llama3, and any OpenAI API-compatible models. A full list of supported model providers can be found [here](https://docs.dify.ai/getting-started/readme/model-providers).

[![providers-v5](https://private-user-images.githubusercontent.com/13230914/321881730-5a17bdbe-097a-4100-8363-40255b70f6e3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJna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UyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTI3VDA5NTgzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ3OTZlN2QxOTVhOWE3ZGI3OWU4OGNhM2ViNWY1NzE3MDJlNmU4ZmExMTE4NTJkYTVlNGJiMDYzYjIwZGYzOGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.-AsV9PS5CqXqZxhYB7Jv1pblotpKKaLDN8qdvT4mEc4)

**3. Prompt IDE** : Intuitive interface for crafting prompts, comparing model performance, and adding additional features such as text-to-speech to a chat-based app.

**4. RAG Pipeline** : Extensive RAG capabilities that cover everything from document ingestion to retrieval, with out-of-box support for text extraction from PDFs, PPTs, and other common document formats.

**5. Agent capabilities** : You can define agents based on LLM Function Calling or ReAct, and add pre-built or custom tools for the agent. Dify provides 50+ built-in tools for AI agents, such as Google Search, DALL·E, Stable Diffusion and WolframAlpha.

**6. LLMOps** : Monitor and analyze application logs and performance over time. You could continuously improve prompts, datasets, and models based on production data and annotations.

**7. Backend-as-a-Service** : All of Dify’s offerings come with corresponding APIs, so you could effortlessly integrate Dify into your own business logic.

## Feature comparison

| Feature | Dify.AI | LangChain | Flowise | OpenAI Assistants API |
| --- | --- | --- | --- | --- |
| Programming Approach | API + App-oriented | Python Code | App-oriented | API-oriented |
| Supported LLMs | Rich Variety | Rich Variety | Rich Variety | OpenAI-only |
| RAG Engine | ✅ | ✅ | ✅ | ✅ |
| Agent | ✅ | ✅ | ❌ | ✅ |
| Workflow | ✅ | ❌ | ✅ | ❌ |
| Observability | ✅ | ✅ | ❌ | ❌ |
| Enterprise Features (SSO/Access control) | ✅ | ❌ | ❌ | ❌ |
| Local Deployment | ✅ | ✅ | ✅ | ❌ |

## Using Dify

- **Cloud**  
We host a [Dify Cloud](https://dify.ai/) service for anyone to try with zero setup. It provides all the capabilities of the self-deployed version, and includes 200 free GPT-4 calls in the sandbox plan.
- **Self-hosting Dify Community Edition**  
Quickly get Dify running in your environment with this [starter guide](https://github.com/langgenius/dify#quick-start). Use our [documentation](https://docs.dify.ai/) for further references and more in-depth instructions.
- **Dify for enterprise / organizations**  
We provide additional enterprise-centric features. [Log your questions for us through this chatbot](https://udify.app/chat/22L1zSxg6yW1cWQg) or [send us an email](mailto:business@dify.ai?subject=%5BGitHub%5DBusiness%20License%20Inquiry) to discuss enterprise needs.

> For startups and small businesses using AWS, check out [Dify Premium on AWS Marketplace](https://aws.amazon.com/marketplace/pp/prodview-t22mebxzwjhu6) and deploy it to your own AWS VPC with one-click. It’s an affordable AMI offering with the option to create apps with custom logo and branding.

## Staying ahead

Star Dify on GitHub and be instantly notified of new releases.

[![star-us](https://private-user-images.githubusercontent.com/13230914/320902970-b823edc1-6388-4e25-ad45-2f6b187adbb4.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mjc0MzE0MTAsIm5iZiI6MTcyNzQzMTExMCwicGF0aCI6Ii8xMzIzMDkxNC8zMjA5MDI5NzAtYjgyM2VkYzEtNjM4OC00ZTI1LWFkNDUtMmY2YjE4N2FkYmI0LmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTI3VDA5NTgzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI0NTkwMjg0MGQ5NTg5MmJjZjJkYzk4Mzk4ZDdmOTllMDNlMjlkOGY4ODNkZjA3MTM2M2RjMzA4ZmM3ZGVjNjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.iX_1h-cA-Sq2g8g7_V5FEn9AOV41ilZq6mBDKlXBXc8)](https://private-user-images.githubusercontent.com/13230914/320902970-b823edc1-6388-4e25-ad45-2f6b187adbb4.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mjc0MzE0MTAsIm5iZiI6MTcyNzQzMTExMCwicGF0aCI6Ii8xMzIzMDkxNC8zMjA5MDI5NzAtYjgyM2VkYzEtNjM4OC00ZTI1LWFkNDUtMmY2YjE4N2FkYmI0LmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTI3VDA5NTgzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI0NTkwMjg0MGQ5NTg5MmJjZjJkYzk4Mzk4ZDdmOTllMDNlMjlkOGY4ODNkZjA3MTM2M2RjMzA4ZmM3ZGVjNjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.iX_1h-cA-Sq2g8g7_V5FEn9AOV41ilZq6mBDKlXBXc8)

## Quick start

> Before installing Dify, make sure your machine meets the following minimum system requirements:
> 
> - CPU \>= 2 Core
> - RAM \>= 4GB

The easiest way to start the Dify server is to run our [docker-compose.yml](https://github.com/langgenius/dify/blob/main/docker/docker-compose.yaml) file. Before running the installation command, make sure that [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/) are installed on your machine:

cd docker cp .env.example .env docker compose up -d

After running, you can access the Dify dashboard in your browser at [http://localhost/install](http://localhost/install) and start the initialization process.

> If you’d like to contribute to Dify or do additional development, refer to our [guide to deploying from source code](https://docs.dify.ai/getting-started/install-self-hosted/local-source-code)

## Next steps

If you need to customize the configuration, please refer to the comments in our [.env.example](https://github.com/langgenius/dify/blob/main/docker/.env.example) file and update the corresponding values in your `.env` file. Additionally, you might need to make adjustments to the `docker-compose.yaml` file itself, such as changing image versions, port mappings, or volume mounts, based on your specific deployment environment and requirements. After making any changes, please re-run `docker-compose up -d`. You can find the full list of available environment variables [here](https://docs.dify.ai/getting-started/install-self-hosted/environments).

If you’d like to configure a highly-available setup, there are community-contributed [Helm Charts](https://helm.sh/) and YAML files which allow Dify to be deployed on Kubernetes.

- [Helm Chart by @LeoQuote](https://github.com/douban/charts/tree/master/charts/dify)
- [Helm Chart by @BorisPolonsky](https://github.com/BorisPolonsky/dify-helm)
- [YAML file by @Winson-030](https://github.com/Winson-030/dify-kubernetes)

#### Using Terraform for Deployment

##### Azure Global

Deploy Dify to Azure with a single click using [terraform](https://www.terraform.io/).

- [Azure Terraform by @nikawang](https://github.com/nikawang/dify-azure-terraform)

## Star history

[![Star History Chart](https://camo.githubusercontent.com/6236cea513c18186b166759cebfb03f62af5c304062b31fa54642a9b2eaadc61/68747470733a2f2f6170692e737461722d686973746f72792e636f6d2f7376673f7265706f733d6c616e6767656e6975732f6469667926747970653d44617465)](https://star-history.com/#langgenius/dify&Date)

## Security disclosure

To protect your privacy, please avoid posting security issues on GitHub. Instead, send your questions to [security@dify.ai](mailto:security@dify.ai) and we will provide you with a more detailed answer.

## License

This repository is available under the [Dify Open Source License](https://github.com/langgenius/dify/blob/main/LICENSE), which is essentially Apache 2.0 with a few additional restrictions.

## GitHub:

[https://github.com/langgenius/dify](https://github.com/langgenius/dify)
