surf

surf is a skill for Claude Code, Codex from nicobailon/surf-cli. It costs 53 tokens per session (2,334 once invoked), scanned A, original, MIT.

A command-line tool for controlling Chrome, including inspecting pages and interacting with websites.

In plain words
What is it for?
Use it to automate browser tests, fill in forms, inspect pages, capture screenshots, stream developer tools, or ask AI services questions.
Why use it?
It removes the need to perform browser testing and debugging actions manually, while also supporting screenshots and simulated network or CPU conditions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to automate browser tests, fill in forms, inspect pages, capture screenshots, stream developer tools, or ask AI services questions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nicobailon/surf-cli/surf
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 nicobailon/surf-cli --skill surf
Clone the repo
git clone --depth 1 https://github.com/nicobailon/surf-cli

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 surf

README.md
[![agentmods](https://agentmods.dev/badge/skills/nicobailon/surf-cli/surf/github.svg)](https://agentmods.dev/skills/nicobailon/surf-cli/surf)
Your own site
<a href="https://agentmods.dev/skills/nicobailon/surf-cli/surf"><img src="https://agentmods.dev/badge/skills/nicobailon/surf-cli/surf/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 surf

Your own site · 80×15
<a href="https://agentmods.dev/skills/nicobailon/surf-cli/surf"><img src="https://agentmods.dev/badge/skills/nicobailon/surf-cli/surf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,334 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 6 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 25
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Excessive Agency · line 94
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
  • high Excessive Agency · line 143
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
  • high Excessive Agency · line 179
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
  • high Excessive Agency · line 190
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
  • high YARA Match · line 287
    YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).
    Fix: Remove the malware payload or compromised file entirely. Investigate how it entered the skill and audit all other artifacts for additional indicators of compromise.
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.00053 $0.02334
Opus 5.5 $0.00021 $0.00934
Sonnet 5.5 $0.00011 $0.00467
Haiku 4.5 $0.00005 $0.00233

Measured 12d ago against content hash 51dfb33963aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

surf scanned grade A with 1 finding 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 12d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

data: extract network network.get network.body network.curl network.path network.origins network.stats network.clear network.export
skills/surf/SKILL.md · 119 lines

How it starts

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

Surf

surf controls the user's real, logged-in Chrome. Before the first use of a command not shown in full, run surf <cmd> --help (flags, allowed values, examples). surf --find <term> searches commands; surf --help-topic <topic> explains refs, selectors, frames and more.

Rules

Own a session. Once per agent shell, before any browser command:

export SURF_SESSION="$(basename "$PWD" | sed 's/[^A-Za-z0-9._-]/-/g; s/^[^A-Za-z0-9]*//')-<agent-id>"   # letters, digits . _ - only
surf session.ensure "$SURF_SESSION" about:blank   # creates, reuses or reopens

It is one tab in its own background window, and its commands run in order. Sessions share the Chrome profile (cookies, logins, downloads). On tab_gone or session_epoch_stale, run the command the error prints after Recovery:.

Read → act on refs → read the diff. page.read gives refs (e5); act on refs, not CSS. Each action prints what changed; when the report ends +N more changes..., run the smaller command it suggests instead of a full read.

Errors from the browser print [code] on stderr and exit 1; --json adds {error:{code,message}} on stdout. Usage and connection errors are plain stderr.

Fail fast on walls. wait.ready returns when the page is ready and fails with page_login|page_challenge|page_not_found|page_error|page_timeout; --accept login returns that state instead.

API before scroll. When go prints saved: <site> <op> --<input>, …, get the data with surf use <site> <op> --<input> <v>, not clicks. A read you'll repeat: surf hook <url> --goal "<what>" saves a tested op from the site's own request; surf use repairs it when the site changes (--no-repair fails instead). A form: hook --do (below). Once: use x thread, or network.wait then network.replay --set. collect scrolls when there is no API and needs a visible tab (session.ensure <name> <url> --window --focused).

Values, not pages. A few values (a total, a date, a count): semantic.extract returns them typed, without a full page read.

Read the full file on GitHub · 119 lines

Files

What ships with it

5 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. 12d ago Changed 51dfb33963aa
  2. 13d ago Changed · +2 lines d2a4b1db0ad5
  3. 17d ago Changed d8bffdddfcc7
  4. 28d ago Changed · +2 lines 24a40516f80a
  5. 29d ago Changed 3e0ed7190e34
  6. 1mo ago Changed · -786 lines · -7 tokens per session 0eaac4933c39
  7. 1mo ago Changed · +15 lines 3c04da4cb85c
  8. 1mo ago Changed · +5 lines f320007f6158
  9. 1mo ago Changed · +7 lines e2b3109c70f9
  10. 1mo ago First seen · 874 lines · 60 tokens per session scan A 3e395aadbf90

Subscribe to this mod's changes

surf is a skill published in the GitHub repository nicobailon/surf-cli (706 stars, last pushed 3d ago), licensed MIT. It adds 53 tokens to every session and 2,334 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

surf compared with skills from other repositories

surf next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
surfnicobailon/surf-cliSkill7063d agoMITA53Claude Code, Codex
opencli-autofixjackwener/OpenCLISkill32k25d agoApache-2.0A61Claude Code
acrawl-mcpMingye-Lu/AgenticCrawlerSkill2221d agoMITA200Claude Code, Codex
debug-failed-actionfrane/vibesurferSkill18todayApache-2.0A54Claude Code
coreleeguooooo/chrome-useSkill280yesterdayApache-2.0A39Claude Code
slackleeguooooo/chrome-useSkill280yesterdayApache-2.0A88Claude Code
electronleeguooooo/chrome-useSkill280yesterdayApache-2.0A112Claude Code