BROWSER USE DEVELOPER RESOURCES

- Hosted Agents (API V4): submit a task and receive the result from a managed browser agent.
- Browser Infrastructure: control managed remote browsers through SDK, REST, or CDP. Starts at $0.02/browser-hour.
- Open Source Library: build and run browser agents with the Python library.

[Developer Index](https://browser-use.com/index.md)
[Product Map](https://browser-use.com/llms.txt)
[Pricing](https://browser-use.com/pricing.md)
[Cloud Docs](https://docs.browser-use.com/cloud/quickstart)
[Open Source Docs](https://docs.browser-use.com/open-source/introduction)

---

# 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).
