Hubcap
Chrome DevTools Protocol CLI for AI agents
Control headless and headed Chrome from your terminal, scripts, and CI pipelines. 118 commands spanning navigation, DOM queries, form filling, screenshots, network interception, device emulation, accessibility audits, performance profiling, and more.
Install
Via Homebrew:
brew install tomyan/tap/hubcap Or with Go:
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.png Features
- 118 commands covering navigation, DOM, forms, screenshots, network, cookies, device emulation, and more
- JSON output by default for easy parsing
- Semantic exit codes — 0 success, 1 error, 2 connection failed, 3 timeout
- Unix composable — works with jq, pipes, and shell scripts
- Self-describing —
--list,--describe,--searchfor discovery - Stateless — each command connects, acts, and disconnects