stackblitz-labs/bolt.diy
A WebContainer workspace for building web apps with your choice of AI model
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
bolt.diy is a TypeScript workspace that separates model inference from project execution. The chat composer selects a provider and model for each prompt; the application uses Vercel AI SDK adapters such as @ai-sdk/openai, @ai-sdk/anthropic, and @ai-sdk/google. Generated project files can be edited in the CodeMirror workbench, while WebContainers run the Node.js project and its development server in the browser. Hosting the workspace does not move that preview runtime onto the application server.
The source tree separates the web application in app/ from the Electron shell in electron/. The web build uses React Router, with Vite configuration for both web and desktop paths. Model adapters are the extension point for inference providers; MCP is a separate tool interface, backed by @ai-sdk/mcp and @modelcontextprotocol/sdk. Users select MCP tools from the prompt attachment menu, while external service connections are configured in Settings → Integrations → Connectors.
Key Capabilities & Differentiators
The workspace integrates 22+ cloud and local model providers. OpenRouter, Anthropic, OpenAI, and Google are enabled by default; other providers, including Ollama and LM Studio, can be enabled in Settings. When a prompt names a supported framework explicitly, the workspace can select a matching starter with detected install and development-server commands before the first customization request. The workbench keeps code editing, terminal output, visual diffs, and live preview in one place.
Projects can be cloned from or pushed to Git, restored from snapshots, or exported as ZIP files; file locking helps manage conflicts. Supabase integration and MCP-backed project and web tools extend the workflow beyond code editing. The workspace also offers publishing to Netlify, Vercel, and GitHub Pages. Those integrations are publishing paths for generated projects, not hosting options for the workspace itself or a guarantee that every generated backend will run on every target.
Trade-offs & Limitations
Against hosted Bolt.new, the case for bolt.diy is control over workspace hosting and model selection, not presumed feature parity. That control comes with responsibility for provider credentials, endpoint reachability, and release validation. Cloud inference avoids provisioning model hardware but leaves cost and rate limits with the chosen provider. Local inference shifts compute and memory requirements to the inference host, while preview builds and development servers still consume resources in the user's browser.
For remote hosting, UI-entered API keys are stored in JavaScript-accessible cookies and sent to the application server. Use HTTPS, restrict access, and decide whether UI entry or environment-based configuration fits your credential policy. For enterprise adoption, check WebContainers API commercial terms separately: the workspace's MIT license does not resolve the licensing obligations of its browser execution dependency.
Hardware & Deployment Guide
For a source-based development run, use Node.js ≥22.12.0 and pnpm ≥9.15.9, install dependencies with pnpm install, then run pnpm run dev and open http://localhost:5173. For self-hosting, docker-compose.yaml defines the app-prod service, builds the bolt-ai-production Dockerfile target, and maps port 5173:5173. Compose uses .env for substitution and passes both .env and .env.local into the container; keep shared values in sync and keep both files out of version control. Electron installers are available for Windows, macOS, and Linux.
Cloud mode relies on provider APIs. A local model endpoint can keep inference local, but package installation, connectors, and publishing may still need network access; test those separately if offline operation is a requirement. Release v1.0.2 fixed the WebContainer development-server lifecycle and added MCP-backed project and web tools. v1.0.3 focused on the release workflow's pnpm version and CI lint and test fixes. The stated direction is maintenance and reliability work rather than new features.
Developers and prototyping teams building Node.js web apps who want in-browser editing and preview, per-prompt model choice, and control over hosting or inference endpoints.
You need a managed workspace with minimal operational setup, a verified fully offline workflow out of the box, or an enterprise rollout before WebContainers licensing and credential handling are cleared.
Quick Start & Installation
git clone https://github.com/stackblitz-labs/bolt.diy.git cd bolt.diy pnpm install
Comparison vs. Top Chat UI & AI Apps Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| bolt.diy ★ | 20.2k | +33 | TypeScript | MIT | A WebContainer workspace for building web apps with your choice of AI model |
| dyad | 22.5k | +59 | TypeScript | — | Local desktop AI app builder with bring-your-own-key model access |
| open-design | 110.9k | +1k | TypeScript | Apache-2.0 | Local-first design workspace that turns coding-agent output into reviewable prot |
| openclaw | 395.6k | +570 | TypeScript | MIT | A self-hosted Gateway for one AI assistant across chats and devices |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/stackblitz-labs/bolt.diy.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about bolt.diy
How do local model endpoints fit into the workspace, and what changes with Docker?
OLLAMA_API_BASE_URL or LMSTUDIO_API_BASE_URL. If bolt.diy runs in Docker and the model server runs on the host, use an address reachable from the container, such as host.docker.internal where supported. The container's 127.0.0.1 is not the host.Do I need a GPU, and how should I size the machines?
Does the MIT license cover an enterprise self-hosted rollout?
When should I choose bolt.diy over Bolt.new?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy