-
Notifications
You must be signed in to change notification settings - Fork 307
Open
Description
Summary
Add an additive opencli browser command group for browser backend selection, CDP browser launch, and command forwarding, without modifying existing command surfaces.
Why
From an AI-native CLI perspective, browser access should be a runtime capability that can be selected explicitly, instead of being hard-wired to one integration path.
This matters for two reasons:
- Existing browser commands can be reused against a Chrome DevTools Protocol endpoint.
- The change can stay non-invasive: no breaking changes to
opencli <site> <command>.
Proposed Commands
opencli browser launch- launch a Chrome/Chromium instance with a CDP debugging port
- support optional
--user-data-dir - default to an isolated profile when not provided
opencli browser doctor- diagnose
extensionorcdpbackend connectivity
- diagnose
opencli browser run -- <existing command>- forward an existing
openclicommand through a selected browser backend
- forward an existing
Design Principles
- additive only: do not rewrite existing commands
- preserve the current execution architecture
- make backend choice explicit via runtime flags
- keep the old plugin/extension path working
Example
opencli browser launch --port 9222
opencli browser doctor --backend cdp --cdp-endpoint http://127.0.0.1:9222 --live
opencli browser run --backend cdp --cdp-endpoint http://127.0.0.1:9222 -- zhihu search --keyword AINotes
This is intentionally a separate command group so the maintainer can evaluate whether and how these capabilities should be merged into the main command surface later.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels