|
| 1 | +--- |
| 2 | +title: "Overview" |
| 3 | +--- |
| 4 | + |
| 5 | +Kernel's browsers are designed to be compatible with every agent framework out there. Whether you're building with popular frameworks like Browser Use, Stagehand, or Computer Use APIs, or developing with your own custom solution, Kernel provides seamless integration capabilities. |
| 6 | + |
| 7 | +## Universal Compatibility |
| 8 | + |
| 9 | +Kernel browsers work with any framework or tool that supports the Chrome DevTools Protocol (CDP). This means you can: |
| 10 | + |
| 11 | +- **Use any agent framework**: Integrate with popular frameworks like Browser Use, Stagehand, Playwright, Puppeteer, Selenium, and more |
| 12 | +- **Connect via CDP**: All browsers expose a CDP WebSocket URL for direct connection |
| 13 | +- **No vendor lock-in**: Switch between frameworks or use multiple frameworks simultaneously |
| 14 | +- **Standard protocols**: Built on open standards that work with the entire browser automation ecosystem |
| 15 | + |
| 16 | +## Key Integration Features |
| 17 | + |
| 18 | +### Chrome DevTools Protocol Support |
| 19 | + |
| 20 | +Every Kernel browser provides a `cdp_ws_url` that you can use to connect any CDP-compatible framework or library. This standard protocol ensures broad compatibility across the ecosystem. |
| 21 | + |
| 22 | +### Cloud-Hosted Browsers |
| 23 | + |
| 24 | +Run your agent frameworks with Kernel's cloud infrastructure, eliminating the need to manage browsers locally: |
| 25 | + |
| 26 | +- **Zero local setup**: No browser installation or maintenance required |
| 27 | +- **Instant scaling**: Launch multiple browser sessions in parallel |
| 28 | +- **Reliable infrastructure**: Production-grade browser environments |
| 29 | +- **Cross-platform**: Works from any development environment |
| 30 | + |
| 31 | +### Anti-Detection & Privacy |
| 32 | + |
| 33 | +Kernel browsers come with built-in features that work seamlessly with any framework: |
| 34 | + |
| 35 | +- **[Stealth mode](/browsers/stealth)**: Advanced bot detection avoidance |
| 36 | +- **[Proxy support](/proxies/overview)**: Route traffic through datacenter, ISP, residential, or custom proxies |
| 37 | +- **[Browser profiles](/browsers/profiles)**: Maintain consistent browser fingerprints |
| 38 | + |
| 39 | +### Development & Debugging Tools |
| 40 | + |
| 41 | +- **[Live view](/browsers/live-view)**: Watch your automations run in real-time |
| 42 | +- **[Replays](/browsers/replays)**: Review past sessions for debugging |
| 43 | +- **[Session persistence](/browsers/persistence)**: Maintain state across runs |
| 44 | + |
| 45 | +## Popular Framework Integrations |
| 46 | + |
| 47 | +Kernel provides detailed guides for popular agent frameworks: |
| 48 | + |
| 49 | +- **[Browser Use](/integrations/browser-use)** - Python-based AI browser agent framework |
| 50 | +- **[Stagehand](/integrations/stagehand)** - AI browser automation with natural language |
| 51 | +- **[Computer Use (Anthropic)](/integrations/computer-use/anthropic)** - Claude's computer use capability |
| 52 | +- **[Computer Use (OpenAI)](/integrations/computer-use/openai)** - OpenAI's computer use capability |
| 53 | +- **[Magnitude](/integrations/magnitude)** - AI-powered web automation |
| 54 | +- **[Val Town](/integrations/valtown)** - Serverless function runtime |
| 55 | +- **[Vercel](/integrations/vercel)** - Deploy browser automations to Vercel |
| 56 | + |
| 57 | +## Getting Started |
| 58 | + |
| 59 | +To integrate Kernel with any framework: |
| 60 | + |
| 61 | +1. **Install the Kernel SDK** for your language ([TypeScript/JavaScript](https://www.npmjs.com/package/@onkernel/sdk) or [Python](https://pypi.org/project/kernel/)) |
| 62 | +2. **Create a browser session** and get the CDP WebSocket URL |
| 63 | +3. **Connect your framework** using the `cdp_ws_url` from the browser session |
| 64 | +4. **Run your automation** with all of Kernel's cloud features |
| 65 | + |
| 66 | +```typescript TypeScript/JavaScript |
| 67 | +import Kernel from '@onkernel/sdk'; |
| 68 | + |
| 69 | +const client = new Kernel({ |
| 70 | + apiKey: process.env.KERNEL_API_KEY |
| 71 | +}); |
| 72 | + |
| 73 | +// Create a browser with stealth mode |
| 74 | +const browser = await client.browsers.create({ |
| 75 | + stealth: true |
| 76 | +}); |
| 77 | + |
| 78 | +// Use browser.cdp_ws_url with your framework |
| 79 | +console.log('CDP URL:', browser.cdp_ws_url); |
| 80 | +console.log('Live view:', browser.browser_live_view_url); |
| 81 | +``` |
| 82 | + |
| 83 | +```python Python |
| 84 | +from kernel import Kernel |
| 85 | + |
| 86 | +client = Kernel(api_key='your-api-key') |
| 87 | + |
| 88 | +# Create a browser with stealth mode |
| 89 | +browser = client.browsers.create(stealth=True) |
| 90 | + |
| 91 | +# Use browser.cdp_ws_url with your framework |
| 92 | +print(f'CDP URL: {browser.cdp_ws_url}') |
| 93 | +print(f'Live view: {browser.browser_live_view_url}') |
| 94 | +``` |
| 95 | + |
| 96 | +## Custom Integrations |
| 97 | + |
| 98 | +Don't see your framework listed? No problem! Kernel works with any tool that supports CDP. Check out our [browser creation guide](/browsers/create-a-browser) to learn how to connect your custom solution. |
| 99 | + |
| 100 | +## Next Steps |
| 101 | + |
| 102 | +- Browse our [framework-specific integration guides](/integrations/browser-use) |
| 103 | +- Learn about [creating browsers](/browsers/create-a-browser) |
| 104 | +- Explore [stealth features](/browsers/stealth) for production use |
| 105 | +- Set up [proxies](/proxies/overview) for enhanced privacy |
0 commit comments