ai-clean — clean AI CLI output in the browser

1 min read Original article ↗
$ brew install TheAndruu/tap/ai-clean
# Includes shell completions for bash, zsh, and fish.
$ curl -fsSL https://github.com/TheAndruu/ai-clean/releases/latest/download/ai-clean_darwin_arm64.tar.gz | sudo tar -xz -C /usr/local/bin ai-clean
# Apple Silicon. Use _darwin_amd64 for Intel Macs.
$ curl -fsSL https://github.com/TheAndruu/ai-clean/releases/latest/download/ai-clean_linux_amd64.tar.gz | sudo tar -xz -C /usr/local/bin ai-clean
# Also need a clipboard helper: apt install xclip  (or wl-clipboard on Wayland).
$ go install github.com/TheAndruu/ai-clean@latest
# Requires Go 1.22+. Binary lands in $(go env GOPATH)/bin.

Then run ai-clean any time you copy from your AI CLI.