From 3bb9f8a31d37a87215608e35e92958fdfed645a8 Mon Sep 17 00:00:00 2001 From: Catherine Jue Date: Sun, 5 Oct 2025 09:08:09 -0700 Subject: [PATCH 1/2] Keyword Connect over CDP --- browsers/create-a-browser.mdx | 2 +- introduction.mdx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/browsers/create-a-browser.mdx b/browsers/create-a-browser.mdx index 3ca7ae7..b2c5426 100644 --- a/browsers/create-a-browser.mdx +++ b/browsers/create-a-browser.mdx @@ -19,7 +19,7 @@ Use our SDK to create a browser: -## 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. diff --git a/introduction.mdx b/introduction.mdx index e1643e8..ee6ec22 100644 --- a/introduction.mdx +++ b/introduction.mdx @@ -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. 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 ```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() +client = Kernel(api_key='your_api_key') kernel_browser = client.browsers.create() browser = await chromium.connectOverCDP(kernel_browser.cdp_ws_url) ``` From 5dbda4002f5c955c64b122db6adce4ee7cd1121e Mon Sep 17 00:00:00 2001 From: Catherine Jue Date: Mon, 6 Oct 2025 11:46:01 -0700 Subject: [PATCH 2/2] Update introduction.mdx --- introduction.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/introduction.mdx b/introduction.mdx index ee6ec22..dcae23c 100644 --- a/introduction.mdx +++ b/introduction.mdx @@ -23,7 +23,7 @@ const browser = await chromium.connectOverCDP(kernelBrowser.cdp_ws_url); ``` ```python Python -import 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)