Use DeepSeek, GLM or Groq models as a coding agent in any editor that speaks the Agent Client Protocol (ACP), such as Zed or Neovim with LouiseLM or CodeCompanion. The adapter is the agent: it runs the tool loop (read, search and edit files, run commands) behind permission prompts, keeps sessions, and reports usage and cost. The provider only needs an OpenAI-compatible chat API.
Warning
Alpha software: expect breaking changes. Default builds negotiate ACP v1 or experimental ACP v2, which remains a draft; real-editor v2 validation is still pending. Existing LouiseLM/CodeCompanion configurations stay unchanged and negotiate v1. Images, audio and elicitation are not supported (ACP coverage).
Linux x86_64: download, verify and install the release binary (Ubuntu 22.04 / glibc 2.35 or newer). No Rust, Python or Node runtime is needed.
Or build with Cargo (Rust 1.95 or newer):
cargo install --locked acp-llm-adapter
acp-llm-adapter --versionOther OS/architecture combinations have no verified downloadable binary yet.
--backend |
Provider | Default model | Provider docs |
|---|---|---|---|
deepseek |
DeepSeek | deepseek-v4-pro |
api-docs.deepseek.com |
glm |
Z.ai | glm-4.6 |
docs.z.ai |
groq |
Groq | openai/gpt-oss-120b |
console.groq.com/docs |
mock |
none: canned replies, no key | mock backend |
The adapter reads the provider key from LLM_API_KEY; the snippets below map
your own variable, such as DEEPSEEK_API_KEY, onto it. The editor's model
picker lists the provider's models; LLM_MODEL and LLM_BASE_URL override the
defaults.
Each snippet is the exact content of a file in examples/, which
CI runs against a local fake provider (scripts/test-editor-snippets): for
LouiseLM and CodeCompanion it checks a reply, an approved and a rejected
command, and that the edit preview shown before approval is the exact change.
The checks wait for adapter shutdown and reap their local fake provider on exit.
They use DeepSeek; for another backend change --backend and the key.
CI also checks agentic.nvim and cc-connect / cc-connect 试用 using their pinned clients and local fake services. The agentic guide also describes a separate live DeepSeek pilot; real chat-account validation for cc-connect is still pending.
In your LouiseLM setup:
assert(require("louiselm").setup({
agents = {
deepseek = {
provider = "DeepSeek",
command = "acp-llm-adapter",
args = { "serve", "--backend", "deepseek" },
env = { LLM_API_KEY = assert(vim.env.DEEPSEEK_API_KEY, "DEEPSEEK_API_KEY is not set") },
},
},
}))Then :LouiselmChat, as in the screenshot above. Tested with LouiseLM
plugin-v0.3.0 on Neovim 0.12.5, 2026-10-09.
In Zed's settings.json
(Zed external agents):
{
"agent_servers": {
"DeepSeek (acp-llm-adapter)": {
"type": "custom",
"command": "acp-llm-adapter",
"args": ["serve", "--backend", "deepseek"],
"env": { "LLM_API_KEY": "your-deepseek-api-key" }
}
}
}In the Agent Panel's new-thread menu, pick the external agent "DeepSeek (acp-llm-adapter)", not Zed's built-in agent. Last manual check of this setup: Zed 1.23.2, 2026-10-09.
The snippet reuses CodeCompanion's opencode ACP preset with this adapter's
command and reads the key from DEEPSEEK_API_KEY:
require("codecompanion").setup({
adapters = {
acp = {
deepseek_acp = function()
-- The opencode preset is a plain ACP adapter; reuse it for acp-llm-adapter.
return require("codecompanion.adapters").extend("opencode", {
name = "deepseek_acp",
formatted_name = "DeepSeek (acp-llm-adapter)",
commands = { default = { "acp-llm-adapter", "serve", "--backend", "deepseek" } },
env = { LLM_API_KEY = "DEEPSEEK_API_KEY" },
opts = { vision = false },
})
end,
},
},
interactions = { chat = { adapter = "deepseek_acp" } },
})Then :CodeCompanionChat. Rechecked with CodeCompanion v19.27.0, Neovim
0.12.5 and the downloaded adapter v0.10.0 binary on 2026-11-06, using a
localhost fake provider.
Note
CodeCompanion attaches its rules files to every chat by default, including
~/.claude/CLAUDE.md and a project's AGENTS.md or CLAUDE.md, so their
contents are sent to your provider. To opt out, add
rules = { opts = { chat = { enabled = false } } } to the setup table.
- Permission modes switchable mid-session:
ask,accept-edits,plan(read-only) andyolo(sessions). - Built-in tools
read_file,list_dir,glob,grep,write_file,edit_fileandrun_command. File tools are confined to the session's directory and approved extra directories;run_commandis permission-gated host execution, not a sandbox (tools and permissions). - MCP servers from the editor over stdio, streamable HTTP or legacy SSE.
- Persisted sessions: list, load with replay, resume, close and delete (ACP coverage).
- Usage, context-window and cost reporting, with cost for models whose prices are published (usage and cost).
- Model, reasoning-effort and max-output-token pickers (configuration).
| Variable | Purpose |
|---|---|
LLM_API_KEY |
Provider key; required except for mock |
LLM_MODEL |
Override the backend's default model |
LLM_BASE_URL |
Override the backend's base URL |
ACP_LOG=1 |
Write structured per-session logs, redacted by default (logging) |
RUST_LOG |
Tracing filter for stderr, e.g. acp_llm_adapter=debug |
docs/ covers configuration, sessions and modes, tools and
permissions, logging and the acp-proxy debugging binary, usage and cost, ACP
coverage, architecture, and the reusable llm library API.
MIT.


