Description
oneshot is a command-line tool for moving files between your terminal and any web browser. It runs a single-fire, first-come-first-served HTTP server, so the first person who connects gets the file. You can send or receive files, from stdin or to stdout, and any HTTP client works, including browsers, so only one person needs oneshot installed. It can run external executables to process and answer requests, act as a reverse proxy or redirect requests, and get through NAT with UPnP-IGD, STUN and TURN. A discovery and signalling server can be self-hosted for cloud use. Output is machine-readable for pipelines, and HTTP responses and upload clients can be configured. Passwords are supported with the -W option, and HTTPS works with the --tls-key and --tls-cert flags. You can install it from a downloaded binary, with Homebrew, with go get, or from source. Some Linux users can use .deb and .rpm packages from the release page, and Windows has a zip download there.…
Highlights
- Single-fire server that answers the first request
- Send and receive files from stdin or stdout
- Works with any browser or HTTP client
- NAT traversal with UPnP-IGD, STUN and TURN
- Password protection and HTTPS support
Ratings & Reviews
No ratings yet
Be the first to rate Oneshot.
People also visit
copyparty
Portable file server with accelerated resumable uploads, deduplication, WebDAV
Oneshot FAQ
What is oneshot?
A command-line tool that serves one file or receives one upload over HTTP, for moving files between a terminal and a browser.
How does the other person get the file?
They open the computer's IP address in a browser, which starts the download. Any browser or HTTP client can connect.
Can I protect a transfer?
Yes. The -W option prompts for a password, and --tls-key and --tls-cert enable HTTPS.
How do I install it?
Download a binary, use Homebrew or go get, or build from source. Windows users download the zip from the release page.
Is it open source?
Yes. The code is public on GitHub at forestnode-io/oneshot.
What are the best Oneshot alternatives?
Popular alternatives to Oneshot include AirPipe, Qrserv and mikochi. See all Oneshot alternatives


