Are you the author? Sign in to claim
Unofficial Codex plugin that analyzes public YouTube videos through a local Gemini Web session.
Language: English | 简体中文 | 日本語
Gemini Web Bridge gives your AI clients (like Codex, Cursor, Claude Desktop, or custom scripts) a local, user-controlled channel to a logged-in Gemini Web session without requiring a Gemini API key. The Bridge handles reliable browser automation and returns Gemini's complete raw answer.
Typical uses include understanding the audio and visuals of one or more public YouTube videos, asking a scoped question about public URLs, or obtaining an independent auxiliary analysis.
codex plugin marketplace add andrewLi1994/gemini-web-bridge --ref main
codex plugin add gemini-web-bridge@gemini-web-bridge
For an existing installation:
codex plugin marketplace upgrade gemini-web-bridge
Start a new Codex thread after installation or upgrade. Ask for the outcome normally, for example:
Compare the claims in these two public YouTube videos and check where their evidence differs: <URL1> <URL2>
Codex decides whether to use one Gemini conversation, several fresh conversations, follow-up prompts, or no Gemini call at all. A local random conversation handle is returned after each successful fresh call; videos and Codex threads do not automatically select or reuse conversations.
Since Gemini Web Bridge is a standard MCP server, you can configure it in other MCP-compatible clients.
Add the following to your configuration file (located at ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"gemini-web-bridge": {
"command": "node",
"args": [
"/absolute/path/to/gemini-web-bridge/plugins/gemini-web-bridge/dist/mcp-server.mjs"
]
}
}
}
Note: Remember to replace /absolute/path/to with the actual path of this project on your system. Completely restart Claude Desktop after editing.
You can configure it via the Cursor settings UI:
gemini-web-bridge, Type to stdio.node "/absolute/path/to/gemini-web-bridge/plugins/gemini-web-bridge/dist/mcp-server.mjs".Normal requests run in a headless background browser. The task page and browser close after success, failure, or cancellation.
~/Library/Application Support/Codex UI Extensions/Gemini Web Bridge/ and is excluded from Git.127.0.0.1.The Bridge reports mechanical states such as login required, CAPTCHA, rate limit, browser disconnect, incomplete generation, unknown submitted outcome, or changed page structure. It never decides that a Gemini answer is semantically good or bad.
Only failures known to occur before submission can be retried automatically once. After the send action is confirmed, the Bridge never blindly resubmits; Codex decides whether to follow up or create a fresh conversation.
Gemini Web is not a stable API. A page redesign can temporarily break automation until selectors are updated, and Gemini's available capabilities can vary by account or request.
The old analyze_youtube MCP tool remains available but is deprecated. Existing video-to-conversation mappings are migrated once into random conversation handles while the old sessions.json is retained as a backup. New work uses gemini_web_ask. The deprecated tool is scheduled for removal in v0.3.
The CLI mirrors the MCP primitives for development and recovery; it is not the normal user interface.
node plugins/gemini-web-bridge/dist/gemini-web-cli.mjs status
node plugins/gemini-web-bridge/dist/gemini-web-cli.mjs authorize --confirmed
node plugins/gemini-web-bridge/dist/gemini-web-cli.mjs login --wait
printf '%s' '{"prompt":"Ask a minimal scoped question"}' | node plugins/gemini-web-bridge/dist/gemini-web-cli.mjs ask
node plugins/gemini-web-bridge/dist/gemini-web-cli.mjs conversations
CLI results are JSON on stdout; progress events are JSON lines on stderr. Exit code 2 means human login/verification is required, 3 means rate limited, 4 means an automation failure, and 5 means invalid input or a missing conversation.
codex plugin remove gemini-web-bridge@gemini-web-bridge
codex plugin marketplace remove gemini-web-bridge
Uninstalling does not delete the dedicated Chrome profile. Remove the runtime directory manually only if you also want to sign out and delete local conversation metadata.
npm ci --prefix plugins/gemini-web-bridge
npm run verify
The MCP server and diagnostic CLI are committed as generated single-file bundles, so marketplace users do not install npm dependencies. After source or dependency changes, run npm run build and commit the updated dist/ files.
Licensed under the MIT License. Report security issues through private vulnerability reporting.
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows