feat(browser-runtime): add native Kernel support
Adds Kernel as a managed browser runtime:
uv run clawbench-run test-cases/v2/<case> <model> \
--browser-runtime kernel \
--browser-runtime-options '{"stealth":true,"region":"us-east"}'The integration creates a Kernel browser, connects the existing ClawBench runtime and harness over CDP, captures the standard action/request/screenshot/message artifacts, downloads the Kernel replay as data/recording.mp4, and deletes the browser after the run.
No new package dependency is required; the provider uses Kernel's REST API through the standard library.
The new KernelRuntimeProvider handles:
- Browser creation using
KERNEL_API_KEYand optionalKERNEL_BASE_URL. - Runtime options for
stealth,region,proxy, andtags. - Replay creation before the harness connects.
- Replay stop, processing polling, documented HTTP 202 retry handling, and MP4 download.
- Browser deletion on success, failure, interruption, or replay errors.
Replay finalization uses a shared five-minute deadline. Missing or invalid recordings produce browser_runtime_artifact_failed rather than silently marking the run successful.
This also generalizes behavior that was previously specific to Browserbase:
- managed runtimes default to batch concurrency 1;
- batch runs hide credential-bearing viewer URLs;
- recording behavior is selected through provider capabilities;
claude-code-chrome-extensionis rejected for managed runtimes because it requires its own browser process inside the container.
Local, remote-CDP, Steel, and Browserbase behavior remains unchanged.
- Adds
kernelto CLI and TUI runtime selection. - Documents configuration and runtime options.
- Adds provider-neutral managed-runtime messaging.
- Updates the English and Chinese documentation and changelog.
- v2
- v1
- both
- not applicable
-
uv run ruff format --check . -
uv run ruff check . -
uv run pyright -
uv run pytest -q— 203 passed - Real Kernel + browser-use run completed with interception and all five artifact layers.
- Kernel replay downloaded as a playable MP4 and the browser was deleted.
- 20-task V2 Hermes batch at concurrency 4 completed with zero infrastructure failures; all 20 replays downloaded and all 20 browsers were deleted.
- Failure-path and HTTP 202 replay-processing behavior covered by unit tests.
N/A