OpenCLI plugin for interacting with Google Gemini web interface.
- OpenCLI installed (
npm install -g @jackwener/opencli) - esbuild installed (
npm i -g esbuild) — required for TypeScript plugin compilation - Chrome browser with OpenCLI Browser Bridge extension installed
- Download from OpenCLI Releases
- Load unpacked in
chrome://extensions/
- Logged into Gemini in Chrome
# Via opencli plugin manager
opencli plugin install github:AstaTus/opencli-plugin-gemini-web
# Or manually
git clone https://github.com/AstaTus/opencli-plugin-gemini-web \
~/.opencli/plugins/gemini-web# Quick mode (default)
opencli gemini-web ask "What is the capital of France?"
# Thinking mode for complex problems
opencli gemini-web ask "Explain quantum computing in detail" --mode think
# Pro mode for advanced tasks
opencli gemini-web ask "Write a complex algorithm" --mode pro
# Deep Research (default 600s timeout)
opencli gemini-web ask "Compare Python vs JavaScript ecosystems" --deep-research
# Combine Deep Research with a specific mode
opencli gemini-web ask "Analyze market trends" --deep-research --mode pro| Parameter | Default | Description |
|---|---|---|
prompt |
(required) | The question to ask Gemini |
--mode |
quick |
Response mode: quick, think, pro |
--deep-research |
false |
Enable Deep Research (can combine with --mode) |
quick(default) — Fast responsethink— Deep thinking for complex problemspro— Advanced capabilities
When using --deep-research, the plugin handles the full research flow:
- Sends your prompt and waits for Gemini to generate a research plan
- Automatically clicks "Start research" to begin
- Waits for the research to complete and returns the full report
Important: Add this to your ~/.zshrc or ~/.bashrc to avoid timeout errors:
export OPENCLI_BROWSER_COMMAND_TIMEOUT=350Then reload:
source ~/.zshrcIf you see timed out after 60s, make sure you set the environment variable:
export OPENCLI_BROWSER_COMMAND_TIMEOUT=350Make sure you are logged into Gemini in Chrome:
- Open Chrome and navigate to https://gemini.google.com/app
- Log in with your Google account
- Retry the command
Make sure the OpenCLI Browser Bridge extension is installed and enabled in Chrome:
- Download
opencli-extension.zipfrom OpenCLI Releases - Unzip and load in
chrome://extensions/→ "Load unpacked" - Run
opencli doctorto verify connection
opencli-plugin-gemini-web/
├── ask.ts # Main ask command (TypeScript)
├── package.json
└── README.md
MIT
- OpenCLI - The main OpenCLI project