Files
slate/FAQ/index.html
2025-09-04 23:59:21 +00:00

1033 lines
43 KiB
HTML

<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="prev" href="../CONTRIBUTING/">
<link rel="icon" href="../assets/images/favicon.png">
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.18">
<title>Frequently Asked Questions (FAQ) - bolt.diy Docs</title>
<link rel="stylesheet" href="../assets/stylesheets/main.7e37652d.min.css">
<link rel="stylesheet" href="../assets/stylesheets/palette.06af60db.min.css">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
<style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style>
<script>__md_scope=new URL("..",location),__md_hash=e=>[...e].reduce(((e,_)=>(e<<5)-e+_.charCodeAt(0)),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
</head>
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="indigo" data-md-color-accent="indigo">
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
<label class="md-overlay" for="__drawer"></label>
<div data-md-component="skip">
<a href="#frequently-asked-questions-faq" class="md-skip">
Skip to content
</a>
</div>
<div data-md-component="announce">
</div>
<header class="md-header" data-md-component="header">
<nav class="md-header__inner md-grid" aria-label="Header">
<a href=".." title="bolt.diy Docs" class="md-header__button md-logo" aria-label="bolt.diy Docs" data-md-component="logo">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54"/></svg>
</a>
<label class="md-header__button md-icon" for="__drawer">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z"/></svg>
</label>
<div class="md-header__title" data-md-component="header-title">
<div class="md-header__ellipsis">
<div class="md-header__topic">
<span class="md-ellipsis">
bolt.diy Docs
</span>
</div>
<div class="md-header__topic" data-md-component="header-topic">
<span class="md-ellipsis">
Frequently Asked Questions (FAQ)
</span>
</div>
</div>
</div>
<form class="md-header__option" data-md-component="palette">
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="indigo" data-md-color-accent="indigo" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_0">
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_1" hidden>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 6H7c-3.31 0-6 2.69-6 6s2.69 6 6 6h10c3.31 0 6-2.69 6-6s-2.69-6-6-6m0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4M7 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"/></svg>
</label>
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="indigo" data-md-color-accent="indigo" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_1">
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_0" hidden>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 7H7a5 5 0 0 0-5 5 5 5 0 0 0 5 5h10a5 5 0 0 0 5-5 5 5 0 0 0-5-5m0 8a3 3 0 0 1-3-3 3 3 0 0 1 3-3 3 3 0 0 1 3 3 3 3 0 0 1-3 3"/></svg>
</label>
</form>
<script>var palette=__md_get("__palette");if(palette&&palette.color){if("(prefers-color-scheme)"===palette.color.media){var media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent")}for(var[key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
<label class="md-header__button md-icon" for="__search">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5"/></svg>
</label>
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
<input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
<label class="md-search__icon md-icon" for="__search">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11z"/></svg>
</label>
<nav class="md-search__options" aria-label="Search">
<button type="reset" class="md-search__icon md-icon" title="Clear" aria-label="Clear" tabindex="-1">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>
</button>
</nav>
<div class="md-search__suggest" data-md-component="search-suggest"></div>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" tabindex="0" data-md-scrollfix>
<div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
Initializing search
</div>
<ol class="md-search-result__list" role="presentation"></ol>
</div>
</div>
</div>
</div>
</div>
<div class="md-header__source">
<a href="https://github.com/stackblitz-labs/bolt.diy" title="Go to repository" class="md-source" data-md-component="source">
<div class="md-source__icon md-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2025 Fonticons, Inc.--><path fill="currentColor" d="M173.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6m-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3m44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9M252.8 8C114.1 8 8 113.3 8 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C436.2 457.8 504 362.9 504 252 504 113.3 391.5 8 252.8 8M105.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1m-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7m32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1m-11.4-14.7c-1.6 1-1.6 3.6 0 5.9s4.3 3.3 5.6 2.3c1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2"/></svg>
</div>
<div class="md-source__repository">
bolt.diy
</div>
</a>
</div>
</nav>
</header>
<div class="md-container" data-md-component="container">
<nav class="md-tabs" aria-label="Tabs" data-md-component="tabs">
<div class="md-grid">
<ul class="md-tabs__list">
<li class="md-tabs__item">
<a href=".." class="md-tabs__link">
Welcome to bolt diy
</a>
</li>
<li class="md-tabs__item">
<a href="../CONTRIBUTING/" class="md-tabs__link">
Contribution Guidelines
</a>
</li>
<li class="md-tabs__item md-tabs__item--active">
<a href="./" class="md-tabs__link">
Frequently Asked Questions (FAQ)
</a>
</li>
</ul>
</div>
</nav>
<main class="md-main" data-md-component="main">
<div class="md-main__inner md-grid">
<div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--primary md-nav--lifted md-nav--integrated" aria-label="Navigation" data-md-level="0">
<label class="md-nav__title" for="__drawer">
<a href=".." title="bolt.diy Docs" class="md-nav__button md-logo" aria-label="bolt.diy Docs" data-md-component="logo">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54"/></svg>
</a>
bolt.diy Docs
</label>
<div class="md-nav__source">
<a href="https://github.com/stackblitz-labs/bolt.diy" title="Go to repository" class="md-source" data-md-component="source">
<div class="md-source__icon md-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2025 Fonticons, Inc.--><path fill="currentColor" d="M173.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6m-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3m44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9M252.8 8C114.1 8 8 113.3 8 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C436.2 457.8 504 362.9 504 252 504 113.3 391.5 8 252.8 8M105.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1m-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7m32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1m-11.4-14.7c-1.6 1-1.6 3.6 0 5.9s4.3 3.3 5.6 2.3c1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2"/></svg>
</div>
<div class="md-source__repository">
bolt.diy
</div>
</a>
</div>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href=".." class="md-nav__link">
<span class="md-ellipsis">
Welcome to bolt diy
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../CONTRIBUTING/" class="md-nav__link">
<span class="md-ellipsis">
Contribution Guidelines
</span>
</a>
</li>
<li class="md-nav__item md-nav__item--active">
<input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
<label class="md-nav__link md-nav__link--active" for="__toc">
<span class="md-ellipsis">
Frequently Asked Questions (FAQ)
</span>
<span class="md-nav__icon md-icon"></span>
</label>
<a href="./" class="md-nav__link md-nav__link--active">
<span class="md-ellipsis">
Frequently Asked Questions (FAQ)
</span>
</a>
<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
<label class="md-nav__title" for="__toc">
<span class="md-nav__icon md-icon"></span>
Table of contents
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#models-and-setup" class="md-nav__link">
<span class="md-ellipsis">
Models and Setup
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#best-practices" class="md-nav__link">
<span class="md-ellipsis">
Best Practices
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#project-information" class="md-nav__link">
<span class="md-ellipsis">
Project Information
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#new-features-technologies" class="md-nav__link">
<span class="md-ellipsis">
New Features &amp; Technologies
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#model-comparisons" class="md-nav__link">
<span class="md-ellipsis">
Model Comparisons
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#troubleshooting" class="md-nav__link">
<span class="md-ellipsis">
Troubleshooting
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#get-help-support" class="md-nav__link">
<span class="md-ellipsis">
Get Help &amp; Support
</span>
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
<h1 id="frequently-asked-questions-faq">Frequently Asked Questions (FAQ)<a class="headerlink" href="#frequently-asked-questions-faq" title="Permanent link">&para;</a></h1>
<h2 id="models-and-setup">Models and Setup<a class="headerlink" href="#models-and-setup" title="Permanent link">&para;</a></h2>
<details class="question">
<summary>What are the best models for bolt.diy?</summary>
</details>
<p>For the best experience with bolt.diy, we recommend using the following models from our 19 supported providers:</p>
<div class="highlight"><pre><span></span><code>**Top Recommended Models:**
- **Claude 3.5 Sonnet** (Anthropic): Best overall coder, excellent for complex applications
- **GPT-4o** (OpenAI): Strong alternative with great performance across all use cases
- **Claude 4 Opus** (Anthropic): Latest flagship model with enhanced capabilities
- **Gemini 2.0 Flash** (Google): Exceptional speed for rapid development
- **DeepSeekCoder V3** (DeepSeek): Best open-source model for coding tasks
**Self-Hosting Options:**
- **DeepSeekCoder V2 236b**: Powerful self-hosted option
- **Qwen 2.5 Coder 32b**: Best for moderate hardware requirements
- **Ollama models**: Local inference with various model sizes
**Latest Specialized Models:**
- **Moonshot AI (Kimi)**: Kimi K2 models with advanced reasoning capabilities
- **xAI Grok 4**: Latest Grok model with 256K context window
- **Anthropic Claude 4 Opus**: Latest flagship model from Anthropic
!!! tip &quot;Model Selection Tips&quot;
- Use larger models (7B+ parameters) for complex applications
- Claude models excel at structured code generation
- GPT-4o provides excellent general-purpose coding assistance
- Gemini models offer the fastest response times
</code></pre></div>
<details class="question">
<summary>How do I configure API keys for different providers?</summary>
</details>
<p>You can configure API keys in two ways:</p>
<div class="highlight"><pre><span></span><code>**Option 1: Environment Variables (Recommended for production)**
Create a `.env.local` file in your project root:
```bash
ANTHROPIC_API_KEY=your_anthropic_key_here
OPENAI_API_KEY=your_openai_key_here
GOOGLE_GENERATIVE_AI_API_KEY=your_google_key_here
MOONSHOT_API_KEY=your_moonshot_key_here
XAI_API_KEY=your_xai_key_here
```
**Option 2: In-App Configuration**
- Click the settings icon (⚙️) in the sidebar
- Navigate to the &quot;Providers&quot; tab
- Switch between &quot;Cloud Providers&quot; and &quot;Local Providers&quot; tabs
- Click on a provider card to expand its configuration
- Click on the &quot;API Key&quot; field to enter edit mode
- Paste your API key and press Enter to save
- Look for the green checkmark to confirm proper configuration
!!! note &quot;Security Note&quot;
Never commit API keys to version control. The `.env.local` file is already in `.gitignore`.
</code></pre></div>
<details class="question">
<summary>How do I add a new LLM provider?</summary>
</details>
<p>bolt.diy uses a modular provider architecture. To add a new provider:</p>
<div class="highlight"><pre><span></span><code>1. **Create a Provider Class** in `app/lib/modules/llm/providers/your-provider.ts`
2. **Implement the BaseProvider interface** with your provider&#39;s specific logic
3. **Register the provider** in `app/lib/modules/llm/registry.ts`
4. **The system automatically detects** and registers your new provider
See the [Adding New LLMs](../#adding-new-llms) section for complete implementation details.
</code></pre></div>
<details class="question">
<summary>How do I set up Moonshot AI (Kimi) provider?</summary>
</details>
<p>Moonshot AI provides access to advanced Kimi models with excellent reasoning capabilities:</p>
<div class="highlight"><pre><span></span><code>**Setup Steps:**
1. Visit [Moonshot AI Platform](https://platform.moonshot.ai/console/api-keys)
2. Create an account and generate an API key
3. Add `MOONSHOT_API_KEY=your_key_here` to your `.env.local` file
4. Or configure it directly in Settings → Providers → Cloud Providers → Moonshot
**Available Models:**
- **Kimi K2 Preview**: Latest Kimi model with 128K context
- **Kimi K2 Turbo**: Fast inference optimized version
- **Kimi Thinking**: Specialized for complex reasoning tasks
- **Moonshot v1 series**: Legacy models with vision capabilities
!!! tip &quot;Moonshot AI Features&quot;
- Excellent for Chinese language tasks
- Strong reasoning capabilities
- Vision-enabled models available
- Competitive pricing
</code></pre></div>
<details class="question">
<summary>What are the latest xAI Grok models?</summary>
</details>
<p>xAI has released several new Grok models with enhanced capabilities:</p>
<div class="highlight"><pre><span></span><code>**Latest Models:**
- **Grok 4**: Most advanced model with 256K context window
- **Grok 4 (07-09)**: Specialized variant for specific tasks
- **Grok 3 Beta**: Previous generation with 131K context
- **Grok 3 Mini variants**: Optimized for speed and efficiency
**Setup:**
1. Get your API key from [xAI Platform](https://docs.x.ai/docs/quickstart#creating-an-api-key)
2. Add `XAI_API_KEY=your_key_here` to your `.env.local` file
3. Models will be available in the provider selection
</code></pre></div>
<h2 id="best-practices">Best Practices<a class="headerlink" href="#best-practices" title="Permanent link">&para;</a></h2>
<details class="question">
<summary>How do I access help and documentation?</summary>
</details>
<p>bolt.diy provides multiple ways to access help and documentation:</p>
<div class="highlight"><pre><span></span><code>**Help Icon in Sidebar:**
- Look for the question mark (?) icon in the sidebar
- Click it to open the full documentation in a new tab
- Provides instant access to guides, troubleshooting, and FAQs
**Documentation Resources:**
- **Main Documentation**: Complete setup and feature guides
- **FAQ Section**: Answers to common questions
- **Troubleshooting**: Solutions for common issues
- **Best Practices**: Tips for optimal usage
**Community Support:**
- **GitHub Issues**: Report bugs and request features
- **Community Forum**: [thinktank.ottomator.ai](https://thinktank.ottomator.ai)
</code></pre></div>
<details class="question">
<summary>How do I get the best results with bolt.diy?</summary>
</details>
<p>Follow these proven strategies for optimal results:</p>
<div class="highlight"><pre><span></span><code>**Project Setup:**
- **Be specific about your stack**: Mention frameworks/libraries (Astro, Tailwind, ShadCN, Next.js) in your initial prompt
- **Choose appropriate templates**: Use our 15+ project templates for quick starts
- **Configure providers properly**: Set up your preferred LLM providers before starting
**Development Workflow:**
- **Use the enhance prompt icon**: Click the enhance icon to let AI refine your prompts before submitting
- **Scaffold basics first**: Build foundational structure before adding advanced features
- **Batch simple instructions**: Combine tasks like *&quot;Change colors, add mobile responsiveness, restart dev server&quot;*
**Advanced Features:**
- **Leverage MCP tools**: Use Model Context Protocol for enhanced AI capabilities
- **Connect databases**: Integrate Supabase for backend functionality
- **Use Git integration**: Version control your projects with GitHub
- **Deploy easily**: Use built-in Vercel, Netlify, or GitHub Pages deployment
</code></pre></div>
<details class="question">
<summary>How do I use MCP (Model Context Protocol) tools?</summary>
</details>
<p>MCP extends bolt.diy's AI capabilities with external tools:</p>
<div class="highlight"><pre><span></span><code>**Setting up MCP:**
1. Go to Settings → MCP tab
2. Add MCP server configurations
3. Configure server endpoints and authentication
4. Enable/disable servers as needed
**Available MCP Capabilities:**
- Database connections and queries
- File system operations
- API integrations
- Custom business logic tools
The MCP integration allows the AI to interact with external services and data sources during conversations.
</code></pre></div>
<details class="question">
<summary>How do I deploy my bolt.diy projects?</summary>
</details>
<p>bolt.diy supports one-click deployment to multiple platforms:</p>
<div class="highlight"><pre><span></span><code>**Supported Platforms:**
- **Vercel**: Go to Settings → Connections → Vercel, then deploy with one click
- **Netlify**: Connect your Netlify account and deploy instantly
- **GitHub Pages**: Push to GitHub and enable Pages in repository settings
**Deployment Features:**
- Automatic build configuration for popular frameworks
- Environment variable management
- Custom domain support
- Preview deployments for testing
</code></pre></div>
<details class="question">
<summary>How do I use Git integration features?</summary>
</details>
<p>bolt.diy provides comprehensive Git and GitHub integration:</p>
<div class="highlight"><pre><span></span><code>**Basic Git Operations:**
- Import existing repositories by URL
- Create new repositories on GitHub
- Automatic commits for major changes
- Push/pull changes seamlessly
**Advanced Features:**
- Connect GitHub account in Settings → Connections
- Import from your connected repositories
- Version control with diff visualization
- Collaborative development support
</code></pre></div>
<h2 id="project-information">Project Information<a class="headerlink" href="#project-information" title="Permanent link">&para;</a></h2>
<details class="question">
<summary>How do I contribute to bolt.diy?</summary>
</details>
<p>Check out our <a href="../CONTRIBUTING/">Contribution Guide</a> for more details on how to get involved!</p>
<details class="question">
<summary>What are the future plans for bolt.diy?</summary>
</details>
<p>Visit our <a href="https://roadmap.sh/r/ottodev-roadmap-2ovzo">Roadmap</a> for the latest updates.<br />
New features and improvements are on the way!</p>
<details class="question">
<summary>Why are there so many open issues/pull requests?</summary>
</details>
<p>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!</p>
<div class="highlight"><pre><span></span><code>We&#39;re forming a team of maintainers to manage demand and streamline issue resolution. The maintainers are rockstars, and we&#39;re also exploring partnerships to help the project thrive.
</code></pre></div>
<h2 id="new-features-technologies">New Features &amp; Technologies<a class="headerlink" href="#new-features-technologies" title="Permanent link">&para;</a></h2>
<details class="question">
<summary>What's new in bolt.diy?</summary>
</details>
<p>Recent major additions to bolt.diy include:</p>
<div class="highlight"><pre><span></span><code>**Advanced AI Capabilities:**
- **19 LLM Providers**: Support for Anthropic, OpenAI, Google, DeepSeek, Cohere, and more
- **MCP Integration**: Model Context Protocol for enhanced AI tool calling
- **Dynamic Model Loading**: Automatic model discovery from provider APIs
**Development Tools:**
- **WebContainer**: Secure sandboxed development environment
- **Live Preview**: Real-time application previews without leaving the editor
- **Project Templates**: 15+ starter templates for popular frameworks
**Version Control &amp; Collaboration:**
- **Git Integration**: Import/export projects with GitHub
- **Automatic Commits**: Smart version control for project changes
- **Diff Visualization**: See code changes clearly
**Backend &amp; Database:**
- **Supabase Integration**: Built-in database and authentication
- **API Integration**: Connect to external services and databases
**Deployment &amp; Production:**
- **One-Click Deployment**: Vercel, Netlify, and GitHub Pages support
- **Environment Management**: Production-ready configuration
- **Build Optimization**: Automatic configuration for popular frameworks
</code></pre></div>
<details class="question">
<summary>How do I use the new project templates?</summary>
</details>
<p>bolt.diy offers templates for popular frameworks and technologies:</p>
<div class="highlight"><pre><span></span><code>**Getting Started:**
1. Start a new project in bolt.diy
2. Browse available templates in the starter selection
3. Choose your preferred technology stack
4. The AI will scaffold your project with best practices
**Available Templates:**
- **Frontend**: React, Vue, Angular, Svelte, SolidJS
- **Full-Stack**: Next.js, Astro, Qwik, Remix, Nuxt
- **Mobile**: Expo, React Native
- **Content**: Slidev presentations, Astro blogs
- **Vanilla**: Vite with TypeScript/JavaScript
Templates include pre-configured tooling, linting, and build processes.
</code></pre></div>
<details class="question">
<summary>How does WebContainer work?</summary>
</details>
<p>WebContainer provides a secure development environment:</p>
<div class="highlight"><pre><span></span><code>**Features:**
- **Isolated Environment**: Secure sandbox for running code
- **Full Node.js Support**: Run npm, build tools, and dev servers
- **Live File System**: Direct manipulation of project files
- **Terminal Integration**: Execute commands with real-time output
**Supported Technologies:**
- All major JavaScript frameworks (React, Vue, Angular, etc.)
- Build tools (Vite, Webpack, Parcel)
- Package managers (npm, pnpm, yarn)
</code></pre></div>
<details class="question">
<summary>How do I connect external databases?</summary>
</details>
<p>Use Supabase for backend database functionality:</p>
<div class="highlight"><pre><span></span><code>**Setup Process:**
1. Create a Supabase project at supabase.com
2. Get your project URL and API keys
3. Configure the connection in your bolt.diy project
4. Use Supabase tools to interact with your database
**Available Features:**
- Real-time subscriptions
- Built-in authentication
- Row Level Security (RLS)
- Automatic API generation
- Database migrations
</code></pre></div>
<h2 id="model-comparisons">Model Comparisons<a class="headerlink" href="#model-comparisons" title="Permanent link">&para;</a></h2>
<details class="question">
<summary>How do local LLMs compare to larger models like Claude 3.5 Sonnet for bolt.diy?</summary>
</details>
<p>While local LLMs are improving rapidly, larger models still offer the best results for complex applications. Here's the current landscape:</p>
<div class="highlight"><pre><span></span><code>**Recommended for Production:**
- **Claude 4 Opus**: Latest flagship model with enhanced reasoning (200K context)
- **Claude 3.5 Sonnet**: Proven excellent performance across all tasks
- **GPT-4o**: Strong general-purpose coding with great reliability
- **xAI Grok 4**: Latest Grok with 256K context window
**Fast &amp; Efficient:**
- **Gemini 2.0 Flash**: Exceptional speed for rapid development
- **Claude 3 Haiku**: Cost-effective for simpler tasks
- **xAI Grok 3 Mini Fast**: Optimized for speed and efficiency
**Advanced Reasoning:**
- **Moonshot AI Kimi K2**: Advanced reasoning with 128K context
- **Moonshot AI Kimi Thinking**: Specialized for complex reasoning tasks
**Open Source &amp; Self-Hosting:**
- **DeepSeekCoder V3**: Best open-source model available
- **DeepSeekCoder V2 236b**: Powerful self-hosted option
- **Qwen 2.5 Coder 32b**: Good balance of performance and resource usage
**Local Models (Ollama):**
- Best for privacy and offline development
- Use 7B+ parameter models for reasonable performance
- Still experimental for complex, large-scale applications
!!! tip &quot;Model Selection Guide&quot;
- Use Claude/GPT-4o for complex applications
- Use Gemini for fast prototyping
- Use local models for privacy/offline development
- Always test with your specific use case
</code></pre></div>
<h2 id="troubleshooting">Troubleshooting<a class="headerlink" href="#troubleshooting" title="Permanent link">&para;</a></h2>
<details class="error">
<summary>There was an error processing this request</summary>
</details>
<p>This generic error message means something went wrong. Check these locations:</p>
<div class="highlight"><pre><span></span><code>- **Terminal output**: If you started with Docker or `pnpm`
- **Browser developer console**: Press `F12` → Console tab
- **Server logs**: Check for any backend errors
- **Network tab**: Verify API calls are working
</code></pre></div>
<details class="error">
<summary>x-api-key header missing</summary>
</details>
<p>This authentication error can be resolved by:</p>
<div class="highlight"><pre><span></span><code>- **Restarting the container**: `docker compose restart` (if using Docker)
- **Switching run methods**: Try `pnpm` if using Docker, or vice versa
- **Checking API keys**: Verify your API keys are properly configured
- **Clearing browser cache**: Sometimes cached authentication causes issues
</code></pre></div>
<details class="error">
<summary>Blank preview when running the app</summary>
</details>
<p>Blank previews usually indicate code generation issues:</p>
<div class="highlight"><pre><span></span><code>- **Check developer console** for JavaScript errors
- **Verify WebContainer is running** properly
- **Try refreshing** the preview pane
- **Check for hallucinated code** in the generated files
- **Restart the development server** if issues persist
</code></pre></div>
<details class="error">
<summary>MCP server connection failed</summary>
</details>
<p>If you're having trouble with MCP integrations:</p>
<div class="highlight"><pre><span></span><code>- **Verify server configuration** in Settings → MCP
- **Check server endpoints** and authentication credentials
- **Test server connectivity** outside of bolt.diy
- **Review MCP server logs** for specific error messages
- **Ensure server supports** the MCP protocol version
</code></pre></div>
<details class="error">
<summary>Git integration not working</summary>
</details>
<p>Common Git-related issues and solutions:</p>
<div class="highlight"><pre><span></span><code>- **GitHub connection failed**: Verify your GitHub token has correct permissions
- **Repository not found**: Check repository URL and access permissions
- **Push/pull failed**: Ensure you have write access to the repository
- **Merge conflicts**: Resolve conflicts manually or use the diff viewer
- **Large files blocked**: Check GitHub&#39;s file size limits
</code></pre></div>
<details class="error">
<summary>Deployment failed</summary>
</details>
<p>Deployment issues can be resolved by:</p>
<div class="highlight"><pre><span></span><code>- **Checking build logs** for specific error messages
- **Verifying environment variables** are set correctly
- **Testing locally** before deploying
- **Checking platform-specific requirements** (Node version, build commands)
- **Reviewing deployment configuration** in platform settings
</code></pre></div>
<details class="error">
<summary>Everything works, but the results are bad</summary>
</details>
<p>For suboptimal AI responses, try these solutions:</p>
<div class="highlight"><pre><span></span><code>- **Switch to a more capable model**: Use Claude 3.5 Sonnet, GPT-4o, or Claude 4 Opus
- **Be more specific** in your prompts about requirements and technologies
- **Use the enhance prompt feature** to refine your requests
- **Break complex tasks** into smaller, focused prompts
- **Provide context** about your project structure and goals
</code></pre></div>
<details class="error">
<summary>WebContainer preview not loading</summary>
</details>
<p>If the live preview isn't working:</p>
<div class="highlight"><pre><span></span><code>- **Check WebContainer status** in the terminal
- **Verify Node.js compatibility** with your project
- **Restart the development environment**
- **Clear browser cache** and reload
- **Check for conflicting ports** (default is 5173)
</code></pre></div>
<details class="error">
<summary>Received structured exception #0xc0000005: access violation</summary>
</details>
<p><strong>Windows-specific issue</strong>: Update the <a href="https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170">Visual C++ Redistributable</a></p>
<details class="error">
<summary>Miniflare or Wrangler errors in Windows</summary>
</details>
<p><strong>Windows development environment</strong>: Install Visual Studio C++ (version 14.40.33816 or later). More details in <a href="https://github.com/stackblitz-labs/bolt.diy/issues/19">GitHub Issues</a></p>
<details class="error">
<summary>Provider not showing up after adding it</summary>
</details>
<p>If your custom LLM provider isn't appearing:</p>
<div class="highlight"><pre><span></span><code>- **Restart the development server** to reload providers
- **Check the provider registry** in `app/lib/modules/llm/registry.ts`
- **Verify the provider class** extends `BaseProvider` correctly
- **Check browser console** for provider loading errors
- **Ensure proper TypeScript compilation** without errors
</code></pre></div>
<hr />
<h2 id="get-help-support">Get Help &amp; Support<a class="headerlink" href="#get-help-support" title="Permanent link">&para;</a></h2>
<div class="admonition tip">
<p class="admonition-title">Community Support</p>
</div>
<p><a href="https://thinktank.ottomator.ai/c/bolt-diy/17" target="_blank">Join the bolt.diy Community</a> for discussions and help</p>
<div class="admonition bug">
<p class="admonition-title">Report Issues</p>
</div>
<p><a href="https://github.com/stackblitz-labs/bolt.diy/issues/19" target="_blank">Open an Issue</a> in our GitHub Repository</p>
</article>
</div>
<script>var tabs=__md_get("__tabs");if(Array.isArray(tabs))e:for(var set of document.querySelectorAll(".tabbed-set")){var labels=set.querySelector(".tabbed-labels");for(var tab of tabs)for(var label of labels.getElementsByTagName("label"))if(label.innerText.trim()===tab){var input=document.getElementById(label.htmlFor);input.checked=!0;continue e}}</script>
<script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
</div>
<button type="button" class="md-top md-icon" data-md-component="top" hidden>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 20h-2V8l-5.5 5.5-1.42-1.42L12 4.16l7.92 7.92-1.42 1.42L13 8z"/></svg>
Back to top
</button>
</main>
<footer class="md-footer">
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-copyright">
</div>
<div class="md-social">
<a href="https://github.com/stackblitz-labs/bolt.diy" target="_blank" rel="noopener" title="bolt.diy" class="md-social__link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2025 Fonticons, Inc.--><path fill="currentColor" d="M173.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6m-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3m44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9M252.8 8C114.1 8 8 113.3 8 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C436.2 457.8 504 362.9 504 252 504 113.3 391.5 8 252.8 8M105.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1m-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7m32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1m-11.4-14.7c-1.6 1-1.6 3.6 0 5.9s4.3 3.3 5.6 2.3c1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2"/></svg>
</a>
<a href="https://thinktank.ottomator.ai/" target="_blank" rel="noopener" title="bolt.diy Discourse" class="md-social__link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2025 Fonticons, Inc.--><path fill="currentColor" d="M225.9 32C103.3 32 0 130.5 0 252.1 0 256 .1 480 .1 480l225.8-.2c122.7 0 222.1-102.3 222.1-223.9S348.6 32 225.9 32M224 384c-19.4 0-37.9-4.3-54.4-12.1L88.5 392l22.9-75c-9.8-18.1-15.4-38.9-15.4-61 0-70.7 57.3-128 128-128s128 57.3 128 128-57.3 128-128 128"/></svg>
</a>
<a href="https://x.com/bolt_diy" target="_blank" rel="noopener" title="bolt.diy on X" class="md-social__link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2025 Fonticons, Inc.--><path fill="currentColor" d="M357.2 48h70.6L273.6 224.2 455 464H313L201.7 318.6 74.5 464H3.8l164.9-188.5L-5.2 48h145.6l100.5 132.9zm-24.8 373.8h39.1L119.1 88h-42z"/></svg>
</a>
<a href="https://bsky.app/profile/bolt.diy" target="_blank" rel="noopener" title="bolt.diy on Bluesky" class="md-social__link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2025 Fonticons, Inc.--><path fill="currentColor" d="M407.8 294.7c-3.3-.4-6.7-.8-10-1.3 3.4.4 6.7.9 10 1.3M288 227.1c-26.1-50.7-97.1-145.2-163.1-191.8C61.6-9.4 37.5-1.7 21.6 5.5 3.3 13.8 0 41.9 0 58.4S9.1 194 15 213.9c19.5 65.7 89.1 87.9 153.2 80.7 3.3-.5 6.6-.9 10-1.4-3.3.5-6.6 1-10 1.4-93.9 14-177.3 48.2-67.9 169.9C220.6 589.1 265.1 437.8 288 361.1c22.9 76.7 49.2 222.5 185.6 103.4 102.4-103.4 28.1-156-65.8-169.9-3.3-.4-6.7-.8-10-1.3 3.4.4 6.7.9 10 1.3 64.1 7.1 133.6-15.1 153.2-80.7C566.9 194 576 75 576 58.4s-3.3-44.7-21.6-52.9c-15.8-7.1-40-14.9-103.2 29.8C385.1 81.9 314.1 176.4 288 227.1"/></svg>
</a>
</div>
</div>
</div>
</footer>
</div>
<div class="md-dialog" data-md-component="dialog">
<div class="md-dialog__inner md-typeset"></div>
</div>
<script id="__config" type="application/json">{"base": "..", "features": ["navigation.tabs", "navigation.sections", "toc.follow", "toc.integrate", "navigation.top", "search.suggest", "search.highlight", "content.tabs.link", "content.code.annotation", "content.code.copy"], "search": "../assets/javascripts/workers/search.973d3a69.min.js", "tags": null, "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": null}</script>
<script src="../assets/javascripts/bundle.92b07e13.min.js"></script>
</body>
</html>