Skip to content

Kiro CLI Setup: Installation and PATH Configuration Guide

· 3 min read

What Is Kiro CLI?

Kiro CLI is a terminal-based AI coding assistant. Previously known as Amazon Q Developer CLI, it was rebranded as Kiro CLI. You talk to an AI agent in your terminal — it writes code, runs commands, and manages infrastructure.

It supports custom agents, MCP server integration, and shares configuration with Kiro IDE. Version 2.0 added native Windows support and headless CI/CD mode.

How to Install Kiro CLI?

curl -fsSL https://kiro.dev/install.sh | bash

Or download manually:

curl --proto '=https' --tlsv1.2 -sSf \
  'https://desktop-release.codewhisperer.us-east-1.amazonaws.com/latest/kiro-cli/kiro-cli-linux-x64.zip' \
  -o kirocli.zip
unzip kirocli.zip
./kirocli/install.sh

The installer asks if it should modify your shell config. Say yes to auto-configure PATH.

Ubuntu (.deb package)

wget https://desktop-release.codewhisperer.us-east-1.amazonaws.com/latest/kiro-cli/kiro-cli.deb
sudo dpkg -i kiro-cli.deb
sudo apt-get install -f

Verify

kiro-cli --version

How to Fix “command not found: kiro-cli”?

Most common issue after install. The binary is at ~/.local/bin/kiro-cli but your shell doesn’t include that directory in PATH.

# Immediate fix
export PATH="$HOME/.local/bin:$PATH"

# Make it permanent
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

For zsh:

echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc

Verify:

which kiro-cli
# /home/youruser/.local/bin/kiro-cli

Where Are Kiro CLI Config Files?

PathPurpose
~/.kiro/Global config root
~/.kiro/settings/mcp.jsonMCP server configuration
.kiro/steering/*.mdProject-level AI behavior rules
.kiro/skills/Custom agent skills

MCP config example:

{
  "mcpServers": {
    "my-tool": {
      "command": "npx",
      "args": ["my-mcp-server"],
      "env": {},
      "timeout": 60000
    }
  }
}

How Does It Share Config with Kiro IDE?

If you use both Kiro IDE and Kiro CLI, configuration is shared automatically:

  • MCP servers: same ~/.kiro/settings/mcp.json
  • Steering rules: same .kiro/steering/ directory
  • Project docs: everything under .kiro/

Configure once, use in both environments.

WSL Setup Notes

Installation in WSL is identical to standard Linux:

curl -fsSL https://kiro.dev/install.sh | bash
export PATH="$HOME/.local/bin:$PATH"
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc

Make sure you’re in the WSL home directory (/home/youruser), not a Windows mount (/mnt/c/...).

Quick Troubleshooting

ProblemSolution
command not found: kiro-cliAdd ~/.local/bin to PATH
Permission denied on installchmod +x ./kirocli/install.sh
~/.local/bin doesn’t exist (macOS)mkdir -p ~/.local/bin then reinstall
Can’t authenticateCheck network — Kiro needs AWS connectivity

FAQ

Where does kiro-cli install to?
~/.local/bin/kiro-cli by default. On macOS via cargo, it may be at ~/.cargo/bin/kiro-cli.
What's the relationship between Kiro CLI and Amazon Q CLI?
Kiro CLI is Amazon Q Developer CLI rebranded. Same codebase, new name. Existing configs carry over automatically.
Does Kiro CLI work on Windows?
Yes, natively since version 2.0. Before that, Windows users needed WSL.
Is Kiro CLI free?
Yes. The free tier (Builder ID login) provides enough for daily development. Pro tier adds higher limits and enterprise features.
Can I use Kiro CLI with my existing Kiro IDE setup?
Yes. MCP servers, steering rules, and project configs in .kiro/ are shared between IDE and CLI automatically.

Related Posts