Recipes · Chapter 47 of 63
Use Kiro CLI in JetBrains or Zed
Run kiro-cli acp so JetBrains AI Assistant and Zed can drive Kiro's agent, with the full binary path and where CLI sessions are stored.
Advanced 2 min read last reviewed 2026-09-04
◎ Learning objective
Connect Kiro's agent to JetBrains or Zed through the Agent Client Protocol instead of switching editors.
The Agent Client Protocol lets another editor drive Kiro’s agent. Run kiro-cli acp and JetBrains or Zed talks to the same agent you get in the terminal, inside the editor you already use.
When to use this
Use this when your team is on JetBrains or Zed and switching to the Kiro IDE is not on the table. It is also the documented route for JetBrains users migrating from Amazon Q Developer, because there is no JetBrains plugin for Kiro.
Steps
-
Install Kiro CLI and complete the browser sign-in, exactly as you would for terminal use.
-
Find the full path to the binary:
which kiro-cliUse that path in the configuration below. An editor launched from a desktop icon may not inherit your shell
PATH, and a barekiro-clithen fails with a confusing “not found”. -
Confirm the ACP mode starts.
kiro-cli acpspeaks JSON-RPC 2.0 over stdin and stdout, so run it once and expect it to wait silently rather than print a prompt. That silence is correct. -
Add a specific agent if you want one.
kiro-cli acp --agent reviewerstarts the ACP process as that custom agent, which is a clean way to give an editor integration a restricted tool set. See Create a custom agent. -
Register it in JetBrains. The configuration file is
~/.jetbrains/acp.json, and Kiro appears as a custom agent in JetBrains AI Assistant once it is registered. -
Register it in Zed. Add a “Kiro Agent” entry to
~/.config/zed/settings.jsonpointing at the full binary path with theacpargument. -
Restart the editor and pick Kiro in its agent selector.
Check it worked
Start a conversation from inside the editor and ask the agent to read a file in the open project. Then open a terminal and look in ~/.kiro/sessions/cli/. Sessions started through ACP are stored there like any other CLI session, which means you can resume one from the terminal later.
Common problems
- The editor cannot find
kiro-cli. Use the absolute path fromwhich kiro-cli. This is the most common failure by a wide margin. - The agent starts and immediately exits. Authentication is missing. Run
kiro-cliin a terminal first and complete the browser sign-in. - Nothing happens when you send a message. The editor is not speaking ACP to the process. Check the argument is exactly
acpand that no shell wrapper is swallowing stdin. - The wrong persona answers. Add
--agent <name>so the ACP process starts as the agent you meant. - You expected a plugin. There is no Kiro plugin for JetBrains, Visual Studio, or Eclipse. ACP is the JetBrains route; for Visual Studio and Eclipse, run the Kiro IDE or the CLI alongside your editor.
Related
- Kiro CLI Guide covers the commands you will use once connected.
- The CLI explains what the terminal surface can do.
- Migrate from Q Developer covers the JetBrains migration path.
Frequently asked questions
Can I use Kiro in JetBrains IDEs?
Yes, through the Agent Client Protocol. Install Kiro CLI, authenticate, then register kiro-cli acp as a custom agent in JetBrains AI Assistant. The configuration file is ~/.jetbrains/acp.json. There is no separate JetBrains plugin.
Does Kiro work in Zed?
Yes. Add a Kiro Agent entry to ~/.config/zed/settings.json that runs kiro-cli with the acp argument. Use the full path to the binary from which kiro-cli.
Where does Kiro CLI store its sessions?
In ~/.kiro/sessions/cli/. Sessions started through an ACP client land in the same place, so you can resume them from the terminal.
☰ Chapter summary
- kiro-cli acp speaks JSON-RPC 2.0 over stdin and stdout, which is what ACP clients expect.
- Add --agent to start the ACP process as a specific custom agent.
- JetBrains reads ~/.jetbrains/acp.json; Zed reads ~/.config/zed/settings.json under a Kiro Agent entry.
- Use the full path from which kiro-cli, because the editor may not inherit your shell PATH.
- CLI sessions are stored in ~/.kiro/sessions/cli/.
All chapter summaries are collected on the revision page.
Related chapters
- Hands-onKiro CLI GuideInstall kiro-cli, drive sessions with slash commands, manage agents and context, and take the agent into scripts and CI.
- ConceptsKiro CLIkiro-cli brings the Kiro agent to your terminal. Install, slash commands, headless CI runs, /compact and /effort, and ACP for JetBrains and Zed.
- RecipesCreate a Custom AgentCreate a Kiro custom agent as a Markdown file in .kiro/agents/, set its tools field, and switch to it mid-session or with kiro-cli --agent.
- Hands-onMigrate from Amazon Q DeveloperThe dates, the per-IDE steps, and the checklist for moving from Amazon Q Developer to Kiro, including what carries over and what is new.