VS Code extension.
Connect the VS Code chat view to your installed Kaitoi CLI, add selected code as context, and handle workspace trust, permissions, diffs, and cancellation.
For setup and updates, see Install and update. Check
kaitoi --versionand usekaitoi code --helpto confirm available commands. Older builds may interpret unsupportedcode acporcode servecommands as model prompts.
The Kaitoi Code extension brings a chat view, tool activity, permissions,
and diffs into VS Code. It starts your installed CLI through ACP and uses the
same Code runtime. The extension requires a CLI with code acp support. It is
not yet distributed as a VSIX or Marketplace download.
Connect the installed CLI
If you already have the matching source checkout, build the extension with
Node 22: run npm ci and npm run package in tools/kaitoi-vscode (or
kaitoi-vscode in the public source export). Install
the resulting VSIX through VS Code's Extensions: Install from VSIX command.
Otherwise wait for the published extension. Open a local project and grant
VS Code workspace trust when appropriate.
Virtual and untrusted workspaces are not supported.
Open Kaitoi Code in the Activity Bar and use its Chat view. The extension
launches kaitoi code acp. If VS Code cannot find the executable, set
kaitoiCode.executablePath to its absolute path. A bundled CLI or a PATH available
in your terminal is not necessarily visible to a separately launched editor.
Add the relevant code
Select code in the editor, then run Kaitoi Code: Send Selection. This adds the selection as context for your next message; it does not immediately send a model request. Explain the intended change in chat before submitting. The selection is a text snapshot with file context, not a live link that follows later edits.
Selected editor text is attached to the next chat message. The extension sends that message through its child Kaitoi Code ACP process. Text, tool activity, diffs, and permission questions return to the editor. This is a conceptual connection diagram, not a replica of VS Code's layout or an HTTP server setup.
Choose defaults for new sessions
| Setting | Effect |
|---|---|
kaitoiCode.executablePath |
CLI executable; default kaitoi. This is a machine setting. |
kaitoiCode.provider |
Provider for new sessions; empty uses Code's default. |
kaitoiCode.model |
Model for new sessions; empty uses Code's default. |
kaitoiCode.mode |
Plan, Build, or Crew for new sessions. |
kaitoiCode.permissionModal |
Also ask each permission question in a dialog; default false. Closing the dialog without choosing denies the request. |
Use Kaitoi Code: New Session after changing defaults. Use Kaitoi Code: Sign In for the browser login flow when using managed providers. Local model access has its own endpoint requirements.
Review work in the editor
Trusting the workspace in VS Code also answers Kaitoi Code's folder-trust question; the extension tells you when it does. This does not approve tools, paid operations or Crew runs. Read each permission question and inspect diffs before accepting a proposed action.
Kaitoi Code: Cancel requests cancellation of the active turn. Completed edits and dispatched remote work are not automatically rolled back. For transport capabilities and limitations, including unavailable ACP subagents, see the ACP guide.
Last reviewed against Kaitoi on 26 October 2026. View this page as Markdown