Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
show active tab URL in cli
Nick Sweeting740b6122114f
diff --git a/browser_use/cli.py b/browser_use/cli.pyindex 1aa879815..0be5b785c 100644--- a/browser_use/cli.py+++ b/browser_use/cli.py@@ -751,6 +751,11 @@ class BrowserUseApp(App):# Include additional information about the browser if neededif connected and hasattr(self, 'agent') and self.agent:try:+ # Show the agent's current page URL if available+ if hasattr(self.agent, 'current_page') and self.agent.current_page:+ current_url = self.agent.current_page.url+ browser_info.write(f'👁️ [green]{current_url}[/]')+# Show when the browser was connectedtimestamp = int(time.time())current_time = time.strftime('%H:%M:%S', time.localtime(timestamp))