Skip to content
/ ptero Public

A small cli utility in golang to redact secrets from items on my clipboard before pasting to an LLM. Great for removing AWS Access Keys, Secrets, ARNs, or UUIDs before pasting it to Claude πŸ‡«πŸ‡·πŸ‘¨β€πŸŽ¨πŸšΆβ€β™‚οΈπŸš¬πŸ‘€πŸ₯–πŸ€€πŸš¬πŸ˜ŒπŸ₯–πŸ˜‹πŸš¬πŸ·πŸ‘¨β€πŸŽ¨πŸ‡«πŸ‡·.

Notifications You must be signed in to change notification settings

jlgore/ptero

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Ptero

Ptero is a CLI utility that takes clipboard contents and redacts sensitive data like API keys, passwords, tokens, emails, and more.

Features

  • Reads from clipboard
  • Detects and redacts sensitive information:
    • Emails
    • API Keys
    • Passwords
    • Tokens (JWT, Bearer)
    • Credit Card Numbers
    • Phone Numbers
    • IP Addresses
    • UUIDs
    • AWS Account IDs
    • AWS ARNs
    • AWS Access Keys (AKIA/ASIA)
    • AWS Secret Access Keys
  • Outputs redacted content to console or back to clipboard

Installation

Using Go

go install github.com/jlgore/ptero@latest

Binary Releases

Download the latest binary for your platform from the Releases page.

Docker

docker run --rm ghcr.io/jlgore/ptero:latest

Usage

Copy some text containing sensitive information to your clipboard, then run:

ptero

This will display the redacted content in your terminal.

Options

  • -w, --write: Write the redacted content back to the clipboard
  • -p, --print: Print the redacted content to the console (default if no flags are specified)

Example:

# Read from clipboard, redact, write back to clipboard
ptero -w

# Read from clipboard, redact, print to console
ptero -p

# Read from clipboard, redact, write back to clipboard and print to console
ptero -w -p

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

About

A small cli utility in golang to redact secrets from items on my clipboard before pasting to an LLM. Great for removing AWS Access Keys, Secrets, ARNs, or UUIDs before pasting it to Claude πŸ‡«πŸ‡·πŸ‘¨β€πŸŽ¨πŸšΆβ€β™‚οΈπŸš¬πŸ‘€πŸ₯–πŸ€€πŸš¬πŸ˜ŒπŸ₯–πŸ˜‹πŸš¬πŸ·πŸ‘¨β€πŸŽ¨πŸ‡«πŸ‡·.

Resources

Stars

Watchers

Forks

Packages