Go to file
Stijnus b86fd63700
feat: bolt dyi datatab (#1570)
* Update DataTab.tsx

## API Key Import Fix

We identified and fixed an issue with the API key import functionality in the DataTab component. The problem was that API keys were being stored in localStorage instead of cookies, and the key format was being incorrectly processed.

### Changes Made:

1. **Updated `handleImportAPIKeys` function**:
   - Changed to store API keys in cookies instead of localStorage
   - Modified to use provider names directly as keys (e.g., "OpenAI", "Google")
   - Added logic to skip comment fields (keys starting with "_")
   - Added page reload after successful import to apply changes immediately

2. **Updated `handleDownloadTemplate` function**:
   - Changed template format to use provider names as keys
   - Added explanatory comment in the template
   - Removed URL-related keys that weren't being used properly

3. **Fixed template format**:
   - Template now uses the correct format with provider names as keys
   - Added support for all available providers including Hyperbolic

These changes ensure that when users download the template, fill it with their API keys, and import it back, the keys are properly stored in cookies with the correct format that the application expects.

* backwards compatible old import template

* Update the export / import settings

Settings Export/Import Improvements
We've completely redesigned the settings export and import functionality to ensure all application settings are properly backed up and restored:
Key Improvements
Comprehensive Export Format: Now captures ALL settings from both localStorage and cookies, organized into logical categories (core, providers, features, UI, connections, debug, updates)
Robust Import System: Automatically detects format version and handles both new and legacy formats with detailed error handling
Complete Settings Coverage: Properly exports and imports settings from ALL tabs including:
Local provider configurations (Ollama, LMStudio, etc.)
Cloud provider API keys (OpenAI, Anthropic, etc.)
Feature toggles and preferences
UI configurations and tab settings
Connection settings (GitHub, Netlify)
Debug configurations and logs
Technical Details
Added version tracking to export files for better compatibility
Implemented fallback mechanisms if primary import methods fail
Added detailed logging for troubleshooting import/export issues
Created helper functions for safer data handling
Maintained backward compatibility with older export formats

Feature Settings:
Feature flags and viewed features
Developer mode settings
Energy saver mode configurations
User Preferences:
User profile information
Theme settings
Tab configurations
Connection Settings:
Netlify connections
Git authentication credentials
Any other service connections
Debug and System Settings:
Debug flags and acknowledged issues
Error logs and event logs
Update settings and preferences

* Update DataTab.tsx

* Update GithubConnection.tsx

revert the code back as asked

* feat: enhance style to match the project

* feat:small improvements

* feat: add major improvements

* Update Dialog.tsx

* Delete DataTab.tsx.bak

* feat: small updates

* Update DataVisualization.tsx

* feat: dark mode fix
2025-03-29 20:43:07 +01:00
.github ci: give electron action permission 2025-03-23 15:31:16 -07:00
.husky refactor: updated vite config to inject add version metadata into the app on build (#841) 2024-12-21 01:03:28 +05:30
app feat: bolt dyi datatab (#1570) 2025-03-29 20:43:07 +01:00
assets feat: electron desktop app without express server (#1136) 2025-03-20 00:22:06 +05:30
docs Fix ESLint issues 2025-01-28 11:39:12 +01:00
electron feat: electron desktop app without express server (#1136) 2025-03-20 00:22:06 +05:30
functions feat: bugfix for : Problem Temporarily Solved, Not Fix: Error building my application #1414 (#1567) 2025-03-29 10:26:42 +01:00
icons fix: starter template icons fix and auto resize of custon icons are reverted (#1298) 2025-02-12 01:08:28 +05:30
public big fixes 2025-01-30 17:17:36 +01:00
scripts Final UI V3 2025-02-02 01:42:30 +01:00
types fix: remove monorepo 2024-09-25 19:54:09 +01:00
.dockerignore create .dockerignore file 2024-10-25 12:36:38 +06:00
.editorconfig feat: initial persistence (#3) 2024-07-25 14:03:38 +01:00
.env.example feat: implement Claude 3, Claude3.5, Nova Pro, Nova Lite and Mistral model integration with AWS Bedrock (#974) 2025-01-06 17:49:16 +05:30
.gitignore feat: bolt dyi datatab (#1570) 2025-03-29 20:43:07 +01:00
.prettierignore feat: initial commit 2024-07-11 16:20:57 +02:00
.prettierrc feat: initial commit 2024-07-11 16:20:57 +02:00
bindings.sh fix: docker prod env variable fix (#1170) 2025-01-25 03:52:26 +05:30
changelog.md chore: release version 0.0.7 2025-02-28 20:13:14 +00:00
CONTRIBUTING.md Fix ESLint issues 2025-01-28 11:39:12 +01:00
docker-compose.yaml Fix ESLint issues 2025-01-28 11:39:12 +01:00
Dockerfile Update Dockerfile 2025-02-23 22:28:24 +01:00
electron-builder.yml feat: electron desktop app without express server (#1136) 2025-03-20 00:22:06 +05:30
electron-update.yml feat: electron desktop app without express server (#1136) 2025-03-20 00:22:06 +05:30
eslint.config.mjs feat: electron desktop app without express server (#1136) 2025-03-20 00:22:06 +05:30
FAQ.md Fix ESLint issues 2025-01-28 11:39:12 +01:00
LICENSE docs: updating copyright in LICENSE (#796) 2025-01-06 03:10:26 +05:30
load-context.ts fix: remove monorepo 2024-09-25 19:54:09 +01:00
notarize.cjs feat: electron desktop app without express server (#1136) 2025-03-20 00:22:06 +05:30
package.json feat: bolt dyi datatab (#1570) 2025-03-29 20:43:07 +01:00
pnpm-lock.yaml feat: bolt dyi datatab (#1570) 2025-03-29 20:43:07 +01:00
pre-start.cjs Fix ESLint issues 2025-01-28 11:39:12 +01:00
PROJECT.md Fix ESLint issues 2025-01-28 11:39:12 +01:00
README.md Update README.md 2025-03-18 11:40:49 +01:00
tsconfig.json feat: electron desktop app without express server (#1136) 2025-03-20 00:22:06 +05:30
uno.config.ts feat: add netlify one-click deployment 2025-02-24 17:24:32 +00:00
vite-electron.config.ts feat: electron desktop app without express server (#1136) 2025-03-20 00:22:06 +05:30
vite.config.ts feat: bugfix for : Problem Temporarily Solved, Not Fix: Error building my application #1414 (#1567) 2025-03-29 10:26:42 +01:00
worker-configuration.d.ts fix: docker prod env variable fix (#1170) 2025-01-25 03:52:26 +05:30
wrangler.toml feat: bugfix for : Problem Temporarily Solved, Not Fix: Error building my application #1414 (#1567) 2025-03-29 10:26:42 +01:00

bolt.diy

bolt.diy: AI-Powered Full-Stack Web Development in the Browser

Welcome to bolt.diy, the official open source version of Bolt.new, 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.


Check the bolt.diy Docs for more offical installation instructions and more informations.


Also this pinned post in our community has a bunch of incredible resources for running and deploying bolt.diy yourself!

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.

bolt.diy was originally started by Cole Medin but has quickly grown into a massive community effort to build the BEST open source AI coding assistant!

Table of Contents

Join the community

Join the bolt.diy community here, in the oTTomator Think Tank!

Project management

Bolt.diy is a community effort! Still, the core team of contributors aims at organizing the project in way that allows you to understand where the current areas of focus are.

If you want to know what we are working on, what we are planning to work on, or if you want to contribute to the project, please check the project management guide to get started easily.

Requested Additions

  • OpenRouter Integration (@coleam00)
  • Gemini Integration (@jonathands)
  • Autogenerate Ollama models from what is downloaded (@yunatamos)
  • Filter models by provider (@jasonm23)
  • Download project as ZIP (@fabwaseem)
  • Improvements to the main bolt.new prompt in app\lib\.server\llm\prompts.ts (@kofi-bhr)
  • DeepSeek API Integration (@zenith110)
  • Mistral API Integration (@ArulGandhi)
  • "Open AI Like" API Integration (@ZerxZ)
  • Ability to sync files (one way sync) to local folder (@muzafferkadir)
  • Containerize the application with Docker for easy installation (@aaronbolton)
  • Publish projects directly to GitHub (@goncaloalves)
  • Ability to enter API keys in the UI (@ali00209)
  • xAI Grok Beta Integration (@milutinke)
  • LM Studio Integration (@karrot0)
  • HuggingFace Integration (@ahsan3219)
  • Bolt terminal to see the output of LLM run commands (@thecodacus)
  • Streaming of code output (@thecodacus)
  • Ability to revert code to earlier version (@wonderwhy-er)
  • Chat history backup and restore functionality (@sidbetatester)
  • Cohere Integration (@hasanraiyan)
  • Dynamic model max token length (@hasanraiyan)
  • Better prompt enhancing (@SujalXplores)
  • Prompt caching (@SujalXplores)
  • Load local projects into the app (@wonderwhy-er)
  • Together Integration (@mouimet-infinisoft)
  • Mobile friendly (@qwikode)
  • Better prompt enhancing (@SujalXplores)
  • Attach images to prompts (@atrokhym)(@stijnus)
  • Added Git Clone button (@thecodacus)
  • Git Import from url (@thecodacus)
  • PromptLibrary to have different variations of prompts for different use cases (@thecodacus)
  • Detect package.json and commands to auto install & run preview for folder and git import (@wonderwhy-er)
  • Selection tool to target changes visually (@emcconnell)
  • Detect terminal Errors and ask bolt to fix it (@thecodacus)
  • Detect preview Errors and ask bolt to fix it (@wonderwhy-er)
  • Add Starter Template Options (@thecodacus)
  • Perplexity Integration (@meetpateltech)
  • AWS Bedrock Integration (@kunjabijukchhe)
  • Add a "Diff View" to see the changes (@toddyclipsgg)
  • HIGH PRIORITY - Prevent bolt from rewriting files as often (file locking and diffs)
  • HIGH PRIORITY - Better prompting for smaller LLMs (code window sometimes doesn't start)
  • HIGH PRIORITY - Run agents in the backend as opposed to a single model call
  • Deploy directly to Netlify (@xKevIsDev)
  • Supabase Integration
  • Have LLM plan the project in a MD file for better results/transparency
  • VSCode Integration with git-like confirmations
  • Upload documents for knowledge - UI design templates, a code base to reference coding style, etc.
  • Voice prompting
  • Azure Open AI API Integration
  • Vertex AI Integration
  • Granite Integration
  • Popout Window for Web Container(@stijnus)
  • Ability to change Popout window size (@stijnus)

Features

  • AI-powered full-stack web development for NodeJS based applications directly in your browser.
  • Support for multiple LLMs with an extensible architecture to integrate additional models.
  • Attach images to prompts for better contextual understanding.
  • Integrated terminal to view output of LLM-run commands.
  • Revert code to earlier versions for easier debugging and quicker changes.
  • Download projects as ZIP for easy portability Sync to a folder on the host.
  • Integration-ready Docker support for a hassle-free setup.
  • Deploy directly to Netlify

Setup

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.

Let's get you up and running with the stable version of Bolt.DIY!

Quick Download

Download Latest Release ← Click here to go the the latest release version!

  • Next click source.zip

Prerequisites

Before you begin, you'll need to install two important pieces of software:

Install Node.js

Node.js is required to run the application.

  1. Visit the Node.js Download Page
  2. Download the "LTS" (Long Term Support) version for your operating system
  3. Run the installer, accepting the default settings
  4. Verify Node.js is properly installed:
    • For Windows Users:
      1. Press Windows + R
      2. Type "sysdm.cpl" and press Enter
      3. Go to "Advanced" tab → "Environment Variables"
      4. Check if Node.js appears in the "Path" variable
    • For Mac/Linux Users:
      1. Open Terminal
      2. Type this command:
        echo $PATH
        
      3. Look for /usr/local/bin in the output

Running the Application

You have two options for running Bolt.DIY: directly on your machine or using Docker.

  1. Install Package Manager (pnpm):

    npm install -g pnpm
    
  2. Install Project Dependencies:

    pnpm install
    
  3. Start the Application:

    pnpm run dev
    

Option 2: Using Docker

This option requires some familiarity with Docker but provides a more isolated environment.

Additional Prerequisite

Steps:

  1. Build the Docker Image:

    # Using npm script:
    npm run dockerbuild
    
    # OR using direct Docker command:
    docker build . --target bolt-ai-development
    
  2. Run the Container:

    docker compose --profile development up
    

Configuring API Keys and Providers

Adding Your API Keys

Setting up your API keys in Bolt.DIY is straightforward:

  1. Open the home page (main interface)
  2. Select your desired provider from the dropdown menu
  3. Click the pencil (edit) icon
  4. Enter your API key in the secure input field

API Key Configuration Interface

Configuring Custom Base URLs

For providers that support custom base URLs (such as Ollama or LM Studio), follow these steps:

  1. Click the settings icon in the sidebar to open the settings menu Settings Button Location

  2. Navigate to the "Providers" tab

  3. Search for your provider using the search bar

  4. Enter your custom base URL in the designated field Provider Base URL Configuration

Note

: Custom base URLs are particularly useful when running local instances of AI models or using custom API endpoints.

Supported Providers

  • Ollama
  • LM Studio
  • OpenAILike

Setup Using Git (For Developers only)

This method is recommended for developers who want to:

  • Contribute to the project
  • Stay updated with the latest changes
  • Switch between different versions
  • Create custom modifications

Prerequisites

  1. Install Git: Download Git

Initial Setup

  1. Clone the Repository:

    git clone -b stable https://github.com/stackblitz-labs/bolt.diy.git
    
  2. Navigate to Project Directory:

    cd bolt.diy
    
  3. Install Dependencies:

    pnpm install
    
  4. Start the Development Server:

    pnpm run dev
    
  5. (OPTIONAL) Switch to the Main Branch if you want to use pre-release/testbranch:

    git checkout main
    pnpm install
    pnpm run dev
    

Hint: Be aware that this can have beta-features and more likely got bugs than the stable release

Open the WebUI to test (Default: http://localhost:5173)

  • Beginngers:
    • Try to use a sophisticated Provider/Model like Anthropic with Claude Sonnet 3.x Models to get best results
    • Explanation: The System Prompt currently implemented in bolt.diy cant cover the best performance for all providers and models out there. So it works better with some models, then other, even if the models itself are perfect for >programming
    • Future: Planned is a Plugin/Extentions-Library so there can be different System Prompts for different Models, which will help to get better results

Staying Updated

To get the latest changes from the repository:

  1. Save Your Local Changes (if any):

    git stash
    
  2. Pull Latest Updates:

    git pull 
    
  3. Update Dependencies:

    pnpm install
    
  4. Restore Your Local Changes (if any):

    git stash pop
    

Troubleshooting Git Setup

If you encounter issues:

  1. Clean Installation:

    # Remove node modules and lock files
    rm -rf node_modules pnpm-lock.yaml
    
    # Clear pnpm cache
    pnpm store prune
    
    # Reinstall dependencies
    pnpm install
    
  2. Reset Local Changes:

    # Discard all local changes
    git reset --hard origin/main
    

Remember to always commit your local changes or stash them before pulling updates to avoid conflicts.


Available Scripts

  • pnpm run dev: Starts the development server.
  • pnpm run build: Builds the project.
  • pnpm run start: Runs the built application locally using Wrangler Pages.
  • pnpm run preview: Builds and runs the production build locally.
  • 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: Deploys the project to Cloudflare Pages.
  • pnpm run lint:fix: Automatically fixes linting issues.

Contributing

We welcome contributions! Check out our Contributing Guide to get started.


Roadmap

Explore upcoming features and priorities on our Roadmap.


FAQ

For answers to common questions, issues, and to see a list of recommended models, visit our FAQ Page.

Licensing

Who needs a commercial WebContainer API license?

bolt.diy source code is distributed as MIT, but it uses WebContainers API that requires licensing for production usage in a commercial, for-profit setting. (Prototypes or POCs do not require a commercial license.) If you're using the API to meet the needs of your customers, prospective customers, and/or employees, you need a license to ensure compliance with our Terms of Service. Usage of the API in violation of these terms may result in your access being revoked.