hacker news Hacker News
  1. new
  2. show
  3. ask
  4. jobs
Running Claude Code on a remote server via SSH means Ctrl+V image paste doesn't work — xclip reads the server's clipboard, not your local Mac's.

  cc-clip fixes this with a transparent bridge:

    Local Mac clipboard → HTTP daemon → SSH tunnel → xclip shim → Claude Code

  A local daemon serves your clipboard over loopback. SSH RemoteForward tunnels it to the
  remote. A bash shim intercepts exactly the two xclip calls Claude Code makes and fetches
  images through the tunnel. Everything else passes through to real xclip.

    cc-clip setup myserver

  One command: installs deps, configures SSH, starts daemon, deploys to remote.

  Security: loopback-only, session-scoped token (12h TTL), token via stdin not args.

  macOS → Linux (amd64/arm64). v0.2.0 just released. Looking for feedback on different
  distros, Wayland setups, and edge cases.

  https://github.com/ShunmeiCho/cc-clip

  ---
  3. X/Twitter

  I built cc-clip — paste images into remote Claude Code over SSH, as if it were local.

  Local clipboard → SSH tunnel → xclip shim → Claude Code

  One command setup:
  $ cc-clip setup myserver

  No changes to Claude Code. Works with any terminal.

  Looking for feedback & bug reports 

  github.com/ShunmeiCho/cc-clip

  #ClaudeCode #SSH #DevTools

loading...