bolt logs whenever something unexpected happens.
bolt debug info and bolt logs --tail 50 in your post so the community can help faster.First things to try
Before diving into a specific section, these four commands solve most problems:Bolt doesn't start / crashes on launch
Bolt doesn't start / crashes on launch
Collect system information
Check recent log output
ERROR lines. A common cause is a plugin that fails to load — in that case you’ll see an error mentioning the plugin name.Disable plugins to isolate the issue
--pure, a plugin is causing the crash. Remove the offending plugin from your config, or report it to the plugin author.Check for corrupted config
bolt db path to confirm the database path is accessible.Provider authentication fails
Provider authentication fails
bolt run exits immediately without producing any output.Steps:Re-run the provider login flow
Verify the API key environment variable
ANTHROPIC_API_KEY), confirm it is actually set in the current shell:Inspect the resolved config
provider section. If your provider appears with a blank apiKey, the environment variable reference in your config file is not being expanded.List stored credentials
auth.json and all provider-related environment variables that Bolt detected.MCP server won't connect
MCP server won't connect
bolt mcp list shows a server as failed or needs authentication, or the agent cannot use any tools from that server.Steps:Run the MCP debug probe
WWW-Authenticate header, and walks through the OAuth discovery flow if applicable. The output will tell you whether the server is reachable and whether auth is required.Check the server URL
.bolt/bolt.jsonc. For remote servers, make sure the URL ends with the MCP path (e.g. /mcp or /tools), not just the host.Re-authenticate for OAuth servers
Check local server command
local servers, run the command manually in your terminal to confirm it starts without errors:Session not found
Session not found
bolt run --session <id> exits with “Session not found”, or a session you remember working with has disappeared.Steps:List all available sessions
Find the database path
Query the database directly
bolt session list, there may be a project ID mismatch — sessions are scoped to projects.Permission errors in the TUI
Permission errors in the TUI
code, debug, refactor, migrate, and perf agents have Full access. docs has Edit access. plan, ask, code-review, and security have Read access.Steps:Switch to an agent with Full access
code agent:Tab in the TUI to cycle through agents.Use --auto to approve prompts non-interactively
--auto to bolt run to auto-approve permissions that are not explicitly denied in the config.Configure permissions in the config file
permission block to .bolt/bolt.jsonc.High token usage or unexpected costs
High token usage or unexpected costs
bolt stats shows higher token counts than expected, or your API bill is growing faster than anticipated.Steps:Review your usage statistics
Lower the reasoning effort
--variant:minimal, low, high, max).Switch to a cheaper model
bolt models to find a smaller model. Smaller models (e.g. claude-haiku, gpt-4o-mini) cost significantly less per token and work well for many tasks.Use the ask or plan agent for exploration
ask and plan agents have Read access and do not invoke write tools, which means they avoid tool-heavy loops that generate large output tokens.Plugin conflicts or unexpected behavior
Plugin conflicts or unexpected behavior
Disable all plugins to establish a baseline
Identify the offending plugin
Check for version incompatibility
WSL / Windows path issues
WSL / Windows path issues
less, file paths contain unexpected backslashes, or the pager for bolt session list does not launch.Steps:Set the Git Bash path
less) relative to the Git for Windows installation. Set the environment variable to your Git Bash directory:$PROFILE) to persist it.Verify with debug info
Run Bolt inside WSL directly
bolt from within a WSL terminal rather than from PowerShell or Command Prompt.Can't upgrade Bolt
Can't upgrade Bolt
bolt upgrade reports an error or silently does nothing, or the version number does not change after running it.Steps:Specify the installation method explicitly
Reinstall via the install script
Windows: run as Administrator for Chocolatey
choco, upgrades require an elevated terminal. Open PowerShell as Administrator before running bolt upgrade.Confirm the new version is active
Agent can't find files (or finds too many)
Agent can't find files (or finds too many)
node_modules, build output, or secrets).Steps:Check for a .boltignore
.boltignore file at the project root that controls which files the agent’s file-search tools can see. It uses the same syntax as .gitignore.Confirm the working directory
cwd matches the project root. If you launched Bolt from a subdirectory, the agent’s file search is rooted there.Ask the agent to grep, not guess
grep or glob explicitly. This bypasses any stale internal assumption.Getting debug info for a bug report
Getting debug info for a bug report
Collect system and plugin info
Collect recent log output
Export the relevant session (sanitized)
session-debug.json to the issue.Open an issue or discussion
bolt debug info output plus a description of the steps to reproduce.