{"id":36212369,"url":"https://github.com/melon-hub/claude-code-image-paste-wsl","last_synced_at":"2026-01-13T21:59:55.291Z","repository":{"id":331757145,"uuid":"1126996363","full_name":"melon-hub/claude-code-image-paste-wsl","owner":"melon-hub","description":"Paste clipboard images into VS Code/Cursor terminal for Claude Code. WSL optimized.","archived":false,"fork":false,"pushed_at":"2026-01-03T02:20:35.000Z","size":269,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-11T10:09:55.632Z","etag":null,"topics":["claude","claude-code","clipboard","image-paste","screenshot","screenshot-tool","terminal","vs-code-extenstion","vscode-extension","windows","wsl"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/melon-hub.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-03T00:50:44.000Z","updated_at":"2026-01-03T02:20:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/melon-hub/claude-code-image-paste-wsl","commit_stats":null,"previous_names":["melon-hub/claude-code-image-paste-wsl"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/melon-hub/claude-code-image-paste-wsl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melon-hub%2Fclaude-code-image-paste-wsl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melon-hub%2Fclaude-code-image-paste-wsl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melon-hub%2Fclaude-code-image-paste-wsl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melon-hub%2Fclaude-code-image-paste-wsl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/melon-hub","download_url":"https://codeload.github.com/melon-hub/claude-code-image-paste-wsl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melon-hub%2Fclaude-code-image-paste-wsl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28400397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude","claude-code","clipboard","image-paste","screenshot","screenshot-tool","terminal","vs-code-extenstion","vscode-extension","windows","wsl"],"created_at":"2026-01-11T04:03:58.744Z","updated_at":"2026-01-13T21:59:55.285Z","avatar_url":"https://github.com/melon-hub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Claude Code Image Paste (WSL)\n\nPaste images from clipboard into terminals for Claude Code conversations. Optimized for Windows \u0026 WSL environments.\n\n**Works with all VS Code-based IDEs**: VS Code, Cursor, Windsurf, VSCodium, and other forks.\n\n**Based on [agg4code/claude-image-paste](https://github.com/aggroot/claude-image-paste)** - enhanced with WSL path handling, auto-save to project directory, and automatic cleanup.\n\n## ✨ Features\n\n- 📋 **Clipboard Images**: Paste screenshots directly from your clipboard\n- 📁 **File Support**: Copy image files from Explorer and paste their paths\n- 🖼️ **Multiple Formats**: PNG, JPG, JPEG, GIF, BMP, WebP, SVG, ICO, TIFF\n- 🔄 **WSL Path Conversion**: Automatically converts paths for WSL terminals\n- 📂 **Auto-Save to Project**: Save images to your project directory instead of temp\n- 🧹 **Auto-Cleanup**: Keeps only the last N images to prevent folder bloat\n- 🤖 **@ Prefix**: Automatically adds `@` prefix for Claude Code file imports\n- 📝 **Auto-Gitignore**: Automatically adds save directory to `.gitignore`\n- ✏️ **File Renaming**: Optional rename dialog for custom filenames\n- 📅 **Smart Naming**: Auto-generates timestamped filenames with configurable prefix\n\n## 🚀 Installation\n\n### VS Code / VSCodium\nInstall from the marketplace:\n```\next install melon-hub.claude-code-image-paste-wsl\n```\n\nOr search \"Claude Code Image Paste WSL\" in the Extensions panel.\n\n### Cursor / Windsurf / Other Forks\nThese IDEs don't always sync with the VS Code Marketplace. Install manually:\n\n1. Download the latest `.vsix` from [Releases](https://github.com/melon-hub/claude-code-image-paste-wsl/releases)\n2. `Ctrl+Shift+P` → \"Install from VSIX...\"\n3. Select the downloaded file\n4. Restart the IDE\n\n## 📖 Usage\n\n1. **Copy an image**:\n   - Take a screenshot (`Win+Shift+S`, `PrintScreen`, etc.)\n   - OR copy an image file from File Explorer\n   - OR right-click an image in browser → Copy image\n\n2. **With your terminal open**, press:\n   ```\n   Ctrl+Alt+V\n   ```\n\n3. **The image path is inserted** with `@` prefix, ready for Claude Code!\n\n\u003e **Note**: The keyboard shortcut requires a terminal to be open. The command palette (`Ctrl+Shift+P` → \"Paste Image for Claude\") is available but will shift focus away from the terminal.\n\n## ⚙️ Settings\n\nConfigure in VS Code Settings (`Ctrl+,`) → search \"Claude Image Paste\":\n\n| Setting | Default | Description |\n|---------|---------|-------------|\n| `saveDirectory` | `\"\"` | Where to save images (see below) |\n| `skipRenamePrompt` | `false` | Skip the file rename dialog |\n| `maxImages` | `10` | Max images to keep in directory (oldest auto-deleted) |\n| `filenamePrefix` | `img_` | Prefix for auto-generated filenames |\n\n### 📅 Filename Format\n\nImages are automatically named with a timestamp:\n\n```\nimg_20250103_143052.png\n│   │        │\n│   │        └── Time: 14:30:52 (HHMMSS)\n│   └─────────── Date: 2025-01-03 (YYYYMMDD)\n└────────────────Prefix (configurable)\n```\n\nThis ensures filenames are **unique** and **sort chronologically** in file explorers.\n\n### 📂 How `saveDirectory` Works\n\n| Value | Behavior | Example Result |\n|-------|----------|----------------|\n| `\"\"` (empty) | Uses system temp folder | `C:\\Users\\You\\AppData\\Local\\Temp\\img_20250103_120000.png` |\n| `.claude-images` | Relative to **current workspace root** | `[workspace]/.claude-images/img_20250103_120000.png` |\n| `screenshots` | Relative to **current workspace root** | `[workspace]/screenshots/img_20250103_120000.png` |\n| `~/Pictures` | Expands `~` to home directory | `/home/you/Pictures/img_20250103_120000.png` |\n| `/absolute/path` | Uses exact path | `/absolute/path/img_20250103_120000.png` |\n\n**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/`.\n\nThe folder is **automatically created** if it doesn't exist, and **automatically added to `.gitignore`**.\n\n### 💡 Recommended Setup\n\nAdd to your VS Code/Cursor `settings.json`:\n\n```json\n{\n  \"claudeImagePaste.saveDirectory\": \".claude-images\",\n  \"claudeImagePaste.skipRenamePrompt\": true,\n  \"claudeImagePaste.maxImages\": 10\n}\n```\n\nThis configuration:\n- ✅ Saves images to `.claude-images/` in your project root\n- ✅ Skips the rename prompt for faster workflow\n- ✅ Auto-deletes old images, keeping only the last 10\n\n## 🛠️ Requirements\n\n- **Windows 10/11** with **WSL2** (or native Windows)\n- **PowerShell** (comes with Windows)\n- **VS Code 1.74.0+** or any VS Code-based IDE (Cursor, Windsurf, VSCodium, etc.)\n\n## 🐛 Troubleshooting\n\n**\"No active terminal found\"**\n- Open a terminal first (`` Ctrl+` ``)\n- Make sure at least one terminal exists in VS Code/Cursor\n\n**\"No image in clipboard\"**\n- Ensure you copied an image (not just selected it)\n- Try copying again - some apps don't copy to clipboard correctly\n\n**\"Failed to move file to custom directory\"**\n- Check the directory path is valid\n- Ensure you have write permissions\n- Try using an absolute path instead of relative\n\n**Keyboard shortcut doesn't work**\n- Ensure a terminal is open (doesn't need to be focused)\n- Check for conflicts: `Ctrl+K Ctrl+S` → search \"Paste Image\"\n- Try reassigning to a different shortcut\n\n**Extension not updating**\n- Fully close and reopen VS Code/Cursor (reload window may not be enough)\n\n## 💡 Contributing\n\nHave an idea or found a bug? Contributions welcome!\n\n- **Bug reports**: [Open an issue](https://github.com/melon-hub/claude-code-image-paste-wsl/issues/new?template=bug_report.md)\n- **Feature requests**: [Open an issue](https://github.com/melon-hub/claude-code-image-paste-wsl/issues/new?template=feature_request.md)\n- **Pull requests**: Fork, make changes, submit a PR\n\n## 👥 Credits\n\n- **Original Extension**: [claude-image-paste](https://github.com/aggroot/claude-image-paste) by [agg](https://github.com/aggroot)\n- **WSL Fork**: [melon-hub](https://github.com/melon-hub)\n\n## 📝 License\n\nMIT License - see [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelon-hub%2Fclaude-code-image-paste-wsl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmelon-hub%2Fclaude-code-image-paste-wsl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelon-hub%2Fclaude-code-image-paste-wsl/lists"}