Chrome DevTools Protocol automation
hubcap
A command-line interface for Chrome DevTools Protocol. Control headless and headed Chrome from your terminal, scripts, and CI pipelines.
Full CDP coverage
118 commands spanning navigation, DOM queries, form filling, screenshots, network interception, device emulation, accessibility audits, performance profiling, and more. If you can do it in Chrome DevTools, you can script it with hubcap.
Low context overhead
Each command is a single executable with clear flags — no libraries to import, no page objects to construct, no async/await chains to manage. Ideal for AI agents and shell scripts where every token of context matters.
Use it everywhere
End-to-end testing, visual regression, web scraping, security research, design feedback, CI pipelines, interactive debugging — one tool that fits wherever you need a browser.
General usage
Install
brew install tomyan/tap/hubcap or go install github.com/tomyan/hubcap/cmd/hubcap@latest
Quick start
hubcap setup launch
hubcap goto https://example.com
hubcap click '#login-button'
hubcap fill '#email' 'user@example.com'
hubcap screenshot --output page.pngClaude Code
Install
/plugin marketplace add tomyan/claude-skills
/plugin install hubcap@tomyan-skills Requires hubcap to be installed (see left)
Quick start
Screenshot example.com on an iPhone 12
Check the accessibility of my login page
Fill in the signup form and screenshot each step