{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"","title":"Welcome to Bolt DIY","text":"
Bolt.diy allows you to choose the LLM that you use for each prompt! Currently, you can use OpenAI, Anthropic, Ollama, OpenRouter, Gemini, LMStudio, Mistral, xAI, HuggingFace, DeepSeek, or Groq models - and it is easily extended to use any other model supported by the Vercel AI SDK! See the instructions below for running this locally and extending it to include more models.
Join the community!
https://thinktank.ottomator.ai
"},{"location":"#whats-boltdiy","title":"Whats Bolt.diy","text":"Bolt.diy is an AI-powered web development agent that allows you to prompt, run, edit, and deploy full-stack applications directly from your browser\u2014no local setup required. If you're here to build your own AI-powered web dev agent using the Bolt open source codebase, click here to get started!
"},{"location":"#what-makes-boltdiy-different","title":"What Makes Bolt.diy Different","text":"Claude, v0, etc are incredible- but you can't install packages, run backends, or edit code. That\u2019s where Bolt.diy stands out:
Full-Stack in the Browser: Bolt.diy integrates cutting-edge AI models with an in-browser development environment powered by StackBlitz\u2019s WebContainers. This allows you to:
Install and run npm tools and libraries (like Vite, Next.js, and more)
Share your work via a URL
AI with Environment Control: Unlike traditional dev environments where the AI can only assist in code generation, Bolt.diy gives AI models complete control over the entire environment including the filesystem, node server, package manager, terminal, and browser console. This empowers AI agents to handle the whole app lifecycle\u2014from creation to deployment.
Whether you\u2019re an experienced developer, a PM, or a designer, Bolt.diy allows you to easily build production-grade full-stack applications.
For developers interested in building their own AI-powered development tools with WebContainers, check out the open-source Bolt codebase in this repo!
"},{"location":"#setup","title":"Setup","text":"Many of you are new users to installing software from Github. If you have any installation troubles reach out and submit an \"issue\" using the links above, or feel free to enhance this documentation by forking, editing the instructions, and doing a pull request.
Install Git from https://git-scm.com/downloads
Install Node.js from https://nodejs.org/en/download/
Pay attention to the installer notes after completion.
On all operating systems, the path to Node.js should automatically be added to your system path. But you can check your path if you want to be sure. On Windows, you can search for \"edit the system environment variables\" in your system, select \"Environment Variables...\" once you are in the system properties, and then check for a path to Node in your \"Path\" system variable. On a Mac or Linux machine, it will tell you to check if /usr/local/bin is in your $PATH. To determine if usr/local/bin is included in $PATH\u00a0open your Terminal and run:
echo $PATH\u00a0.\n If you see usr/local/bin in the output then you're good to go.
git clone https://github.com/stackblitz-labs/bolt.diy.git\n If you can't see the file indicated above, its likely you can't view hidden files. On Mac, open a Terminal window and enter this command below. On Windows, you will see the hidden files option in File Explorer Settings. A quick Google search will help you if you are stuck here.
defaults write com.apple.finder AppleShowAllFiles YES\n NOTE: you only have to set the ones you want to use and Ollama doesn't need an API key because it runs locally on your computer:
Get your GROQ API Key here: https://console.groq.com/keys
Get your Open AI API Key by following these instructions: https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key
Get your Anthropic API Key in your account settings: https://console.anthropic.com/settings/keys
GROQ_API_KEY=XXX\nOPENAI_API_KEY=XXX\nANTHROPIC_API_KEY=XXX\n Optionally, you can set the debug level:
VITE_LOG_LEVEL=debug\n Important: Never commit your .env.local file to version control. It's already included in .gitignore.
Prerequisites:
Git and Node.js as mentioned above, as well as Docker: https://www.docker.com/
"},{"location":"#1a-using-helper-scripts","title":"1a. Using Helper Scripts","text":"NPM scripts are provided for convenient building:
# Development build\nnpm run dockerbuild\n\n# Production build\nnpm run dockerbuild:prod\n"},{"location":"#1b-direct-docker-build-commands-alternative-to-using-npm-scripts","title":"1b. Direct Docker Build Commands (alternative to using NPM scripts)","text":"You can use Docker's target feature to specify the build environment instead of using NPM scripts if you wish:
# Development build\ndocker build . --target bolt-ai-development\n\n# Production build\ndocker build . --target bolt-ai-production\n"},{"location":"#2-docker-compose-with-profiles-to-run-the-container","title":"2. Docker Compose with Profiles to Run the Container","text":"Use Docker Compose profiles to manage different environments:
# Development environment\ndocker-compose --profile development up\n\n# Production environment\ndocker-compose --profile production up\n When you run the Docker Compose command with the development profile, any changes you make on your machine to the code will automatically be reflected in the site running on the container (i.e. hot reloading still applies!).
"},{"location":"#run-without-docker","title":"Run Without Docker","text":"pnpm install\n If you get an error saying \"command not found: pnpm\" or similar, then that means pnpm isn't installed. You can install it via this:
sudo npm install -g pnpm\n pnpm run dev\n"},{"location":"#adding-new-llms","title":"Adding New LLMs:","text":"To make new LLMs available to use in this version of Bolt.diy, head on over to app/utils/constants.ts and find the constant MODEL_LIST. Each element in this array is an object that has the model ID for the name (get this from the provider's API documentation), a label for the frontend model dropdown, and the provider.
By default, Anthropic, OpenAI, Groq, and Ollama are implemented as providers, but the YouTube video for this repo covers how to extend this to work with more providers if you wish!
When you add a new model to the MODEL_LIST array, it will immediately be available to use when you run the app locally or reload it. For Ollama models, make sure you have the model installed already before trying to use it here!
"},{"location":"#available-scripts","title":"Available Scripts","text":"pnpm run dev: Starts the development server.pnpm run build: Builds the project.pnpm run start: Runs the built application locally using Wrangler Pages. This script uses bindings.sh to set up necessary bindings so you don't have to duplicate environment variables.pnpm run preview: Builds the project and then starts it locally, useful for testing the production build. Note, HTTP streaming currently doesn't work as expected with wrangler pages dev.pnpm test: Runs the test suite using Vitest.pnpm run typecheck: Runs TypeScript type checking.pnpm run typegen: Generates TypeScript types using Wrangler.pnpm run deploy: Builds the project and deploys it to Cloudflare Pages.To start the development server:
pnpm run dev\n This will start the Remix Vite development server. You will need Google Chrome Canary to run this locally if you use Chrome! It's an easy install and a good browser for web development anyway.
"},{"location":"#tips-and-tricks","title":"Tips and Tricks","text":"Here are some tips to get the most out of Bolt.diy:
Be specific about your stack: If you want to use specific frameworks or libraries (like Astro, Tailwind, ShadCN, or any other popular JavaScript framework), mention them in your initial prompt to ensure Bolt scaffolds the project accordingly.
Use the enhance prompt icon: Before sending your prompt, try clicking the 'enhance' icon to have the AI model help you refine your prompt, then edit the results before submitting.
Scaffold the basics first, then add features: Make sure the basic structure of your application is in place before diving into more advanced functionality. This helps Bolt understand the foundation of your project and ensure everything is wired up right before building out more advanced functionality.
Batch simple instructions: Save time by combining simple instructions into one message. For example, you can ask Bolt to change the color scheme, add mobile responsiveness, and restart the dev server, all in one go saving you time and reducing API credit consumption significantly.
The DEFAULT_NUM_CTX environment variable can be used to limit the maximum number of context values used by the qwen2.5-coder model. For example, to limit the context to 24576 values (which uses 32GB of VRAM), set DEFAULT_NUM_CTX=24576 in your .env.local file.
First off, thank you for considering contributing to Bolt.diy! This fork aims to expand the capabilities of the original project by integrating multiple LLM providers and enhancing functionality. Every contribution helps make Bolt.diy a better tool for developers worldwide.
"},{"location":"CONTRIBUTING/#table-of-contents","title":"\ud83d\udccb Table of Contents","text":"This project and everyone participating in it is governed by our Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to the project maintainers.
"},{"location":"CONTRIBUTING/#how-can-i-contribute","title":"How Can I Contribute?","text":""},{"location":"CONTRIBUTING/#reporting-bugs-and-feature-requests","title":"\ud83d\udc1e Reporting Bugs and Feature Requests","text":"We're looking for dedicated contributors to help maintain and grow this project. If you're interested in becoming a core contributor, please fill out our Contributor Application Form.
"},{"location":"CONTRIBUTING/#pull-request-guidelines","title":"Pull Request Guidelines","text":""},{"location":"CONTRIBUTING/#pr-checklist","title":"\ud83d\udcdd PR Checklist","text":"git clone https://github.com/stackblitz-labs/bolt.diy.git\n pnpm install\n .env.example to .env.localGROQ_API_KEY=XXX\nHuggingFace_API_KEY=XXX\nOPENAI_API_KEY=XXX\nANTHROPIC_API_KEY=XXX\n...\n VITE_LOG_LEVEL=debug\n DEFAULT_NUM_CTX=32768\n Some Example Context Values for the qwen2.5-coder:32b models are.
Important: Never commit your .env.local file to version control. It's already included in .gitignore.
pnpm run dev\n Note: You will need Google Chrome Canary to run this locally if you use Chrome! It's an easy install and a good browser for web development anyway.
"},{"location":"CONTRIBUTING/#testing","title":"Testing","text":"Run the test suite with:
pnpm test\n"},{"location":"CONTRIBUTING/#deployment","title":"Deployment","text":"To deploy the application to Cloudflare Pages:
pnpm run deploy\n Make sure you have the necessary permissions and Wrangler is correctly configured for your Cloudflare account.
"},{"location":"CONTRIBUTING/#docker-deployment-documentation","title":"Docker Deployment Documentation","text":"This guide outlines various methods for building and deploying the application using Docker.
"},{"location":"CONTRIBUTING/#build-methods","title":"Build Methods","text":""},{"location":"CONTRIBUTING/#1-using-helper-scripts","title":"1. Using Helper Scripts","text":"NPM scripts are provided for convenient building:
# Development build\nnpm run dockerbuild\n\n# Production build\nnpm run dockerbuild:prod\n"},{"location":"CONTRIBUTING/#2-direct-docker-build-commands","title":"2. Direct Docker Build Commands","text":"You can use Docker's target feature to specify the build environment:
# Development build\ndocker build . --target bolt-ai-development\n\n# Production build\ndocker build . --target bolt-ai-production\n"},{"location":"CONTRIBUTING/#3-docker-compose-with-profiles","title":"3. Docker Compose with Profiles","text":"Use Docker Compose profiles to manage different environments:
# Development environment\ndocker-compose --profile development up\n\n# Production environment\ndocker-compose --profile production up\n"},{"location":"CONTRIBUTING/#running-the-application","title":"Running the Application","text":"After building using any of the methods above, run the container with:
# Development\ndocker run -p 5173:5173 --env-file .env.local bolt-ai:development\n\n# Production\ndocker run -p 5173:5173 --env-file .env.local bolt-ai:production\n"},{"location":"CONTRIBUTING/#deployment-with-coolify","title":"Deployment with Coolify","text":"Coolify provides a straightforward deployment process:
docker compose --profile production up\nThe docker-compose.yaml configuration is compatible with VS Code dev containers:
Ensure you have the appropriate .env.local file configured before running the containers. This file should contain:
.env.localBe specific about your stack: Mention the frameworks or libraries you want to use (e.g., Astro, Tailwind, ShadCN) in your initial prompt. This ensures that Bolt.diy scaffolds the project according to your preferences.
Use the enhance prompt icon: Before sending your prompt, click the enhance icon to let the AI refine your prompt. You can edit the suggested improvements before submitting.
Scaffold the basics first, then add features: Ensure the foundational structure of your application is in place before introducing advanced functionality. This helps Bolt.diy establish a solid base to build on.
Batch simple instructions: Combine simple tasks into a single prompt to save time and reduce API credit consumption. For example: \"Change the color scheme, add mobile responsiveness, and restart the dev server.\"
Check out our Contribution Guide for more details on how to get involved!
"},{"location":"FAQ/#what-are-the-future-plans-for-boltdiy","title":"What are the future plans for Bolt.diy?","text":"Visit our Roadmap for the latest updates. New features and improvements are on the way!
"},{"location":"FAQ/#why-are-there-so-many-open-issuespull-requests","title":"Why are there so many open issues/pull requests?","text":"Bolt.diy began as a small showcase project on @ColeMedin's YouTube channel to explore editing open-source projects with local LLMs. However, it quickly grew into a massive community effort!
We\u2019re forming a team of maintainers to manage demand and streamline issue resolution. The maintainers are rockstars, and we\u2019re also exploring partnerships to help the project thrive.
"},{"location":"FAQ/#how-do-local-llms-compare-to-larger-models-like-claude-35-sonnet-for-boltdiy","title":"How do local LLMs compare to larger models like Claude 3.5 Sonnet for Bolt.diy?","text":"While local LLMs are improving rapidly, larger models like GPT-4o, Claude 3.5 Sonnet, and DeepSeek Coder V2 236b still offer the best results for complex applications. Our ongoing focus is to improve prompts, agents, and the platform to better support smaller local LLMs.
"},{"location":"FAQ/#common-errors-and-troubleshooting","title":"Common Errors and Troubleshooting","text":""},{"location":"FAQ/#there-was-an-error-processing-this-request","title":"\"There was an error processing this request\"","text":"This generic error message means something went wrong. Check both:
pnpm).F12 or right-click > Inspect, then go to the Console tab).This error is sometimes resolved by restarting the Docker container. If that doesn\u2019t work, try switching from Docker to pnpm or vice versa. We\u2019re actively investigating this issue.
A blank preview often occurs due to hallucinated bad code or incorrect commands. To troubleshoot:
Local LLMs like Qwen-2.5-Coder are powerful for small applications but still experimental for larger projects. For better results, consider using larger models like GPT-4o, Claude 3.5 Sonnet, or DeepSeek Coder V2 236b.
Got more questions? Feel free to reach out or open an issue in our GitHub repo!
"}]}