BROWSER USE

Products:
- [Web Agents](https://browser-use.com/web-agents)
- [Stealth Browsers](https://browser-use.com/stealth-browsers)
- [Custom Models](https://browser-use.com/custom-models)
- [Proxies](https://browser-use.com/proxies)

[Pricing](https://browser-use.com/pricing)
[Blog](https://browser-use.com/posts)
[Cloud Docs](https://docs.cloud.browser-use.com)
[Open Source Docs](https://docs.browser-use.com)

[GET STARTED](https://cloud.browser-use.com)
[GITHUB](https://github.com/browser-use/browser-use)

---

# Code Use

**Date:** 2025-10-15
> 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.

```python
from browser_use import CodeAgent, ChatBrowserUse

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

{/* ![Code Use](https://browser-use.com/images/changelog/code-use.png) */}

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](https://cloud.browser-use.com/new-api-key).
