
Ask opencli
Lets your agent query Grok or Gemini through a logged-in Chrome session via opencli
Ask opencli is an open-source agent skill for browser automation. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 303
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Ask opencli
This skill routes questions to Grok or Gemini by driving the user's already logged-in Chrome browser through the opencli command-line tool, so no API keys or per-token charges are involved. It tells the agent which model to pick when the user does not specify one, favoring Grok for real-time and news topics and Gemini for longer reasoning, research, coding and document analysis, and asks the user when the choice remains unclear.
The skill covers the setup and operating details that are easy to get wrong. It lists the correct opencli subcommands, warns that a browser command timeout defaults to 60 seconds and must be raised with an environment variable alongside the per-request timeout, and gives a checklist of prerequisites such as the Browser Bridge extension and being signed in to each site. When a call fails on login, a challenge or a changed page, the agent is told to report the error rather than retry blindly or silently switch tools.
The skill also asks the agent to save a markdown artifact after each successful call, recording the original task, model and flags, the exact prompt, the raw response, a summary and next steps. It expects the Node.js-based opencli package to be installed and a Chrome profile signed in to grok.com or gemini.google.com.
When your agent uses it
Ask Grok or Gemini via opencli (browser-session based, no API cost). Use when the user says "问 grok", "问 gemini", "ask grok", "ask gemini", "用 grok 查", "grok 怎么看", "让 gemini 分析", or wants a second opinion from Grok/Gemini without paying API tokens. Routes to opencli which drives the already-logged-in Chrome session.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (8 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/ask-opencli to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/majiayu000/spellbook.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ask-opencli &&
cp -R "$tmp/skills/ask-opencli" ~/.claude/skills/ask-opencli &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/ask-opencli inside it instead.
Copy the skill folder to ~/.agents/skills/ask-opencli to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/majiayu000/spellbook.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ask-opencli &&
cp -R "$tmp/skills/ask-opencli" ~/.agents/skills/ask-opencli &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/ask-opencli inside it instead.
Copy the skill folder to ~/.cursor/skills/ask-opencli to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/majiayu000/spellbook.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ask-opencli &&
cp -R "$tmp/skills/ask-opencli" ~/.cursor/skills/ask-opencli &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/ask-opencli inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/majiayu000/spellbook.git --path skills/ask-opencliOr copy the folder to ~/.gemini/skills/ask-opencli yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/ask-opencli:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/majiayu000/spellbook.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ask-opencli &&
cp -R "$tmp/skills/ask-opencli" ~/.copilot/skills/ask-opencli &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/ask-opencli inside it instead.
Get the folder:
git clone --depth 1 https://github.com/majiayu000/spellbook.gitThen copy spellbook/skills/ask-opencli into your agent's skills folder as ask-opencli. Agents that support SKILL.md read one folder per skill.
What it does
- Browser-session querying
- Sends questions to Grok or Gemini through the user's existing logged-in Chrome session without API charges.
- Model selection guidance
- Suggests Grok for real-time and social topics and Gemini for research, coding and long-form analysis.
- Timeout configuration
- Explains the two timeout layers and the environment variable needed for slow Grok responses.
- Prerequisite checks
- Lists required opencli install, Browser Bridge extension and site sign-in before running commands.
- Error reporting
- Surfaces login, challenge and missing-element errors to the user instead of retrying silently.
- Session artifacts
- Saves a markdown record of each query, including the prompt, raw response and follow-up steps.
Good for
- Get a second opinion on a technical decision from Grok
- Ask Gemini to analyze a long document or code snippet
- Check recent tech news or trends through Grok
- Run a fresh Gemini chat to review a piece of Rust code
- Query Grok about discussion topics on X
Ask opencli FAQ
What does the skill need before Ask opencli can run?
It needs opencli installed, Chrome running with the Browser Bridge extension loaded, and an active login to grok.com or gemini.google.com in that browser.
Why do Grok calls sometimes time out?
opencli has a default 60-second browser command timeout, so the skill sets OPENCLI_BROWSER_COMMAND_TIMEOUT to 300 alongside a matching --timeout flag.
Does the skill use an API key or pay per token?
No. It drives the already-logged-in browser session, so it does not use API tokens, according to its description.
What happens if the user does not name a model?
The agent picks Grok for real-time or news questions and Gemini for reasoning, research, coding or documents, and asks the user if it is still unclear.
How do I install Ask opencli in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/ask-opencli to use it in all your projects, or to .claude/skills/ask-opencli in one project.
Does Ask opencli run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Ask opencli?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Ask opencli?
The closest alternatives to Ask opencli are Agent browser, Agent browser, Use agent browser, Agent browser and Browser.
Where this comes from
- Description: from the skill's own SKILL.md.
More from majiayu000/spellbook

Gives your agent cross-domain analogies and yes-and extensions to spark new ideas
- Open source
- 303 GitHub stars
- Productivity

Stress-tests an idea by hunting hidden assumptions, counterexamples and failure points
- Open source
- 303 GitHub stars
- Productivity

Gathers sourced facts, competitors and 2026 data on an idea without judging it
- Open source
- 303 GitHub stars
- Research workflow

Runs a three-role AI group chat that surfaces blind spots in a one-line idea
- Open source
- 303 GitHub stars
- Productivity

Coaches you from a one-line idea to a PRD and clickable HTML prototype
- Open source
- 303 GitHub stars
- Productivity

Guides an agent through mobile app UI design for iOS and Android
- Open source
- 303 GitHub stars
- Design and media







