browser4-plugin

browser4-plugin is a skill for Claude Code, Codex from platonai/Browser4. It costs 66 tokens per session (3,342 once invoked), scanned A, original, Apache-2.0.

A guide for building Browser4 plugins, which are add-ons that extend the Browser4 web-automation system with new actions or tools.

In plain words
What is it for?
Use it to create Browser4 plugins for tasks such as CAPTCHA handling, media processing, content conversion, page detection, custom automation actions, or LLM tools.
Why use it?
It explains how to turn requirements into a plugin, then build and install it without guessing the project's extension points or deployment process.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it to create Browser4 plugins for tasks such as CAPTCHA handling, media processing, content conversion, page detection, custom automation actions, or LLM tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/platonai/browser4/browser4-plugin
About the project

Browser4 is an AI-native browser engine that lets autonomous agents and people control real browsers, extract information from web pages, and automate tasks at scale. It combines browser interaction through a Rust CLI and MCP with deterministic selectors, machine-learning clustering, and language-model extraction. The catalogue entries provide skills and instructions for using Browser4.

platonai/Browser4 · 1,195 stars · on GitHub · browser4.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add platonai/Browser4 --skill browser4-plugin
Clone the repo
git clone --depth 1 https://github.com/platonai/Browser4

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for browser4-plugin

README.md
[![agentmods](https://agentmods.dev/badge/skills/platonai/browser4/browser4-plugin/github.svg)](https://agentmods.dev/skills/platonai/browser4/browser4-plugin)
Your own site
<a href="https://agentmods.dev/skills/platonai/browser4/browser4-plugin"><img src="https://agentmods.dev/badge/skills/platonai/browser4/browser4-plugin/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for browser4-plugin

Your own site · 80×15
<a href="https://agentmods.dev/skills/platonai/browser4/browser4-plugin"><img src="https://agentmods.dev/badge/skills/platonai/browser4/browser4-plugin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,342 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.03342
Opus 5.5 $0.00026 $0.01337
Sonnet 5.5 $0.00013 $0.00668
Haiku 4.5 $0.00007 $0.00334

Measured 1mo ago against content hash 8e281b14c7f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

browser4-plugin scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/browser4-plugin/SKILL.md · 150 lines

How it starts

The opening of the file, as written. The whole thing — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Browser4 Plugin Development

Quick Start

mvn -pl browser4-pdk install          # install the PDK parent POM once
mvn archetype:generate -DarchetypeGroupId=ai.platon.pulsar \
    -DarchetypeArtifactId=browser4-plugin-archetype   # scaffold the plugin project
mvn -f <artifactId>/pom.xml package   # build the plugin JAR

Deploy the JAR to the server's plugins/ directory (or POST it to http://localhost:18182/api/plugins/install) and restart — the plugin is auto-discovered. Prerequisites: JDK 25+ toolchain (the platform's provided classes are Java 25 bytecode; the PDK parent still emits Java 17 bytecode for the plugin JAR itself), Maven 3.9+, and access to the browser4-pdk parent POM.

For the full walkthrough — requirements clarification, mount-point implementation, services/config, manifest, tests, build & deploy — see Step-by-Step Workflow.

When to Use

Use this skill when the user wants to create, build, scaffold, or extend a Browser4 plugin — CAPTCHA solving, media processing, content conversion, page-category detection, custom RPA actions, or new LLM agent tools. It is the deep guide (mount points, services, tests, deployment); for plugin code scaffolding inside this repo use the browser4-coding skill.

Do NOT create a plugin for: simple data extraction from a known site (use the browser4-cli HTML snapshot / X-SQL instead), one-off browser automation (the CLI or a quick script is faster), or modifying core Browser4 behavior (that belongs in the main source tree, not a plugin).

How It Works

A plugin is a thin JAR built against the browser4-pdk parent POM: you scaffold the project from the archetype, implement the relevant PluginMount interfaces (Browse/Load/Crawl event mounts, ToolMount, PageSnifferMount), wire Spring auto-configuration, and build. The server auto-discovers the JAR from plugins/ on restart and logs the mounted beans.

Patterns

1. Event-handling plugin (BrowseEventMount)

Read the full file on GitHub · 150 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed 8e281b14c7f6
  2. 2mo ago Changed · +6 lines fb8e92323d11
  3. 3mo ago First seen · 144 lines · 66 tokens per session scan A ffc373a0e4bd

Subscribe to this mod's changes

browser4-plugin is a skill published in the GitHub repository platonai/Browser4 (1,195 stars, last pushed yesterday), licensed Apache-2.0. It adds 66 tokens to every session and 3,342 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

browser4-plugin compared with skills from other repositories

browser4-plugin next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
browser4-pluginplatonai/Browser4Skill1.2kyesterdayApache-2.0A66Claude Code, Codex
eric-task-masternpcworkspace-cmyk/eric-task-masterSkill14d agoMITA42Claude Code, Codex
browsebrowserbase/stagehandSkill26ktodayMITA109Claude Code
e2e-testing-patternswshobson/agentsSkill43kyesterdayMITA51Claude Code
computer-usekirodotdev/KiroCrewSkill5.2ktodayApache-2.0A67Claude Code, Codex
feature-demo-recordingkirodotdev/KiroCrewSkill5.2ktodayApache-2.0A90Claude Code, Codex
browser-recordingkirodotdev/KiroCrewSkill5.2ktodayApache-2.0A64Claude Code, Codex