This feature is coming soon!

Replays show you exactly what happened in the browser window while an invocation was running.

Retrieve replay

You can retrieve the replay via the CLI. Once the invocation’s status is SUCCEEDED, a url to the replay recording is returned. This url can be embedded in an iFrame if needed.

kernel invocation info <invocation_id>

The CLI will post the invocation_id if it succeeds, as well as the invocation’s status:

App Invocation:
Running app...
Success!
Invocation ID: 026d6dad-7a9d-4622-9c5a-a02ec6825889
Status: SUCCEEDED
Browser_replay_urls: 
    "https://api.onkernel.com/browsers/replay?jwt=eyJ0eXAi..."

Recordings can also be retrieved by making a GET request to the Kernel API:

const response = await fetch(`https://api.onkernel.com/invocations/${invocation_id}`, {
      headers: {
        'Authorization': `Bearer ${process.env.KERNEL_API_KEY}`,
        'Content-Type': 'application/json'
      }
  });
const { browser_replay_urls } = await response.json();

Or, use Kernel’s SDK:

import { Kernel } from '@onkernel/sdk';

const {
    browser_replay_urls
} = await Kernel.invocations.get(invocation_id);