pythonbrowser-use

browser-use agent stuck in loop at Step 1


I'm using the quickstart code for the browser-use library in Python. However, the agent gets stuck in an infinite loop, repeatedly logging INFO [agent] 📍 Step 1 without progressing or providing clear errors.

I've added BROWSER_USE_LOGGING_LEVEL=debug but the extra log lines don't seem to provide any extra hints.


Solution

  • This is likely due to browser-use's LLM calls failing, made worse by the error/exception being silenced and not shown to user even in debug mode. (This will hopefully be fixed in a future version)

    Common causes: