Skip to content

CLI Reference

Basic usage

bash
protoagent [options] [command]

Running with no command starts the interactive TUI.

Commands

protoagent

Starts the main interactive app. If no config exists, ProtoAgent shows the first-run setup flow inside the TUI.

protoagent configure

Launches the standalone configuration wizard for provider, model, and API key selection.

Flags

--dangerously-accept-all

Skips normal approval prompts for file writes, file edits, and non-safe shell commands.

Hard-blocked shell patterns are still denied.

bash
protoagent --dangerously-accept-all

--log-level <level>

Controls log verbosity.

LevelMeaning
ERRORonly errors
WARNerrors and warnings
INFOnormal operational info
DEBUGdetailed debugging output
TRACEvery verbose tracing

ProtoAgent initializes a log file and shows its path in the UI.

--session <id>

Resumes a previously saved session by UUID.

bash
protoagent --session 123e4567-e89b-12d3-a456-426614174000

Slash commands

CommandWhat it does
/quit or /exitsave the session and exit
/clearstart a fresh session
/collapsecollapse long messages
/expandexpand all messages
/helpshow available slash commands

When quitting through /quit or /exit, ProtoAgent prints the exact protoagent --session <id> resume command.

Keyboard shortcuts

ShortcutWhat it does
Escabort the current in-flight completion
Ctrl-Cexit immediately

Built to teach how production-style coding agents actually work.