Skip to main content

SSH & VNC Access

For scenarios requiring direct interaction with a sandbox, VoidRun provides SSH and VNC access. This is essential for:
  • Interactive debugging - Direct terminal access for troubleshooting
  • Visual AI agents - Browser automation and GUI testing via VNC
  • Development workflows - Use your preferred IDE with remote development
  • Manual testing - Interact with applications running in the sandbox

🔐 SSH Access

Secure shell access for terminal-based interaction and scripting.

🖥️ VNC Access

Graphical desktop access for browser automation and GUI apps.

⚡ PTY Streaming

WebSocket-based terminal streaming via SDK for real-time interaction.

SSH Access

SSH is pre-installed and enabled in all VoidRun images. You can connect directly to your sandbox using SSH clients.

Prerequisites

SSH access requires:
  1. A running sandbox
  2. SSH credentials (host, port, username, password/key)
  3. Network connectivity to the sandbox
SSH credentials are typically provided in the sandbox creation response or via a dedicated API endpoint. The exact method depends on your VoidRun configuration.

Retrieving SSH Credentials

Connecting via SSH

Once you have the SSH credentials, connect using your SSH client:

SSH via SDK (PTY Streaming)

For programmatic terminal access, use the PTY streaming API:

VNC Access

VNC provides graphical desktop access to your sandbox. This is essential for:
  • Browser automation - Run Selenium, Playwright, or Puppeteer with visible browsers
  • GUI testing - Test desktop applications with real user interaction
  • Visual AI agents - Enable AI to interact with graphical interfaces
  • Remote development - Use GUI-based IDEs and tools
VNC is not pre-installed in default VoidRun images. You need to install a desktop environment and VNC server, or use a custom image with VNC pre-configured.

Installing VNC Server

Retrieving VNC Connection Details

Connecting via VNC Client

Browser-Based VNC (noVNC)

For web-based VNC access without a client:

Browser Automation with VNC

VNC is particularly useful for visual AI agents and browser automation:

Lifecycle Considerations

SSH and VNC connections drop when the sandbox is snapshotted. Idle sandboxes are auto-slept: their VM process exits and existing TCP sessions are torn down. Keep the sandbox alive with periodic activity if you rely on long-lived interactive sessions.

Keeping Sandbox Alive

Detecting Sleep State

Troubleshooting

Common SSH Issues

Common VNC Issues

Debug Commands

Next Steps

Nested Containers

Run Docker and Kubernetes inside your sandboxes.

Tailscale VPN

Connect to sandboxes securely via Tailscale.