Claude Code Nano Banana Plugin
🍌 Advanced AI Image Generation & Manipulation for Claude Code
A comprehensive Claude Code plugin that brings the power of Google's Gemini AI models to generate, edit, and manipulate images directly within your Claude Code workflow.
Features
🎨 Image Generation
- Generate stunning images from text descriptions
- Multiple artistic styles (photorealistic, watercolor, oil painting, etc.)
- Batch generation with style and variation controls
- Customizable output formats and sizing
✏️ Image Editing & Restoration
- Edit existing images with natural language instructions
- Restore and enhance old or damaged photographs
- Intelligent quality improvement and noise reduction
- Style transfers and creative modifications
🎯 Specialized Content Types
- Icons: App icons, favicons, and UI elements
- Patterns: Seamless patterns and textures
- Stories: Multi-step visual narratives and tutorials
- Diagrams: Technical diagrams and flowcharts
🤖 Smart Automation
- Context-aware image generation skills
- Intelligent image editing suggestions
- Automated quality enhancement detection
- Specialized image generation agent
Installation
Prerequisites
- Claude Code (version 0.7.0 or higher)
- Node.js 18+ (for MCP server)
- Google Gemini API key
Setup
-
Install the Plugin
claude plugin install ./claude-nanobanana-plugin
-
Configure API Key
Set one of the following environment variables:
export NANOBANANA_GEMINI_API_KEY="your-gemini-api-key"
# Or alternatively:
export NANOBANANA_GOOGLE_API_KEY="your-google-api-key"
export GEMINI_API_KEY="your-gemini-api-key"
export GOOGLE_API_KEY="your-google-api-key"
-
Build MCP Server
cd claude-nanobanana-plugin/nanobanana/mcp-server
npm install
npm run build
-
Verify Installation
claude plugin list
Usage
Slash Commands
/nanobanana - Natural Language Interface
/nanobanana create a beautiful sunset over mountains
/nanobanana edit my photo to make it look vintage
/nanobanana generate an app icon for a weather app
/generate - Advanced Image Generation
/generate "cyberpunk city street" --count=3 --styles=photorealistic,anime --variations=lighting,angle
/generate "abstract composition" --styles=modern,minimalist --seed=42 --preview
/edit - Image Editing
/edit "photo.jpg" "make it look like a vintage photo"
/edit "portrait.png" "change the eye color to blue" --preview
/restore - Image Restoration
/restore "old-photo.jpg" "remove scratches and enhance colors"
/restore "blurry-image.png" "increase sharpness and clarity"
/remix - Image Remixing
/remix "photo1.jpg" "photo2.jpg" "blend these into a surreal landscape"
/remix "face.png" "style-reference.jpg" "apply the style to the face" --preview
/icon - Icon Generation
/icon "weather app with sun and clouds" --sizes=64,128,256,512 --style=modern
/icon "settings gear" --sizes=16,32,64 --type=ui-element --style=minimal
/pattern - Pattern Creation
/pattern "geometric hexagons" --style=geometric --density=medium --colors=duotone
/pattern "watercolor flowers" --style=floral --type=seamless --preview
/story - Visual Stories
/story "how to plant a tree" --steps=6 --type=tutorial --style=consistent
/story "a hero's journey" --steps=5 --type=story --transition=dramatic
/diagram - Technical Diagrams
/diagram "user registration flow" --type=flowchart --style=professional
/diagram "microservices architecture" --type=architecture --colors=accent
Agent Skills
IMAGE_GENERATOR Skill
Automatically detects when images would enhance your work and generates them proactively.
IMAGE_EDITOR Skill
Intelligently identifies image improvement opportunities and suggests enhancements.
Subagent
nanobanana-specialist
A specialized agent for complex image generation and manipulation tasks.
Configuration
Environment Variables
| Variable | Description | Priority |
|---|
NANOBANANA_GEMINI_API_KEY | Primary Gemini API key | 1 (Highest) |
NANOBANANA_GOOGLE_API_KEY | Primary Google API key | 2 |
GEMINI_API_KEY | Fallback Gemini API key | 3 |
GOOGLE_API_KEY | Fallback Google API key | 4 |
NANOBANANA_MODEL | Model selection (optional) | - |
Model Selection
- Default:
gemini-2.5-flash-image (fast, high quality)
- Professional:
gemini-3-pro-image-preview (enhanced capabilities)
Output Organization
Generated images are automatically saved to:
nanobanana-output/
├── generated_images/
├── edited_images/
├── restored_images/
├── icons/
├── patterns/
├── stories/
└── diagrams/
File Discovery