# Remote development with VS Code

> VS Code reaches a remote machine three ways: Remote-SSH, the browser, and file sync. On an EnvHaven workspace all three work, and the agents run on the workspace either way.

_Updated November 23, 2026_

Remote development keeps the editor where your hands are and the work where the compute is. With coding agents, the second part matters more: the agent needs the files, the toolchain and the running processes on one machine, and it needs that machine to stay on. An EnvHaven workspace is that machine, and VS Code reaches it three ways.

## Three ways in

| Way | How | Best when |
| --- | --- | --- |
| VS Code in the browser | Open the workspace's Web IDE, which is VS Code (code-server) | You are on a device without VS Code, or want zero setup |
| Remote-SSH | Connect your desktop VS Code to `ssh-<workspace>.envhaven.app` | You want your own VS Code, extensions and keybindings |
| File sync | The Haven CLI mirrors the workspace into a local folder | You want local files and local tools, agents remote |

## Remote-SSH

Add your public key, or import it from GitHub, under Remote Access in the workspace's EnvHaven sidebar. Then add the host to your SSH config:

```
Host my-workspace
  HostName ssh-<workspace>.envhaven.app
  User abc
```

Run **Remote-SSH: Connect to Host** and pick it. VS Code installs its server on the workspace, and its terminal opens there, with every built-in agent installed and the ones you signed in to from the workspace's **Launch** menu already signed in.

## File sync with the Haven CLI

```bash
curl -fsSL https://envhaven.com/install.sh | bash
cd my-project
haven connect . <workspace>
haven claude        # runs Claude Code on the workspace
```

Files sync both ways in about 200 milliseconds. You edit locally; the agent edits on the workspace; both see each other's changes.

Whichever way you connect, the agents keep working when VS Code closes, because they never ran on your computer.

## Keep reading

- [Remote development](https://envhaven.com/glossary/remote-development)
- [Zed remote development](https://envhaven.com/guides/remote-development-zed)
- [Haven CLI](https://envhaven.com/glossary/haven-cli)
- [code-server](https://envhaven.com/glossary/code-server)

Source: https://envhaven.com/guides/remote-development-vscode
