← 返回 Skills 市场
krichprollsch

Lightpanda browser

作者 krichprollsch · GitHub ↗ · v1.0.3
cross-platform ⚠ suspicious
2232
总下载
3
收藏
4
当前安装
4
版本数
在 OpenClaw 中安装
/install lightpanda-browser
功能描述
Lightpanda browser, drop-in replacement for Chrome and Openclaw default browser - faster and lighter for tasks without graphical rendering like data retrieval. Use it with CDP clients like Playwright or Puppeteer.
使用说明 (SKILL.md)

Lightpanda

Use instead of Chrome/Chromium and Openclaw default browser for data extraction and web automation when you don't need graphical rendering.

Lightpanda is a headless browser optimized for speed and low resource usage. It exposes a CDP (Chrome DevTools Protocol) endpoint that works with standard automation libraries.

Alternative to built-in web search

When the built-in Web Search tool is unavailable, or when you need more control over search results (e.g., following links to extract full page content), you can use Lightpanda with DuckDuckGo as an alternative. Prefer the built-in Web Search tool when it is available and sufficient for your needs.

Install

bash scripts/install.sh

Lightpanda is available on Linux and macOS only. Windows is not supported.

The binary is a nightly build that evolves quickly. If you encounter crashes or issues, run scripts/install.sh again to update to the latest version (max once per day).

If issues persist after updating, open a GitHub issue at https://github.com/lightpanda-io/browser/issues including:

  • The crash trace/error output, or a description of the unexpected behavior (e.g., missing or incorrect data)
  • The Playwright/Puppeteer script that reproduces the issue
  • The target URL and expected vs actual results

Start the Browser Server

$HOME/.local/bin/lightpanda serve --host 127.0.0.1 --port 9222

Options:

  • --log_level info|debug|warn|error - Set logging verbosity
  • --log_format pretty|json - Output format for logs

Usage

You can connect directly to the CDP websocket via ws://127.0.0.1:9222. You can also get the WebSocket URL via http://127.0.0.1:9222/json/version.

Use the browser as a drop-in replacement for Chrome and the Openclaw default browser. Send CDP commands directly or use Playwright or Puppeteer.

Important to note:

  • Lightpanda executes JavaScript, making it suitable for dynamic websites and SPAs. However, it is under heavy development and may have occasional issues.
  • For web searches, use DuckDuckGo instead of Google. Google blocks Lightpanda due to browser fingerprinting.
  • Lightpanda supports only 1 CDP connection per process. Each connection can create 1 context and 1 page only. No multi-contexts are available. If you need multiple navigations at the same time, start another process with a new port number. Lightpanda is fast to start and stop, so using multiple processes is more performant than multiple tabs on Chrome.
  • The browser resets all context/page on CDP connection close. So keep the websocket connection open throughout a browsing session. You can reuse an existing process for a subsequent connection; you will start with a clean state.
  • On connection, always create a new context and a new page. At the end, close both.

Using with playwright-core

Connect to Lightpanda using playwright-core (not the full playwright package):

const { chromium } = require('playwright-core');

(async () => {
  // Connect to Lightpanda via CDP
  const browser = await chromium.connectOverCDP({
    endpointURL: 'ws://127.0.0.1:9222',
  });

  const context = await browser.newContext({});
  const page = await context.newPage();

  // Navigate and extract data
  await page.goto('https://example.com');
  const title = await page.title();
  const content = await page.textContent('body');

  console.log(JSON.stringify({ title, content }));

  await page.close();
  await context.close();
  await browser.close();
})();

Using with puppeteer-core

Connect to Lightpanda using puppeteer-core (not the full puppeteer package):

const puppeteer = require('puppeteer-core');

(async () => {
  const browser = await puppeteer.connect({
    browserWSEndpoint: 'ws://127.0.0.1:9222'
  });

  const context = await browser.createBrowserContext();
  const page = await context.newPage();

  await page.goto('https://example.com', { waitUntil: 'networkidle0' });
  const title = await page.title();

  console.log(JSON.stringify({ title }));

  await page.close();
  await context.close();
  await browser.close();
})();

Scripts

  • scripts/install.sh - Install Lightpanda binary
