Answer: The Kiro CLI returns exit codes 0 (Success), 1 (Failure), 3 (MCP Startup Failure), and 4 (Requested Agent Not Found). Status: Confirmed Entry: tool/kiro/commands-and-shortcuts/cli-exit-codes-reference Revision: 1 Digest: sha256:4723ad6dcecb7826 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:44:31Z Last changed: 2026-11-13T03:44:31Z Last verified: 2026-11-20T13:31:57Z Next check: 2026-11-21T13:31:57Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Exit code 0 | 0 | [1] | 2026-11-20 Exit code 1 | 1 | [1] | 2026-11-20 Exit code 3 | 3 | [1] | 2026-11-20 Exit code 4 | 4 | [1] | 2026-11-20 Sources: [1] Amazon Web Services. "Exit codes - Commands and Reference - Docs - Kiro". https://kiro.dev/docs/reference/exit-codes/ Role: primary. Accessed: 2026-11-20T13:31:57Z Quote: "0 Success Command completed successfully" (Supports: Exit code 0) Quote: "1 Failure General failure (auth error, invalid args, operation failed)" (Supports: Exit code 1) Quote: "3 MCP Startup Failure A server required by --require-mcp-startup did not start" (Supports: Exit code 3) Quote: "4 Requested Agent Not Found The agent a non-interactive run named, or in Kiro CLI 3.5.0 or later the --mode it requested, was unavailable on the selected agent engine" (Supports: Exit code 4) Published: 2026-11-20T07:39:25Z Snapshot SHA-256: 6137bfd1d3bfef7777ad565e0657ccc240509e6976f98c2d05903ea49ab694ce (captured 2026-11-20T13:31:57Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T13:31:57Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:31:57Z Last attempt: 2026-11-20T13:31:57Z Notes and limitations: Extracted automatically from a single official source (section "Exit code reference"). Related: https://latestn.com/tool/kiro/commands-and-shortcuts/cli-global-arguments What global arguments and commands does the Kiro CLI support? https://latestn.com/tool/kiro/commands-and-shortcuts/command-palette-location Where is the command palette in the Kiro IDE? https://latestn.com/tool/kiro/commands-and-shortcuts/copy-paste-terminal How do I copy and paste in the Kiro web terminal? https://latestn.com/tool/kiro/commands-and-shortcuts/cli-chat-inline-shell-commands How do I run shell commands inline in Kiro CLI chat? https://latestn.com/tool/kiro/commands-and-shortcuts/cli-chat-multiline-input How do I enter multi-line statements in Kiro CLI chat? https://latestn.com/tool/kiro/commands-and-shortcuts/cli-chat-start-fresh-conversation How do I start a fresh conversation in Kiro CLI chat? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:44:31Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/kiro/commands-and-shortcuts/cli-exit-codes-reference/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/kiro/commands-and-shortcuts/cli-exit-codes-reference POST: https://latestn.com/dispute/tool/kiro/commands-and-shortcuts/cli-exit-codes-reference with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/kiro/commands-and-shortcuts/cli-exit-codes-reference?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What exit codes does the Kiro CLI return and what does each one mean? Revision 1, last verified 2026-11-20T13:31:57Z. https://latestn.com/tool/kiro/commands-and-shortcuts/cli-exit-codes-reference (accessed 2026-11-21T09:58:34Z). @misc{LatestN_tool_kiro_commands_and_shortcuts_cli_exit_codes_reference_r1, title = {What exit codes does the Kiro CLI return and what does each one mean?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/kiro/commands-and-shortcuts/cli-exit-codes-reference}}, note = {Revision 1; digest sha256:4723ad6dcecb7826; last verified 2026-11-20T13:31:57Z; accessed 2026-11-21T09:58:34Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/kiro/commands-and-shortcuts/cli-exit-codes-reference