Credentials. Your LLM API key is read from .env and billed per step.
Who it is forA developer who wants to automate a repetitive lookup on a website.
The problemHand-written scrapers break when sites change.
The outcomeThe task's final result returned from the agent's run.
What you need first
- Python 3.12 with uv
- An LLM API key such as OpenAI, or a Browser Use key
Steps
- Install with
uv add browser-use - Put OPENAI_API_KEY in .env
- Create an Agent with a task and ChatOpenAI
- Run it and print history.final_result()
Prompt for your agent
Using browser-use/browser-use, run an Agent with the task <task> and print the final result. Confirm the result matches what the site shows.
Caveat. Use non-sensitive sites first; agents act with whatever access the browser has.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for browser-use/browser-use and "Automate a web task with a Python browser agent"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer