# documentation

Docs

Everything you need to get Bolt running and configured. Short version: install it, run bolt in a project, start typing.

Installation

Bolt ships as a single global binary on npm. Use the shell installer on macOS and Linux, or the package manager you already have.

# npm (any platform)
$npm i -g @bolt-builder/bolt-cli
# shell installer (macOS / Linux)
$curl -fsSL https://raw.githubusercontent.com/bolt-builder/bolt-cli/dev/install | bash
# bun / pnpm / yarn
$bun add -g @bolt-builder/bolt-cli

First run

From any project directory. Bolt picks up your project context automatically.

$terminal
# Open the TUI in the current directory
bolt

# Run a prompt directly (non-interactive)
bolt run "explain this codebase"

# Attach to a running server (local or remote)
bolt attach

# Start a session with a specific agent
bolt run --agent ask "what does this project do?"

Configuration

Configuration lives in .bolt/bolt.jsonc in your project root, created on first run. It's JSONC, so comments are fine.

$.bolt/bolt.jsonc
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    // Provider config goes here
  },
}

Schema: https://opencode.ai/config.json

Environment variables

VariableDescription
BOLT_LOG_LEVELLog level: DEBUG, INFO, WARN, ERROR
BOLT_PRINT_LOGSPrint logs to stderr
BOLT_PURERun without external plugins
BOLT_SERVER_PASSWORDBasic auth password for the server
BOLT_SERVER_USERNAMEBasic auth username for the server

CLI reference

All 22 commands. Run any of them with --help for flags.

CommandDescription
boltLaunch the interactive TUI
runRun a non-interactive prompt
attachAttach the TUI to a running server
sessionManage sessions (list, delete)
agentList and create agents
providersManage LLM provider credentials (alias: auth)
modelsList available models
mcpManage MCP servers (add, list, auth, logout, debug)
serveStart the headless API server
webStart the server and open the web UI
upgradeUpgrade to the latest version
uninstallRemove bolt
completionGenerate shell completions
exportExport session history (with optional --sanitize)
importImport a session from a file or share URL
pluginInstall and manage plugins
githubGitHub Actions agent (install, run)
prCheck out a GitHub PR into a local branch
statsShow token usage and cost statistics
dbQuery the local session database
debugTroubleshooting tools (config, lsp, snapshots, and more)
acpAgent Client Protocol server for editors (e.g. Zed)