Slash commands are special commands you can use within an interactive chat session to quickly perform actions without leaving the conversation. They start with a forward slash (/) and provide shortcuts for common tasks.
Slash commands are only available in interactive chat mode:
kiro chat > /help
Switch to the Help Agent to ask questions about Kiro CLI features, or display classic help text.
# Switch to Help Agent > /help # Ask a question directly > /help How do I configure MCP servers? # Show classic help text > /help --legacy # Show help for a specific command > /help --legacy /context
See Help Agent for more details.
Exit the interactive chat session.
> /quit
Aliases: /exit, /q
Clear the active conversation state without starting a new session.
> /clear
Manage context files and view context window usage. Context rules determine which files are included in your Kiro session and are derived from the current active agent.
# Display context rule configuration and matched files > /context show # Add context rules (filenames or glob patterns) > /context add src/app.js > /context add "*.py" > /context add "src/**/*.js" # Remove specified rules > /context remove src/app.js # Remove all rules > /context clear
Available subcommands:
show - Display the context rule configuration and matched filesadd - Add context rules (filenames or glob patterns)remove - Remove specified rulesNotes:
*.py, src/**/*.js)See Context Management for detailed documentation.
Select an AI model for the current session and configure its reasoning settings. Use the interactive picker or specify a model name directly. In the picker, choose Thinking or Effort to see the options supported by the selected model.
# Open interactive model picker > /model # Select a model directly by name > /model claude-opus-4.8 # Tab completion for model names > /model clau<Tab> # Explicitly write the current model as the default > /model set-current-as-default # Show the current model's fallback (V1 and V2) or open the fallback picker (V3) > /model fallback # Set one fallback for the current model > /model fallback <model-id> # Clear the current model's fallback > /model fallback clear # Choose which models the picker shows > /model edit
Available subcommands:
set-current-as-default - Explicitly persist your current model selection as the default for all future sessionsfallback [<model-id> | clear] - Show, set, or clear the current model's fallback. In V3, bare /model fallback opens the fallback picker for the current modeledit - Open Models in /model and choose which models the picker lists. Press Space or Enter to toggle a model, a provider, or all models. Hidden models remain available through /model <model-id>, --model, agent configuration, and fallback settingsFeatures:
Reasoning settings:
/settings display controls only whether reasoning blocks appear in the terminalModel fallback (V1 and V2):
Model fallback (V3):
/model settings pane and the /model fallback commands write the choice through the agent when the agent supports it. Before 2.33, a V3 session could not configure a fallback./model fallback opens the fallback picker for the current model. Choose None to switch fallback off so a refusal stays on the current model. Clearing the choice leaves the vendor default to answer a refusal.This agent does not support configuring a model fallback. If this session's credentials cannot store a preference, the Fallback row shows read-only./model and read the Fallback row for the current model. When a turn moves to another model, the transcript reports it. See Model fallback notices.Note: Your /model selection applies to the current session only. To save the current model as the default for future sessions, run /model set-current-as-default. The saved default is stored in ~/.kiro/settings/cli.json. See Persistence for details. V3 terminal UI sessions also check whether saved and session models remain available. See Model availability notices.
Manage agents and switch between different agent configurations.
# List all available agents > /agent list # Create a new agent (AI-assisted by default) > /agent create my-agent # Create with description and MCP servers > /agent create my-agent -D "Code reviewer" -m code-analysis # Create using editor-based mode instead of AI generation > /agent create my-agent --manual # Create in a specific directory > /agent create my-agent --directory workspace # Generate is an alias for create > /agent generate my-agent # Edit the current agent > /agent edit # Edit a specific agent by name (interactive picker when no name given) > /agent edit my-agent # Edit an agent by file path > /agent edit --path /absolute/path/to/my-agent.json # Show agent config schema > /agent schema # Set default agent (interactive picker when no name given) > /agent set-default my-agent # Swap to a different agent at runtime > /agent swap code-reviewer
Available subcommands:
list - List all available agents with their descriptionscreate - Create a new agent using AI-assisted generation by default. Pass --manual for editor-based creation. Supports -D (description), -m (MCP server), -d (directory), and -f (template agent) flags.edit - Edit an existing agent configuration. Shows an interactive picker when no agent name is provided. Supports --path for direct file access.generate - Alias for createschema - Show agent config schemaset-default - Define a default agent for new chat sessions. Shows an interactive picker when no agent name is provided.swap - Swap to a new agent at runtime (shows agent descriptions for selection)Notes:
kiro-cli --v3. Cloud sessions don't support these operations./agent create uses AI-assisted generation by default. Pass --manual to create the profile in your configured editor./agent edit opens the selected profile in your configured editor.~/.kiro/agents/ or per-workspace in .kiro/agents/--directory flag accepts workspace, global, or a custom pathkiro-cli chat --agent agent_namekiro_default, kiro_help, kiro_planner) cannot be edited/agent or /agent swap and press Tab to autocomplete agent names. Ghost text hints appear inline as you type, matching the behavior in /model./model selection unless the target agent's configuration specifies a model of its own — then it switches to that one.When you edit an agent, changes are made in a temporary file first. If validation fails (for example, invalid JSON or missing required fields), you're prompted to continue editing or cancel. The original configuration file is never overwritten by a failed edit.
See Custom Agents for detailed documentation.
Migrate older agent configurations to the V3 format.
# Scan agents and open the selection menu > /upgrade-agent # Review upgraded agents and conversion warnings > /upgrade-agent diagnostics
Available subcommands:
run - Scan agents and open the selection menu (default)diagnostics - Review upgraded agents and their conversion warningsNotes:
.kiro/agents/ in the workspace and ~/.kiro/agents/ globally. If those directories don't exist, Kiro checks .amazonq/cli-agents/ in the workspace and ~/.aws/amazonq/cli-agents/ globally. When KIRO_AGENT_CONFIG_DIR is set, Kiro uses that directory for the global scan and skips the workspace scan..json.bak before any changesSee Upgrading agent configs for detailed documentation.
Spawn a new agent session that runs a task in parallel with your current conversation.
# Spawn an agent with a task > /spawn Analyze the test coverage in src/utils and suggest improvements # Give the spawned session a name > /spawn --name test-analysis Review all failing tests and categorize the failures
Spawned sessions run alongside your main conversation without blocking it. Monitor them in real time with Ctrl+G to open the crew monitor, which shows status for every spawned session.
Unlike subagents, which are spawned by the main agent to delegate focused work within a task graph, /spawn is a user-driven command that starts a fresh long-running session you can return to later.
Notes:
/spawn with no arguments fails.--name to label a session for easier identification in the crew monitor.Manage chat sessions, including saving, loading, and switching between sessions. Kiro CLI automatically saves all chat sessions on every conversation turn.
# Start a fresh conversation without restarting the CLI > /chat new # Start a fresh conversation with an initial prompt > /chat new how do I set up a React project # Open interactive session picker to resume a previous session > /chat resume # Save current V3 session to an archive > /chat save /myproject/codereview.zip # Overwrite an existing V3 archive > /chat save -f /myproject/codereview.zip # Load a V3 session archive > /chat load /myproject/codereview.zip
Available subcommands:
new - Start a fresh conversation without restarting the CLI. Optionally pass an initial prompt (e.g., /chat new how do I set up a React project). Use /chat resume to return to previous sessions. In V3, the new conversation keeps the current model while it remains available and uses that model's saved effort level. When the model list is available and the current model is unavailable, Kiro follows the model availability rules.resume - Open interactive session picker to choose a session to resumesave - Save the current session. V3 writes a zip archive; CLI 2.x writes JSON. In V3, pass --force or its short alias -f to overwrite an existing archive at that path. A -f-shaped token inside a quoted path (e.g. "a -f b".zip) is treated as part of the path, not parsed as the flag.load - Load a saved session. V3 reads zip archives; CLI 2.x accepts JSON files and can infer an omitted .json extension.save-via-script - Save session using a custom script (receives JSON via stdin)load-via-script - Load session using a custom script (outputs JSON to stdout)In V3, resumed or loaded sessions keep their stored model when it is unavailable. Kiro reports that requests will fail and points you to /model.
Notes:
↑/↓ to navigate, Enter to select, / to filterToggle the current interactive session between inline and fullscreen mode.
> /fullscreen
Fullscreen gives the conversation a dedicated terminal screen with mouse, touchpad, and keyboard scrolling. Run /fullscreen again to return inline. The command works with V2 and V3 and is available in both TUI and Lite; it is not available in non-interactive sessions.
To start future interactive TUI sessions in fullscreen, open /settings, choose Display → Full Screen, and turn on Start fullscreen. See Fullscreen mode for navigation, selection, and troubleshooting details.
Open the V3 session dashboard to browse, search, resume, and clean up local and cloud sessions.
# Open the dashboard > /sessions # Preview cleanup of empty local sessions > /sessions clean # Confirm permanent cleanup > /sessions clean --yes
The dashboard is available only in V3. To open it before starting a chat, run kiro-cli chat --sessions. See Session management for search coverage, cleanup safeguards, and engine-selection behavior.
Print the current chat session ID. Useful when you want to resume this exact session later with kiro-cli chat --resume-id <ID> or share the ID with support.
> /session-id
On exit, Kiro CLI also shows a resume hint with the ID so you can jump back into the same session from your next terminal.
You can use custom scripts to control where chat sessions are saved to and loaded from. This allows you to store sessions in version control systems, cloud storage, databases, or any custom location.
Save via script:
> /chat save-via-script ./scripts/save-to-git.sh
Your script receives the chat session JSON via stdin. Example script to save to Git notes:
#!/bin/bash set -ex COMMIT=$(git rev-parse HEAD) TEMP=$(mktemp) cat > "$TEMP" git notes --ref=kiro/notes add -F "$TEMP" "$COMMIT" --force rm "$TEMP" echo "Saved to commit ${COMMIT:0:8}" >&2
Load via script:
> /chat load-via-script ./scripts/load-from-git.sh
Your script should output the chat session JSON to stdout. Example script to load from Git notes:
#!/bin/bash set -ex COMMIT=$(git rev-parse HEAD) git notes --ref=kiro/notes show "$COMMIT"
Save the current conversation to a file.
# Save <PATH> > /chat save /myproject/codereview.json
Load a previously saved conversation.
# List available conversations > /chat load /myproject/codereview.json
Open your default editor to compose a longer prompt.
> /editor
Opens $EDITOR (defaults to vi if not set) to compose a multi-line message. Useful for crafting detailed prompts, pasting code snippets, or writing longer instructions. Save and exit the editor to send the message.
Open your editor with the most recent assistant message quoted for reply.
> /reply
Opens $EDITOR with the AI's last response quoted, allowing you to reference and respond to specific parts of the message. Useful for providing feedback on specific sections or asking follow-up questions about particular details.
Manage workspace checkpoints to track and restore file changes.
# Initialize a new checkpoint > /checkpoint init # List all checkpoints > /checkpoint list # Restore to a checkpoint (interactive picker) > /checkpoint restore # Restore to specific checkpoint > /checkpoint restore 2 # Restore with exact state match (removes newer files) > /checkpoint restore 2 --hard # View checkpoint details > /checkpoint expand 1 # View differences between checkpoints > /checkpoint diff 1 2 # Clean up checkpoint data > /checkpoint clean
Available subcommands:
init - Create a snapshot of current workspace statelist - Show available checkpoints with timestamps and file statsrestore - Restore workspace to a previous checkpoint stateexpand - Show detailed checkpoint informationdiff - View differences between checkpointsclean - Clean up checkpoint shadow repositoryHow it works:
Restore modes:
--hard): Exactly matches checkpoint state, deletes files created after checkpointNote: This is an experimental feature. Enable with kiro-cli settings chat.enableCheckpoint true.
Switch to the Plan agent for breaking down complex ideas into implementation plans.
# Switch to Plan agent > /plan # Switch with immediate prompt > /plan Build a REST API for user management
The Plan agent specializes in breaking down complex ideas into actionable implementation plans. Use Shift+Tab to return to your previous agent.
List specs, switch to spec mode, run spec tasks, or analyze requirements.
# List specs and switch to spec mode > /spec # Start a new spec > /spec new my-feature # Execute the spec's tasks > /spec run my-feature # Open a spec document > /spec view my-feature requirements # Analyze requirements for ambiguities and gaps > /spec analyze_requirements my-feature
Available subcommands:
new <feature-name> - Start a new spec and switch to spec moderun <feature-name> - Execute the spec's tasksview <feature-name> [requirements|design|tasks] - Open one of the spec's documentsanalyze_requirements [feature-name] - Analyze a spec's requirements for ambiguities, inconsistencies, and missing acceptance criteria. With no feature name, a searchable picker lists the specs that have a requirements.mdNotes:
/spec is not available while a cloud session is activeSee Specs and Analyze Requirements for detailed documentation.
Switch to the Guide agent for documentation-grounded help and onboarding.
# Switch to Guide agent > /guide
The Guide agent answers questions about Kiro CLI features, commands, tools, and settings using indexed documentation. It can also create configuration files in your .kiro/ directory (agents, prompts, steering files).
Use Shift+Tab or /agent swap to return to your previous agent.
See Guide agent for detailed documentation.
Manage your knowledge base for semantic search across files and directories.
# Show all knowledge base entries > /knowledge show # Add a file or directory > /knowledge add --name my-docs --path ./docs # Add with include/exclude patterns > /knowledge add --name src --path ./src --include "*.ts" --exclude "*.test.ts" # Add with indexing type > /knowledge add --name api --path ./api --index-type Best # Search the knowledge base > /knowledge search "authentication flow" # Remove an entry > /knowledge remove ./docs # Update (re-index) an entry > /knowledge update ./docs # Re-index every knowledge base at once > /knowledge update # Clear entire knowledge base > /knowledge clear # Cancel background indexing operation > /knowledge cancel
Available subcommands:
show - List all knowledge base entries with statusadd - Add files or directories to knowledge basesearch - Semantically search indexed contentremove (alias: rm) - Remove entry by pathupdate - Re-index an existing entry. Run with no arguments to re-index every knowledge base at once.clear - Clear entire knowledge base (requires confirmation)cancel - Cancel background indexing operationAdd options:
--name, -n - Entry name (required)--path, -p - File or directory path (required)--include - Include patterns (can specify multiple)--exclude - Exclude patterns (can specify multiple)--index-type - Fast or Best (default from settings)Note: V3 enables knowledge by default. Set chat.enableKnowledge false to turn it off. In V1 and V2, knowledge is experimental; enable it with kiro-cli settings chat.enableKnowledge true.
See Knowledge Management for detailed documentation.
Summarize the conversation to free up context space.
> /compact
Condenses the conversation history while preserving key information, useful when approaching context limits. The AI creates a summary of the conversation so far and replaces the message history with this summary, freeing up tokens in your context window.
Paste an image from your clipboard into the conversation.
> /paste
Adds an image from your system clipboard to the conversation, allowing the AI to analyze screenshots, diagrams, error messages, or any visual content. Supports common image formats (PNG, JPEG, etc.).
View tools and permissions. By default, Kiro will ask for your permission to use certain tools. You can control which tools you trust so that no confirmation is required.
# View all tools, estimated token counts, and permissions > /tools # Show the input schema for all available tools > /tools schema # Trust a specific tool for the session > /tools trust write # Revert a tool to per-request confirmation > /tools untrust write # Trust all tools (equivalent to deprecated /acceptall) > /tools trust-all # Reset all tools to default permission levels > /tools reset
Available subcommands:
schema - Show the input schema for all available toolstrust - Trust a specific tool or tools for the sessionuntrust - Revert a tool or tools to per-request confirmationtrust-all - Trust all tools (equivalent to deprecated /acceptall)reset - Reset all runtime permissions to defaults, including shell trust patterns, filesystem path permissions, and denied toolsOutput columns:
~Tokens - Estimated token count for each tool's schema (values 1000+ shown as k)Permission - Current permission status (Trusted, Ask, or Allowed)Total - Combined token count per origin (Native tools, each MCP server)Note: For permanent tool configuration, see Agent Configuration Reference.
Choose how Kiro handles actions your permission rules do not settle in the current workspace. In Kiro CLI 2.36 or later, an interactive V3 session offers the Policies page, where you choose between ask for approval and approve for me.
# Open the permissions menu > /permissions # Open the Policies page > /permissions policies # Ask before every action your rules do not cover > /permissions policies ask-for-approval # Let Kiro approve routine actions, block risky ones, and ask when unsure > /permissions policies approve-for-me
Available subcommands:
policies - Open the Policies page; the current choice is marked [active]policies ask-for-approval - Remove the approve-for-me preset from the workspace permissions file, so Kiro asks about every action your rules do not coverpolicies approve-for-me - Add the approve-for-me policy preset to the workspace permissions file (~/.kiro/workspace-roots/<hash>/permissions.yaml), so the choice stays with that repositoryNotes:
/permissions is not available in cloud sessionsSee Approve for me for what the mode can do on your behalf, what it still asks about, and how to verify it.
View and manage reusable prompts. In V3, workspace, global, and MCP prompts are also advertised as direct slash commands with argument hints; invoking one resolves its template or MCP content before the expanded text reaches the model.
# List available prompts from a tool or show all available prompts > /prompts list # Show detailed information about a specific prompt > /prompts details code-review # Get a specific prompt by name > /prompts get code-review [arg] # Direct V3 invocation with completion hints > /code-review [arg] # Create a new local prompt > /prompts create my-prompt # Edit an existing local prompt > /prompts edit my-prompt # Remove an existing local prompt > /prompts remove my-prompt
Available subcommands:
list - List available prompts from a tool or show all available promptsdetails - Show detailed information about a specific promptget - Get a specific prompt by namecreate - Create a new local promptedit - Edit an existing local promptremove - Remove an existing local promptQuick tip: In V3, type / to discover saved and MCP prompts, then invoke one as /<prompt-name> [arguments]. Other CLI engines continue to support @<prompt-name> [arguments].
See Manage Prompts for detailed documentation.
View context hooks.
> /hooks
Display active context hooks for the current session.
Show billing and credits information.
> /usage
View your current usage statistics and remaining credits. In non-interactive runs, /usage prints the full usage breakdown instead of a one-line summary.
View MCP servers and registry status.
> /mcp
Display Model Context Protocol servers currently active, their available tools, and registry status for managed servers.
In the MCP panel, pressing Enter starts OAuth authentication for the selected server only when it is enabled, configured, and has a pending OAuth URL.
When your organization has a registry configured, /mcp add and /mcp remove persist changes to your agent's configuration file, so additions and removals survive restarts.
MCP disabled by your administrator
If your organization's administrator has disabled MCP in the Kiro console, /mcp shows one of two messages:
MCP has been disabled by your administrator — MCP is turned off for your organization. All servers (user-configured, legacy, registry, and session-injected) are suppressed and no MCP tools are available to the agent.Failed to retrieve MCP settings — MCP disabled — the Kiro client couldn't reach the governance API. MCP fails closed for security. This is usually transient; retry, check connectivity, or contact your administrator if it persists.MCP governance applies to IAM Identity Center and API key users. Builder ID and social auth users are not affected.
See MCP governance for the administrator setup.
Related commands:
/mcp auth — Force re-authentication for a remote server/mcp cancel-auth — Cancel a stuck authentication flow/mcp logout — Remove stored credentials for a serverForce re-authentication for a remote MCP server whose OAuth token has expired or become invalid.
# Re-authenticate with a specific server > /mcp auth my-server
Use this when a remote MCP server stops responding due to an expired or revoked token. Kiro opens a browser-based OAuth flow to obtain a fresh token without requiring you to restart your session.
You can also press ^A in the MCP panel status view to trigger the same action.
Abort a pending OAuth authentication flow that is stuck waiting for browser confirmation.
# Cancel a stuck auth flow > /mcp cancel-auth my-server
If you triggered an OAuth flow (either automatically or via /mcp auth) and the server stays in a "waiting for authentication" state — for example, because the browser tab was closed or a popup was blocked — this command cancels the pending request so you can retry authentication or continue without that server.
You can also press ^X in the MCP panel status view to abort.
Remove stored OAuth credentials for a remote MCP server.
# Remove credentials for a specific server > /mcp logout my-server
This clears the locally cached token for the specified server. The next time the server requires authentication, a fresh OAuth flow is triggered. Use this when you need to switch accounts or fully revoke access.
You can also press ^R in the MCP panel status view to remove credentials.
Review the agents, MCP servers, Powers, Steering, Skills, and Hooks configured for the current V3 session.
# Open the configuration summary > /config # Open a category directly > /config skills
Available in local and cloud V3 sessions. When source information is available, the panel identifies configuration as local or cloud. See Configuration scopes for source-label behavior and category details.
List, install, or uninstall Powers.
# List installed Powers > /powers # Install by catalog name or local path > /powers install <name|path> # Uninstall by name > /powers uninstall <name>
The install and uninstall subcommands are available in local V3 sessions. See Install powers for interactive and no-chat instructions.
Type / at the prompt to find installed Powers alongside built-in commands.
Available in a local V3 session started with kiro-cli --v3.
Override theme colors for prompt and response text.
> /theme
Customize the colors used for your prompt input and agent response text. Falls back to ANSI colors when terminal color detection has low confidence.
Set, clear, or show the terminal window title for the current session. This helps you keep track of which session is running in which terminal window. The title displays as kiro: <text>.
# Show the current title > /title # Set a sticky custom title > /title weekly standup notes # Clear the custom title > /title --clear
A title you set manually is sticky — it persists through session updates until you clear it with --clear.
Requires the terminal title feature to be enabled. Turn it on from /settings display → Terminal title, or run kiro-cli settings chat.terminalTitle true; when it's off, /title tells you how to enable it. When you have not set a title, the terminal shows the session's title, or the workspace folder name when the session has none. In Kiro CLI 2.33 or later, a V3 session shows its session title; before 2.33, a V3 session fell back to the workspace folder name.
See In-session settings for the /settings display toggle.
Copy the last assistant response to your clipboard.
> /copy
Copies the full content of the most recent assistant response, including all segments across tool calls. Works over SSH and through terminal multiplexers (tmux, Zellij) via OSC 52 clipboard escape sequences. Payloads over 100KB are skipped to avoid silent truncation on terminals with size limits.
Open the conversation transcript in your pager, or save it to a file.
# Open the transcript in your pager > /transcript # Render the transcript as plaintext or JSON > /transcript --plain > /transcript --json # Export the conversation to a file (markdown by default) > /transcript save conversation.md # Export as plaintext or JSON > /transcript save conversation.txt --plain > /transcript save conversation.json --json
Opens the full conversation history in $PAGER (defaults to less, or notepad on Windows). Press q to exit and return to the chat. Also available via Ctrl+T.
Available subcommands:
save - Export the conversation to a file as markdown (default), plaintext, or JSONFormat flags:
--plain - Render the transcript as plaintext instead of formatted markdown--json - Render the transcript as JSONThe --plain and --json flags switch the rendered transcript format inline, so you can read the conversation the way you want without leaving the pager. Combine them with save to control the exported format — save writes markdown by default, and the flag (not the file extension) determines the format.
Manage code intelligence configuration and get feedback.
# Initialize LSP-powered code intelligence in the current directory > /code init # Force reinitialization in the current directory - restarts LSP servers > /code init -f # Get a complete overview of the workspace > /code overview # Get overview with cleaner output > /code overview --silent # Get workspace status and LSP server statuses > /code status # View LSP logs for troubleshooting > /code logs # Show last 20 ERROR logs > /code logs -l INFO # Show INFO level and above > /code logs -n 50 # Show last 50 entries > /code logs -l DEBUG -n 100 # Show last 100 DEBUG+ logs > /code logs -p ./lsp-logs.json # Export logs to JSON file
Available subcommands:
init - Initialize LSP servers for enhanced code intelligenceoverview - Get a complete overview of the workspace structurestatus - Show the detailed status of the LSP servers and workspace statuslogs - View logsToggle experimental features.
> /experiment
Enable or disable experimental CLI features.
Manage side conversations in V3, or toggle the earlier experimental tangent mode.
# V3: branch or return to the parent > /tangent # V3: merge findings into the parent > /tangent merge # V3: merge findings into the root or an existing named session > /tangent merge root > /tangent merge ddb
In V3, /tangent merge [dest] sends a short findings summary to the parent by default, the conversation root with root, or an existing named session. The source tangent remains available. See Tangent for naming, navigation, reopening behavior, and errors.
In the earlier experimental tangent mode, /tangent or Ctrl+T toggles one checkpoint. See Tangent mode.
View, manage, and resume to-do lists.
# View todo > /todo # Add todo > /todo add "Fix authentication bug" # Complete todo > /todo complete 1
Create a new GitHub issue or make a feature request.
> /issue
Opens a workflow to submit issues or feature requests to the Kiro team.
Create a zip file with logs for support investigation and troubleshooting.
# Create log archive with chat logs > /logdump # Include MCP server logs > /logdump --mcp
Available options:
--mcp - Include MCP server logs in addition to chat logsOutput:
Creates a timestamped zip file in the current directory with the format q-logs-YYYY-MM-DDTHH-MM-SSZ.zip.
What's included:
logs/kiro-chat.log - Main chat logs (always included)logs/mcp.log - MCP server logs (only with --mcp flag)When to use:
Example output:
Collecting logs... ✓ Successfully created q-logs-2025-01-22T14-30-52Z.zip with 1 log file
Note: Review the log contents before sharing publicly, as logs may contain file paths and conversation history from your session.
Related: See also kiro-cli diagnostic for system diagnostics and /code logs for LSP server logs.
Configure theme, keybindings, terminal input, display preferences, account-available features, and prompt history scope through an interactive menu.
# Open the settings menu > /settings # Customize theme colors > /settings theme # View keyboard shortcuts > /settings keybindings # Configure multi-line input for your terminal > /settings terminal # Toggle animations, ASCII art, icons, thinking display, status-line segments, and V3 Output style > /settings display # Toggle account-available features > /settings features # Choose per-session or global prompt history > /settings history
Available subcommands:
theme — Customize prompt and response colors with a live previewkeybindings — View configurable keyboard shortcuts (read-only reference)terminal — Enable Shift+Enter / Option+Enter for multi-line input. Auto-configures supported terminal apps (VS Code, Alacritty, Zed, Apple Terminal, and others) or shows manual workarounds for unsupported terminalsdisplay: Toggle animations, ASCII art, icon rendering, the thinking display (Show thinking), status-line segments for date, time, current usage percentage, and remaining credits, and the V3 Output style row. In the full terminal UI, Screen reader sets screen reader support to auto, on, or off. Status-line segments are hidden by default; changes apply immediately and persist across sessions.features — Enable account-available features. Enabling declarative workflows writes chat.enableWorkflows; restart Kiro CLI to apply the change.history — Switch prompt history between session (default) and global modesNotes:
terminal subcommand creates a .bak backup before modifying any terminal configuration files.set -s extended-keys on in their tmux.conf for Shift+Enter to work.Show thinking toggle and history mode apply to your next session.See In-session settings for the full subcommand reference.
Manage local autonomous mode in a local V3 session. Run the command without an argument to choose on or off. Turning it on lets Kiro work through a task without asking you to approve each shell command. Kiro switches to the Default agent and activates the local command sandbox first. Autonomous mode does not start when sandbox protection cannot be confirmed. Turning it off ends autonomous mode and leaves the sandbox on.
# Open the on/off picker > /autonomous # Change the mode directly > /autonomous on > /autonomous off
See Local command sandbox for its protection rules and recovery behavior.
Manage the local command sandbox in Kiro CLI 2.31 and later local V3 sessions. The command is not available in cloud sessions.
# Open sandbox settings > /sandbox # Choose the network mode > /sandbox network # Enable or disable the sandbox in your global config > /sandbox on > /sandbox off # Enable the sandbox in this project's config > /sandbox project on # Write enabled:false to this project's config (an active global policy stays enabled) > /sandbox project off # Windows only: run the one-time administrator setup > /sandbox setup
Changes save to sandbox.json and apply to the running session. See Local command sandbox for configuration, network modes, and recovery.
/model is the primary reasoning interface. In V2 and V3, bare /effort opens the /model picker focused on the Effort setting. /effort <level> remains supported in both.
# Open effort controls > /effort # Set a level directly > /effort high
The available levels are low, medium, high, xhigh, and max, depending on the active model. /effort <level> changes the current session only; run /effort set-current-as-default to save that level for the current model, or choose the level in /model, which saves it automatically. Use --effort when starting Kiro CLI to set the level before the first prompt; in V3, the flag applies only to that starting session and isn't saved as a default.
See Reasoning effort for supported models, persistent per-model defaults, and configuration examples.
Open workflow history or start and manage declarative workflow runs. Workflows must be available for your account and enabled under /settings features; restart Kiro CLI after changing the setting.
# Open Workflow history and select a run > /workflow # Start a recipe through the picker > /workflow run # Start a named recipe with inputs > /workflow run investigate --brief "Trace timeout configuration" --report_path /path/to/report.md # Inspect or control a known run > /workflow status <workflowId> > /workflow pause <workflowId> > /workflow resume <workflowId> > /workflow cancel <workflowId> > /workflow retry <workflowId> [nodeId]
Subcommands:
| Subcommand | Purpose |
|---|---|
run [recipe] [inputs] | Select or start a bundled, synchronized, user, or project recipe |
new <description> | Create a reusable workflow recipe from a goal description |
list | List known workflow runs |
status <workflowId> | Print a known run's current status |
pause <workflowId> | Request a cooperative pause at the next node boundary |
resume <workflowId> | Continue a paused run |
cancel <workflowId> | Stop a run immediately; file changes remain |
retry <workflowId> [nodeId] | Retry failed or aborted work |
Recipe inputs accept --key=value, --key value, or the interactive form. Retry is not available for completed runs; start the recipe again to create a new run.
Inside the workflow monitor, use p to pause, state-dependent r to resume or retry, s to respond to the selected paused step, and Ctrl+X to stop. See Run and manage workflows for status, recovery, and cancellation behavior.
Start a goal-driven iterative loop where the agent works autonomously toward an objective and verifies completion before stopping.
# Set a goal (default: 5 iterations) > /goal refactor the auth module to use JWT tokens and ensure all tests pass # Allow more iterations for complex tasks > /goal --max 10 migrate the entire test suite from Jest to Vitest # Cancel an active goal > /goal clear
Unlike a regular prompt, /goal keeps the agent running through multiple cycles of implementation and self-check until the acceptance criteria in your goal statement are met. Be explicit about what "done" looks like — "all tests pass" or "no TypeScript errors" gives the agent a concrete verification target.
Available subcommands:
clear — Cancel the active goal loop and return to standard interactive modeOptions:
--max <number> — Maximum number of iterations (default: 5)Notes:
--max to increase for complex tasks.See Goal for detailed documentation.
Fork the conversation at an earlier turn to explore a different path.
# Open interactive turn picker > /rewind # Jump to a specific turn by index > /rewind 4
Creates a new session starting from the selected turn. The original session is preserved and you can switch back with /chat load or /chat resume.
The interactive picker shows prompt previews, tool call details, and context usage percentage at each turn, listed newest-first.
Notes:
See Rewind for detailed documentation.
View recent release notes inline in the CLI.
> /changelog
Displays the latest Kiro CLI release notes directly in your terminal, so you can see what changed without leaving your session.
In addition to the built-in commands above, skills defined in .kiro/skills/ and ~/.kiro/skills/ are automatically available as slash commands. Type / followed by the skill name to invoke it directly.
# Invoke a skill named "pr-review" > /pr-review # Invoke a skill named "cdk-deploy" > /cdk-deploy
The available skill commands depend on which skills are present in your workspace and global skill directories. See Agent Skills for details on creating and managing skills.
In interactive mode, you can also use:
Ctrl+C - Cancel current input / exit sessionCtrl+D - Exit sessionCtrl+D/U - Navigate between subagents in the monitorCtrl+G - Open subagent execution monitorCtrl+J - Insert newline (all terminals including tmux)Ctrl+O - Expand collapsed shell outputCtrl+R - Reverse incremental history searchCtrl+S - Fuzzy search commands and context files, use tab to select multiple itemsCtrl+T - Toggle tangent mode for isolated conversations (if enabled)Alt+Enter - Insert newline (Terminal.app, Ghostty)Alt+Backspace - Delete previous wordShift+Enter - Insert newline (iTerm2, Ghostty, Kitty, Warp, Zed)Shift+Tab - Enter plan modeUp/Down arrows - Navigate prompt history (per-session by default; configure with /settings history)Tab - Drill into approval options / autocomplete file referencesEsc - Close panels, cancel agent execution, clear prompt queue
Slash commands