Skip to content
tugay0Public

About

Shoot files between your Mac and your VPS — a tiny, zero-dependency CLI (+ macOS menu-bar companion) wrapping ssh + rsync.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Chute — shoot files between your Mac and your VPS

Shoot files between your Mac and your VPS from the terminal — one command, path on your clipboard.
A tiny, zero-dependency CLI wrapper around ssh + rsync, with a macOS menu-bar companion.

CI latest release macOS + Linux zero dependencies MIT

A real chute session: 'chute init' sets up a target, then 'chute push report.pdf' sends the file and copies ~/inbox/report.pdf to the clipboard


Why

Yes, it's ssh + rsync underneath — you could type that yourself. The point is the part rsync doesn't do: the instant your file lands, its remote path is on your clipboard, so you paste it straight into the box's shell (or the agent running there) instead of retyping ~/inbox/whatever.pdf. No flags to remember, no host/path bookkeeping.

$ chute push report.pdf
→ pushing 1 item(s) → remote-box:~/inbox/
✓ sent — remote path copied to clipboard:
  ~/inbox/report.pdf

If you spend your day in a terminal on a VPS, that clipboard round-trip is the whole feature. Everything else — named targets, chute init, folder watch, doctor, the macOS drop-pill — is convenience around it.

Install

Homebrew (macOS / Linux):

brew install tugay0/tap/chute

curl (any Unix):

curl -fsSL https://raw.githubusercontent.com/tugay0/chute/main/install.sh | bash

Go (from source):

go install github.com/tugay0/chute/cmd/chute@latest

Chute shells out to ssh and rsync, which ship with macOS and every Linux box — nothing else to install.

60-second quickstart

1

Point Chute at your box. One-time guided setup — it asks for the host + folder and tests the connection. (The host is an ~/.ssh/config alias or user@host; SSH to it should already work.)

chute init
# or non-interactively:  chute targets add box user@1.2.3.4 '~/inbox/'
2

Shoot a file up. The remote path lands on your clipboard.

chute push screenshot.png
#  ~/inbox/screenshot.png  (copied)
3

Grab one back down.

chute pull logs/app.log --dest ~/tmp
4

Keep a folder in sync while you work.

chute watch ./dist          # auto-mirrors on every change

Run chute doctor any time to check ssh/rsync and test the connection.

Commands

Command What it does
chute init Guided one-time setup: asks for host + folder and tests the connection.
chute push <path>... [--to name] [--dry-run] [--no-copy] Send files/folders up; prints & copies the remote path.
chute pull <remote>... [--from name] [--dest dir] Bring files down (remote paths are relative to the target folder).
chute watch [dir] [--to name] [--interval 2s] [--delete] Mirror a local folder up on change (polling, no extra deps).
chute targets [list | add <name> <host> <folder> | use <name> | rm <name>] Manage send targets.
chute config [show | path | edit] Show config, print its path, or open it in $EDITOR.
chute doctor [--to name] Diagnose ssh/rsync/clipboard and probe the target.
chute version Print the installed version.

How it works

Chute is deliberately boring: every transfer is a plain rsync -az --progress -e ssh you could have typed yourself. There's no daemon, no account, no telemetry.

  • Config lives at ~/.config/chute/config.json (respects XDG_CONFIG_HOME). A target is a name → host:folder. There's no target until you run chute init (or chute targets add) — Chute never ships a placeholder host.
  • Hosts are whatever ssh understands — an alias from ~/.ssh/config or user@host. Chute never touches your keys or agent; it just runs ssh.
  • Clipboard: on success push copies the remote path (via pbcopy, or wl-copy/xclip/xsel on Linux) so you can paste it straight into the box.

Environment overrides

Var Purpose Default
CHUTE_SSH ssh command rsync uses ssh (e.g. ssh -p 2222)
CHUTE_RSYNC_OPTS base rsync flags -az --progress
CHUTE_CONFIG_DIR config directory ~/.config/chute
NO_COLOR disable colored output unset
CHUTE_NO_COLOR same, but Chute-only (leaves other tools colored) unset

Color also switches itself off whenever stdout or stderr isn't a terminal, so piping or redirecting Chute never leaks ANSI escapes into the output.

The menu-bar companion (macOS)

The same idea, hands-free: app/ is a tiny AppKit menu-bar app that lives under your notch. Drag a file onto the pill, hover + ⌘V to paste, or ⌥⌘4 to snip a screen region — it lands on your box and copies the path, using the same transport as the CLI. See app/SPEC.md.

cd app
./sign-setup.sh   # once: a stable self-signed identity so permissions persist
./build.sh        # builds + signs → build/Chute.app
open build/Chute.app

Contributing

Issues and PRs welcome — see CONTRIBUTING.md. The CLI is pure Go standard library, so go build ./... and go test ./... are all you need.

License

MIT © Tugay Alyıldız

About

Shoot files between your Mac and your VPS — a tiny, zero-dependency CLI (+ macOS menu-bar companion) wrapping ssh + rsync.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages