Introduction
Dyad is an open-source desktop application that generates complete web applications from natural language descriptions. Unlike cloud-based alternatives, Dyad runs locally on your machine, giving you full control over your code and data while supporting multiple AI providers including OpenAI, Anthropic, Google Gemini, and local models via Ollama.
What Dyad Does
- Generates full-stack web applications from natural language prompts
- Provides a live preview of generated apps with hot-reloading as code changes
- Supports iterative refinement through conversational follow-up prompts
- Manages project files with a built-in code editor and file tree
- Connects to multiple LLM backends with easy provider switching
Architecture Overview
Dyad is built with Electron for the desktop shell and Next.js for the application UI. The code generation engine sends structured prompts to the configured LLM, parses the response into file operations, and applies them to a local project directory. A built-in development server provides live preview with hot module replacement. The chat interface maintains conversation context across turns, allowing iterative refinement of the generated application.
Self-Hosting & Configuration
- Download pre-built binaries for macOS, Windows, and Linux from GitHub releases
- Or build from source with Node.js 18+ and npm
- Configure LLM providers through the settings panel with API key management
- Supports OpenAI, Anthropic, Google Gemini, DeepSeek, and Ollama backends
- Generated projects are standard Next.js apps deployable anywhere
Key Features
- Local-first architecture with no data sent to third-party servers beyond the chosen LLM
- Multi-provider support lets you switch between AI models mid-conversation
- Built-in live preview with hot-reloading for instant visual feedback
- GitHub integration for version control and project management
- Template system for bootstrapping common application patterns
Comparison with Similar Tools
- Lovable (formerly GPT Engineer) — Cloud-based with subscription pricing; Dyad is free, open-source, and runs locally
- Bolt.new — Browser-based AI builder; Dyad offers offline capability and no usage limits
- v0 by Vercel — Focused on UI components; Dyad generates full applications with backend logic
- Cursor — AI-enhanced code editor; Dyad takes a higher-level approach generating entire apps from descriptions
FAQ
Q: What kinds of apps can Dyad generate? A: Dyad generates Next.js web applications including dashboards, landing pages, CRUD apps, and interactive tools.
Q: Does Dyad work offline? A: Yes, when using a local LLM provider like Ollama, Dyad works entirely offline.
Q: Can I edit the generated code manually? A: Yes, generated code is standard Next.js. You can edit it in Dyad's built-in editor or any external IDE.
Q: How does Dyad handle API keys? A: API keys are stored locally on your machine and are only sent to your chosen LLM provider.