kasm-browser

kasm-browser is a skill for Claude Code, Codex from MrTrenchTrucker/contak-browser-skills. It costs 19 tokens per session (634 once invoked), scanned A, original, MIT.

A way to control a persistent Chrome browser through the Chrome DevTools Protocol, a standard interface for automating browser actions. The browser keeps its login state, cookies, and open tabs between actions.

In plain words
What is it for?
Use it to open pages, click elements, enter text, take screenshots, inspect page content, run browser JavaScript, and manage tabs.
Why use it?
It helps with websites that require an existing login, CAPTCHA or two-factor authentication, or browser events that simple automation may not trigger correctly.

Skill for Claude CodeCodex

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

Good fit Use it to open pages, click elements, enter text, take screenshots, inspect page content, run browser JavaScript, and manage tabs.

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

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 kasm-browser

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mrtrenchtrucker/contak-browser-skills/kasm-browser"><img src="https://agentmods.dev/badge/skills/mrtrenchtrucker/contak-browser-skills/kasm-browser.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 634 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.
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.00019 $0.00634
Opus 5 $0.00010 $0.00317
Sonnet 5 $0.00004 $0.00127
Haiku 4.5 $0.00002 $0.00063

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

Security

Grade A, and why

kasm-browser 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 10d 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.

1. Confirm CDP reachable: `docker exec <container> curl -s http://localhost:9222/json/version`.
skills/kasm-browser/SKILL.md · 54 lines

How it starts

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

KASM Browser via CDP

When invoked, drive a persistent KASM Chrome browser using Chrome DevTools Protocol. Use this when a flow needs login state, cookies that persist, captcha/2FA, or React-style synthetic events.

Inputs

  • action -- one of: navigate, click, type, screenshot, close_tab, eval
  • url -- target URL (for navigate)
  • selector -- CSS selector (for click, type)
  • text -- text to type (for type)
  • tab_id -- existing tab to target (optional; otherwise pick or create)
  • output_path -- for screenshot action, where to save the PNG

Output

  • screenshot action: file path to PNG.
  • Other actions: status + DOM snapshot or evaluated value.

Steps

  1. Confirm CDP reachable: docker exec <container> curl -s http://localhost:9222/json/version.
  2. List tabs: docker exec <container> curl -s http://localhost:9222/json.
  3. Pick or create the target tab; capture its webSocketDebuggerUrl.
  4. Open a WebSocket to that URL from inside the container.
  5. Send the CDP commands for the action, applying the Human-Speed Rule between every meaningful step.
  6. Capture results (DOM, screenshot, console output).
  7. Close the WebSocket; tidy up any tabs your flow created.

The Human-Speed Rule (mandatory)

Slow IS fast.

  • Minimum 1.5-3 seconds between meaningful actions.
  • Typing: one key at a time, 80-150 ms between keystrokes with jitter. Do NOT blast a full string via input.value = "..." on sites that profile typing cadence.
  • Wait for Page.loadEventFired before queuing a second navigation.
  • Self-imposed rate limit: ~20 CDP calls per 10 seconds.

Bot-detection systems flag burst patterns even when intent is benign. Human-speed pacing is free immunity. Apply regardless of how impatient the user is.

Example: navigate + read title

const sock = new ws(tab.webSocketDebuggerUrl);
// ... open WS, set up send() helper ...
await send("Page.navigate", { url: "https://example.com" });
await new Promise(r => setTimeout(r, 3000));   // human-speed wait
const title = (await send("Runtime.evaluate", { expression: "document.title" })).result.result.value;

Read the full file on GitHub · 54 lines

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. 10d ago First seen · 54 lines · 19 tokens per session scan A c4d2a0846983

Subscribe to this mod's changes

kasm-browser is a skill published in the GitHub repository MrTrenchTrucker/contak-browser-skills (5 stars, last pushed 4mo ago), licensed MIT. It adds 19 tokens to every session and 634 once invoked, about $0.0001 per session on Opus 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-31.

Related

Other skills, from other repositories

pinchtab

Use this skill when a task needs browser automation through PinchTab: open a website, inspect interactive elements, click through flows, fill out forms, scrape page text, reuse a dedicated automation profile with user approval, export screenshots or PDFs, manage multiple browser instances, or fall back to the HTTP API…

pinchtab/pinchtab · 94 tokens

pinchtab-mcp

Use this skill when a task requires browser automation through PinchTab's MCP server connected to a remote browser instance. Covers navigation, element interaction, data extraction, form filling, multi-step flows, and session management via MCP tools.

pinchtab/pinchtab · 52 tokens

Agent Browser Automation

Fast Rust-based headless browser automation CLI with Node.js fallback for AI agents, featuring navigation, clicking, typing, snapshots, and structured commands optimized for agent workflows.

PramodDutta/qaskills · 37 tokens

owb

Open Web Bridge (OWB) — drive the user's own real browser with the owb command. Read pages behind their existing logins, gather and cross-check information, fill forms, walk multi-step flows, debug their site, audit responsive/accessibility behavior, and capture or reverse-engineer network traffic. Use this whenever…

woniu9524/open-web-bridge · 143 tokens

chrome-agent

Local browser automation with structured, verified outcomes. Use for web navigation, scraping and extraction, form interaction, screenshots and downloads, network or console checks, responsive testing, or page-scoped device emulation.

sderosiaux/chrome-agent · 44 tokens

scrape-structured-data

Get the repeating records off a web page (product grids, search results, job listings, news feeds, tables) as JSON, without writing CSS selectors and without spending a model call to read the HTML. Works on sites with no API, including ones behind a login or bot protection. Runs locally, one binary, no API key. Use…

sderosiaux/chrome-agent · 111 tokens