Robert Brennan 8d2b2d4318
Refactor runtime to add a connect method (#4410)
Co-authored-by: Tim O'Farrell <tofarr@gmail.com>
2024-10-25 09:02:19 -04:00

30 lines
634 B
Python

def get_remote_startup_command(
port: int,
sandbox_workspace_dir: str,
username: str,
user_id: int,
plugin_args: list[str],
browsergym_args: list[str],
):
return [
'/openhands/micromamba/bin/micromamba',
'run',
'-n',
'openhands',
'poetry',
'run',
'python',
'-u',
'-m',
'openhands.runtime.action_execution_server',
str(port),
'--working-dir',
sandbox_workspace_dir,
*plugin_args,
'--username',
username,
'--user-id',
str(user_id),
*browsergym_args,
]