Skip to main content
Laminar is an open-source observability and evaluation platform for autonomous AI agents. You can create a cloud account or self-host Laminar for your infrastructure. By integrating Laminar with Kernel, you can trace and monitor your browser automations with full visibility into LLM calls, browser actions, session recordings, and performance metrics.

Why use Laminar with Kernel?

  • No local browser management: Run automations in the cloud while maintaining full observability
  • Scalability: Launch multiple browser sessions with independent traces
  • Debugging: Use Kernel’s live view during development and Laminar’s session recordings for post-execution analysis
  • Cost optimization: Track LLM costs across all your browser automations
  • Performance tuning: Identify slow operations and optimize your agent workflows

Prerequisites

Before integrating Laminar with Kernel, you’ll need:
  1. A Kernel account with a Kernel API Key
  2. A Laminar account and project
  3. Your Laminar project API key from the Project Settings page

Installation

Getting your Laminar API key

  1. Log in to your Laminar dashboard
  2. Navigate to Project Settings
  3. Generate a new API key in your project
  4. Copy your Project API Key
  5. Set it as an environment variable:
You will also need to generate a KERNEL_API_KEY from your Kernel dashboard to authenticate with Kernel’s browser infrastructure.

Browser Agent Framework Examples

Select your browser automation framework to enable Laminar tracing with Kernel:
Always call Laminar.flush() or ensure your traced functions complete to submit traces to Laminar.

Playwright

Playwright is a popular low-level browser automation framework. Here’s how to use it with Laminar and Kernel:
The Playwright examples include waitForTimeout() calls to help ensure Laminar traces populate properly for these short, fast code snippets.

Browser Use

Browser Use is an AI browser agent framework. Here’s how to integrate it with Laminar and Kernel:
python

Stagehand

Stagehand is an AI browser automation framework. Here’s how to use it with Laminar and Kernel:
Stagehand v3 requires @lmnr-ai/lmnr@0.7.11 or later.

Tracing Kernel Apps & Computer Controls

When you use Kernel’s App platform or Computer controls, Laminar will automatically trace the computer and process interactions. In addition, you don’t have to manually observe your kernel app.actions or worry about manual trace flushing inside your Kernel apps.
Laminar will take care of trace lifecycle automatically for Kernel apps.

Example Kernel app with Laminar tracing

To deploy this example on Kernel, follow the steps in Kernel’s app deployment guide.

Viewing traces in Laminar

View your traces in the Laminar UI’s traces tab to see synchronized browser session recordings and agent execution steps. After running your automation:
  1. Log in to your Laminar dashboard
  2. Navigate to the Traces tab
  3. Find your recent trace to view:
    • Full execution timeline
    • LLM calls and responses
    • Browser session recordings
    • Computer and process interactions (for Kernel apps)
    • Token usage and costs
    • Latency metrics
Timeline highlights indicate which step your agent is currently executing, making it easy to debug and optimize your automations.

Next steps