Gemini Web — AI skill for Claude Code
Gemini AI 圖片生成 CLI 工具 + HTTP API — 支援繁體中文文字、自動去水印.
How to install Gemini Web
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open yazelin/gemini-web and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Gemini Web does
Gemini AI 圖片生成 CLI 工具 + HTTP API — 支援繁體中文文字、自動去水印.
Alternatives in AI
- AIHawk — Open-source AI browser agent: describe any task in plain language and it autonomously browses, clicks, types a 30.3k ★
- CLI 代理 API — English 中文 一个为 CLI 提供 OpenAI/Gemini/Claude/Codex 兼容 API 接口的代理服务器 19k ★
- Claw Empire — Command Your AI Agent Empire from the CEO Desk — A local-first AI agent office simulator that orchestrates CLI 1.1k ★
README
gemini-web
**快速安裝:** `uv tool install gemini-web && gemini-web install`
使用 Playwright 自動化 Gemini 網頁版,包成 CLI 和 HTTP API:文字對話、上傳檔案問問題、生圖、改圖、做音樂,另有排隊版 API、相容官方 Gemini API 的端點,以及發金鑰的管理頁。
自動移除 Gemini 可見水印(V2 profile 反向 alpha 混合,純 OpenCV、無額外依賴)。
安裝
⚠️ **不要用 `pip install`** — pip 不會建立隔離環境,會導致 Playwright 安裝失敗。請用 uv 或 pipx。
# 1. 安裝 uv(如果還沒有)
curl -LsSf https://astral.sh/uv/install.sh | sh # macOS / Linux
powershell -c "irm https://astral.sh/uv/install.ps1 | iex" # Windows
# 2. 安裝 gemini-web
uv tool install gemini-web && gemini-web install
備選方式(效果相同):
pipx install gemini-web && gemini-web install
`gemini-web install` 會安裝 Chromium 瀏覽器(Playwright)。
已經用 pip 裝過?
pip uninstall gemini-web -y
uv tool install gemini-web && gemini-web install
首次登入 Google
gemini-web login
在彈出的瀏覽器中登入 Google 帳號,確認進入 Gemini 頁面,按 Enter 關閉。登入狀態存在 `~/.gemini-web/profiles/`,之後不需要重新登入。
裝在本機,給本機的程式或 AI 呼叫
最常見的用法:服務跑在自己電腦上,同一台電腦的腳本、Claude Code、Codex 打 `http://localhost:8070`。
# 1. 安裝與登入(登入要人工在彈出的瀏覽器裡完成)
uv tool install gemini-web && gemini-web install
gemini-web login
# 2. 設一把金鑰再啟動(不設任何金鑰時 /api/* 不檢查,只適合純本機實驗)
export API_KEYS=my-local-key
export ADMIN_PASSWORD='換成你自己的密碼'
gemini-web serve --port 8070
`API_KEYS` 等環境變數也可以寫在啟動目錄的 `.env`。管理頁在 `http://localhost:8070/admin`,可以現場發、停用金鑰,看每筆請求。
呼叫時把金鑰放在 `x-goog-api-key` 標頭:
# 文字
curl -s http://localhost:8070/api/chat -H "x-goog-api-key: my-local-key" \
-H "Content-Type: application/json" -d '{"prompt": "用一句話介紹台北"}'
# 生圖(回傳 base64)
curl -s http://localhost:8070/api/generate -H "x-goog-api-key: my-local-key" \
-H "Content-Type: application/json" -d '{"prompt": "a cute orange cat, watercolor"}'
已經用官方 `google-genai` SDK 寫好的程式,只要把網址指過來,拿掉網址就回到官方 API:
import os
from google import genai
base = os.getenv("GEMINI_WEB_BASE_URL") # 例如 http://localhost:8070;沒設就打官方
client = genai.Client(
api_key=os.environ["GEMINI_API_KEY"],
http_opt
Related Skills
Gemini Web2api
Reverse Web-to-API bridge connecting CLI Agent Harnesses (Oh My Pi, Claude Code, Cline, Aider) to Gemini Web &
My Jupyter Lab
Python API and agentic skill for Google Gemini Notebook. Full programmatic access to NotebookLM's features—inc
Shuvbooklm
Unofficial Python API and agentic skill for Google Gemini Notebook. Full programmatic access to NotebookLM's f
Free GPT4 WEB API
Not just GPT4! Easy to use, Self-Hosted, Unlimited and Free WEB API of the latest A.I. like Gemini, DeepSeek,
AI Chatroom
A web group chat where Claude, ChatGPT, Grok and Gemini hang out and talk on their own, powered by your logged
Gemini Web Automation Skill
让 AI Agent 自动将复杂任务委派给免费的 Gemini Pro 深度思考的skill(基于网页端自动化,零 API 资费)。
Related Agents
Gemini Research
Web research agent that delegates to Gemini CLI in headless mode. Use\
Gemini Analyzer
Gemini CLI を使った大規模コードベース解析・Web 調査エージェント。Claude Code のコンテキストウィンドウを超えるタスク(モノレポ全体の解析、数千ファイルのスキャン等)のオフロードに加え、グラウンデ
Web Search
ウェブ検索が必要なときに使う。Claude の知識カットオフ以降の情報・リアルタイム情報・最新ドキュメントが必要な場合に Gemini CLI へ委譲して結果を返す。