Skip to content

TUI CLI Reference

Launch the TUI or run a subcommand.

Terminal window
sec-gemini [OPTIONS] [COMMAND]
OptionDescription
-v, --verboseEnable verbose debug logging to stderr
--disable-loggingDisable session-level logging for privacy

When invoked without a subcommand, the TUI launches (equivalent to sec-gemini run).

Launch the TUI. This is the default when no subcommand is given.

Set your Sec-Gemini API key interactively or inline.

Terminal window
sec-gemini set-key [API_KEY] [OPTIONS]
OptionDescription
API_KEYAPI key (prompted interactively if omitted)
--forceOverwrite an existing saved key
--skip-verifySave the key without verifying it against the API

Manage sessions from the command line.

Manage MCP server configuration.

Manage local tool configuration.

Manage model settings.

View or edit configuration. See the Configuration Reference for details.

KeyAction
EnterCreate a new session
EscapeQuit
?Show help
KeyAction
EscapeGo back to session list
Ctrl+SSave full session trajectory
Ctrl+CCopy focused content
Ctrl+VPaste from clipboard
Ctrl+PPause / Resume session
Ctrl+LToggle right panel
Ctrl+UUpload file
?Show help
KeyAction
EnterSend message
Shift+EnterInsert newline

Compact ticker at the top showing recent agent events. Each event has a type tag (RSP, TOOL->, TOOL<-, PROG, ERR, WARN, DONE, etc.) with a timestamp and summary.

Scrollable message container with markdown rendering. Agent thoughts and tool call/result pairs are displayed in collapsible blocks.

Toggle with Ctrl+L. A 40-character wide sidebar with independently scrollable sections:

SectionContent
Top ToolsBar chart of tool invocation counts (purple = local, blue = remote)
TasksHierarchical task tree with state indicators
SkillsLoaded skills with descriptions and origin
MemoryCategorized memory entries from the agent
FilesUploaded session files (appears only when files exist)

Multi-line text area (3—8 lines). Enter sends, Shift+Enter adds a newline. Upload (Ctrl+U) and Send buttons alongside.

Single-line bar at the bottom: session name, cloud/BYOT status dots (color-coded), tool counts (local / remote), skill count, elapsed time, and a clickable View Logs link.

See the Configuration Reference for the full config.toml format, environment variables, and log file locations.