Heuehneje commited on
Commit
4ea3da1
·
verified ·
1 Parent(s): ff6af7d

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +337 -0
README.md ADDED
@@ -0,0 +1,337 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Bolt DIY Assistant
3
+ emoji: ⚡
4
+ colorFrom: blue
5
+ colorTo: indigo
6
+ sdk: docker
7
+ app_port: 3000
8
+ pinned: false
9
+ ---
10
+
11
+ # bolt.diy (Previously oTToDev)
12
+ [![bolt.diy: AI-Powered Full-Stack Web Development in the Browser](./public/social_preview_index.jpg)](https://bolt.diy)
13
+
14
+ Welcome to bolt.diy, the official open source version of Bolt.new (previously known as oTToDev and bolt.new ANY LLM), which 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.
15
+
16
+ Check the [bolt.diy Docs](https://stackblitz-labs.github.io/bolt.diy/) for more information.
17
+
18
+ Also [this pinned post in our community](https://thinktank.ottomator.ai/t/videos-tutorial-helpful-content/3243) has a bunch of incredible resources for running and deploying bolt.diy yourself!
19
+
20
+ We have also launched an experimental agent called the "bolt.diy Expert" that can answer common questions about bolt.diy. Find it here on the [oTTomator Live Agent Studio](https://studio.ottomator.ai/).
21
+
22
+ bolt.diy was originally started by [Cole Medin](https://www.youtube.com/@ColeMedin) but has quickly grown into a massive community effort to build the BEST open source AI coding assistant!
23
+
24
+ ## Table of Contents
25
+
26
+ - [Join the Community](#join-the-community)
27
+ - [Requested Additions](#requested-additions)
28
+ - [Features](#features)
29
+ - [Setup](#setup)
30
+ - [Run the Application](#run-the-application)
31
+ - [Available Scripts](#available-scripts)
32
+ - [Contributing](#contributing)
33
+ - [Roadmap](#roadmap)
34
+ - [FAQ](#faq)
35
+
36
+ ## Join the community
37
+
38
+ [Join the bolt.diy community here, in the oTTomator Think Tank!](https://thinktank.ottomator.ai)
39
+
40
+
41
+ ## Requested Additions
42
+
43
+ - OpenRouter Integration (@coleam00)
44
+ - Gemini Integration (@jonathands)
45
+ - Autogenerate Ollama models from what is downloaded (@yunatamos)
46
+ - Filter models by provider (@jasonm23)
47
+ - Download project as ZIP (@fabwaseem)
48
+ - Improvements to the main bolt.new prompt in `app\lib\.server\llm\prompts.ts` (@kofi-bhr)
49
+ - DeepSeek API Integration (@zenith110)
50
+ - Mistral API Integration (@ArulGandhi)
51
+ - "Open AI Like" API Integration (@ZerxZ)
52
+ - Ability to sync files (one way sync) to local folder (@muzafferkadir)
53
+ - Containerize the application with Docker for easy installation (@aaronbolton)
54
+ - Publish projects directly to GitHub (@goncaloalves)
55
+ - Ability to enter API keys in the UI (@ali00209)
56
+ - xAI Grok Beta Integration (@milutinke)
57
+ - LM Studio Integration (@karrot0)
58
+ - HuggingFace Integration (@ahsan3219)
59
+ - Bolt terminal to see the output of LLM run commands (@thecodacus)
60
+ - Streaming of code output (@thecodacus)
61
+ - Ability to revert code to earlier version (@wonderwhy-er)
62
+ - Cohere Integration (@hasanraiyan)
63
+ - Dynamic model max token length (@hasanraiyan)
64
+ - Better prompt enhancing (@SujalXplores)
65
+ - Prompt caching (@SujalXplores)
66
+ - Load local projects into the app (@wonderwhy-er)
67
+ - Together Integration (@mouimet-infinisoft)
68
+ - Mobile friendly (@qwikode)
69
+ - Better prompt enhancing (@SujalXplores)
70
+ - Attach images to prompts (@atrokhym)
71
+ - Added Git Clone button (@thecodacus)
72
+ - Git Import from url (@thecodacus)
73
+ - PromptLibrary to have different variations of prompts for different use cases (@thecodacus)
74
+ - Detect package.json and commands to auto install & run preview for folder and git import (@wonderwhy-er)
75
+ - Selection tool to target changes visually (@emcconnell)
76
+ - Detect terminal Errors and ask bolt to fix it (@thecodacus)
77
+ - Detect preview Errors and ask bolt to fix it (@wonderwhy-er)
78
+ - Add Starter Template Options (@thecodacus)
79
+ - Perplexity Integration (@meetpateltech)
80
+ - AWS Bedrock Integration (@kunjabijukchhe)
81
+ - **HIGH PRIORITY** - Prevent bolt from rewriting files as often (file locking and diffs)
82
+ - **HIGH PRIORITY** - Better prompting for smaller LLMs (code window sometimes doesn't start)
83
+ - **HIGH PRIORITY** - Run agents in the backend as opposed to a single model call
84
+ - Deploy directly to Vercel/Netlify/other similar platforms
85
+ - Have LLM plan the project in a MD file for better results/transparency
86
+ - VSCode Integration with git-like confirmations
87
+ - Upload documents for knowledge - UI design templates, a code base to reference coding style, etc.
88
+ - Voice prompting
89
+ - Azure Open AI API Integration
90
+ - Vertex AI Integration
91
+
92
+ ## Features
93
+
94
+ - **AI-powered full-stack web development** directly in your browser.
95
+ - **Support for multiple LLMs** with an extensible architecture to integrate additional models.
96
+ - **Attach images to prompts** for better contextual understanding.
97
+ - **Integrated terminal** to view output of LLM-run commands.
98
+ - **Revert code to earlier versions** for easier debugging and quicker changes.
99
+ - **Download projects as ZIP** for easy portability.
100
+ - **Integration-ready Docker support** for a hassle-free setup.
101
+
102
+ ## Setup
103
+
104
+ If you're new to installing software from GitHub, don't worry! If you encounter any issues, feel free to submit an "issue" using the provided links or improve this documentation by forking the repository, editing the instructions, and submitting a pull request. The following instruction will help you get the stable branch up and running on your local machine in no time.
105
+
106
+ Let's get you up and running with the stable version of Bolt.DIY!
107
+
108
+ ## Quick Download
109
+
110
+ [![Download Latest Release](https://img.shields.io/github/v/release/stackblitz-labs/bolt.diy?label=Download%20Bolt&sort=semver)](https://github.com/stackblitz-labs/bolt.diy/releases/latest) ← Click here to go the the latest release version!
111
+
112
+ - Next **click source.zip**
113
+
114
+
115
+
116
+ ## Prerequisites
117
+
118
+ Before you begin, you'll need to install two important pieces of software:
119
+
120
+ ### Install Node.js
121
+
122
+ Node.js is required to run the application.
123
+
124
+ 1. Visit the [Node.js Download Page](https://nodejs.org/en/download/)
125
+ 2. Download the "LTS" (Long Term Support) version for your operating system
126
+ 3. Run the installer, accepting the default settings
127
+ 4. Verify Node.js is properly installed:
128
+ - **For Windows Users**:
129
+ 1. Press `Windows + R`
130
+ 2. Type "sysdm.cpl" and press Enter
131
+ 3. Go to "Advanced" tab → "Environment Variables"
132
+ 4. Check if `Node.js` appears in the "Path" variable
133
+ - **For Mac/Linux Users**:
134
+ 1. Open Terminal
135
+ 2. Type this command:
136
+ ```bash
137
+ echo $PATH
138
+ ```
139
+ 3. Look for `/usr/local/bin` in the output
140
+
141
+ ## Running the Application
142
+
143
+ You have two options for running Bolt.DIY: directly on your machine or using Docker.
144
+
145
+ ### Option 1: Direct Installation (Recommended for Beginners)
146
+
147
+ 1. **Install Package Manager (pnpm)**:
148
+ ```bash
149
+ npm install -g pnpm
150
+ ```
151
+
152
+ 2. **Install Project Dependencies**:
153
+ ```bash
154
+ pnpm install
155
+ ```
156
+
157
+ 3. **Start the Application**:
158
+ ```bash
159
+ pnpm run dev
160
+ ```
161
+
162
+ **Important Note**: If you're using Google Chrome, you'll need Chrome Canary for local development. [Download it here](https://www.google.com/chrome/canary/)
163
+
164
+ ### Option 2: Using Docker
165
+
166
+ This option requires some familiarity with Docker but provides a more isolated environment.
167
+
168
+ #### Additional Prerequisite
169
+ - Install Docker: [Download Docker](https://www.docker.com/)
170
+
171
+ #### Steps:
172
+
173
+ 1. **Build the Docker Image**:
174
+ ```bash
175
+ # Using npm script:
176
+ npm run dockerbuild
177
+
178
+ # OR using direct Docker command:
179
+ docker build . --target bolt-ai-development
180
+ ```
181
+
182
+ 2. **Run the Container**:
183
+ ```bash
184
+ docker-compose --profile development up
185
+ ```
186
+
187
+
188
+
189
+ ## Configuring API Keys and Providers
190
+
191
+ ### Adding Your API Keys
192
+
193
+ Setting up your API keys in Bolt.DIY is straightforward:
194
+
195
+ 1. Open the home page (main interface)
196
+ 2. Select your desired provider from the dropdown menu
197
+ 3. Click the pencil (edit) icon
198
+ 4. Enter your API key in the secure input field
199
+
200
+ ![API Key Configuration Interface](./docs/images/api-key-ui-section.png)
201
+
202
+ ### Configuring Custom Base URLs
203
+
204
+ For providers that support custom base URLs (such as Ollama or LM Studio), follow these steps:
205
+
206
+ 1. Click the settings icon in the sidebar to open the settings menu
207
+ ![Settings Button Location](./docs/images/bolt-settings-button.png)
208
+
209
+ 2. Navigate to the "Providers" tab
210
+ 3. Search for your provider using the search bar
211
+ 4. Enter your custom base URL in the designated field
212
+ ![Provider Base URL Configuration](./docs/images/provider-base-url.png)
213
+
214
+ > **Note**: Custom base URLs are particularly useful when running local instances of AI models or using custom API endpoints.
215
+
216
+ ### Supported Providers
217
+ - Ollama
218
+ - LM Studio
219
+ - OpenAILike
220
+
221
+ ## Setup Using Git (For Developers only)
222
+
223
+ This method is recommended for developers who want to:
224
+ - Contribute to the project
225
+ - Stay updated with the latest changes
226
+ - Switch between different versions
227
+ - Create custom modifications
228
+
229
+ #### Prerequisites
230
+ 1. Install Git: [Download Git](https://git-scm.com/downloads)
231
+
232
+ #### Initial Setup
233
+
234
+ 1. **Clone the Repository**:
235
+ ```bash
236
+ # Using HTTPS
237
+ git clone https://github.com/stackblitz-labs/bolt.diy.git
238
+ ```
239
+
240
+ 2. **Navigate to Project Directory**:
241
+ ```bash
242
+ cd bolt.diy
243
+ ```
244
+
245
+ 3. **Switch to the Main Branch**:
246
+ ```bash
247
+ git checkout main
248
+ ```
249
+ 4. **Install Dependencies**:
250
+ ```bash
251
+ pnpm install
252
+ ```
253
+
254
+ 5. **Start the Development Server**:
255
+ ```bash
256
+ pnpm run dev
257
+ ```
258
+
259
+ #### Staying Updated
260
+
261
+ To get the latest changes from the repository:
262
+
263
+ 1. **Save Your Local Changes** (if any):
264
+ ```bash
265
+ git stash
266
+ ```
267
+
268
+ 2. **Pull Latest Updates**:
269
+ ```bash
270
+ git pull origin main
271
+ ```
272
+
273
+ 3. **Update Dependencies**:
274
+ ```bash
275
+ pnpm install
276
+ ```
277
+
278
+ 4. **Restore Your Local Changes** (if any):
279
+ ```bash
280
+ git stash pop
281
+ ```
282
+
283
+ #### Troubleshooting Git Setup
284
+
285
+ If you encounter issues:
286
+
287
+ 1. **Clean Installation**:
288
+ ```bash
289
+ # Remove node modules and lock files
290
+ rm -rf node_modules pnpm-lock.yaml
291
+
292
+ # Clear pnpm cache
293
+ pnpm store prune
294
+
295
+ # Reinstall dependencies
296
+ pnpm install
297
+ ```
298
+
299
+ 2. **Reset Local Changes**:
300
+ ```bash
301
+ # Discard all local changes
302
+ git reset --hard origin/main
303
+ ```
304
+
305
+ Remember to always commit your local changes or stash them before pulling updates to avoid conflicts.
306
+
307
+ ---
308
+
309
+ ## Available Scripts
310
+
311
+ - **`pnpm run dev`**: Starts the development server.
312
+ - **`pnpm run build`**: Builds the project.
313
+ - **`pnpm run start`**: Runs the built application locally using Wrangler Pages.
314
+ - **`pnpm run preview`**: Builds and runs the production build locally.
315
+ - **`pnpm test`**: Runs the test suite using Vitest.
316
+ - **`pnpm run typecheck`**: Runs TypeScript type checking.
317
+ - **`pnpm run typegen`**: Generates TypeScript types using Wrangler.
318
+ - **`pnpm run deploy`**: Deploys the project to Cloudflare Pages.
319
+ - **`pnpm run lint:fix`**: Automatically fixes linting issues.
320
+
321
+ ---
322
+
323
+ ## Contributing
324
+
325
+ We welcome contributions! Check out our [Contributing Guide](CONTRIBUTING.md) to get started.
326
+
327
+ ---
328
+
329
+ ## Roadmap
330
+
331
+ Explore upcoming features and priorities on our [Roadmap](https://roadmap.sh/r/ottodev-roadmap-2ovzo).
332
+
333
+ ---
334
+
335
+ ## FAQ
336
+
337
+ For answers to common questions, issues, and to see a list of recommended models, visit our [FAQ Page](FAQ.md).