Neovim
Overview
Section titled “Overview”Neovim integrates with AgentZero via ACP (terminal/jobstart) or MCP (via plugins like mcp-hub.nvim).
Recommended: ACP — AgentZero runs the full agentic loop using your local models.
ACP Setup (Recommended)
Section titled “ACP Setup (Recommended)”Terminal split
Section titled “Terminal split”The simplest approach: open a terminal split and run the interactive chat:
:vsplit | terminal az chatOr start the ACP server for programmatic interaction:
:vsplit | terminal az serveSingle-shot queries
Section titled “Single-shot queries”Use print mode for quick questions without an interactive session:
az chat -P "explain what this function does" --mode textLua integration
Section titled “Lua integration”For deeper integration, spawn az serve as a job:
local job = vim.fn.jobstart({'az', 'serve'}, { on_stdout = function(_, data) -- Handle ACP JSON-RPC responses end, stdin = 'pipe',})
-- Send a chat messagelocal request = vim.fn.json_encode({ id = "1", method = "chat", params = { message = "fix the bug on line 42" }})vim.fn.chansend(job, request .. "\n")MCP Setup
Section titled “MCP Setup”Use mcp-hub.nvim or similar MCP client plugins:
require('mcp-hub').setup({ servers = { agentzero = { command = 'az', args = { 'mcp' }, }, },})Security
Section titled “Security”- Stdio-only transport — no network ports opened
- Policy enforcement on all tool calls
- Audit trail in
.agentzero/audit/
Troubleshooting
Section titled “Troubleshooting”- “command not found: az” — ensure
azis in your PATH - Provider errors — run
az doctor