Skip to content
BYOK Tools

Dify

Open-source platform for building LLM apps, agents and RAG pipelines.

4.6 editor score•Automation & Agents•Open source; cloud plans available

Overview

Dify provides a visual studio for building chatbots, agents and workflows with built-in RAG, prompt orchestration and observability. It can be self-hosted and connects to many model providers with your own keys.

  • Visual workflow builder
  • RAG pipeline
  • Agent tools
  • LLMOps monitoring
  • API publishing

Our verdict

What we like

  • Production-ready features
  • Huge provider list

Watch out for

  • Self-host stack is heavy

Works with these providers

Keys from these providers work in this app. Usage is billed by the provider at its list price.

BYOK Key Safety Score

Key handling in Dify

How we score
78/ 100

Grade B

Your key is stored by the service (usually encrypted) and requests may route through its servers.

  • Key storage

    Key is held by the vendor, so you rely on their security.

    18/40
  • Auditable code

    Open source: anyone can verify how keys are handled.

    25/25
  • Self-hosting

    Can run entirely on your own infrastructure.

    15/15
  • Offline option

    Supports local models, so no key is needed at all for private work.

    10/10
  • Provider choice

    14 provider options, which lets you pick the provider whose data terms you trust.

    10/10

Whatever the score, give each app its own key, set a monthly spend limit with your provider, and revoke keys you no longer use. Read the key-safety checklist.

Dify FAQ

Does Dify support bring your own key?
Yes. Dify accepts your own API key from OpenAI, Anthropic, Google Gemini, OpenRouter, Mistral, Groq, DeepSeek, xAI, Ollama, Azure OpenAI, AWS Bedrock, Together AI, Cohere and OpenAI-compatible. Usage is billed by the provider at its API rates.
Where does Dify store my API key?
On the vendor's servers, and requests may be routed through them. Its BYOK Tools Key Safety Score is 78/100.
Is Dify free?
Open source: Open source; cloud plans available. API usage is billed separately by your model provider.
Is Dify open source?
Yes. The source code is at https://github.com/langgenius/dify. It can also be self-hosted.
Can Dify run local models?
Yes. It can connect to local runtimes such as Ollama or LM Studio, so no API key is needed for private or offline use.
Which platforms does Dify support?
Web, Self-hosted.

Community reviews

No reviews yet.