You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most environment variables can be configured directly through the settings menu of the application. However, if you need to manually configure them:
101
-
102
-
1. Rename `.env.example` to `.env.local`.
103
-
2. Add your LLM API keys. For example:
104
-
105
-
```env
106
-
GROQ_API_KEY=YOUR_GROQ_API_KEY
107
-
OPENAI_API_KEY=YOUR_OPENAI_API_KEY
108
-
ANTHROPIC_API_KEY=YOUR_ANTHROPIC_API_KEY
109
-
```
110
-
111
-
**Note**: Ollama does not require an API key as it runs locally.
112
-
113
-
3. Optionally, set additional configurations:
114
-
115
-
```env
116
-
# Debugging
117
-
VITE_LOG_LEVEL=debug
118
-
119
-
# Ollama settings (example: 8K context, localhost port 11434)
120
-
OLLAMA_API_BASE_URL=http://localhost:11434
121
-
DEFAULT_NUM_CTX=8192
122
-
```
123
-
124
-
**Important**: Do not commit your `.env.local` file to version control. This file is already included in`.gitignore`.
125
-
126
98
---
127
99
128
100
## Run the Application
@@ -155,27 +127,30 @@ DEFAULT_NUM_CTX=8192
155
127
156
128
Use the provided NPM scripts:
157
129
```bash
158
-
npm run dockerbuild # Development build
159
-
npm run dockerbuild:prod # Production build
130
+
npm run dockerbuild
160
131
```
161
132
162
133
Alternatively, use Docker commands directly:
163
134
```bash
164
-
docker build . --target bolt-ai-development # Development build
165
-
docker build . --target bolt-ai-production # Production build
135
+
docker build . --target bolt-ai-development
166
136
```
167
137
168
138
2. **Run the Container**:
169
139
Use Docker Compose profiles to manage environments:
170
140
```bash
171
-
docker-compose --profile development up # Development
172
-
docker-compose --profile production up # Production
141
+
docker-compose --profile development up
173
142
```
174
143
175
144
- With the development profile, changes to your code will automatically reflect in the running container (hot reloading).
176
145
177
146
---
178
147
148
+
### Entering API Keys
149
+
150
+
All of your API Keys can be configured directly in the application. Just selecte the provider you want from the dropdown and click the pencile icon to enter your API key.
151
+
152
+
---
153
+
179
154
### Update Your Local Version to the Latest
180
155
181
156
To keep your local version of bolt.diy up to date with the latest changes, follow these steps for your operating system:
0 commit comments