In this categoryDify · 9
How to Get Started with Dify AI Platform
Install Dify locally with Docker, connect your first LLM provider, and have a working chatbot running in under fifteen minutes.
Dify is an open-source platform for building LLM-powered apps without writing orchestration code from scratch. You connect a model provider, add knowledge bases or tools, and get a chatbot, workflow, or agent in minutes. This guide covers the fastest path from zero to a working Dify install with a live chatbot.
What you need
- Docker Desktop (any recent version)
- An API key from OpenAI, Anthropic, or any supported provider
- 4 GB RAM free
- About 15 minutes
Step 1: Clone and start Dify
Dify ships a Docker Compose file that starts every service — the API server, worker, web frontend, and databases — with one command. Clone the repo and bring it up.
Step 2: Open the setup wizard
Navigate to http://localhost and the Dify setup wizard opens automatically. Create your admin account, then skip the invite step — you can add team members later.
Step 3: Add a model provider
Go to Settings > Model Provider and paste your API key. Dify supports Claude, GPT-4o, Gemini, Mistral, local Ollama models, and dozens more. Select a default chat model from the dropdown — this is what new apps use unless you override it.
Step 4: Create your first chatbot
Click New App, pick Chatbot, give it a name, and click Create. In the prompt editor, write a system prompt describing what the assistant should do. Hit Publish, then open the Share link to test it in a browser. That is a live chatbot backed by your model.
Related guides
How to Build an AI Agent in Dify
Create a Dify agent that can call tools, search the web, and run multi-step tasks without writing orchestration code.
How to Build a RAG Chatbot with Dify
Upload your documents to Dify, configure retrieval-augmented generation, and deploy a chatbot that answers questions from your own knowledge base.
Watch related tutorials
9:47
6:41
12:38
12:00
10:00
1:42:18New guides in your inbox
Fresh step-by-step how-to guides as we publish them. One email a week, no more.