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
skills example
Gregor Žunič90b704b1bfbb
diff --git a/examples/models/skills.py b/examples/models/skills.pyindex 7cc4d6146..228f4b2e0 100644--- a/examples/models/skills.py+++ b/examples/models/skills.py@@ -1,33 +1,26 @@-"""-Simple try of the agent.--@dev You need to add OPENAI_API_KEY to your environment variables.-"""-import asyncio+import os+import sys++sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))from dotenv import load_dotenv-from browser_use import Agent, ChatOpenAI+from browser_use import Agentload_dotenv()-from lmnr import Laminar--Laminar.initialize()--# All the models are type safe from OpenAI in case you need a list of supported models-llm = ChatOpenAI(model='gpt-5-mini')-agent = Agent(- llm=llm,- task='How many stars does the browser-use repo have? (please use the skill)',- skill_ids=['*'],-)+async def run_search():+ agent = Agent(+ # llm=llm,+ task='How many stars does the browser-use repo have?',+ flash_mode=True,+ skills=['502af156-2a75-4b4e-816d-b2dc138b6647'], # skill for fetching the number of stars of any Github repository+ )-async def main():- await agent.run(max_steps=20)- input('Press Enter to continue...')+ await agent.run()-asyncio.run(main())+if __name__ == '__main__':+ asyncio.run(run_search())