Skip to main content
Humans-in-the-loop can access the live view of Kernel browsers in real-time to resolve errors or take unscripted actions. To access the live view, visit the browser_live_view_url provided when you create a Kernel browser:
import Kernel from '@onkernel/sdk';

const client = new Kernel({
  apiKey: 'My API Key',
});

const browser = await client.browsers.create();

console.log(browser.browser_live_view_url);

Query parameters

The browser_live_view_url supports additional query parameters to customize the live view:
  • readOnly (bool): when set to true, the view will be non-interactive.

Kiosk mode

Kiosk mode provides a fullscreen live view experience without browser UI elements like the address bar and tabs. You can enable kiosk mode when creating a browser by setting the kiosk_mode parameter to true.
const kernelBrowser = await kernel.browsers.create({
    viewport: {
        width: 1920,
        height: 1080
    },
    kiosk_mode: true
});

Browser persistence

browser_live_view_url becomes invalid once the browser is deleted manually or via timeout.
I