pastebin-ai 📄✨
A pretty CLI for pastebin.ai — share code, logs, and text from your terminal with beautiful output.
✨ Paste created!
──────────────────────────────────────────────────
🔗 https://pastebin.ai/p/abc123
📄 https://pastebin.ai/raw/abc123
⏰ Expires: 2026-11-13T17:30:19Z
🗑️ Delete token: abc123...
Features
- 🎨 Beautiful output — colors, emojis, spinners
- ⚡ Fast — built with Rust, minimal dependencies
- 🔐 Authentication — secure token storage
- 📋 Clipboard integration — copy URLs/content with
-c - 📁 File input —
pastebin-ai create -f main.rs - 📥 Stdin support —
cat file.txt | pastebin-ai create - 🔍 Get pastes — fetch by ID or URL
- 📋 List pastes — see your history (with auth)
- 🗑️ Delete pastes — with token or auth
- 🤫 Quiet mode — just the URL for scripting
Installation
Cargo (recommended)
Binary releases
Download from GitHub Releases.
Build from source
Quick Start
# Create a paste from stdin
|
# Create from a file with syntax highlighting
# Create with options
# Get a paste
# Get raw content only
# List your pastes (requires auth)
# Delete a paste
Commands
| Command | Description |
|---|---|
create |
Create a new paste |
get |
Read a paste by ID |
list |
List your pastes (auth required) |
delete |
Delete a paste |
auth |
Manage authentication |
config |
Show configuration |
Options
Create Options
)
| | )
| | | | | | | | )
| | | | | )
)
Global Options
Authentication
Get your API token from pastebin.ai/settings/api (starts with pba_):
Tokens are stored in ~/.config/pastebin-ai/config.toml.
Examples
# Share a Rust file with syntax highlighting
# Pipe command output
|
# Create a temporary paste (10 minutes)
# Create a password-protected paste
# Burn after read (self-destructing)
# Script-friendly: just the URL
url=
Configuration
Config file: ~/.config/pastebin-ai/config.toml
= { = "pba_..." }
License
MIT OR Apache-2.0