Claude Code Image Paste (WSL)A VS Code/Cursor extension for pasting images into terminals for Claude Code conversations. Optimized for Windows & WSL environments. Based on agg4code/claude-image-paste - enhanced with WSL path handling, auto-save to project directory, and automatic cleanup. ✨ Features
🚀 InstallationVS Code Marketplace
Manual Installation
📖 Usage
⚙️ SettingsConfigure in VS Code Settings (
📅 Filename FormatImages are automatically named with a timestamp:
This ensures filenames are unique and sort chronologically in file explorers. 📂 How
|
| Value | Behavior | Example Result |
|---|---|---|
"" (empty) |
Uses system temp folder | C:\Users\You\AppData\Local\Temp\img_20250103_120000.png |
.claude-images |
Relative to current workspace root | [workspace]/.claude-images/img_20250103_120000.png |
screenshots |
Relative to current workspace root | [workspace]/screenshots/img_20250103_120000.png |
~/Pictures |
Expands ~ to home directory |
/home/you/Pictures/img_20250103_120000.png |
/absolute/path |
Uses exact path | /absolute/path/img_20250103_120000.png |
Key point: Relative paths (like .claude-images) are resolved from whatever folder you have open in VS Code/Cursor. So if you open /home/user/my-project, images save to /home/user/my-project/.claude-images/.
The folder is automatically created if it doesn't exist, and automatically added to .gitignore.
💡 Recommended Setup
Add to your VS Code/Cursor settings.json:
{
"claudeImagePaste.saveDirectory": ".claude-images",
"claudeImagePaste.skipRenamePrompt": true,
"claudeImagePaste.maxImages": 10
}
This configuration:
- ✅ Saves images to
.claude-images/in your project root - ✅ Skips the rename prompt for faster workflow
- ✅ Auto-deletes old images, keeping only the last 10
🛠️ Requirements
- Windows 10/11 with WSL2 (or native Windows)
- PowerShell (comes with Windows)
- VS Code 1.74.0+ or Cursor
🐛 Troubleshooting
"No active terminal found"
- Open a terminal first (
Ctrl+`) - Make sure at least one terminal exists in VS Code/Cursor
"No image in clipboard"
- Ensure you copied an image (not just selected it)
- Try copying again - some apps don't copy to clipboard correctly
"Failed to move file to custom directory"
- Check the directory path is valid
- Ensure you have write permissions
- Try using an absolute path instead of relative
Keyboard shortcut doesn't work
- Ensure a terminal is open (doesn't need to be focused)
- Check for conflicts:
Ctrl+K Ctrl+S→ search "Paste Image" - Try reassigning to a different shortcut
Extension not updating
- Fully close and reopen VS Code/Cursor (reload window may not be enough)
👥 Credits
- Original Extension: claude-image-paste by agg
- WSL Fork: melon-hub
📝 License
MIT License - see LICENSE