ACP
DimCode supports ACP (Agent Client Protocol) so editors can talk to dim as an agent server.
Start ACP server
Run:
bash
dim acpYour editor will launch this command and communicate with it.
Configuration
ACP mode uses the same local settings as the TUI:
~/.dimcode/config.json(providers + models)~/.dimcode/tools.json(WebSearch / MCP settings)
Tip: run dim once and use /connect (or Ctrl+P → Connect Provider) before setting up your editor integration.
Zed integration
Add an agent_servers entry in your Zed settings.
jsonc
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p)
{
"agent_servers": {
"dim": {
"type": "custom",
"command": "dim",
"args": ["acp"],
},
},
// Keep your existing settings...
}Notes:
- Ensure
dimis in yourPATH(or use an absolute path in"command"). - If you need stable session behavior across editor requests, try
ACP_STICKY_SESSION=truein the editor environment.