Skip to main content
Service URLs let you access an HTTP service running inside a sandbox (a REST API, a Streamlit app, a Jupyter notebook, API documentation) without tunnels, port forwarding, or CLI tools. Each sandbox + port combination gets its own URL that you can open in a browser, call from code, or share with a teammate. Service URLs view

Quick start

Start an HTTP server inside a sandbox, then get a URL to access it:

Use cases

Open a service from the UI

  1. Open the sandbox detail page.
  2. Find the Open service widget.
  3. Type a port number (e.g. 3000).
  4. Click Open to launch in a new tab, or Share Link to copy a URL you can send to a teammate.
Anyone with the link can access the service, even without a LangSmith account. After the token expires, generate a new link from the UI.

Open a service from the SDK

Get a service URL

Call service() 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 returned ServiceURL 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

Use browser_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.
You can share this URL with teammates. No LangSmith login is required to access it.

Generate a URL via the REST API

Response:

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