Share feedback
Answers are generated based on the documentation.

Connect Cursor to a sandbox

Availability: GA
Requires: Docker Sandboxes 0.37.0 or later

Cursor is built on VS Code, so it connects to a sandbox the same way, using Remote - SSH. Your editor stays on your host while files, terminals, and extensions run in the isolated sandbox.

Note

This page covers the Cursor editor connecting to a sandbox over SSH. To run the Cursor agent CLI inside a sandbox instead, see Cursor agent.

Prerequisites

Connect

Confirm that you can connect to the sandbox from a terminal:

$ ssh demo.sbx
  1. Open the Command Palette and run Remote-SSH: Connect to Host.
  2. Enter the sandbox host manually as <name>.sbx.
  3. Cursor opens a new window connected to the sandbox. Use the remote folder picker to select the mounted workspace.

Notes

  • The first connection installs the editor server inside the sandbox, so it can take a moment. Later connections are faster.