gem-pw

gem-pw is a skill for Claude Code, Codex from lesterppo/hermes-gem-pw. It costs 39 tokens per session (1,241 once invoked), scanned A, original, MIT.

A command-line tool that controls Google's Gemini through a real Chromium browser. Gemini is Google's AI assistant, and a Gem is a customized version with its own instructions and knowledge.

In plain words
What is it for?
Use it to chat with Gems, manage them, generate images, run deep research, or make focused code and design changes through browser automation.
Why use it?
It lets you use Gemini features when direct program access is blocked, without needing an API key or copying browser cookies.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Gemini CLI.

Good fit Use it to chat with Gems, manage them, generate images, run deep research, or make focused code and design changes through browser automation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lesterppo/hermes-gem-pw/hermes-gem-pw
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add lesterppo/hermes-gem-pw --skill hermes-gem-pw
Clone the repo
git clone --depth 1 https://github.com/lesterppo/hermes-gem-pw

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gem-pw

README.md
[![agentmods](https://agentmods.dev/badge/skills/lesterppo/hermes-gem-pw/hermes-gem-pw/github.svg)](https://agentmods.dev/skills/lesterppo/hermes-gem-pw/hermes-gem-pw)
Your own site
<a href="https://agentmods.dev/skills/lesterppo/hermes-gem-pw/hermes-gem-pw"><img src="https://agentmods.dev/badge/skills/lesterppo/hermes-gem-pw/hermes-gem-pw/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gem-pw

Your own site · 80×15
<a href="https://agentmods.dev/skills/lesterppo/hermes-gem-pw/hermes-gem-pw"><img src="https://agentmods.dev/badge/skills/lesterppo/hermes-gem-pw/hermes-gem-pw.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,241 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.01241
Opus 5 $0.00019 $0.00620
Sonnet 5 $0.00008 $0.00248
Haiku 4.5 $0.00004 $0.00124

Measured 11d ago against content hash 055622f5b998, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

gem-pw scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

SKILL.md · 104 lines

How it starts

The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.

gem-pw — Gemini CLI via Browser Automation (No API Key)

Two CLIs, one repo: gem-pw (Gem operations) and gemini-web (non-Gem operations). Both drive a real Chromium browser via Playwright — the only backend that reliably reaches Google's browser-gated Gemini endpoints. Zero API keys, zero cookie extraction, zero external servers.

When to Use

  • Chat with any Gemini Gem via URL/id (single or multi-turn)
  • Gem CRUD: create, edit (name/instructions/model/knowledge), delete
  • Image generation via Imagen (Upload & tools → Create image drawer)
  • Deep research via gemini-web research
  • Token-efficient code/design iteration via --collab surgical diffs
  • Direct chat without a Gem (fastest path, no Gem overhead)
  • gemini-webapi returns UNAUTHENTICATED — real browser bypasses this gate

Prerequisites

  1. Python 3.10+ and pip install playwright aiohttp && playwright install chromium
  2. One-time sign-in: gem-pw-login (opens Chromium, profile persists at ~/.gemini-cli/cr-profile/)
  3. CDP path: a headed Chromium on http://127.0.0.1:9224 (default; override with GEM_PW_CDP or --cdp). Without CDP, falls back to self-launched headed Chromium.

Quick Reference

Need Command
Chat with a Gem gem-pw <id> "prompt"
Multi-turn chat gem-pw <id> -c sess.json "prompt"
Diff-based iteration gem-pw --collab <id> -f file "instr" -o r.md
Apply the diff python3 apply_gem_diff.py r.md file [--dry]
Create a Gem gem-pw --create "Name" "Instructions" [-m model] [--knowledge-*]
Edit a Gem gem-pw --edit <id> --name "New" --instructions "..."
Delete a Gem gem-pw --delete <id>
Upload + ask gem-pw --upload <id> -f file "question"
Image gen (Gem) gem-pw --img <id> "description"
Image gen (main app) gem-pw --img "description"
Direct chat (no Gem) gemini-web chat "prompt"
Deep research gemini-web research "topic"
Account info gemini-web account

Output Format

Read the full file on GitHub · 104 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 104 lines · 39 tokens per session scan A 055622f5b998

Subscribe to this mod's changes

gem-pw is a skill published in the GitHub repository lesterppo/hermes-gem-pw (1 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 1,241 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

webcmd-browser

Use when a live browser task requires Playwright interaction, authenticated handoff, visible UI verification, or ad-hoc page inspection.

agentrhq/webcmd · 30 tokens

BrowserBash Browser Automation

BrowserBash is a vendor-independent, natural-language browser automation CLI. Drive a real browser from plain-English objectives or committable Markdown tests, run on local Chrome, CDP/Playwright MCP, Browserbase, LambdaTest, or BrowserStack, and stream NDJSON results with CI exit codes — using free local Ollama…

PramodDutta/qaskills · 79 tokens

auto-captcha-solver

Universal captcha auto-solver for Playwright browser automation. Detects hCaptcha and reCAPTCHA v2 on any page, solves via NopeCHA API, and injects tokens automatically. Drop-in CaptchaSolver class with autosolve(page) method.

interfluve-wav/auto-captcha-solver · 57 tokens

rawtrace-debug-browser

Use RawTrace proactively to debug flaky or timing-sensitive browser behavior, including intermittent Playwright or Cypress failures, clicks with no request or unclear result, transient or asynchronous DOM changes, API timing, WebSocket ordering, downloads, authentication redirects, or cases where snapshots are…

ss26367098/rawtrace-mcp · 77 tokens

qprobe

QUESTPIE Probe — dev testing CLI for AI coding agents. Start servers, test APIs, control browsers via agent-browser, record and replay regression tests with zero tokens. Use when testing web apps, starting dev servers, reading logs, debugging errors, making API calls, checking browser console/network, or composing…

questpie/probe · 68 tokens

instagram-workflow

A workflow for publishing image posts to Instagram, a social network for photos and videos, using browser automation.

whypuss/ai-cdp-browser · 51 tokens