Kiro's terminal integration lets the agent run shell commands on your behalf. Describe what you want in natural language, like installing dependencies, checking git status, or running tests, and Kiro translates your request into the appropriate command. A built-in approval system keeps you in control of what executes.
Loading image...
When Kiro suggests a command, you have four options:
You control which commands require approval through the Permissions system. Define shell capability rules in your permissions.yaml to allow, deny, or prompt for specific command patterns:
# ~/.kiro/settings/permissions.yaml rules: - capability: shell match: ["git *", "npm *", "npx *"] effect: allow - capability: shell match: ["rm -rf *", "sudo *"] effect: deny
For the full reference on configuring shell permissions, see Permissions.
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:
For issues with terminal integration and manual setup instructions, see the Shell Integration troubleshooting guide.
Terminal integration