Securely connect to a remote Runloop Devbox using SSH for debugging
When working with AI-generated code, you may need to debug the state of the project after the AI has run various commands. SSH allows you to connect your computer directly to a Devbox, enabling you to debug, run remote commands, and view or modify the remote filesystem.
Runloop uses a transparent proxy to facilitate routing for all SSH access. Your SSH connection is end-to-end encrypted using standard SSH public key cryptography. The Runloop API provides a mechanism for retrieving SSH keys using a Runloop API key.
We recommend using the rl
CLI to interact with Devboxes. You can find installation instructions at https://github.com/runloopai/rl-cli.
Export your API key
Create an empty Devbox
You’ll receive a response like this:
SSH into the Devbox
SSH into an active
Devbox using the returned id
:
You should now have a shell into the Devbox:
Exit the SSH session
Type exit
to leave the SSH session.
Shut down the Devbox
When you’re done, shut down the Devbox:
You can use SSH access to connect VSCode to the remote Devbox.
Install VSCode SSH extension
Install the Visual Studio Code Remote - SSH extension.
Create a Devbox
Generate SSH config entry
Append to SSH config file
Verify the configuration
This should return user
.
Connect VSCode to your Devbox
You now have a ready-to-use SSH connection to the Devbox. Follow the remaining instructions in the VSCode SSH documentation to connect VSCode to your Devbox.
By following these steps, you can securely connect to your Runloop Devbox for debugging, code inspection, and project management tasks.