Open tunnel
Opens a reverse proxy tunnel to a service running on the specified agent.
By default, the tunnel connects to ComfyUI (port 8188). Use target_port
to tunnel to a different service (e.g. Jupyter on 8888, Gradio on 7860).
While the tunnel is active, the agent will not accept new tasks.
Multiple team members can access the same tunnel simultaneously.
Returns a tunnel URL that can be used to access the service’s web interface.
Documentation Index
Fetch the complete documentation index at: https://docs.cyberun.cloud/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
User session JWT (Bearer ). Must be paired with the X-Team-ID
request header on team-scoped endpoints so the server knows which
team's resources to operate on.
Headers
UUID of the team to scope the request to. Used by dual-auth endpoints (runtime + scoped management):
- JWT callers MUST send it — a user may belong to multiple teams and the runtime cannot otherwise know which one to operate on. Missing header → 400.
- Credential callers (
sk-,dk-) can omit it because the team is derived from the credential row itself. Any value sent is ignored.
"019abc12-4567-7890-abcd-ef1234567891"
Path Parameters
Unique identifier of the agent.
Body
Port of the service to tunnel on the agent machine. Defaults to ComfyUI port (8188) when omitted.
1 <= x <= 655358188
Protocol of the tunneled service. "http" — HTTP/WebSocket reverse proxy (default, supports ComfyUI, Jupyter, etc.) "tcp" — Raw TCP tunnel (supports SSH, PostgreSQL, MySQL, etc.)
http, tcp "http"
Response
Tunnel opened
Unique tunnel session identifier.
"a1b2c3d4e5f6..."
For HTTP tunnels: URL to access the tunneled service's web interface. Contains the access token and can be safely shared. For TCP tunnels: WebSocket URL for TCP-over-WS relay. Connect with a TCP client tool.
"https://gateway.example.com/tunnel/a1b2c3d4e5f6.../"
Admin token for privileged operations (e.g. WebTerminal). Must be kept secret — do not share.
"f7e8d9c0b1a2..."
Protocol of the tunneled service.
http, tcp "http"
