Open a space in VS Code or Cursor
Open a space in your own editor with one click. Your editor connects over Remote-SSH and lands in the space’s workspace folder, with the agent’s files, terminal and tools right there. Pick your editor once and Marshal remembers it.
Before you start
- VS Code or Cursor on your computer, with its Remote-SSH extension.
- The Marshal CLI, signed in to your Marshal server. See Install the CLI and sign in.
- The Marshal daemon on the same computer:
marshal daemon install. It adds your spaces to your SSH config, so your editor can reach them. - A space you own, in your active organization, that is ready.
- The space’s manifest includes the allow-list package for your editor:
egress-vscode(VS Code Remote-SSH) oregress-cursor(Cursor Remote-SSH). Your editor downloads its server into the space on the first connection, and this package lets it through. See Install a package into a manifest.
Steps
- Open the space in the web app.
- In the bar at the top of the space, click Open in VS Code.
- Your browser asks to open your editor. Allow it.
- Your editor opens a new window and connects to the space.
To use the other editor, click the arrow next to the button and pick Open in Cursor or Open in VS Code. The editor you pick opens right away and becomes your default, so the main button opens it from then on. Your default is saved on your account, so it is the same in every browser you sign in from.
The first time your browser talks to the daemon, it may ask to let the page access devices on your local network. Allow it. This is how the web app finds the daemon on your computer.
When the button is greyed out
Hover over the button to see what it needs. It tells you the exact command to run.
| The button says | What to do |
|---|---|
| The Marshal daemon is not connected | Install the CLI from your user menu under Download CLI, then run marshal login and marshal daemon install. |
| SSH config is not set up | Run marshal ssh-config install. The daemon is running, and this adds your spaces to your SSH config. |
| Space is starting | Wait until the space is ready. The button turns on by itself. |
The button checks again every 10 seconds, so there is no need to reload the page.
What you should see
- Your editor opens a window connected to
<space-slug>.<org-slug>.marshal. - The editor’s file explorer shows
/home/agent/workspace, the space’s workspace folder. - The first connection takes a few extra seconds while your editor installs its server in the space. Later connections are quick.
- After you pick an editor from the arrow menu, the main button shows its name, for example Open in Cursor.
Next
Prefer the terminal? marshal spaces connect <space-slug> attaches your own shell to the space. See the CLI reference.