Access Dev Pod with VS Code
VS Code is a powerful code editor that can be used to access Dev Pod. In this guide, we will show you how to connect to Dev Pod with VS Code via Remote Tunnels.
Create a Dev Pod with VS Code as Run Command
Follow the create a dev pod guide, create a pod with the following run command:
apt update && apt install curl -y && curl -Lk "https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64" --output vscode_cli.tar.gz && tar -xf vscode_cli.tar.gz && ./code tunnel --random-name
This command will download the VS Code CLI and start a tunnel to the Dev Pod.
Grant access to the VS Code server
Once the pod is created, you'll need to grant access to the VS Code server. Go to the Dev Pod details page, click on the Logs tab, and find the following line:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 162 100 162 0 0 211 0 --:--:-- --:--:-- --:--:-- 212
100 9821k 100 9821k 0 0 7290k 0 0:00:01 0:00:01 --:--:-- 27.5M
*
* Visual Studio Code Server
*
* By using the software, you agree to
* the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
* the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
*
[2025-05-30 08:45:03] info Using GitHub for authentication, run `code 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.
Connect to the Dev Pod with VS Code
Once you have granted access to the VS Code server, you will be able to see the link to the VS Code server in logs.
[2025-05-30 08:46:02] info Creating tunnel with the name: xxx-xx-xx-xx
[2025-05-30 08:46:03] info Adopting existing tunnel (ID=ID { cluster: "usw3", id: "swift-chair-dq7snc9" })
Open this link in your browser https://vscode.dev/tunnel/xxx-xx-xx-xx/workspace
Open the link generated in the logs in your browser, you will be able to see the VS Code running in your browser.
If you'd like to connect to the Dev Pod with VS Code installed on your local machine, you can use Connect to Tunnel
function in VS Code with the same authentication. Eg. if you've granted access to the VS Code server with github, you can use the same github account to connect to the Dev Pod with VS Code installed on your local machine.