Skip to content

How to Install Kiro CLI: AWS's Spec-Driven AI Coding Agent

Β· 3 min read

What Is Kiro CLI?

Kiro CLI is AWS’s terminal AI coding agent powered by Claude Sonnet 4. Its key differentiator: it’s spec-driven. Instead of jumping straight into code, Kiro generates requirements and design documents first, then implements based on those specs.

Think of it as having a senior engineer who writes the spec before touching the keyboard.

After two weeks of use, the biggest win is fewer rewrites. The spec stage catches bad assumptions before any code is written.

How to Install Kiro CLI

One-line install (macOS / Linux)

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

Debian/Ubuntu (.deb)

wget https://desktop-release.q.us-east-1.amazonaws.com/latest/kiro-cli.deb
sudo dpkg -i kiro-cli.deb

AWS CloudShell (no install needed)

Open CloudShell from the AWS Console and run kiro-cli directly.

Verify

kiro-cli --version

How to Authenticate

kiro-cli

Opens your browser for sign-in. On SSH/remote sessions, it uses device code flow β€” you’ll see a URL and code to enter on any browser.

What Makes Kiro’s Spec-Driven Approach Different?

When you ask Kiro to build a feature, it follows this workflow:

  1. Requirements β€” generates a requirements document
  2. Design β€” creates a design spec with architecture decisions
  3. Tasks β€” breaks work into implementation tasks
  4. Code β€” writes the implementation

This means you get an auditable trail of decisions. You can review and adjust at each stage before code is written.

How Does Kiro Compare to Other CLI Agents?

Kiro CLIClaude CodeCodex CLIAntigravity CLI
ProviderAWSAnthropicOpenAIGoogle
Default modelClaude Sonnet 4Claude Sonnet 4GPT-4oGemini 3.5 Flash
Spec-drivenβœ…βŒβŒβŒ
Specialized agentsβœ…βŒβŒβœ…
Free tierβœ…βŒβŒβœ…
CloudShell supportβœ…βŒβŒβŒ
Skills/pluginsβœ…HooksPluginsSkills
Open sourceβŒβŒβœ…βŒ

Choose Kiro when: You want requirements generated before code, you’re in the AWS ecosystem, or you need specialized agents for different tasks (backend, DevOps, review).

Tips

  • Use specialized agents. Place agent definitions in .kiro/skills/ for domain-specific workflows.
  • Review specs before implementation. The spec-driven approach only helps if you actually read the generated requirements.
  • CloudShell for quick tasks. No local install needed β€” great for infrastructure work.
  • Device code auth for SSH. Look for the URL in terminal output when browser can’t open.

Troubleshooting

glibc error on older Linux

Your system has glibc < 2.34. Use the musl build or upgrade to Ubuntu 22.04+/Fedora 36+.

Auth fails in SSH session

Use device code flow: copy the URL from terminal output, open it on any browser, enter the code.

Command not found after install

export PATH="$HOME/.local/bin:$PATH"

Add to ~/.bashrc or ~/.zshrc to persist.


FAQ

Is Kiro CLI free?
Yes, there's a free tier. No credit card required to start. Paid plans available for higher usage.
What model does Kiro CLI use?
Claude Sonnet 4 by default. It's part of the AWS ecosystem but uses Anthropic's model.
What makes Kiro different from Claude Code?
Kiro is spec-driven β€” it generates requirements and design docs before writing code. Claude Code jumps straight into implementation. Kiro also supports specialized agents for different tasks.
Does Kiro CLI work in AWS CloudShell?
Yes. You can use Kiro CLI directly in CloudShell without any local installation.
What are Kiro's system requirements?
Linux requires glibc 2.34+ (Ubuntu 22.04+, Fedora 36+). Use the musl build for older distros. macOS 12+ and Windows 10+ are supported.

Related Posts