Safe Browser Agent Builder
Official
Browser Automation
Builds secure, constrained browser agents that enforce domain allowlists using CDP Fetch interception.
The Safe Browser skill is a developer guide and template for creating secure, local web-browsing agents. By restricting the Claude Agent SDK runtime to a single custom tool, it completely blocks direct shell, browser, or CDP access. The tool leverages Playwright and Chrome DevTools Protocol (CDP) to intercept requests, allowing navigation only to approved, allowlisted domains. This approach prevents off-domain link following, mitigates prompt injection risks, and provides a secure playground for web scraping and browser automation tasks.
Key Features
01Restricts runtime agent access to a single constrained browser tool
02Enforces strict domain allowlists via CDP Fetch interception
03Integrates seamlessly with the Claude Agent SDK
04Uses purpose-built structured extractors instead of risky raw page snapshots
053,637 GitHub stars
06Supports local Chromium execution with optional headless visual mode
Use Cases
01Creating safe client-side browser demos with strict navigation boundaries
02Demonstrating prompt-injection containment and secure link-following policies
03Building secure web scrapers that are restricted to target domains