Package Information
Released: 2 mo ago
Downloads: 0 weekly / 0 monthly
Latest Version: 1.7.0
Available Nodes
Documentation generating…
Documentation
n8n-nodes-gemini-web
An n8n community node for Google Gemini Web API using browser cookies — no API key required.
This node reverse-engineers the Gemini web interface to send prompts and receive responses, using your browser cookies for authentication. It works similarly to the gemini-web-to-api project but as a native n8n node.
Features
- No API Key Required — Uses your Google browser cookies for authentication
- Multiple Models — Supports Gemini 3 Pro, Flash, Thinking, Plus, and Advanced models
- Multi-turn Chat — Continue conversations using metadata from previous responses
- Gemini Gems Support — List, create, update, delete, and use Gems as system prompts
- Temporary Mode — Send messages without saving to Gemini history
- Full Cookie JSON Support — Paste the entire cookie array exported from your browser
- Proxy Support — Route requests through HTTP/HTTPS/SOCKS proxies
Installation
In n8n (Community Nodes)
- Go to Settings > Community Nodes
- Select Install a community node
- Enter
n8n-nodes-gemini-webas the npm package name - Click Install
Manual Installation
For self-hosted n8n installations:
# Navigate to your n8n custom nodes directory
cd ~/.n8n/custom
# Install the package
npm install n8n-nodes-gemini-web
Restart n8n after installation.
Getting Your Google Cookies
Method 1: Full Cookie Export (Recommended)
- Install a browser cookie export extension (e.g., Cookie-Editor or EditThisCookie)
- Go to gemini.google.com and log in
- Click the cookie extension icon and export all cookies as JSON
- In n8n, create a Gemini Web API credential
- Select Full Cookie JSON as the authentication mode
- Paste the exported cookie array into the Cookie JSON field
Method 2: Individual Cookies
- Go to gemini.google.com and log in
- Open DevTools (F12) → Application → Cookies →
https://gemini.google.com - Copy the value of
__Secure-1PSID - Optionally copy
__Secure-1PSIDTS - In n8n, create a Gemini Web API credential
- Select Individual Cookies as the authentication mode
- Paste the cookie values
Usage
Generate Content
Send a single prompt to Gemini:
- Add the Gemini Web node to your workflow
- Select Generate Content as the operation
- Choose a model (or use Default)
- Enter your prompt
- Execute
Chat (Multi-turn)
Continue a conversation:
- Use Generate Content first to start a conversation
- Set Response Format to Full Response
- In the output, you'll find a
metadatafield — copy it - Add another Gemini Web node, select Chat operation
- Paste the metadata JSON into Conversation Metadata
- Enter your follow-up prompt
Using Gems (System Prompts)
Gems are custom AI assistants with predefined system prompts. You can use them to give Gemini specific personalities or instructions.
List Available Gems
- Select List Gems as the operation
- Optionally enable Include Hidden Gems to see predefined system Gems
- Execute — returns a list of all Gems with their IDs, names, descriptions, and prompts
Use a Gem in Conversation
- First, run List Gems to get the Gem ID you want to use
- Select Generate Content or Chat as the operation
- Enter the Gem ID in the Gem ID field
- Enter your prompt and execute — Gemini will respond using the Gem's system prompt
Create a Custom Gem
- Select Create Gem as the operation
- Enter a Gem Name (e.g., "Python Tutor")
- Enter the Gem System Prompt (e.g., "You are a helpful Python programming tutor")
- Optionally enter a Gem Description
- Execute — returns the created Gem with its ID
Update a Gem
- Select Update Gem as the operation
- Enter the Gem ID to Update/Delete
- Provide the new name, system prompt, and description
- Execute
Delete a Gem
- Select Delete Gem as the operation
- Enter the Gem ID to Update/Delete
- Execute
Available Models
| Model | Description | Tier |
|---|---|---|
| Gemini 3 Pro | Most capable general model | Basic |
| Gemini 3 Flash | Fast and capable | Basic |
| Gemini 3 Flash Thinking | Extended reasoning with thinking | Basic |
| Gemini 3 Pro Plus | Enhanced Pro with higher limits | Plus |
| Gemini 3 Flash Plus | Enhanced Flash with higher limits | Plus |
| Gemini 3 Flash Thinking Plus | Extended reasoning with higher limits | Plus |
| Gemini 3 Pro Advanced | Top-tier Pro model | Advanced |
| Gemini 3 Flash Advanced | Top-tier Flash model | Advanced |
| Gemini 3 Flash Thinking Advanced | Top-tier thinking model | Advanced |
Note: Plus and Advanced tier models require a Google One AI Premium subscription or equivalent.
Important Notes
- Cookie Expiration: Google cookies expire periodically. If you get authentication errors, re-export your cookies.
- Rate Limits: Gemini web has rate limits. Excessive requests may temporarily block your IP.
- Terms of Service: This project uses reverse engineering to access Gemini's web interface. This may violate Google's Terms of Service. Use at your own risk.
- Privacy: Your cookies provide full access to your Google account. Never share them.
License
MIT