Following this walkthrough will use about 120K tokens, which is just under a Bolt free plan’s daily allowance of 150K.
What you’ll need
- A Chrome or Chromium browser (Opera, Brave, Edge, Vivaldi, etc.)
- 10–15 minutes
Part 1: Build your app with your first prompt
You are about to see Bolt in action for the first time. Follow these steps you’ll have a working app in just a few minutes!- Open Bolt.new in a new tab.
- In the chatbox, paste this :
Build a pet name picker app with dropdowns that allow people to choose animal types (e.g. dog, cat, bird, lizard, etc.) and name categories (e.g. cute, celebrity-puns, movie-inspired, etc.) Allow them to save favorites.
- Click the blue and white arrow to submit.
- Sign in or sign up (Google, GitHub, or email:no credit card required). You won’t see this step if you’re already logged in.
- Wait a couple of minutes while Bolt creates your app.
- Try it out in the Preview window. Pick an animal, pick a category, and get names. (The celebrity puns are our favorite.)
Congrats! You just built your first Bolt web app!
Understanding tokens
Bolt uses large language model (LLM) technology to process your prompts and build your site. You don’t need to know the technical details, but it’s helpful to know that LLMs work on a token system, and Bolt’s free and paid plans are based on them. Think of tokens as a measurement of Bolt’s efforts. Bolt “uses” tokens when it:- reads
- thinks
- builds
Part 2: Turn on token display in chat
Turn on the option to display token usage in chat to help you understand how many tokens your prompts are using.- Hover over the left side of your screen, then click Settings.
- Click General under the Personal Settings menu.
- Toggle on Display token usage in chat.
- Look above your chatbox to view your remaining tokens. If you know what you started with, you can calculate how many tokens your initial app build required.
In our example, we started with 150K tokens and had 86K remaining after the initial build, meaning we used 64K to build the first version of our Pet Name Picker app.
Part 3: Use Discussion mode to brainstorm and get advice
Now that you’ve built your first web app, let’s try Bolt’s Discussion mode to get ideas for improving it. Discussion mode is great when you’re unsure or shaping a prompt. It works like Build mode but uses about 90% fewer tokens, so it’s the best place to start when you have questions. In the example below, we’ll use Discussion mode to brainstorm a new color scheme for your app. Follow along to see how it works.-
Click Discuss at the bottom of the chatbox to switch to Discussion mode.
When you’re in Discussion mode, the Discuss icon is highlighted blue.
-
Ask Bolt for three color scheme ideas that would work well with your app using the following prompt:
I want to change the color scheme to a dark mode theme. Provide three suggested color schemes that would work well with this site.
- Click the blue and white arrow to submit.
-
Copy the name of the color scheme you think you’d like best. In our example, we copied
Deep Night Sky (Blue/Purple Focus)
.
Note that using Discussion mode for this question only used around 1K tokens.
Part 4: Apply your color change
Now that you know what color scheme you’d like to switch to, it’s time to make the change. While we do it, we’ll keep an eye on our token situation.- Click Discuss at the bottom of the chatbox to switch back to Build mode.
-
Enter a prompt in the chatbox that instructs Bolt to change the color scheme you picked in the previous section. For example:
Change the color scheme to Deep Night Sky (Blue/Purple Focus).
-
Click the blue arrow icon to submit your prompt.
Discussion mode often gives you clickable actions so you don’t have to type prompts manually. In the example video above, we could have just clicked the blue Implement Deep Night Sky button in the chat history instead.
- Wait for Bolt to finish making changes and your Preview screen to update with your new colors.
-
Check your token balance above the chatbox to understand how many tokens you used to make that change.
Although building our initial app used 86K tokens, changing the color scheme only used 56K tokens (85K starting - 29K remaining).
Part 5: Use version history to restore an automatic backup
No matter how experienced a builder you are, things don’t always go to plan. At some point, you’re going to make changes to your site that you’d like to reverse. In that situation, the easiest fix is to restore to a previous version of your build. To show you how this works, you can restore the site back to the original color scheme by following the steps below:- Click View history.
- Click the original version, which opens its preview mode.
- Click Restore this version in the top-right of your screen.
- Click Restore version to confirm.
Did you notice your token remaining balance didn’t change? Restoring your site to a previous version doesn’t use tokens!
Part 6: Publish your project
Follow the steps below to publish your app using Bolt’s built-in hosting:- Click Publish in the top-right corner of your screen.
- Click the second Publish button that appears.
- Wait about a minute for Bolt to deploy your site.
- Click the link that appears in the chat window to open your site in a new browser tab.
Awesome! You just published your Bolt web app!