Skip to main content
Connect to your Devbox from your local environment using SSH, your preferred terminal, or a full IDE. All remote connections are tunneled securely through the Namespace API. No public IP addresses or open ports are required.

Prerequisites

Before connecting, install and authenticate the Devbox CLI. You’ll also need a running Devbox.

Terminal Access

Direct SSH

The fastest way to get a shell in your Devbox:
This establishes an interactive SSH session directly to your Devbox. Use the -A flag to forward your local SSH agent:

Configure SSH

To use the standard ssh command (and enable any tool that relies on SSH config), run:
This sets up your local ~/.ssh/config with an Include directive pointing to ~/.namespace/ssh/, writes the SSH key and a host config for your Devbox. After running this, you can connect with:
This also enables tools like scp, rsync, and any program that reads your SSH config.

Next Steps

IDEs

Open a Devbox in VS Code, Cursor, JetBrains, or Zed.

Accessing services

Reach a service running on a Devbox with port forwarding or a shareable URL.

Sessions

Persistent terminal sessions that survive disconnections and Devbox restarts.
Last modified on September 16, 2026