Skip to main content

synth_ai.sdk.tunnels

Managed tunnels SDK — expose local containers to Synth via tunnel leases. Access via SynthClient().tunnels.

Classes

TunnelProvider

Supported third-party tunnel providers.

TunnelsClient

Create and manage tunnels that forward traffic to local services. Methods:

health

Return tunnel service health for the configured backend.

list

List tunnels, optionally filtered by status.

create

Create a tunnel mapping subdomain to a local host/port.

delete

Delete a tunnel by id.

rotate

Rotate the active tunnel to a new local target.

create_lease

Mint a tunnel lease for a local client instance.

heartbeat

Report connector readiness for an active lease.

release_lease

Release a tunnel lease without deleting historical records.

refresh_lease

Extend the TTL on an existing tunnel lease.

delete_lease

Delete a tunnel lease.

list_leases

List tunnel leases for the org or a specific client instance.

create_synth_lease

Create a SynthTunnel lease (hosted relay to your local container).

get_synth_lease

Fetch a SynthTunnel lease by id.

close_synth_lease

Close an active SynthTunnel lease.

refresh_synth_worker_token

Rotate the worker token used to authenticate tunnel traffic.

AsyncTunnelsClient

Async adapter over :class:TunnelsClient (thread-offloaded).