Self-host Dify
updated Sep 2026deployed by usprices checked · Jul 2026Install verified on Ubuntu 26.04 · Sep 2026 · how we test
We earn commissions when you shop through the links below. Full disclosure →
A platform for building LLM applications — chatbots, agents and multi-step workflows — in a visual editor, with a built-in RAG pipeline over your own documents and connectors for many model providers. Its modified Apache 2.0 license forbids running it as a multi-tenant service or removing the Dify logo from the web frontend without a commercial license.
Key facts
CategoryAI Agent Platforms
LicenseDify Open Source License (modified Apache-2.0)
StackPython, Flask, Next.js, TypeScript
Min RAM4096 MB
Official imageyes
Measured idle RAM1787 MB
Difficulty
Websitedify.ai (opens in new tab)
What you need
- Any VPS with at least 4096 MB of RAM
- A domain you control — most self-hosted setups need HTTPS in front of them
- Under an hour if you've used Docker before
Where to host itaffiliate disclosure
Hetzner Cloudrun it on
From $23.59/mo · 2 vCPU / 4 GB / 80 GB · EU + USKamaterafree trial
From $4/mo · 1 vCPU / 1 GB / 20 GB · US + EU + AsiaDigitalOceanalso works on
From $6/mo · 1 vCPU / 1 GB / 25 GB · US + EU + AsiaPaid link — we earn a commission if you shop through it.
Install
Run these commands on your server:
# Dify — official Docker Compose stack from the repo's docker/ directory (README Quick start), pinned to release 1.17.1
git clone --depth 1 --branch 1.17.1 https://github.com/langgenius/dify.git
cd dify/docker
cp .env.example .env
# SECRET_KEY is left empty on purpose: Dify generates a persistent key in its storage volume on first start
docker compose up -d
# first start pulls ~10 images (API, worker, web, Postgres, Redis, Weaviate, sandbox, nginx, …)
# create the admin account at http://SERVER_IP:80/installHead-to-head
More self-hosted tools
AI Agent Platforms
AgentArea
PythonNext.jsGoTemporal
hardRead guide →
AI Agent Platforms
Langflow
PythonFastAPIReactTypeScript
easyRead guide →
Notes
AFFiNE
TypeScriptNode.jsRustPostgreSQLRedis
easyRead guide →
E-books & comics
Calibre-Web
PythonFlask
easyRead guide →