Access Dev Pod with Cursor

Note

This has been tested with version 1.0 of Cursor. Other versions may cause issues.

Cursor is a powerful AI-assisted code editor built on VS Code that can connect to a Dev Pod for remote development using DGX Cloud Lepton resources. In this guide, we will show you how to connect to a Dev Pod with Cursor via Remote Tunnels.

1. Create a Dev Pod and Launch a Cursor Dev Tunnel

Follow the create a dev pod guide and create a pod with the following run command depending on the CPU architecture of the Dev Pod:

For x86-based systems:

wget https://api2.cursor.sh/updates/download-latest?os=cli-alpine-x64 -O vscode-cli-alpine-x64.tar.gz && tar -xvf vscode-cli-alpine-x64.tar.gz && ./cursor tunnel --random-name

For ARM-based systems:

wget https://api2.cursor.sh/updates/download-latest?os=cli-alpine-arm64 -O vscode-cli-alpine-arm64.tar.gz && tar -xvf vscode-cli-alpine-arm64.tar.gz && ./cursor tunnel --random-name

This command will download the Cursor CLI and start a tunnel to the Dev Pod.

This command should work with most custom Debian-based containers, including the latest PyTorch and NeMo containers available on ngc.nvidia.com.

2. Grant Access to the VS Code Server

Once the pod is created, you'll need to grant access to the VS Code server which is running the Cursor dev tunnel. Go to the Dev Pod details page, click on the Logs tab, and find the following line:

...
2025-06-05 13:54:42 (170 MB/s) - 'vscode-cli-alpine-x64.tar.gz' saved [8770958/8770958]

cursor

[2025-06-05 13:54:42] info Using GitHub for authentication, run `cursor tunnel user login --provider <provider>` option to change this.
To grant access to the server, please log into https://github.com/login/device and use code XXXX-XXXX

Go to the GitHub login page, and use the code generated in the logs to grant access to the VS Code server.

3. Connect to the Dev Pod with Cursor

Once you have granted access to the VS Code server, you will be able to see the name of the Cursor dev tunnel in the logs.

info Creating tunnel with the name: xxxxxxxx

If not already available, install version 1.0 of Cursor on your local machine.

Open Cursor locally and ensure the remote tunnels extension is installed. Run the Remote-Tunnels: Connect to Tunnel... command in the command pallete in Cursor and authenticate with the same account you granted access to the dev tunnel for. If you granted access to the tunnel using GitHub, use the same GitHub account to authenticate inside Cursor. Once authenticated, select the dev tunnel listed in the Dev Pod logs to connect to the remote resources.

Copyright @ 2025, NVIDIA Corporation.