ACP Support
CoDev Code supports the Agent Client Protocol or (ACP), allowing you to use it directly in compatible editors and IDEs.
For a list of editors and tools that support ACP, check out the ACP progress report.
ACP is an open protocol that standardizes communication between code editors and AI coding agents.
Configure
To use CoDev Code via ACP, configure your editor to run the codev acp command.
The command starts CoDev Code as an ACP-compatible subprocess that communicates with your editor over JSON-RPC via stdio.
Below are examples for popular editors that support ACP.
Zed
Add to your Zed configuration (~/.config/zed/settings.json):
{
"agent_servers": {
"CoDev Code": {
"command": "codev",
"args": ["acp"]
}
}
}To open it, use the agent: new thread action in the Command Palette.
You can also bind a keyboard shortcut by editing your keymap.json:
[
{
"bindings": {
"cmd-alt-o": [
"agent::NewExternalAgentThread",
{
"agent": {
"custom": {
"name": "CoDev Code",
"command": {
"command": "codev",
"args": ["acp"]
}
}
}
}
]
}
}
]JetBrains IDEs
Add to your JetBrains IDE acp.json according to the documentation:
{
"agent_servers": {
"CoDev Code": {
"command": "/absolute/path/bin/codev",
"args": ["acp"]
}
}
}To open it, use the new 'CoDev Code' agent in the AI Chat agent selector.
Avante.nvim
Add to your Avante.nvim configuration:
{
acp_providers = {
["opencode"] = {
command = "codev",
args = { "acp" }
}
}
}If you need to pass environment variables:
{
acp_providers = {
["opencode"] = {
command = "codev",
args = { "acp" },
env = {
CODEV_API_KEY = os.getenv("CODEV_API_KEY")
}
}
}
}CodeCompanion.nvim
To use CoDev Code as an ACP agent in CodeCompanion.nvim, add the following to your Neovim config:
require("codecompanion").setup({
interactions = {
chat = {
adapter = {
name = "opencode",
model = "claude-sonnet-4",
},
},
},
})This config sets up CodeCompanion to use CoDev Code as the ACP agent for chat.
If you need to pass environment variables (like CODEV_API_KEY), refer to Configuring Adapters: Environment Variables in the CodeCompanion.nvim documentation for full details.
Support
CoDev Code works the same via ACP as it does in the terminal. All features are supported:
Some built-in slash commands like /undo and /redo are currently unsupported.
- Built-in tools (file operations, terminal commands, etc.)
- Custom tools and slash commands
- MCP servers configured in your CoDev Code config
- Project-specific rules from
AGENTS.md - Custom formatters and linters
- Agents and permissions system