Skip to content

Commit ef093c5

Browse files
authored
Make CDP keyword more searchable (#68)
* Keyword Connect over CDP * Update introduction.mdx
1 parent acec059 commit ef093c5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

browsers/create-a-browser.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Use our SDK to create a browser:
1919

2020
<CreateBrowserSnippet />
2121

22-
## 2. Connect to the browser with the Chrome DevTools Protocol
22+
## 2. Connect over CDP
2323

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

introduction.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ title: "Introduction"
33
description: "Browsers-as-a-service API for web agents, automations, and more"
44
---
55

6-
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.
6+
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.
77

8-
## kernel.browsers.create()
8+
## Connect over CDP
99

10-
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.
10+
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.
1111

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

1818
```typescript Typescript/Javascript
1919
import { Kernel } from '@onkernel/sdk';
20-
const kernel = new Kernel();
20+
const kernel = new Kernel({api_key: 'your_api_key'});
2121
const kernelBrowser = await kernel.browsers.create();
2222
const browser = await chromium.connectOverCDP(kernelBrowser.cdp_ws_url);
2323
```
2424

2525
```python Python
26-
import kernel
27-
client = Kernel()
26+
from kernel import Kernel
27+
client = Kernel(api_key='your_api_key')
2828
kernel_browser = client.browsers.create()
2929
browser = await chromium.connectOverCDP(kernel_browser.cdp_ws_url)
3030
```

0 commit comments

Comments
 (0)