AI coding agents in VS Code via the Agent Client Protocol (ACP)
Chat with Claude, OpenCode, and other ACP-compatible AI agents directly in your editor. No context switching, no copy-pasting code.
- π€ Multi-Agent Support β Connect to OpenCode, Claude Code, or any ACP-compatible agent
- π¬ Native Chat Interface β Integrated sidebar chat that feels like part of VS Code
- π§ Tool Visibility β See what commands the AI runs with expandable input/output
- π Rich Markdown β Code blocks, syntax highlighting, and formatted responses
- π Streaming Responses β Watch the AI think in real-time
- ποΈ Mode & Model Selection β Switch between agent modes and models on the fly
You need at least one ACP-compatible agent installed:
- Open VS Code
- Go to Extensions (
Cmd+Shift+X/Ctrl+Shift+X) - Search for "VSCode ACP"
- Click Install
- Download the
.vsixfile from Releases - In VS Code:
Extensionsβ...βInstall from VSIX...
- Click the VSCode ACP icon in the Activity Bar (left sidebar)
- Click Connect to start a session
- Select your preferred agent from the dropdown
- Start chatting!
When the AI uses tools (like running commands or reading files), you'll see them in a collapsible section:
- β― β Tool is running
- β β Tool completed successfully
- β β Tool failed
Click on any tool to see the command input and output.
The extension auto-detects installed agents. Supported agents:
| Agent | Command | Detection |
|---|---|---|
| OpenCode | opencode |
Checks $PATH |
| Claude Code | claude |
Checks $PATH |
# Clone the repo
git clone https://github.com/omercnet/vscode-acp.git
cd vscode-acp
# Install dependencies
npm install
# Compile
npm run compile
# Run in VS Code
# Press F5 to open Extension Development HostContributions are welcome! Please read our Contributing Guide first.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
MIT Β© Omer Cohen
