Skip to content

Reference

CLI reference

Commands and controls for interactive sessions, one-shot prompts, shell pipelines, and automation.

Usage

Command forms
bwat                         Start an interactive session
bwat -p "<prompt>"            Run once and exit
echo "<context>" | bwat -p "<prompt>"
bwat <command>

Account commands

CommandDescription
bwat loginSign in through your browser
bwat logoutRemove the local sign-in
bwat whoamiShow the signed-in account
bwat --versionPrint the installed CLI version
bwat --helpPrint command-line help

Startup options

OptionDescription
-p, --prompt <text>Send one prompt, print the result, and exit
-c, --continueContinue the most recent session for the current project
-r, --resume [id]Resume a session by ID, or choose one when the ID is omitted
-m, --mode <mode>Start in ask, acceptEdits, or auto mode
-e, --effort <level>Start with low, medium, high, xhigh, or max effort
--output-format <format>Use text, json, or stream-json output for one-shot runs
--no-thinkingHide Bwat's live working notes
--trust-folderTrust the current folder without the interactive prompt

Use --trust-folder only in folders you already trust. It skips the check designed to stop an unfamiliar repository from being treated as safe by accident.

Permission modes from the shell

CLI valueInterface labelBehavior
askManualAsk before edits and other actions that can change something
acceptEditsEdit automaticallyApply file edits; continue asking for commands and web fetches
autoAutoRun without action-by-action approval

Use /mode inside an interactive session to access the full mode picker, including Plan mode.

One-shot examples

Terminal
# Ask a read-only question
bwat -p "Map the request path for user sign-in"

# Apply file edits but keep command approvals
bwat -p "Add tests for empty input" --mode acceptEdits

# Produce machine-readable output
bwat -p "Summarize this repository" --output-format json

# Continue the last project session
bwat --continue

Interactive commands

CommandDescription
/clearStart a new conversation
/compactCondense the conversation and continue
/historyBrowse and resume earlier sessions; /resume is an alias
/modelChoose the model
/modeChoose the permission mode
/effortChoose how deeply Bwat should work through requests
/thinkingShow or hide live working notes
/themeChoose the terminal color theme
/usageShow account usage
/mcpInspect connected MCP servers
/skillsList available skills
/initAnalyze the repository and propose BWAT.md
/feedbackSend product feedback
/helpOpen the Bwat documentation in your browser
/logoutSign out
/exitClose Bwat

Keyboard controls

KeysAction
EnterSend the message or confirm a selected action
Shift+Enter or Alt+EnterInsert a new line
\ then EnterInsert a new line in terminals that do not pass modified Enter keys
Up / DownMove through history, completion results, or a multi-line message
TabComplete a slash command or file mention
EscapeCancel the current run or close an open picker
Ctrl+CCancel the run; press again when idle to exit

Environment

VariablePurpose
VISUALPreferred editor for reviewing a proposed edit from the CLI
EDITORFallback editor when VISUAL is not set
BWAT_TOOL_SEARCH=offLoad every connected MCP tool definition up front
BWAT_SKIP_HOOKS=1Disable local Bwat hooks for the process