https://<port>-<sandbox id>.sbx.compute.anonalabs.com. The SDK builds it for you with get_host. Who can open it depends on how you share it:
Ports 49983 (
envd, which runs commands and files) and 49800 (the in-sandbox agent for terminals, desktop and live view) are never shared: they always need the sandbox’s own access token, which the SDK holds. Asking to share either is refused with 400.
Preview links
https://3000-<id>.sbx.compute.anonalabs.com/?anona_sig=…&anona_exp=…. On the first visit the gateway exchanges it for a cookie that is scoped to that one port’s host (Secure, HttpOnly, SameSite=Lax) and redirects to the same URL without the signature, so the app inside never sees it. Other ports and other sandboxes stay private.
Revoking ends every link and every live-view token of the sandbox within a second. The dashboard’s sandbox page has Share preview, and agents get links from the MCP tool get_preview_url.
Public ports
public_port.sh
PUT /v1/sandboxes/{id}/ports/{port} with {"public": true} does the same over the API.
Traffic token
For your own services, keep the port private and send the sandbox’s traffic token:private_port.py
409; resume it with Sandbox.connect first.