PastePath is a macOS helper that turns image paste into a terminal-friendly file reference.
When you press cmd+v with an image on the clipboard, PastePath saves the image into a copied/ folder inside the active workspace and types back:
reference to the image is at /absolute/path/to/copied/image.png
- Open this folder:
cd "/Users/rohan/Documents/New project/pastepath"- Build the app:
./build-pastepath.sh- Copy the app into
/Applications:
cp -R "./macos-paste-helper/dist/PastePath.app" /Applications/PastePath.app-
Open
PastePath.appfrom/Applications. -
In macOS, enable:
System Settings -> Privacy & Security -> Accessibility -> PastePath
- Create the log file and watch it:
touch ~/Library/Logs/PastePath.log
tail -f ~/Library/Logs/PastePath.log-
Focus a supported terminal-style input.
-
Copy an image.
-
Press
cmd+v.
- Best supported: Terminal and iTerm2
- Experimental: VS Code-hosted terminal / Codex TUI detection
- The regular Codex GUI chat input is not the main target