Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Port change for API

Dillon DuPont6f27b8aa4ec0
diff --git a/libs/computer/computer/interface/linux.py b/libs/computer/computer/interface/linux.py
index 8f7c448962..e2389bdd0d 100644
--- a/libs/computer/computer/interface/linux.py
+++ b/libs/computer/computer/interface/linux.py
@@ -38,7 +38,8 @@ class LinuxComputerInterface(BaseComputerInterface):
WebSocket URI for the Computer API Server
"""
protocol = "wss" if self.api_key else "ws"
- return f"{protocol}://{self.ip_address}:8000/ws"
+ port = "8443" if self.api_key else "8000"
+ return f"{protocol}://{self.ip_address}:{port}/ws"
async def _keep_alive(self):
"""Keep the WebSocket connection alive with automatic reconnection."""
diff --git a/libs/computer/computer/interface/macos.py b/libs/computer/computer/interface/macos.py
index b778d25781..c39220d41b 100644
--- a/libs/computer/computer/interface/macos.py
+++ b/libs/computer/computer/interface/macos.py
@@ -38,7 +38,8 @@ class MacOSComputerInterface(BaseComputerInterface):
WebSocket URI for the Computer API Server
"""
protocol = "wss" if self.api_key else "ws"
- return f"{protocol}://{self.ip_address}:8000/ws"
+ port = "8443" if self.api_key else "8000"
+ return f"{protocol}://{self.ip_address}:{port}/ws"
async def _keep_alive(self):
"""Keep the WebSocket connection alive with automatic reconnection."""