← Back to Changelog

Code Use

Generate Python/JS code for high-volume data extraction tasks.

CodeAgent writes Python and JavaScript for native browser interaction via CDP. Custom LLM trained for code generation only.

from browser_use import CodeAgent, ChatBrowserUse
 
agent = CodeAgent(
    task=task,
    llm=ChatBrowserUse(), # requires our LLM
)
await agent.run()

Use cases:

  • Extract 1000 products, filter by price
  • Get 2000 GitHub stargazers with metadata
  • Scrape projects, filter by stars, export CSV

Available in 0.9.0 (OSS). Grab the API key from cloud.

Recent Updates

Cookie Preferences
We use cookies to analyze site traffic and optimize your experience. Privacy Policy