VSCode ACP Chat
AI coding agents in VS Code via the Agent Client Protocol (ACP)

VSCode ACP Chat allows you to chat with Claude, OpenCode, and other ACP-compatible AI agents directly in your editor. No context switching, no copy-pasting code. If you encounter any problems, please report them to Issues.

🚀 Features
- Multi-Agent Support — Connect to OpenCode, Claude Code, Codex CLI, Gemini CLI, Goose, and other ACP-compatible agents.
- Native Chat Interface — Integrated sidebar chat that feels like a native part of VS Code.
- Context-Aware — Send code selections or terminal output directly to the chat via context menus.
- Tool Visibility — See what commands the AI runs with expandable input/output and file diffs.
- Rich Markdown — Full support for code blocks, syntax highlighting, and formatted responses.
- Streaming Responses — Watch the AI think and work in real-time.
- Session Management — Load and resume previous conversations with full history restoration.
- Terminal Integration — View terminal output with full ANSI color support.
- MCP Server Configuration — Connect to MCP servers via
stdio, http, or sse transports. Configurations are loaded from:
- Workspace:
<workspace>/.vscode/mcp.json
- User-level:
~/.config/Code/User/mcp.json (Linux), ~/Library/Application Support/Code/User/mcp.json (macOS), %APPDATA%/Code/User/mcp.json (Windows)
- HTTP/SSE servers are sent to agents based on the agent's advertised
mcpCapabilities.
📦 Getting Started
Prerequisites
You need at least one ACP-compatible agent installed and available in your $PATH:
[!IMPORTANT]
Ensure you have completed the agent's login/authentication setup before connecting via VS Code.
Installation
- Open VS Code
- Go to Extensions (
Cmd+Shift+X / Ctrl+Shift+X)
- Search for "VSCode ACP Chat"
- Click Install
💡 Usage
- Connect: Click the ACP icon in the Activity Bar and select an agent to start a session.
- Chat: Type your requests in the input box.
- Quick Send:
- Highlight code in the editor → Right-click → Send to ACP.
- Select text in the terminal → Right-click → Send to ACP.
- Inspect Tools: Click on tool icons (✓, ✗, ⋯) to view command inputs and execution results.
🛠️ Configuration
The extension automatically detects installed agents by checking your system's $PATH for the following commands:
| Agent |
Command |
Detection |
| OpenCode |
opencode acp |
Checks $PATH |
| Claude Code |
npx @zed-industries/claude-code-acp |
Checks $PATH |
| Codex CLI |
npx @zed-industries/codex-acp |
Checks $PATH |
| Gemini CLI |
gemini --acp |
Checks $PATH |
| Goose |
goose acp |
Checks $PATH |
| Amp |
amp acp |
Checks $PATH |
| Aider |
aider --acp |
Checks $PATH |
| Augment Code |
augment acp |
Checks $PATH |
| Kimi CLI |
kimi --acp |
Checks $PATH |
| Mistral Vibe |
vibe acp |
Checks $PATH |
| OpenHands |
openhands acp |
Checks $PATH |
| Qwen Code |
qwen --acp |
Checks $PATH |
| Kiro CLI |
kiro-cli acp |
Checks $PATH |
| Cursor Cli |
agent acp |
Checks $PATH |
Custom Agents
You can add custom agents via VS Code settings:
- Open Settings (
Cmd+Shift+P / Ctrl+Shift+P → Preferences: Open User Settings)
- Search for
vscode-acp-chat.customAgents
- Click Edit in settings.json
Example Configuration
{
"vscode-acp-chat.customAgents": [
{
"id": "my-agent",
"name": "My Custom Agent",
"command": "my-agent-cli",
"args": ["--acp"],
"env": {
"API_KEY": "your-api-key"
}
}
]
}
Configuration Fields
| Field |
Type |
Required |
Description |
id |
string |
Yes |
Unique identifier for the agent |
name |
string |
Yes |
Display name shown in agent selector |
command |
string |
Yes |
Executable command |
args |
string[] |
No |
Command-line arguments (default: []) |
env |
object |
No |
Environment variables |
[!NOTE]
Custom agents with the same id as a built-in agent will replace the built-in configuration.
👨💻 Development
# Install dependencies
npm install
# Build the extension
npm run compile
# Package as VSIX
npx vsce package
# Run tests & linting
npm test
npm run lint
npm run format
🤝 Acknowledgments
This project is an enhanced fork of the original vscode-acp repository, adding significant improvements to agent compatibility, session management, and the overall user interface.
📄 License
MIT License - see LICENSE file for details.