Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

fix(cli): include --remote-only in remote mode error messages

ShawnPanaa1d20ed81c66
diff --git a/browser_use/skill_cli/commands/agent.py b/browser_use/skill_cli/commands/agent.py
index 3d6ffaf65..6609cb945 100644
--- a/browser_use/skill_cli/commands/agent.py
+++ b/browser_use/skill_cli/commands/agent.py
@@ -67,7 +67,8 @@ async def handle(session: SessionInfo, params: dict[str, Any]) -> Any:
return {
'success': False,
'error': f'Cloud-only flags require remote mode: {flags_str}\n'
- f'Remote mode is not installed. Reinstall with --full to enable:\n'
+ f'Remote mode is not installed. Reinstall to enable:\n'
+ f' curl -fsSL https://browser-use.com/cli/install.sh | bash -s -- --remote-only\n'
f' curl -fsSL https://browser-use.com/cli/install.sh | bash -s -- --full',
}
return await _handle_local_task(session, params)
diff --git a/browser_use/skill_cli/commands/cloud_session.py b/browser_use/skill_cli/commands/cloud_session.py
index 794ae6972..1faf9add3 100644
--- a/browser_use/skill_cli/commands/cloud_session.py
+++ b/browser_use/skill_cli/commands/cloud_session.py
@@ -134,7 +134,8 @@ def handle_session_command(args: argparse.Namespace) -> int:
if not is_mode_available('remote'):
print(
'Error: Session management requires remote mode.\n'
- 'Remote mode is not installed. Reinstall with --full to enable:\n'
+ 'Remote mode is not installed. Reinstall to enable:\n'
+ ' curl -fsSL https://browser-use.com/cli/install.sh | bash -s -- --remote-only\n'
' curl -fsSL https://browser-use.com/cli/install.sh | bash -s -- --full',
file=sys.stderr,
)
diff --git a/browser_use/skill_cli/commands/cloud_task.py b/browser_use/skill_cli/commands/cloud_task.py
index 8523984a3..d8cac12a6 100644
--- a/browser_use/skill_cli/commands/cloud_task.py
+++ b/browser_use/skill_cli/commands/cloud_task.py
@@ -133,7 +133,8 @@ def handle_task_command(args: argparse.Namespace) -> int:
if not is_mode_available('remote'):
print(
'Error: Task management requires remote mode.\n'
- 'Remote mode is not installed. Reinstall with --full to enable:\n'
+ 'Remote mode is not installed. Reinstall to enable:\n'
+ ' curl -fsSL https://browser-use.com/cli/install.sh | bash -s -- --remote-only\n'
' curl -fsSL https://browser-use.com/cli/install.sh | bash -s -- --full',
file=sys.stderr,
)