ocm-browser

ocm-browser is a skill for Claude Code, Codex from mathaix/OpenClawMachines. It costs 51 tokens per session (844 once invoked), scanned A, original, Apache-2.0.

A setup guide for connecting an OpenClaw machine to a separate browser computer. It explains the connection check and how to pair the two machines before browser automation.

In plain words
What is it for?
Use it before writing code that opens pages, clicks elements, runs JavaScript, takes screenshots, or reads page details through the browser-harness tools.
Why use it?
It prevents you from trying browser commands when no browser is available or connected. It also shows how the browser connection is configured without manual setup.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/mathaix/openclawmachines/ocm-browser
Any agent
npx skills add mathaix/OpenClawMachines --skill ocm-browser
Clone the repo
git clone --depth 1 https://github.com/mathaix/OpenClawMachines

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/mathaix/openclawmachines/ocm-browser.svg)](https://agentmods.dev/skills/mathaix/openclawmachines/ocm-browser)
Your own site
<a href="https://agentmods.dev/skills/mathaix/openclawmachines/ocm-browser"><img src="https://agentmods.dev/badge/skills/mathaix/openclawmachines/ocm-browser.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 844 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00051 $0.00844
Opus 5 $0.00026 $0.00422
Sonnet 5 $0.00010 $0.00169
Haiku 4.5 $0.00005 $0.00084

Measured 5d ago against content hash 74daeb977700, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ocm-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 5d 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.

go through `bh` / `browser-harness`, not through raw `curl` / `websockets`.
rootfs/skills/ocm-browser/SKILL.md · 81 lines

How it starts

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

ocm-browser

OpenClaw machines don't run Chrome themselves. When you need a browser, a separate browser VM is paired with your machine and its Chrome is reached via a managed CDP bridge at http://192.168.100.1:9222. The browser-harness skill gives you the Python helpers (click, js, screenshot, new_tab, page_info, cdp) that talk to that Chrome.

Read this skill before writing browser code. Nothing below the readiness check below is usable unless the check passes.

Readiness check — ALWAYS run first

bh --check

Exit 0 means a browser VM is paired and reachable. Exit 1 means there is no browser to drive — stop, tell the user, do not claim you ran code you did not run.

The probe mirrors the endpoint bh will actually use, so a 0 exit here is a reliable green light.

Minimum happy-path example

bh <<'PY'
new_tab("https://example.com")
wait_for_load()
info = page_info()
print(info["url"], info["title"])
PY

All helpers come from the browser-harness skill. bh wires up the bridge CDP URL for you — you don't need to set BU_CDP_WS yourself.

When to consult interaction-skills

  • interaction-skills/pairing-readiness.md — if bh --check fails, or if the user asks "can I use a browser right now?"
  • interaction-skills/bridge-proxy.md — if you need to understand what the bridge does, what network it exposes, SSRF policy, or why a request is blocked.
  • interaction-skills/browser-vm-lifecycle.md — if the user asks about pairing/unpairing, what survives a VM restart, or how to restart Chrome without losing session state.
  • interaction-skills/profile-persistence.md — if you need to save a logged-in browser session (LinkedIn, X/Twitter, Instagram, Facebook, most SaaS) and restore it after the browser VM gets recreated or a new one is paired.
  • browser-harness/interaction-skills/cookies.md — generic Browser Harness cookie guidance.

Important constraints

  • Cookies and session state live in the browser VM, not this machine. They persist while the browser VM runs; they vanish if the user unpairs or recreates it. To keep them across unpair/recreate, save the cookie jar first — see interaction-skills/profile-persistence.md.
  • The bridge has a fail-closed SSRF policy. Arbitrary internal IPs are blocked; the bridge's own RFC1918 address is allowlisted by the platform.
  • You do not have direct TCP access to the browser VM's Chrome. Always go through bh / browser-harness, not through raw curl / websockets.

Read the full file on GitHub · 81 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. 5d ago First seen · 81 lines · 51 tokens per session scan A 74daeb977700

Subscribe to this mod's changes

ocm-browser is a skill published in the GitHub repository mathaix/OpenClawMachines (57 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 51 tokens to every session and 844 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

x402

Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key. Two setups it works out up front — "just use it" (set up a wallet so you or Claude Code can run cloud browser tasks paid from the wallet — Claude writes and runs throwaway scripts, nothing…

browser-use/browser-use · 175 tokens

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work.

browser-use/browser-use · 26 tokens

plan-canvas

Open plans and HTML artifacts in a local browser canvas where the human annotates elements, chats, and approves or requests changes without leaving the page. Use when presenting a plan for review, or when feedback like "move this, change that" is easier pointed at than typed.

affaan-m/ECC · 59 tokens

playwright

Use when the task requires capturing or automating a real browser from the terminal.

openai/openai-agents-python · 19 tokens

cloud

Documentation reference for using Browser Use Cloud — the hosted API and SDK for browser automation. Use this skill whenever the user needs help with the Cloud REST API (v2, v3, or v4), browser-use-sdk (Python or TypeScript), X-Browser-Use-API-Key authentication, cloud sessions, browser profiles, profile sync, CDP…

browser-use/browser-use · 177 tokens

search-params

URL search param and hash state management. Use when adding or modifying URL search params, working with useSearchParams, setSearchParams, useSearchParamState, or navigate() with query strings or hash fragments, or fixing browser back/forward button issues.

promptfoo/promptfoo · 55 tokens