{"id":13994726,"url":"https://github.com/nikvdp/pbproxy","last_synced_at":"2026-01-12T14:45:46.666Z","repository":{"id":71002305,"uuid":"582920952","full_name":"nikvdp/pbproxy","owner":"nikvdp","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-30T15:34:02.000Z","size":20,"stargazers_count":254,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-29T16:39:26.251Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nikvdp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"ko_fi":"arghzero","github":"nikvdp"}},"created_at":"2022-12-28T08:36:19.000Z","updated_at":"2024-11-22T23:07:28.000Z","dependencies_parsed_at":"2024-01-07T21:02:18.842Z","dependency_job_id":"6eede981-4556-4cc2-b4ac-729fe7ba44c5","html_url":"https://github.com/nikvdp/pbproxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nikvdp/pbproxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikvdp%2Fpbproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikvdp%2Fpbproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikvdp%2Fpbproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikvdp%2Fpbproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikvdp","download_url":"https://codeload.github.com/nikvdp/pbproxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikvdp%2Fpbproxy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266567147,"owners_count":23949296,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-08-09T14:03:04.257Z","updated_at":"2026-01-12T14:45:46.604Z","avatar_url":"https://github.com/nikvdp.png","language":"Shell","funding_links":["https://ko-fi.com/arghzero","https://github.com/sponsors/nikvdp"],"categories":["Shell","\u003ca name=\"copy-paste\"\u003e\u003c/a\u003eCopy/paste and clipboard"],"sub_categories":[],"readme":"# pbproxy - send your clipboard anywhere you can ssh to\n\n**TL;DR:** `pbcopy` and `pbpaste` from any (mac or linux) machine you can ssh to\n\nThis is a simple tool to make it easy to interact with clipboards on remote\nmachines. The \"ui\" mimics macOS's `pbcopy` and `pbpaste` commands using the\noriginal `pbcopy` and `pbpaste` on macOS, and wrapping `xsel` on Linux boxes.\nOn linux boxes where xsel is not available (eg headless servers that don't have\nX) it falls back to storing clipboard contents in a temp file\n\nIn other words, you can `pbcopy` and `pbpaste` from any remote machines you\nhave ssh access to. The special sauce is that you can put a server name from\nyour ssh config on the end of a pbcopy or pbpaste command so you can do stuff\nlike run `echo hello | pbcopy server2` on server1, after which doing `pbpaste`\nfrom server2 would print 'hello'. You can also do this in the other direction\nwith pbpaste, eg from server2 you can run `pbpaste server1` and it'll print out\nthe contents of server1's clipboard.\n\n## Prereqs:\n\nFor best results:\n\n- make sure you have `pbproxy` installed at `~/.pbproxy` on all machines you'll\nbe copying/pasting to/from.\n- **make sure you have key-based ssh authentication set up** (otherwise you'll\n  have to enter your password each time you copy or paste)\n\n## Usage:\n\n- Print the contents of another machine's clipboard to your local machine's stdout:\n  ```\n  pbpaste \u003csome-server\u003e\n  ```\n- Insert data into another machine's clipboard:\n\n  ```\n  echo hello there | pbcopy \u003csome-server\u003e\n  ```\n\n  You can also use this to send the contents of your current machine's\n  clipboard to another machine:\n\n  ```\n  pbpaste | pbcopy \u003csome-server\u003e\n  ```\n\n- Print the contents of your local clipboard to stdout: `pbpaste`\n- Insert data into your local clipboard: `echo some data | pbcopy`\n\n**NOTE**: This tool works the same way regardless of whether it's running on a\nmacOS or a linux machine. On macs it wraps the native pbcopy and pbaste commands,\nand on linux it uses `xsel` or a temp file\n\n## Installation\n\n- Clone this repo to your local machine\n- Add the folder you cloned it to to your `PATH` through your\n  `~/.bashrc`/`~/.zshrc` files (**NOTE**: on macOS, make sure it comes BEFORE\n  `/usr/bin` on your PATH, otherwise the native `pbcopy` and `pbpaste` will\n  take precedence)\n- restart your shell (or on zsh do `hash -r`) and try it out.\n\nFor the lazy (read: efficient), copy/pasting this quick and dirty shell snippet should get the job done:\n\n```bash\ngit clone https://github.com/nikvdp/pbproxy ~/.pbproxy\nps | grep $$ | grep -q zsh \u0026\u0026 echo 'export PATH=\"$HOME/.pbproxy:$PATH\"' | tee -a ~/.zshrc\nps | grep $$ | grep -q bash \u0026\u0026 echo 'export PATH=\"$HOME/.pbproxy:$PATH\"' | tee -a ~/.bashrc\nexport PATH=\"$HOME/.pbproxy:$PATH\"\nhash -r\n```\n\n## Alternatives\n\nIf you know of any other tools in this space feel free to open a PR to include them here!\n\n- [marcopaganini/clipsync](https://github.com/marcopaganini/clipsync) - conceptually similar, but runs as a background daemon. Unlike pbproxy, this means it can sync automatically in realtime over the cloud, whereas pbproxy only connects to other clipboards on demand. Linux only for now though.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikvdp%2Fpbproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikvdp%2Fpbproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikvdp%2Fpbproxy/lists"}