
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@nampham0494/n8n-nodes-gemini-cli
Advanced tools
n8n node for Google Gemini CLI integration with AI-powered coding assistance
Bring the power of Google's Gemini CLI directly into your n8n automation workflows!
Imagine having Google's most advanced AI model analyzing your codebase, writing new features, fixing bugs, generating documentation, and automating your entire development workflow - all within n8n. That's exactly what this node enables.
Create workflows that automatically review pull requests, suggest improvements, and even fix issues before merging using Gemini's advanced code understanding with file system tools.
Connect error monitoring tools to Gemini CLI - automatically diagnose and fix production issues in real-time with AI-powered debugging, shell command execution, and web research capabilities.
Let Gemini analyze complex codebases, suggest optimizations, and identify potential security vulnerabilities with its massive context window and file system access.
Build n8n workflows that can modify and improve themselves using Gemini's multimodal capabilities, file system tools, and MCP server integrations.
Automatically generate and update comprehensive documentation for your codebase, APIs, and processes using Gemini's natural language skills combined with file system and web search tools.
Automate the migration of legacy codebases to modern frameworks with intelligent refactoring powered by Gemini 2.5 Pro and shell command execution.
Transform support tickets into code fixes automatically:
Connect to databases, APIs, and services using MCP servers:
Revolutionary AI Planning Workflow: Instead of immediate execution, you can now generate, edit, and approve detailed execution plans before running them. This provides unprecedented control and collaboration capabilities.
// Generate a plan
{
"operation": "generate_plan",
"prompt": "Create a secure user authentication system with JWT tokens",
"outputFormat": "plan"
}
// Edit the plan
{
"operation": "edit_plan",
"planId": "plan_2024-01-08_abc123",
"editInstructions": "Add rate limiting and password encryption"
}
// Execute approved plan
{
"operation": "execute_plan",
"planId": "plan_2024-01-08_abc123",
"outputFormat": "plan_status"
}
Benefits:
npm install -g @google/gemini-cli
@sirmrmarty/n8n-nodes-gemini-cli
cd ~/.n8n/nodes
npm install @sirmrmarty/n8n-nodes-gemini-cli
# Restart n8n
docker run -it --rm \
-p 5678:5678 \
-e N8N_COMMUNITY_NODE_PACKAGES=@sirmrmarty/n8n-nodes-gemini-cli \
-v ~/.n8n:/home/node/.n8n \
n8nio/n8n
Note: For Docker, you'll need to ensure Gemini CLI is installed inside the container. Consider creating a custom Dockerfile.
📦 NPM Package: @sirmrmarty/n8n-nodes-gemini-cli
Webhook (GitHub Issue) → Gemini CLI → Analyze & Code → Create PR → Notify Team
Automatically implement features or fix bugs when issues are created.
Form Trigger → Gemini CLI → Generate Code → Test → Deploy → Notify
Turn business requirements into production-ready code automatically.
Git Push → Gemini CLI → Analyze Quality → Block/Approve → Generate Report
Enforce coding standards and catch issues before they reach production.
Code Changes → Gemini CLI → Generate Docs → Update Wiki → Notify Stakeholders
Keep documentation always up-to-date with automatic generation.
Error Logs → Gemini CLI → Root Cause Analysis → Create Fix → Test → Deploy
Turn error logs into actionable fixes with context-aware debugging.
Support Ticket → Gemini CLI → Reproduce Issue → Generate Fix → Test → Deploy → Auto-Reply
Transform customer complaints into deployed fixes in minutes with Gemini's problem-solving capabilities.
Query Gemini CLI with natural language prompts and get intelligent, context-aware responses for any development task.
Enable powerful capabilities:
Connect to external systems via Model Context Protocol:
Multiple security modes for different use cases:
Leverage Gemini's understanding of:
Support for Gemini 2.5 Pro's massive 1M token context window - understand entire codebases at once.
Set a working directory and Gemini CLI understands your entire project structure:
Choose between:
Support for both:
{
"operation": "query",
"prompt": "Analyze this codebase and suggest performance improvements",
"projectPath": "/path/to/your/project",
"model": "gemini-2.5-pro",
"outputFormat": "structured"
}
{
"operation": "query",
"prompt": "Fix the authentication issue in the login module and add comprehensive error handling",
"projectPath": "/path/to/your/project",
"model": "gemini-2.5-pro",
"maxTurns": 15,
"timeout": 600,
"toolsConfig": {
"enabledTools": ["filesystem", "shell", "web_search"],
"securityMode": "safe"
},
"additionalOptions": {
"systemPrompt": "Focus on security best practices and user experience"
}
}
{
"operation": "query",
"prompt": "Customer reports: 'The app crashes when uploading large files'\n\nAnalyze this issue, find the root cause, and implement a fix",
"projectPath": "/path/to/mobile-app",
"model": "gemini-2.5-pro",
"toolsConfig": {
"enabledTools": ["filesystem", "shell"],
"securityMode": "safe"
},
"mcpServers": {
"servers": [{
"name": "github-server",
"connectionType": "command",
"command": "npx @modelcontextprotocol/server-github",
"env": "GITHUB_PERSONAL_ACCESS_TOKEN=your_token",
"includeTools": "read_file,create_issue"
}]
}
}
{
"operation": "query",
"prompt": "Refactor the entire user authentication system and update all related tests",
"projectPath": "/path/to/trusted/project",
"model": "gemini-2.5-pro",
"toolsConfig": {
"enabledTools": ["filesystem", "shell"],
"securityMode": "yolo",
"checkpointing": true
}
}
Schedule Trigger (Daily)
↓
Gemini CLI (Analyze codebase for improvements)
↓
Create GitHub Issues
↓
Assign to Team
Slack Command
↓
Gemini CLI (Generate code from description)
↓
Run Tests
↓
Create Pull Request
↓
Auto-merge if tests pass
Error Webhook
↓
Gemini CLI (Analyze & diagnose issue)
↓
If (Can fix automatically)
├─ Yes: Implement Fix → Test → Deploy
└─ No: Create Detailed Issue → Notify Team
Make sure Gemini CLI is installed and configured on your n8n server:
gemini --version # Should show the version
Recommended Method: Provide the API key directly in the n8n interface when configuring the Gemini CLI node. This is the most secure approach as it:
Simply enter your Gemini API key in the node's Additional Options → API Key field when setting up your workflow.
Alternative Method: Set environment variables (less secure):
# For Gemini API
export GEMINI_API_KEY="your-api-key-here"
# For Vertex AI (optional)
export GOOGLE_API_KEY="your-vertex-ai-key"
export GOOGLE_GENAI_USE_VERTEXAI=true
Traditional Execution:
/path/to/your/project
Planning Mode Workflow:
Always set a project path for better understanding and results:
/home/user/projects/my-app
Use "Continue" operation to build complex multi-step workflows while maintaining conversation context.
Configure which tools Gemini CLI can use:
Configure external MCP (Model Context Protocol) servers for extended functionality:
{
"name": "github-server",
"connectionType": "command",
"command": "npx @modelcontextprotocol/server-github",
"env": "GITHUB_PERSONAL_ACCESS_TOKEN=your_token",
"trust": false,
"includeTools": "read_file,list_files,create_issue"
}
{
"name": "api-server",
"connectionType": "http",
"httpUrl": "http://localhost:3000/sse",
"timeout": 30000,
"excludeTools": "delete_database,format_disk"
}
We're constantly improving! Upcoming features:
MIT - Build amazing things with Google's most advanced AI!
Ready to revolutionize your development workflow with Google's Gemini AI? Install Gemini CLI for n8n today and experience the future of AI-powered automation!
Built and maintained by sirmrmarty
FAQs
n8n node for Google Gemini CLI integration with AI-powered coding assistance
We found that @nampham0494/n8n-nodes-gemini-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.