Loading image...Kiro
  • CLI
  • Enterprise
  • Pricing
DOWNLOADS
Loading image...Kiro
  1. Docs
  2. IDE
  3. Chat
  4. Terminal

Terminal integration

On this page
  • Overview
  • Getting started
  • How it works
  • Trust commands
  • Exact matching
  • Partial wildcard matching
  • Full wildcard matching & complex commands
  • Universal trust
  • Using terminal context
  • Troubleshooting

Loading image...Kiro
Product
  • About Kiro
  • CLI
  • Pricing
  • Downloads
For
  • Enterprise
  • Startups
Resources
  • Documentation
  • Blog
  • Changelog
  • FAQs
  • Report a bug
  • Suggest an idea
  • Billing support
Social
Site TermsLicenseResponsible AI PolicyLegalPrivacy PolicyCookie Preferences

Overview

Transform your development workflow with Kiro's terminal integration. Instead of memorizing command syntax or switching between windows, describe what you want to accomplish and Kiro translates your requests into executable commands, maintains context across operations, and provides a secure approval system that keeps you in control while managing dependencies, navigating git workflows, or exploring your codebase.

Getting started

Simply describe what you want to do in natural language. For example:

  • "Install the project dependencies"
  • "Check the git status"
  • "Find all TypeScript files in the src folder"
  • "Run the development server"

Kiro translates your request into the appropriate terminal command and asks for your approval before executing. You'll review the suggested command and choose to Modify, Reject, Run, or Run and Trust, then see the output directly in chat.

Loading image...Kiro Terminal Request
Tip

Long-running commands like Dev Servers are automatically managed by Kiro, running in dedicated terminals without blocking your workflow.

How it works

When Kiro suggests a command, you have four options:

  • Modify - Edit the command before running
  • Reject - Cancel execution
  • Run - Execute once
  • Run and Trust - Execute and trust similar commands in the future
Loading image...Kiro Terminal Approval Workflow

Trust commands

For security, Kiro asks for approval before running any command. You can streamline this process by configuring which commands to trust automatically.

Warning

The trust system puts responsibility on you to carefully configure trusted command patterns. Commands with potentially dangerous operations (like rm -rf) will be accepted if they match your trusted patterns.

Kiro uses simple string prefix matching to determine if a command should be automatically trusted. You can configure trusted commands in Settings → Trusted Commands at both the user level (global across all workspaces) and workspace level (specific to your current project).

Loading image...Kiro Trusted Commands Setting

Exact matching

Checks for the exact base string.

If you have trusted commands list as ["npm install", "git status"]:

CommandResult
npm install✅ Trusted and runs automatically
git status✅ Trusted and runs automatically
npm install --save❌ Requires approval (not exact match)
git status --short❌ Requires approval (not exact match)

Partial wildcard matching

Uses * to match variations of a specific command.

If you have trusted commands list as ["npm install *"]:

CommandResult
npm install✅ Trusted (matches "npm install *")
npm install --save✅ Trusted (matches "npm install *")
npm install express✅ Trusted (matches "npm install *")
npm run build❌ Requires approval (doesn't start with "npm install ")
npm test❌ Requires approval (doesn't start with "npm install ")

Full wildcard matching & complex commands

Uses * to trust any command string that starts with the specified prefix. The trust system only checks the beginning of the command string - if it matches, the entire command is trusted, including any chained commands, pipes, or redirects that follow.

If you have trusted commands list as ["npm *", "git *"]:

CommandResult
npm install✅ Trusted (matches "npm *")
npm install --save✅ Trusted (matches "npm *")
npm run build✅ Trusted (matches "npm *")
npm run build | tee log✅ Trusted (starts with "npm ")
npm install && docker build .✅ Trusted (starts with "npm ")
git add . && git commit -m "update"✅ Trusted (starts with "git ")
docker build .❌ Requires approval (no matching prefix)

Universal trust

Warning

Using wildcards (*) in trusted commands is an over-permissive configuration. This automatically approves all terminal commands without review, which can pose significant security risks including data loss, system modifications, or unauthorized access. Only use wildcards if you completely trust the environment and understand all potential commands.

If you have trusted commands list as ["*"]:

CommandResult
Any command✅ Trusted - use with extreme caution

Using terminal context

Reference recent output from your active terminal in your conversations with #terminal. Important: #terminal always refers to the currently active/visible terminal window. If you have multiple terminals open, make sure the terminal you want to reference is active before using #terminal in your chat.

This feature allows Kiro to analyze command results, debug errors, and suggest solutions based on your actual terminal session.

#terminal analyze the error from the last npm run build

Kiro maintains awareness of command history and outputs, enabling:

  • Error Analysis - Understanding why commands failed with specific error messages
  • Output Interpretation - Explaining complex command results and logs
  • Follow-up Actions - Suggesting next steps based on actual results
  • Pattern Recognition - Identifying recurring issues across multiple commands
  • Environment Debugging - Helping resolve system and dependency conflicts

Troubleshooting

For issues with terminal integration and manual setup instructions, see the Shell Integration troubleshooting guide.

Page updated: November 16, 2025
Vibe vs. Spec
Dev servers