Paste output from Claude Code, Copilot CLI, Cursor, or Gemini CLI — borders, padding, and hard-wrapped lines disappear. One command. Zero config. Runs locally — nothing leaves your machine.
Pick your platform. Copy. Paste. Done.
$ 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.
ai-clean any time you copy from your AI CLI.
The same Go pipeline as the CLI, compiled to WebAssembly. Nothing is uploaded.
Runs locally — as a CLI, or in your browser via WebAssembly. Your text never touches a server.
Detects markdown tables, code fences, and indentation. Strips chrome but keeps structure intact.
No more asking the AI agent to format its last message. Quickly format to paste into notes or share as a message to a coworker.
If ai-clean saved you a few seconds of manual cleanup, a star helps other people find it.