ClipScript is a cross-platform utility that plays through custom scripts line-by-line, copying each to your clipboard and optionally executing commands or prompting for input. Originally created to streamline HSM provisioning via serial consoles, it's useful for anyone who follows procedural scripts or frequently pastes text into remote terminals.
- ⌨️ Copy script lines to clipboard one-by-one
- 🧠 Prompt for and substitute variables
- 🖥️ Execute external processes or shell scripts
- 📝 Log variable values and output to
log.txt - 🔁 Pause after each line for manual advancement
- ⚙️ Cross-platform support (Windows, macOS, Linux)
Pre-built binaries are available in the GitHub Releases.
Alternatively, clone and build using the included build script:
git clone https://github.com/youruser/clipscript.git
cd clipscript
./build.shScripts are plain text files with the following format:
# This is a description and will be printed but not copied
${VAR_NAME} = Prompt to show the user
!notepad C:\Windows\System32\drivers\etc\hosts # Launch an external program
echo Hello $VAR_NAME # This will be copied to clipboard and shown on screen
# Press any key to continue after each line
${Name} = What is your name?
echo Hello $Name
Run ClipScript with a path to your script file:
clipscript myscript.txtFlags:
--version– Display version and build information
- Variables are inserted verbatim with no sanitization—use with caution if sensitive inputs are involved.
- Scripts pause for a keypress between each line to ensure you stay in control of command flow.
ClipScript is built in Go and uses:
All variable values and program output are logged to log.txt.
While not written as a library, the code is open source and can be easily modified for custom workflows.
GPL v3.0
Created with love for engineers who hate repeating themselves.