安全使用建议
The skill appears coherent with its stated purpose, but before installing consider: (1) The installer fetches and executes a nightly binary from GitHub releases — nightly builds are unvetted and could contain bugs or malicious changes. Only proceed if you trust the lightpanda-io project; review the upstream GitHub repository and recent release notes/commit history. (2) The script verifies a SHA256 digest obtained from the GitHub API; verify the repository and asset yourself if possible. (3) The binary runs as your user and exposes a CDP server on localhost (ws://127.0.0.1:9222) — be careful not to bind it to public interfaces and limit access to trusted processes. (4) The install requires curl, jq, and sha256sum/shasum; the digest lookup may fail if the release asset lacks the expected 'digest' field. If you want extra safety, run Lightpanda inside a container or isolated VM, or prefer official/stable builds instead of nightly binaries. Also note a minor metadata inconsistency: registry metadata listed no source/homepage, but SKILL.md points to a GitHub repo — confirm the canonical upstream project before installing.
功能分析
Type: OpenClaw Skill Name: lightpanda-browser Version: 1.0.3 The skill is classified as suspicious due to its reliance on downloading and executing an external binary from a third-party GitHub repository (`https://github.com/lightpanda-io/browser/releases/download/nightly/`) via `scripts/install.sh`. While the script includes checksum verification against the GitHub API, this still introduces a significant supply chain risk. The use of 'nightly' builds further increases this risk, as they are typically less stable and subject to frequent changes, potentially introducing vulnerabilities. There is no evidence of direct malicious intent like data exfiltration or backdoor installation within the provided files, and the `SKILL.md` does not contain prompt injection attempts.
能力评估
Purpose & Capability
Name and description (headless CDP browser for data extraction) match the included SKILL.md and the install script which downloads a Lightpanda binary and instructs how to run a CDP server. There are no environment variables or credentials requested that would be unrelated to a browser.
Instruction Scope
SKILL.md stays on-topic: it tells the agent how to install, start, and connect to a local CDP endpoint and how to use Playwright/Puppeteer. It does not instruct reading unrelated files, exfiltrating data, or contacting unexpected external endpoints beyond GitHub (for install/checksum) and web targets that the user browses.
Install Mechanism
Install script downloads a nightly binary directly from GitHub releases (well-known host) to $HOME/.local/bin and verifies a SHA256 digest fetched from the GitHub releases API. This is a reasonable, common pattern, but downloading and executing an unvetted nightly binary carries inherent risk. The script's reliance on an asset '.digest' field may be fragile (if absent, install aborts). Requires curl, jq, and sha256sum/shasum.
Credentials
No credentials or sensitive environment variables are requested. The only optional env observed is LIGHTPANDA_DIR to override the install directory — appropriate for an installer. The runtime uses a localhost port for CDP; no external auth or tokens are required by the skill itself.
Persistence & Privilege
Skill is instruction-only (plus an install script) and does not request 'always: true'. It installs a user-local binary (no system-wide privilege escalation) and does not modify other skills or global agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install lightpanda-browser
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /lightpanda-browser 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
- Add checksum verification to install script
v1.0.2
- The installation script has been moved to scripts/install.sh for improved project organization. - Updated installation instructions to use the new script location. - Added metadata (author, source, homepage) to the skill description. - Clarified the recommended usage of Lightpanda as an alternative when the built-in Web Search tool is unavailable.
v1.0.1
- Added instructions recommending Lightpanda with DuckDuckGo as a programmatic alternative to the Web Search tool when web search is needed. - Clarified that this approach is useful when Web Search is unavailable or when more control over search result navigation and extraction is required. - No other changes to features or installation.
v1.0.0
- Initial release of the Lightpanda browser skill. - Provides a headless, lightweight browser optimized for fast data extraction and automation without graphical rendering. - Exposes a Chrome DevTools Protocol (CDP) endpoint, compatible with Playwright and Puppeteer clients. - Supports Linux and macOS (Windows not supported). - Limited to one CDP connection, context, and page per process; use multiple processes for parallel tasks. - Includes installation instructions, usage examples, and troubleshooting guidance.
元数据
Slug lightpanda-browser
版本 1.0.3
许可证
累计安装 5
当前安装数 4
历史版本数 4
常见问题

Lightpanda browser 是什么?

Lightpanda browser, drop-in replacement for Chrome and Openclaw default browser - faster and lighter for tasks without graphical rendering like data retrieval. Use it with CDP clients like Playwright or Puppeteer. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2232 次。

如何安装 Lightpanda browser?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install lightpanda-browser」即可一键安装,无需额外配置。

Lightpanda browser 是免费的吗?

是的,Lightpanda browser 完全免费(开源免费),可自由下载、安装和使用。

Lightpanda browser 支持哪些平台?

Lightpanda browser 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Lightpanda browser?

由 krichprollsch(@krichprollsch)开发并维护,当前版本 v1.0.3。

💬 留言讨论