---
title: "Deploy Kernel Browser"
description: "Sandboxed Chrome for browser automation, scraping, and AI agents"
category: "Automation"
url: https://railway.com/deploy/kernel-browser
---

# Deploy Kernel Browser

Sandboxed Chrome for browser automation, scraping, and AI agents

**[Deploy Kernel Browser on Railway](https://railway.com/template/kernel-browser)**

- **Creator:** Pragmatic Growth
- **Category:** Automation
- **Total deploys:** 13

## Template content

### kernel-images

- **Source:** https://github.com/serkanhaslak/kernel-images
- **Public domain:** Yes

## Documentation

# Deploy Kernel Browser on Railway

Kernel Browser provides sandboxed, ready-to-use Chrome browsers for browser automation and AI agent workloads. Deploy a full Chromium environment with CDP (Chrome DevTools Protocol) support, live GUI streaming, and session recording.

## Features

- **Chrome DevTools Protocol** — Connect Playwright, Puppeteer, or any CDP-based framework
- **Live GUI streaming** — Monitor and control the browser via WebRTC or VNC
- **Session recording** — Capture and replay browser sessions as MP4 video
- **Pre-built Docker image** — Fast deploys from GHCR, no build-time compilation
- **REST API** — Control mouse, keyboard, and screen capture programmatically

## Getting Started

1. Click **Deploy on Railway**
2. The browser container starts automatically with supervisord
3. Connect via CDP at port 9222 or use the REST API at port 10001
4. Optionally enable live view with `ENABLE_WEBRTC=true`

## Connecting via Playwright

```typescript
const browser = await chromium.connectOverCDP('ws://YOUR_RAILWAY_URL:9222');
const page = await browser.newPage();
await page.goto('https://example.com');
```

## Environment Variables

All variables are pre-configured with sensible defaults. Key ones:

- `PORT` — API server port (default: 10001)
- `RUN_AS_ROOT` — Required for Railway (default: true)
- `CHROMIUM_FLAGS` — Browser launch flags for containerized environments

## Similar templates

- [N8N Main + Worker](https://railway.com/deploy/n8n-main-worker) — Deploy and Host N8N with Inactive worker.
- [Evolution API with n8n](https://railway.com/deploy/evolution-api-with-n8n) — Automate WhatsApp workflows with Evolution API, n8n, and Postgres.
- [Postgres Backup](https://railway.com/deploy/postgres-s3-backups) — Cron-based PostgreSQL backup to bucket storage

Open this page in a browser: https://railway.com/deploy/kernel-browser
