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..dcae23c 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() +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) ```