koppie is a cross-device clipboard sharing CLI. Send text from one device, retrieve it on another with a short code, and optionally copy the result straight to the system clipboard.
npm install -g koppieSend text and get a code back:
koppie send "hello world"Send multiline text interactively:
koppie sendPaste text, then finish input with Ctrl+D.
Retrieve a paste and copy it to the clipboard:
koppie 4829View a paste without copying it:
koppie view 7737Delete a paste:
koppie delete 1234Show help:
koppie --helpkoppie talks to the clipboard API at:
https://api.freecodetools.dev
Override it with:
export KOPPIE_API_URL="https://your-api.example.com"Paste codes are numeric only and always 4 digits long.
Validation regex:
^[0-9]{4}$
Examples:
0007
0042
1234
9999
send supports an optional expiration flag:
koppie send --expire 1h "temporary paste"
koppie send --expire 1d "daily paste"
koppie send --expire 7d "weekly paste"The request body includes the selected expiration value.
koppie send "text"uploads text and prints only the returned code.koppie sendreads multiline input from the terminal.koppie <code>fetches the paste, copies it to the system clipboard when possible, and shows the content if clipboard access fails.koppie view <code>prints the content to the terminal.koppie delete <code>deletes the paste and printsDeleted.
The CLI surfaces friendly messages for common failures, including:
- invalid code
- network errors
- API errors
- clipboard errors
- empty content
Examples:
β Code not found
β Network error
β Clipboard unavailable
β Empty content