
Quick start
Start an HTTP server inside a sandbox, then get a URL to access it:Use cases
Open a service from the UI
- Open the sandbox detail page.
- Find the Open service widget.
- Type a port number (e.g.
3000). - Click Open to launch in a new tab, or Share Link to copy a URL you can send to a teammate.
Open a service from the SDK
Get a service URL
Callservice() on a sandbox instance or on the client directly:
The service must be running and listening on the specified port before you request a service URL. The URL only routes traffic and does not start a service for you.
Make requests
The returnedServiceURL object has built-in HTTP helpers that handle authentication automatically. Tokens refresh transparently before they expire, so no manual management is needed.
Use your own HTTP client
If you prefer a different HTTP client, use the raw URL and token:Open in a browser
Usebrowser_url to open the service in a browser. It sets an authentication cookie automatically, so all subsequent page loads, images, and API calls are authenticated without tokens in the URL.
Generate a URL via the REST API
Example: serve a FastAPI app
Service URLs vs TCP tunnels
Use service URLs for HTTP services you want to access from a browser or share with others. Use TCP tunnels for non-HTTP protocols (like
psql or redis-cli) or when you need local-only access.
Troubleshoot
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

