Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

baoyu-danger-gemini-web

Skill by JimLiu

Generates text and images through a reverse-engineered Gemini Web API. It is for users who want Gemini output from their assistant, and for other skills that need an image generation backend.

  • Score 93
  • 28k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install baoyu-danger-gemini-web

Built from the published package, never by AI.

git clone --depth 1 https://github.com/JimLiu/baoyu-skills /tmp/baoyu-skills && mkdir -p ~/.claude/skills && cp -r /tmp/baoyu-skills/skills/baoyu-danger-gemini-web ~/.claude/skills/baoyu-danger-gemini-web

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install baoyu-danger-gemini-web in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Gemini Web Client is an agent skill that sends prompts to Gemini through a reverse-engineered Gemini Web API. It runs a TypeScript CLI script with Bun, or with npx if Bun is not installed. It supports text generation, image generation from prompts, reference images for vision input, and multi-turn conversations saved as sessions in the data directory.

First use opens a browser for Google sign-in, and the cookies are cached for later runs. Before first use, the skill asks the user to accept a disclaimer about reverse-engineered API usage and stores a consent file. Defaults such as the model, proxy and data directory can be set in an EXTEND.md file. The skill is aimed at other skills that need an image generation backend and at users who want Gemini generation from their assistant.

Written from the project's SKILL.md and checked against it.

What it can do

  • Text generationSends a text prompt to a Gemini model and returns the reply.
  • Image generationGenerates an image from a prompt and saves it to a file path.
  • Reference imagesPasses local images to Gemini as vision input with the prompt.
  • Multi-turn sessionsContinues a saved conversation by reusing a session ID.
  • List sessionsLists saved sessions with the --list-sessions option.
  • Model selectionChooses between gemini-3-pro, gemini-3-flash, thinking and 3.1 Pro preview.
  • Cookie refreshRefreshes Google cookies with the --login option and then exits.

What you need

  • A Google account for browser sign-in
  • Bun, or npx to run Bun
  • Chrome, Chromium, Chrome Canary, Chrome Beta or Edge for sign-in

Try asking

  • Generate an image of a cute cat with Gemini and save it as cat.png
  • Use Gemini to describe the image at ./photo.png
  • Remember the number 42 in a Gemini session, then ask it what the number is

Good to know

  • Relies on a reverse-engineered Gemini Web API.
  • Requires accepting a consent disclaimer (version 1.0) before first use.
  • Proxy settings may be needed for Google access.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/baoyu-danger-gemini-web/SKILL.md, skills/baoyu-danger-gemini-web/scripts/gemini-webapi/client.test.ts, skills/baoyu-danger-gemini-web/scripts/gemini-webapi/client.ts, skills/baoyu-danger-gemini-web/scripts/gemini-webapi/components/gem-mixin.ts, skills/baoyu-danger-gemini-web/scripts/gemini-webapi/components/index.ts, skills/baoyu-danger-gemini-web/scripts/gemini-webapi/constants.ts, skills/baoyu-danger-gemini-web/scripts/gemini-webapi/exceptions.ts, skills/baoyu-danger-gemini-web/scripts/gemini-webapi/index.ts, skills/baoyu-danger-gemini-web/scripts/gemini-webapi/types/candidate.ts. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB
  • scripts/bun.lock389 B
  • scripts/gemini-webapi/client.test.ts1 KB
  • scripts/gemini-webapi/client.ts23 KB
  • scripts/gemini-webapi/components/gem-mixin.ts6 KB
Show all 28 files
  • scripts/gemini-webapi/components/index.ts44 B
  • scripts/gemini-webapi/constants.ts4 KB
  • scripts/gemini-webapi/exceptions.ts1 KB
  • scripts/gemini-webapi/index.ts273 B
  • scripts/gemini-webapi/types/candidate.ts1 KB
  • scripts/gemini-webapi/types/gem.ts2 KB
  • scripts/gemini-webapi/types/grpc.ts369 B
  • scripts/gemini-webapi/types/image.ts3 KB
  • scripts/gemini-webapi/types/index.ts232 B
  • scripts/gemini-webapi/types/modeloutput.ts816 B
  • scripts/gemini-webapi/utils/cookie-file.ts2 KB
  • scripts/gemini-webapi/utils/decorators.ts1 KB
  • scripts/gemini-webapi/utils/get-access-token.ts7 KB
  • scripts/gemini-webapi/utils/http.ts2 KB
  • scripts/gemini-webapi/utils/index.ts1021 B
  • scripts/gemini-webapi/utils/load-browser-cookies.ts10 KB
  • scripts/gemini-webapi/utils/logger.ts1 KB
  • scripts/gemini-webapi/utils/parsing.ts1 KB
  • scripts/gemini-webapi/utils/paths.ts2 KB
  • scripts/gemini-webapi/utils/rotate-1psidts.ts1 KB
  • scripts/gemini-webapi/utils/upload-file.ts1 KB
  • scripts/main.ts15 KB
  • scripts/package.json145 B

Alternatives to baoyu-danger-gemini-web

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

baoyu-danger-gemini-web: common questions

Does this skill need a Gemini API key?

The source does not mention an API key. It signs in through a browser for Google auth and caches the cookies.

Which Gemini models can I use?

The source lists gemini-3-pro as the default, gemini-3-flash, gemini-3-flash-thinking and gemini-3.1-pro-preview. The --model option selects one of them.

Where are chat sessions stored?

Sessions are stored in the data directory as sessions/<id>.json. Each file holds the id, Gemini chat metadata, messages and timestamps.

How do I install baoyu-danger-gemini-web?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is baoyu-danger-gemini-web free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is baoyu-danger-gemini-web safe to use?

It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to baoyu-danger-gemini-web?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

baoyu-danger-gemini-web Install

Add to stack

Loading.