Prerequisites
- An API key from the console, exported as
BOXLITE_API_KEY. See API keys. pip install boxlite, and the REST URL exported asBOXLITE_REST_URL. See Quickstart.- A box you can start, and a service inside it that listens on a TCP port.
finally.
uri() returns the public URL of a tunnel served remotely, which is what a Cloud tunnel is. On a local runtime the same call returns None, because a local tunnel is already a live connection with no address to publish. Reading uri() leaves the tunnel usable — only connect() and forward() spend it.
The snippet starts the server with python3. If the server log says python3: not found, install an interpreter into the box first, or start a service the image already ships.
Next steps
Network
How tunnels work, the full parameter reference, and the outbound boundary.
Network policy
Control what the box itself is allowed to reach.

