command.py 634 B

1234567891011121314151617181920212223242526272829
  1. def get_remote_startup_command(
  2. port: int,
  3. sandbox_workspace_dir: str,
  4. username: str,
  5. user_id: int,
  6. plugin_args: list[str],
  7. browsergym_args: list[str],
  8. ):
  9. return [
  10. '/openhands/micromamba/bin/micromamba',
  11. 'run',
  12. '-n',
  13. 'openhands',
  14. 'poetry',
  15. 'run',
  16. 'python',
  17. '-u',
  18. '-m',
  19. 'openhands.runtime.action_execution_server',
  20. str(port),
  21. '--working-dir',
  22. sandbox_workspace_dir,
  23. *plugin_args,
  24. '--username',
  25. username,
  26. '--user-id',
  27. str(user_id),
  28. *browsergym_args,
  29. ]