# Terminal Image Paste for Raycast

URL: https://www.raycast.com/iisweetheartii/terminal-image-paste

> Paste a clipboard image as a file path in any terminal, SSH session, tmux or TUI app, for sharing screenshots with CLI tools.

- Install: raycast://extensions/iisweetheartii/terminal-image-paste
- Author: [IISweetHeartII](https://www.raycast.com/iisweetheartii)
- Installs: 162
- Platforms: macOS
- Categories: Developer Tools
- Updated: 2026-11-17
- Source: https://github.com/raycast/extensions/tree/c4e0f79975a011e16032382f2d1263f712f8b43c/extensions/terminal-image-paste/

## Commands

- **Paste Image as Path**: Save clipboard image to /tmp/clip-latest.png and type the path. Works in SSH, tmux, and any TUI.

## README

### Terminal Image Paste

Paste clipboard image as a file path — works in any terminal, SSH session, or TUI app.

#### What it does

1. Saves your clipboard image to `/tmp/clip-<timestamp>.png` (unique per invocation)
2. Types that path into your focused window
3. Optionally syncs the file to remote SSH hosts via `scp`

Perfect for dropping screenshots into terminal apps, tmux sessions, or AI tools over SSH that accept file paths but can't receive clipboard images directly.

#### Usage

Copy any image (screenshot, browser image, etc.), switch to your terminal, then run **Paste Image as Path** from Raycast.

#### Preferences

| Preference           | Description                                                                                                                                          |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Remote SSH Hosts** | Comma-separated SSH hosts to sync the image to (e.g. `myserver`, `user@192.168.1.1`). Uses entries from `~/.ssh/config`. Leave empty for local only. |

#### How remote sync works

Remote sync runs in the background via `scp` with a 3-second connection timeout — it never blocks the paste. If the host is unreachable, the paste still completes locally.

#### Requirements

- macOS
- SSH configured in `~/.ssh/config` for any remote hosts
