Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion browsers/create-a-browser.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Use our SDK to create a browser:

<CreateBrowserSnippet />

## 2. Connect to the browser with the Chrome DevTools Protocol
## 2. Connect over CDP

Then, you can connect to the browser with any Chrome DevTools Protocol framework, such as Playwright or Puppeteer.

Expand Down
12 changes: 6 additions & 6 deletions introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ title: "Introduction"
description: "Browsers-as-a-service API for web agents, automations, and more"
---

Kernel is a developer platform that provides Crazy Fast Browser Infrastructure for browser automations and web agents. Our API and MCP server allow you to instantly launch browsers in the cloud without managing infrastructure.
Kernel is a developer platform that provides Crazy Fast Browsers-as-a-Service for browser automations and web agents. Our API and MCP server allow you to instantly launch browsers in the cloud without managing infrastructure.

## kernel.browsers.create()
## Connect over CDP

If you are already familiar with browser vendors, you can immediately start using our browsers with `kernel.browsers.create()`. We return a CDP url that you can connect any Playwright or Puppeteer automation to.
If you are already familiar with browser vendors, you can immediately start using our browsers with `kernel.browsers.create()`. We return a **CDP url** that you can connect any Playwright or Puppeteer automation to.

<Info>
Install the Kernel SDK with `npm install @onkernel/sdk` or `uv pip install kernel`
Expand All @@ -17,14 +17,14 @@ Install the Kernel SDK with `npm install @onkernel/sdk` or `uv pip install kerne

```typescript Typescript/Javascript
import { Kernel } from '@onkernel/sdk';
const kernel = new Kernel();
const kernel = new Kernel({api_key: 'your_api_key'});
const kernelBrowser = await kernel.browsers.create();
const browser = await chromium.connectOverCDP(kernelBrowser.cdp_ws_url);
```

```python Python
import kernel
client = Kernel()
from kernel import Kernel
client = Kernel(api_key='your_api_key')
kernel_browser = client.browsers.create()
browser = await chromium.connectOverCDP(kernel_browser.cdp_ws_url)
```
Expand Down