Kiro CLI: install, sign in over SSH, pricing and headless use
Kiro CLI, Amazon Q Developer CLI's successor: the installer and what it runs, signing in over SSH, plans from $20, config paths, MCP and headless trust flags.
Kiro CLI is AWS’s coding agent for the terminal, the renamed and closed-source successor to Amazon Q Developer CLI. Install it on macOS or Linux with curl -fsSL https://cli.kiro.dev/install | bash (3.7.1 as of November 30, 2026), then run kiro-cli. Sign in with GitHub, Google, an AWS Builder ID or IAM Identity Center; on a server over SSH, kiro-cli login --use-device-flow prints a URL and a one-time code to enter in any browser. The Free plan gives 50 credits a month; Pro is $20 for 1,000. An API key for unattended runs needs a paid plan, and a key is ignored while a browser sign-in is active on the same machine.
Kiro, Kiro CLI and what happened to Amazon Q
Kiro is AWS’s agentic development product: an IDE, a web app, mobile apps and the CLI, all drawing on one subscription. The CLI “runs the Kiro agent in your terminal”, reading and editing files and running commands, and since version 3.0 it runs on the same agent harness as the IDE and Kiro Web. Its command is kiro-cli.
It replaced Amazon Q Developer CLI. Kiro’s upgrade guide calls it “the next update of the Q CLI”: it shipped on November 17, 2025, and Q CLI installs with auto-update were moved over on November 24, 2025. If yours was not, q update does it. The old q and q chat commands still work, your subscription and sign-in carry over, and the upgrade copies ~/.aws/amazonq into ~/.kiro: MCP servers, prompts, custom agents, and rules (which become steering). Project .amazonq folders are still read, and a .kiro folder beside one wins. The old repository now opens with:
Amazon Q Developer CLI is now available as Kiro CLI, a closed-source product.CopiedThe open-source Q CLI gets only critical security fixes. Separately, AWS ends support for the Amazon Q Developer IDE plugins on April 30, 2027, and points their users at Kiro too.
One more change catches former Q users. Kiro CLI 3.0.0, released November 3, 2026, retired the macOS desktop app and with it the inline shell autocomplete Q was known for; the changelog says it has “no standalone replacement”. It also dropped the built-in use_aws tool: the 3.0 upgrade notes say “Use MCP servers for AWS access.”
Installing it, and what the installer does
curl -fsSL https://cli.kiro.dev/install | bash
kiro-cli --versionCopiedA piped installer runs whatever that URL serves at the moment you run it; download it and read it first if that matters to you. As read on November 30, 2026, the script does this:
- Accepts macOS and Linux only, on x86_64 or arm64.
- On Linux, checks glibc: 2.34 or later on x86_64, 2.39 or later on arm64. Below that, or if it cannot tell, it installs the musl build instead.
- Downloads from
prod.download.cli.kiro.devand checks the SHA-256 hash listed in the same release manifest. It checks no signature. - On macOS it may copy an app into
/Applications; otherwise it puts the binary in~/.local/bin. It never callssudo. - Needs about 2 GiB free in a temporary directory while it unpacks. On a small server with a tiny
/tmp, pointTMPDIRsomewhere roomier. - Adds
~/.local/binto yourPATHin your shell’s configuration file unless you pass--no-modify-path.--versionpins a release.
Kiro’s docs show no flags on the piped command; the script reads its arguments, and the ordinary shell way to pass them through a pipe is bash -s --:
curl -fsSL https://cli.kiro.dev/install | bash -s -- --no-modify-pathCopiedAfter that, kiro-cli update updates it (--check only looks). The installation page also lists Homebrew (brew upgrade --cask kiro-cli), an Amazon Linux RPM repository and an Ubuntu .deb, and Windows 11 through PowerShell. The installer refuses to replace an existing install without a terminal to ask in, unless you add --force, which replaces it without asking.
Signing in, including over SSH
kiro-cli login offers the same methods as the IDE. Per the authentication guide and the command reference:
| Method | Login flags | Works over SSH (device flow) |
|---|---|---|
GitHub or Google | --social github or --social google | Yes |
AWS Builder ID | --license free | Yes |
IAM Identity Center | --license pro --identity-provider <start URL> --region <region> | Yes, unless your organization turned it off |
An external identity provider (work email or a Kiro start URL) | chosen in the prompt | No |
API key | none: set KIRO_API_KEY | Needs no browser; paid plans only, non-interactive runs |
On a machine without a browser, the device flow is the way in. In the guide’s words, “The CLI displays a URL and a one-time code that you enter in any browser - no port forwarding required.” Open the URL on your laptop or phone, enter the code, approve, and the CLI notices by itself. The command reference’s example says a plain kiro-cli login “opens browser locally, shows device code remotely”; if it guesses wrong, --use-device-flow is, in the reference’s words, “Force device flow (for remote/SSH environments)”:
kiro-cli login --use-device-flow
kiro-cli whoamiCopiedwhoami shows which identity is in use. Sign-in through an external identity provider is “not currently supported with device flow authentication”, and an organization can turn the device flow off; where it has, the guide’s answer is to run kiro-cli login on a machine that can complete a browser sign-in. The sign-in lives in ~/.kiro (or KIRO_HOME, which the configuration page says holds V3’s “global configuration, sign-ins, sessions, and agent state”), so whoever can read your home directory on that server can use it. To keep a session going after you disconnect, run it inside tmux.
Plans and credits
From kiro.dev/pricing, as read on November 30, 2026, prices per user per month:
| Plan | Price | Credits a month |
|---|---|---|
Free | $0 | 50, open-weight models and Claude Sonnet 4.5 |
Pro | $20 | 1,000 |
Pro+ | $40 | 2,000 |
Pro Max | $100 | 5,000 |
Power | $200 | 10,000 |
Teams (2 or more) | $20 a seat | 500 a seat, pooled |
Paid plans buy extra credits at $0.04 each. The first upgrade to Pro makes the rest of that month free and adds 500 trial credits to use within 12 months. Credits are shared: they are spent “regardless of which interface the work runs on”, so CLI, IDE and web use draw on one balance, and API-key runs come out of it too.
The pricing page also says where the subscription may be used: Kiro IDE, CLI, web and mobile apps, Kiro Crew, ACP-compatible editors and automation in software development such as reviews in CI. Then:
Use through third-party automation harnesses (such as OpenClaw) that route requests outside of Kiro's native interfaces is not permitted.CopiedModels
The default is Auto, the 1.0x baseline every other model is priced against. The models page, updated November 27, 2026, lists among others Claude Opus 5.5 at 2.0x, Claude Sonnet 5.5 at 1.3x, Claude Haiku 5.5 at 0.06x, GPT-5.6 Sol at 4.4x, Terra at 2.2x and Luna at 0.6x, Grok 4.7 at 2.7x and Kimi K3 at 2.4x. The Free plan gets Auto, Claude Sonnet 4.5 and 4.0, and the open-weight models: DeepSeek 3.2, MiniMax M2.5 and M2.1, GLM-5 and Qwen3 Coder Next (0.05x). GPT-5.6 requests over 272K tokens bill at double. In the CLI, kiro-cli chat --list-models shows what your plan offers, --model picks one for a session, --effort sets reasoning effort from low to max, and /model switches inside a session.
Where it keeps config, agents and steering
Everything user-wide is under ~/.kiro/, and each project can have its own .kiro/. From the configuration reference:
| What | Your user | A project |
|---|---|---|
CLI settings ( kiro-cli settings) | ~/.kiro/settings/cli.json | none |
MCP servers | ~/.kiro/settings/mcp.json | .kiro/settings/mcp.json |
Custom agents | ~/.kiro/agents/ | .kiro/agents/ |
Steering | ~/.kiro/steering/ | .kiro/steering/ and any AGENTS.md |
Skills and hooks | ~/.kiro/skills/, ~/.kiro/hooks/ | .kiro/skills/, .kiro/hooks/ |
Tool permissions | ~/.kiro/settings/permissions.yaml | kept per user under ~/.kiro/workspace-roots/, outside the repository |
Command sandbox | ~/.kiro/settings/sandbox.json | .kiro/settings/sandbox.json |
Steering files are Markdown instructions Kiro loads into its context. Kiro also reads AGENTS.md at the project root and in subfolders, always included (see what AGENTS.md is), so a repository already set up for other agents works without a .kiro folder. Steering, skills and hooks from every level are merged; for MCP servers and same-named agents, the narrower scope wins, and a deny rule in any permissions file beats an allow anywhere else. A custom agent is a JSON file, or Markdown with YAML front matter whose body is the system prompt. The two pages on agents disagree on one point: the steering page (October 21) says a custom agent includes steering only if its resources list names it, while the newer agent reference (November 6) says custom agents inherit steering, skills and AGENTS.md unless chat.disableInheritingDefaultResources is set.
Adding MCP servers
Add one from the command line, or edit mcp.json directly. A local server and a remote one; the first is the fetch server from Kiro’s own MCP examples, which needs uv installed, and the second address is a placeholder for your server’s:
kiro-cli mcp add --name fetch --command uvx --args mcp-server-fetch --scope global
kiro-cli mcp add --name docs --url https://example.com/mcp --scope workspace
kiro-cli mcp listCopiedIn the file, a server takes command, args and env, or a url with headers. Write a secret as a reference such as "Bearer ${API_TOKEN}" rather than the value itself: the MCP configuration page says Kiro “only expands environment variables that are explicitly approved”, so a reference that comes out empty usually needs approving. The --env key=value option on mcp add writes the value into the file in plain text, which matters most for a project file that gets committed. The format is the one most agents share; the Codex MCP guide shows the same servers in another agent’s config.
Headless runs, and the trust flags
--no-interactive runs one prompt and prints the answer. For a script or a scheduled job, the headless guide uses an API key from app.kiro.dev (API Keys, shown once at creation; Pro or above). Keep it out of your history and out of any file others can read:
# replaces any key already saved in ~/.kiro-api-key
(umask 077; read -rsp 'Kiro API key: ' k; echo
printf 'export KIRO_API_KEY=%s\n' "$k" > ~/.kiro-api-key; unset k)
chmod 600 ~/.kiro-api-key
. ~/.kiro-api-key
kiro-cli chat --no-interactive --v3 --trust-tools=read_file,grep_search \
"Summarize what changed in the last commit"CopiedThree things decide how such a run behaves:
- Which sign-in it uses. An active browser or device-flow sign-in on the machine takes precedence over
KIRO_API_KEY; check withkiro-cli whoami. - Which harness. A local headless run with no harness named runs the older V2 (with exceptions,
--trust-all-toolsamong them), so the guide says to name--v3or--v2every time. - What it may do. Nobody is there to approve a tool call, so tools are approved up front.
--trust-toolsnames the tools allowed;--trust-all-toolsis, in the reference’s words, “Allow the model to use any tool without confirmation”, and it also approves hook confirmations. Kiro’s own advice is to prefer the named list in local headless V3 runs, with the warning that “A trusted tool runs on any path it would ask about, outside the workspace too.” A sub-agent call that needs approval nobody gave fails with:
[denied] tool permission approval is not supported in non-interactive mode. Use --trust-all-tools to auto-approve.CopiedAllowing every tool lets the model run any shell command as your user. Kiro’s command sandbox, which limits what shell commands can reach on disk and blocks outbound network unless a rule allows it, “is off by default”. Turn it on with "enabled": true in ~/.kiro/settings/sandbox.json; on Linux it needs Bubblewrap (bwrap) installed, which Kiro does not install for you. A headless run that cannot start the sandbox warns and carries on without it, unless you pass --sandbox, which makes it stop instead. On a server, run the agent as an ordinary user, never root. For scripts, --output-format stream-json prints events as JSON Lines, --require-mcp-startup exits with code 3 if an MCP server fails to start, and code 4 means the requested agent or mode is not available.
There is also --cloud, which the reference describes as running the session “in a managed cloud sandbox” rather than on your machine, with --repo to attach repositories to it.
Kiro CLI beside the other terminal agents
Kiro CLI does what Claude Code, Codex CLI and GitHub Copilot CLI do in a terminal, with two differences that decide most choices. It is closed source, where Q CLI was open. And it bills in Kiro credits across a menu of models from several makers, where the others use their maker’s subscription or an API key from that maker. If your company already runs on IAM Identity Center, Kiro fits the sign-in you have; if you pay for ChatGPT or Claude already, those makers’ own agents use that plan directly. The Claude Code alternatives guide lays out the wider field, and choosing a VPS for a coding agent covers a server for any of them, where the 2 GiB of temporary space the installer wants and a glibc of 2.34 or later are worth checking first.