jet-browser
它能做什么
Jet Browser 是一个程序,可以创建一个安全且相互隔离的环境来运行网站。你可以用它在干净的浏览器中测试网站的运行情况,给页面“拍照”(截图),还可以像真实用户一样与页面元素进行交互,而且整个过程都是可控的。
适用场景
- ✓当你需要在干净、隔离的环境中测试网站时。
- ✓当你想自动为网页“拍照”(截图)时。
- ✓当你想自动完成网站上的重复性操作,比如填写表单时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/jet-browser/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我想在隔离的浏览器中测试网站 X 的运行情况,并截取主页的截图。”
每周 5 个新技能,1 分钟读完。
工作原理
它的工作方式是创建一个“容器”(即隔离的空间),并在其中运行一个特殊的浏览器(WebKit)。你向它发送指令,比如“打开这个页面”或“点击这里”,它就会返回结果,比如一张图片或页面的相关信息。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Jet Browser
Overview
Use Jet Browser as a replaceable browser-runtime boundary for an agent or deterministic test runner. It runs one isolated WPE WebKit session per container and exposes ordered JSONL commands for navigation, native input, semantic inspection, screenshots, and cleanup.
Keep model selection, reasoning, credentials, and orchestration in the calling project. Jet Browser is a browser runtime, not an agent framework, hosted proxy network, anti-bot service, or bridge to a user's personal Chrome profile.
When to Use This Skill
- Use when a project needs a self-hosted browser process with an explicit container lifecycle.
- Use when a harness needs framework-neutral, ordered JSONL instead of a bundled agent loop.
- Use when native pointer, keyboard, touch, DOM, and screenshot evidence should share one runtime.
- Use when a repository needs a reproducible offline smoke test or GitHub Actions browser-runtime check.
- Do not use this skill to control an already-running personal Chrome or reuse its logged-in state; use the environment's permission-approved CDP workflow for that.
Safe Setup and Verification
1. Establish the boundary before downloading
Confirm that the user wants a separate Jet Browser container rather than their daily browser. Check for Docker and Node.js 24+, and report a missing requirement instead of claiming the runtime was verified.
For a new checkout or upgrade, identify an immutable release or full commit, inspect the repository's package.json, lifecycle scripts, lockfile, Dockerfiles, executable files, symlinks, network access, and credential handling, and summarize what will run. Obtain explicit approval before downloading and again before installing dependencies, building images, or starting containers. A Git commit pin provides reproducibility, not proof of trust.
The v0.9.0 source commit reviewed for this catalog entry is:
b0867303260212eaeb427970b9a7fc6f8eed2fe1
Review a newer source tree independently before changing that pin.
2. Run the standalone acceptance flow
After the approvals above, install the pinned source's exact lockfile dependencies and run its standalone check:
npm ci
npm run standalone
Treat the command's observed JSON result as the acceptance check. A passing run must start the local page, verify the JavaScript marker, type through the native input path, capture a PNG, keep the smoke browser's outbound network disabled, and shut the container down cleanly.
For source changes, also run:
npm test
cargo test --all-targets
Never report a pass when Docker, Node.js, the image build, browser startup, native input, DOM verification, screenshot capture, or cleanup did not actually complete.
3. Integrate the documented contract
Read docs/demo.md for the container lifecycle and docs/agent-tools.md for model-facing declarations. Prefer the versioned declarations exported by sdk/tools.mjs; do not invent tool names, input fields, or response shapes.
Send one JSON command per line and consume one JSON response per line. Preserve ordering, bound inputs and outputs in the calling harness, and close the session in guaranteed cleanup. Keep one container per mutually untrusted session, mount profile or download paths explicitly, and never pass unrelated host credentials into the container.
Use semantic evidence for target selection and screenshots for visual verification when both are available. Treat evaluation, imported profiles, downloads, and outbound network access as privileged capabilities that require the calling application to define its own authorization and policy gates.
Examples
Example 1: Verify a pinned source checkout
After inspecting the pinned source and receiving the required approvals:
git clone --filter=blob:none --no-checkout https://github.com/masakaai/jet-browser.git
git -C jet-browser checkout --detach b0867303260212eaeb427970b9a7fc6f8eed2fe1
cd jet-browser
npm ci
npm run standalone
Report the exact command result and which acceptance assertions ran. Do not translate a partial build or startup log into a successful verification.
Example 2: Verify Jet Browser in GitHub Actions
Pin the Action to the reviewed full commit rather than a moving branch or tag:
permissions:
contents: read
jobs:
verify-browser-runtime:
runs-on: ubuntu-latest
steps:
- name: Verify Jet Browser
…
常见问题
我需要安装 Chrome 吗?
不需要。Jet Browser 使用的是另一种浏览器内核 WebKit,它在自己的隔离环境中运行。
我能使用日常 Chrome 中已登录的账号吗?
不能。Jet Browser 与你个人使用的浏览器是完全分开的,它无法访问你的账号和浏览历史。
使用它安全吗?
它的设计是安全的,因为它在隔离环境中运行,不会与你的主浏览器共享信息。不过,使用前一定要先确认该程序的来源是否可靠。
详情
作者的原始描述
Verify or integrate Jet Browser when a project needs isolated WPE WebKit sessions, native input, screenshots, ordered JSONL automation, or reproducible runtime checks.
热度
- GitHub 星标
- 48k
- 排名
- #4989
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。