bwb-browser: Instructions file for Codex

AGENTS.md

bwb-browser AGENTS.md is an instructions file for Codex, OpenCode from krshforever/bwb-browser. It costs 3,342 tokens per session, scanned D, original, MIT.

A lightweight browser-automation MCP server that lets an AI agent control a browser through Chrome's built-in developer connection. MCP is a standard way for AI tools to use external services.

In plain words
What is it for?
Use it to automate browser tasks, inspect web pages, and interact with Chrome or Chromium, including on Android through Termux.
Why use it?
It gives agents browser access without requiring a separate large browser package or complicated setup.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions Claude Code; reads ~/.codex paths.

This is krshforever/bwb-browser's own configuration. It tells Codex and OpenCode how to work on bwb-browser itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything bwb-browser configures →

Reuse

Borrowing it

Nothing to install: this file belongs to krshforever/bwb-browser. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/krshforever/bwb-browser/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/krshforever/bwb-browser

Made for: Codex, OpenCode.

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 bwb-browser AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/krshforever/bwb-browser/agents-md/github.svg)](https://agentmods.dev/instructions/krshforever/bwb-browser/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/krshforever/bwb-browser/agents-md"><img src="https://agentmods.dev/badge/instructions/krshforever/bwb-browser/agents-md/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 bwb-browser AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/krshforever/bwb-browser/agents-md"><img src="https://agentmods.dev/badge/instructions/krshforever/bwb-browser/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,342 This file is loaded in full into every session.
When invoked 3,342 The same file — it is already loaded in full.
Security scan D 2 findings. 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.03342 $0.03342
Opus 5.5 $0.01337 $0.01337
Sonnet 5.5 $0.00668 $0.00668
Haiku 4.5 $0.00334 $0.00334

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

Security

Grade D, and why

bwb-browser AGENTS.md scanned grade D with 2 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

| **Antigravity CLI** | ✅ `~/.gemini/config/mcp_config.json` | MCP config |

Cloud metadata endpointhighServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

- **No SSRF.** Static fetches refuse loopback / private / link-local / CGNAT addresses (`127/8`, `10/8`, `172.16/12`, `192.168/16`, `169.254/16`, `::1`, `fc00::/7`) on **every redirect hop** — so a public URL cannot boun
AGENTS.md · 260 lines

How it starts

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

bwb-browser — Agent Integration Guide

Author: Krish Tiwari (@krshforever) Package: bwb-browser · ~173KB source · 65 kB tarball · 26 tools · static-first (v4) Last updated: 2026-08-06

What is bwb?

Browser Without Bloat — a lightweight MCP server that gives any AI agent browser superpowers. ~173KB source. 26 tools. 5 runtime dependencies. Static-first: plain pages never spawn Chromium. Zero native dependencies.

While other MCP browser tools ship a full browser binary (Playwright MCP = ~250MB, Puppeteer MCP = ~400MB), bwb speaks Chrome DevTools Protocol (CDP) directly — over one thin CDP client (chrome-remote-interface), no Playwright, no Puppeteer, no bundled browser. It auto-detects the browser already on your system.

Built on Termux/Android. Runs everywhere. Weighs nothing. Browser automation from your phone.


🔥 Zero-Config Install (5 seconds)

Don't copy-paste configs. Don't hunt for the right path. Just:

npm install -g bwb-browser
bwb --setup          # dry run: prints what it would write
bwb --setup --yes    # apply

That's it. bwb --setup auto-detects every AI agent on your machine (OpenCode, Antigravity, Claude Code, Hermes, Cline, Continue, Codex CLI), writes the correct MCP config for each (timestamped backups), detects Chrome/Chromium, and prints a summary. It is a dry run unless you pass --yes. Close and reopen your agent — tools are ready.


Compatible Agents

Agent Auto-Config via bwb --setup Manual Config
Claude Code (Anthropic) ⚠️ claude mcp add --scope user (setup prints/runs this — MCP is NOT read from settings.json) claude mcp add --scope user bwb -- node <path>/server.mjs
OpenCode ✅ ~/.config/opencode/opencode.json MCP config
Antigravity CLI ✅ ~/.gemini/config/mcp_config.json MCP config
Cline (VS Code) ✅ ~/.cline/mcp.json MCP config
Continue.dev ✅ ~/.continue/config.json MCP config
Codex CLI ✅ ~/.codex/mcp.json MCP config
Hermes ✅ ~/.hermes/mcp.json MCP config
Aider ❌ (custom tool) Custom integration
Cody (Sourcegraph) ❌ MCP config
Cursor ❌ (per-project) .cursor/mcp.json

Read the full file on GitHub · 260 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. 1mo ago Changed · +14 lines · +691 tokens per session scan B → D 48b60949d87c
  2. 1mo ago Changed · +12 lines · +121 tokens per session a2a721d438d6
  3. 1mo ago Changed · +2 lines · +157 tokens per session 8905e780f8d9
  4. 2mo ago First seen · 232 lines · 2,373 tokens per session scan B 169a85d82a98

Subscribe to this mod's changes

bwb-browser AGENTS.md is an instructions file published in the GitHub repository krshforever/bwb-browser (19 stars, last pushed 24d ago), licensed MIT. It adds 3,342 tokens to every session, about $0.0134 per session on Opus 5.5. A static security scan graded it D with 2 findings (reads agent configuration directories, cloud metadata endpoint). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

bwb-browser AGENTS.md compared with instructions from other repositories

bwb-browser AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bwb-browser AGENTS.mdkrshforever/bwb-browserInstructions file1924d agoMITD3,342Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode ai-customization.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA1,907GitHub Copilot