Zed, JetBrains & Neovim (ACP)
Use the LocalPilot agent from Zed, JetBrains IDEs and Neovim through the Agent Client Protocol, with your local models.
localpilot --acp runs the LocalPilot agent as an Agent Client Protocol server: JSON-RPC over stdin and stdout, one message per line. Editors that speak ACP start it as a subprocess and show the conversation, tool calls, plans and approval prompts in their own UI. The agent is the same one as in VS Code and the terminal: same tools, skills, rules, memory, MCP servers and providers.
You need the localpilot command on your PATH (LocalPilot: Install ‘localpilot’ CLI in PATH in VS Code). Settings come from the same places as for the CLI (see Terminal & CLI).
Zed
Add an agent server to Zed’s settings.json:
{
"agent_servers": {
"LocalPilot": {
"command": "localpilot",
"args": ["--acp"]
}
}
}
Open the Agent Panel and start a new LocalPilot thread. Use the full path (for example /Users/you/.local/bin/localpilot) if Zed does not see your shell’s PATH.
JetBrains IDEs
In IDEs with ACP support in the AI Assistant, add the agent to ~/.jetbrains/acp.json:
{
"agent_servers": {
"LocalPilot": {
"command": "/Users/you/.local/bin/localpilot",
"args": ["--acp"]
}
}
}
LocalPilot then appears in the AI chat’s agent picker.
Neovim
Plugins that drive ACP agents take the same command. With avante.nvim:
require('avante').setup({
provider = 'localpilot',
acp_providers = {
localpilot = { command = 'localpilot', args = { '--acp' } },
},
})
CodeCompanion.nvim and other ACP clients work the same way: point them at localpilot --acp.
What the editor gets
- Sessions. Each new thread is a LocalPilot session saved for its folder, like a CLI session:
localpilot -rand VS Code’s history (marked CLI) list it, and the editor can reopen it (session/loadreplays the conversation). - Streaming. The answer, the model’s reasoning, each tool call with its status and output, and the agent’s checklist (as the plan) stream into the editor.
- Approvals. Nothing is approved automatically: every file edit, command, network call or MCP tool call becomes a permission prompt with Allow, Always allow … in this session and Reject. “Always” never covers deletes, and your organization’s policy still applies. In this mode
approvals.*settings ofalwaysorsafecount asask(a kind set toneverstays refused), and auto mode’s reviewer model is off. Start withlocalpilot --acp --yesonly if you want every action approved. - Mode and model. The editor’s mode picker offers Agent, Multitask, Debug, Plan and Ask; the model picker lists the models of your providers. Both are also offered as session config options.
- Context. Text, files the editor embeds, file links and images are passed to the agent.
- Editor buffers. When the editor offers its file system (
fs.readTextFile/fs.writeTextFile), the agent reads files through it, unsaved changes included, and saves its edits through it, so they land in the editor’s buffer and its undo history. - Cancel. Stopping in the editor stops the run, as Ctrl+C does in the terminal.
The usual CLI options apply: -C <dir> for the default folder, -m <provider/model>, --no-mcp, --trust-workspace, --data-dir. Logs go to stderr and to the CLI log file (localpilot doctor log); stdout carries protocol messages only.