VS Code Extension
Open a ClusterCode DevBox in Visual Studio Code to browse files, edit code, and use the integrated terminal as if working locally.
Prerequisites
Section titled “Prerequisites”- VS Code (or VS Code Insiders) installed
- Dev DevBoxes extension installed
- A running ClusterCode DevBox
Install the extension:
code --install-extension ms-vscode-remote.remote-DevBoxesConfigure for Podman
Section titled “Configure for Podman”VS Code defaults to Docker. If your worker uses Podman, tell VS Code where to find the socket.
- Find your Podman socket:
podman machine inspect --format '{{.ConnectionInfo.PodmanSocket.Path}}'- Add to VS Code
settings.json:
{ "dev.DevBoxes.dockerPath": "podman", "dev.DevBoxes.dockerSocketPath": "<your-socket-path>"}Windows
Section titled “Windows”- Ensure the Podman machine is running:
podman machine start- Find your pipe path:
podman machine inspect --format '{{.ConnectionInfo.PodmanPipe.Path}}'- Add to VS Code
settings.json:
{ "dev.DevBoxes.dockerPath": "podman", "dev.DevBoxes.dockerSocketPath": "<your-pipe-path>"}Docker Desktop
Section titled “Docker Desktop”No configuration needed — VS Code detects Docker automatically.
Attach to a DevBox
Section titled “Attach to a DevBox”From the UI
Section titled “From the UI”- Open VS Code
Ctrl+Shift+P(orCmd+Shift+Pon macOS) → Dev DevBoxes: Attach to Running DevBox…- Select your DevBox (e.g.
claude-code-terminal-github-...) - A new window opens connected to the DevBox
Ctrl+O(orCmd+O) to open a folder inside the DevBox
From the command line
Section titled “From the command line”macOS/Linux:
code --folder-uri "vscode-remote://attached-DevBox+$(printf '<DevBox-id>' | xxd -p)/workspace"Windows (PowerShell):
$hexId = -join ([System.Text.Encoding]::UTF8.GetBytes("<DevBox-id>") | ForEach-Object { '{0:x2}' -f $_ })code --folder-uri "vscode-remote://attached-DevBox+$hexId/workspace"Use podman ps or docker ps to find the container ID.
Troubleshooting
Section titled “Troubleshooting””Cannot connect to the Docker daemon”
Section titled “”Cannot connect to the Docker daemon””- Podman: Make sure the machine is running —
podman machine start - Docker: Make sure Docker Desktop is running
- Verify the socket/pipe path in your VS Code settings
DevBox doesn’t appear in the list
Section titled “DevBox doesn’t appear in the list”- Verify the DevBox is running:
podman ps - Check
dev.DevBoxes.dockerPathis set correctly - Check
dev.DevBoxes.dockerSocketPathpoints to the right socket
VS Code shows “Installing server…” for a long time
Section titled “VS Code shows “Installing server…” for a long time”First-time attachment installs the VS Code server inside the DevBox. Subsequent connections reuse the cache and are much faster.