I’m trying to connect the Cursor CLI client in ACP mode to the Zed editor, but I’m encountering an issue where the editor returns an error: Internal error: “server shut down unexpectedly”.
Zed requires configuration in the following format:
{
"type": "custom",
"command": "...",
"args": [...],
}
I’ve tried using just agent with arguments ["--api-key xxx", "acp"] as the command, as well as running it directly through node:
{
"type": "custom",
"command": "C:\\Users\\<user>\\AppData\\Local\\cursor-agent\\versions\\2026.02.27-e7d2ef6\\node.exe",
"args": [
"C:\\Users\\<user>\\AppData\\Local\\cursor-agent\\versions\\2026.02.27-e7d2ef6\\index.js",
"--api-key xxx",
"acp"
]
}
And also with arguments:
--print
--output-format stream-json
--stream-partial-output
Nothing worked
Has anyone managed to get Cursor working in Zed? Can you give me some advice?