Install Dify with One Command
Dify is an open-source LLM application development platform with over 134K+ GitHub stars, making it one of the most popular frameworks for building AI-powered applications. It provides a visual workflow orchestration interface that enables both developers and non-technical users to quickly build applications powered by large language models -- chatbots, AI assistants, content generators, knowledge-base Q&A systems, and more. Dify supports dozens of LLM providers including OpenAI, Anthropic Claude, local Ollama models, and comes with a built-in RAG (Retrieval-Augmented Generation) engine, Agent framework, and visual Prompt editor.
For enterprise teams and individual developers, Dify solves a fundamental challenge: how to rapidly stand up a complete AI application development platform on your own infrastructure without writing backend services, vector database integrations, and conversation management logic from scratch. With Dify, users can focus on business logic and prompt engineering, dramatically lowering the barrier to deploying AI applications in production.
Why Installing Dify Is Hard
Although Dify provides an official Docker Compose deployment, a significant number of users hit roadblocks during installation. Based on community feedback and GitHub Issues, here are the most common pain points:
- Complex multi-service orchestration -- Dify's docker-compose.yml contains 6+ service containers (API, Worker, Web, PostgreSQL, Redis, Weaviate/Qdrant). Any single container failing to start makes the entire system unusable. Version incompatibilities, image pull timeouts, and inter-container networking issues are common failures.
- Missing or outdated Docker -- Many developers do not have Docker installed, or run an older version that does not support Compose V2. Windows users face additional challenges with WSL2 configuration and Hyper-V conflicts.
- Python and Node.js dependency conflicts -- When installing from source, Dify requires specific versions of Python and Node.js. Mismatches between system defaults and required versions cause pip install failures, frontend build errors, and virtual environment headaches.
- Port conflicts and configuration maze -- Default ports 80/443 are frequently occupied by other services. Dify's .env file contains dozens of parameters -- API keys, database connection strings, vector store addresses, SMTP settings -- and newcomers struggle to know which values must be changed and which can be left at defaults.
- Network restrictions in certain regions -- Pulling Docker images and npm packages can time out or fail in regions with restrictive network policies, requiring manual registry mirror configuration that adds friction for non-ops users.
How AIMA Solves This
AIMA is an AI-powered installation platform. Rather than running a static script, AIMA deploys an intelligent Agent that understands your system environment and makes real-time installation decisions. When you install Dify through AIMA, the Agent performs the following:
- Automatic environment detection -- Identifies your OS version, CPU architecture, and existing software (Docker version, Python version, etc.) to determine the optimal installation path.
- Missing dependency auto-installation -- If Docker is not installed or is outdated, AIMA automatically installs the right version of Docker and Docker Compose, and handles permission configuration.
- Smart port conflict resolution -- Scans for port conflicts and automatically selects available ports, updating the configuration files accordingly.
- Post-install verification -- Goes beyond confirming that docker compose up exited successfully. Verifies every service container is healthy and the Web UI is actually reachable.
Step-by-Step: Install Dify with AIMA
Step 1: Open a Terminal
On macOS, open Terminal.app or iTerm2. On Linux, open your preferred terminal emulator. On Windows, open PowerShell as Administrator.
Step 2: Run the Install Command
For macOS and Linux:
curl -sL https://aimaserver.com/install/dify | bash For Windows (PowerShell):
iex (irm https://aimaserver.com/install/dify) Step 3: Enter Your Invite Code
After the command runs, the AIMA client starts and prompts you for an invite code. This code links your device to the AIMA platform and activates the AI Agent installation capabilities.
Step 4: AIMA Handles the Rest
AIMA automatically detects your system, installs all required dependencies (Docker, Docker Compose, etc.), pulls Dify container images, sets up the database and vector store, and brings up all services. No manual intervention is needed.
Step 5: Open Dify in Your Browser
Once installation is complete, AIMA reports the access URL -- typically http://localhost:80 or whichever available port AIMA selected. Open it in your browser and start building your first AI application.
System Requirements
| Component | Requirement |
|---|---|
| Operating System | macOS 12+, Ubuntu 22.04/24.04, Windows 10/11 |
| Memory (RAM) | 4 GB minimum, 8 GB+ recommended |
| Disk Space | At least 10 GB free (Docker images + data storage) |
| CPU | x86_64 or ARM64 (Apple Silicon natively supported) |
| Network | Internet connection required to pull images and models |
Common Issues AIMA Handles Automatically
- Docker not installed or incompatible -- Detects and installs the appropriate Docker Engine and Compose plugin for your system.
- Ports 80/443 occupied -- Detects the conflict and switches to an available port, updating the Dify nginx configuration.
- Database initialization failure -- Ensures the PostgreSQL container is healthy and schema migration is complete before starting dependent services.
- Vector store connection errors -- Verifies the Weaviate or Qdrant container health, auto-restarts if necessary, and re-establishes the connection.
- Docker image pull timeout -- Automatically configures registry mirrors in regions where Docker Hub is unreliable, preventing network-induced failures.
Frequently Asked Questions
Which version of Dify does AIMA install?
AIMA installs the latest stable release of Dify by default. The AI Agent checks the official Dify repository for the newest release tag at install time, ensuring you receive a tested, production-ready version.
Can I modify Dify's configuration after AIMA installs it?
Absolutely. After installation, all of Dify's configuration files (docker-compose.yml, .env, etc.) reside on your local machine under your full control. You can adjust any parameter freely. AIMA never locks or restricts your access to the installed software.
Is my data uploaded to AIMA's servers?
No. Dify and all its data run entirely on your local machine. AIMA only performs system detection and dependency installation operations through its Agent protocol during the install process. Your project data and API keys are never uploaded.
How long does the installation take?
It depends on your network speed and existing environment. If Docker is already installed and your connection is fast, expect 5-15 minutes. If AIMA needs to install Docker from scratch and pull all images, it may take 15-30 minutes.
Does AIMA support remote server installs of Dify?
AIMA V1 focuses on local PC and laptop installations across macOS, Linux, and Windows. You can SSH into a remote server and run the AIMA install command there, but the Agent capabilities are currently optimized for desktop operating systems.
You might also want to install
Ready to install Dify?
One command. AIMA handles every dependency and configuration for you.