orbx is a lightweight CLI toolkit for developers - encryption, encoding, network diagnostics and everyday utilities, all from the terminal.
go install github.com/mmilanovic4/orbx@latest$ orbx --help
orbx is a lightweight CLI utility for quick system tasks.
Usage:
orbx [flags]
orbx [command]
🧰 Utilities
aes AES-GCM encryption utilities
base64 Encode or decode base64
charfreq Show character frequency table of input
clearclip Clear system clipboard
compress Compress or decompress input using gzip
convert Convert units: length, weight, temperature, storage, time
copyclip Copy input to system clipboard
countdown Countdown timer (e.g. 1h30m, 5m, 90s)
download Download a file from a URL
entropy Calculate Shannon entropy of input
exif Show EXIF metadata tags of an image
hash Generate hash of a string
hex Encode or decode hex
qr Generate a QR code from text or URL
random Generate a cryptographically secure random string
scrub Remove EXIF and other metadata from an image (lossless)
size Show logical size of a file or directory
text String utilities
watch Repeatedly run a command every N seconds
wc Count lines, words and characters
🌐 Network Tools
cert Show TLS certificate info for a domain or file
dns Resolve DNS records for a domain
headers Show HTTP response status and headers
hosts List entries from /etc/hosts
ip Show public and local IP addresses
ping HTTP latency check (like ping, but for URLs)
rdns Reverse DNS lookup for an IP address
sshlist List configured SSH hosts from ~/.ssh/config
subnet Calculate subnet details (network, broadcast, host range)
tcpcheck Check TCP port connectivity
💻 Developer Tools
color Convert between color formats (HEX, RGB, RGBA)
env Pretty print env file content
favicon Generate favicon.ico and Apple touch icons from a PNG
html Encode or decode HTML entities
jwt Decode a JWT token (header and payload, no verification)
ports Show processes using network ports
prettyprint Format and pretty print JSON or XML
serve Start a static file server in current directory
unixts Unix timestamp utilities
url Decode and parse a URL
uuid Generate a UUID (v1, v3, v4, v5, v6, v7)
Additional Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
Flags:
-h, --help help for orbx
-v, --version version for orbx
Use "orbx [command] --help" for more information about a command.Stdin support is available across most tools, allowing you to pipe input directly instead of passing it as an argument:
echo -n 'lorem ipsum' | orbx hash md5
Note:
clearclipis supported on macOS and Linux (X11) only. On Linux,xclipmust be installed (apt install xclip). Windows is not currently supported.
orbx clearclip# AES-256 (default)
orbx aes key --out secret.key
# AES-128 or AES-192
orbx aes key 16 --out secret.key
orbx aes key 24 --out secret.key
# Encrypt and save to file
orbx aes encrypt 'Hello from the other side!' --key secret.key --out ciphertext.txt
# Decrypt from file
orbx aes decrypt --key secret.key --file ciphertext.txtCalculates the Shannon entropy of an input, expressed in bits per byte.
Note: The input is measured as raw bytes. Pass
--base64to decode it first, e.g. for the output ofaes encrypt— base64 itself only uses 64 symbols, so measured as text it can never get above 6 bits/byte. Decoding is not automatic because plenty of plain text (password,test,1234) is valid base64 too.
# Direct input
orbx entropy 'Hello!'
# Decode base64 first, e.g. ciphertext from aes encrypt
orbx entropy 'SGVsbG8=' --base64
orbx entropy --file ciphertext.txt --base64
# Good entropy
head -c 10000 /dev/urandom | orbx entropy| bits/byte | Meaning |
|---|---|
| ~8.0 | Excellent — output looks random (good ciphertext) |
| 6.0–7.9 | High entropy — likely compressed or encrypted data |
| 3.0–5.9 | Moderate — structured data, natural language |
| < 3.0 | Low — highly repetitive or predictable input |
A well-formed AES-GCM ciphertext should score close to 8.0 bits/byte.
By default, output is base64-encoded for compatibility with other orbx commands (e.g. piping into aes encrypt). Use --raw to write raw gzip bytes, which can be opened with 7-Zip, gunzip, or any standard gzip tool.
Note:
--rawoutput is fully compatible withgzip/gunzipfor single files. Archives created withtar -czf(.tar.gz) are not supported — usetardirectly for directories.
# Compress a string and save to file (base64 output)
orbx compress 'Hello from the other side!' --out compressed.txt
# Compress a file and save output (base64 output)
orbx compress --file largefile.txt --out compressed.txt
# Decompress a base64-compressed file
orbx compress --file compressed.txt --decode
# Compress to a raw .gz file (compatible with 7-Zip, gunzip, etc.)
orbx compress --file largefile.txt --raw --out archive.gz
# Decompress a raw .gz file
orbx compress --file archive.gz --raw --decode
# Compress and decompress via pipeline
cat largefile.txt | orbx compress | orbx compress --decode
# Compress then encrypt
cat largefile.txt | orbx compress | orbx aes encrypt --key secret.key --out out.enc
# Decrypt then decompress
orbx aes decrypt --file out.enc --key secret.key | orbx compress --decodeCalculates the logical (apparent) size of a file or directory — the actual data size, not the disk usage reported by du. Useful for estimating cloud storage costs, transfer sizes and archive sizes before compression.
# Current directory
orbx size
# Specific directory
orbx size /path/to/dir
# Single file
orbx size file.txt
# Glob pattern — size of each file + total
orbx size dist/*.json
# Multiple targets
orbx size file1.txt file2.txt dir/Lists the EXIF metadata of an image as key: value pairs — camera, lens, shooting parameters and GPS location. Supports JPEG, TIFF, PNG and WebP.
# All known tags
orbx exif photo.jpg
# Include tags without a known name
orbx exif photo.jpg --all
# Filter with standard tools
orbx exif photo.jpg | grep GPSSample output:
Make: Canon
Model: Canon EOS R6
Orientation: Rotate 90 CW
ExposureTime: 1/250 s
FNumber: f/2.8
ISO: 400
FocalLength: 50 mm
Flash: fired, auto (0x19)
LensModel: RF24-70mm F2.8 L IS USM
GPSLatitude: 44° 48' 45.00" N
GPSLongitude: 20° 27' 40.32" E
GPSAltitude: 117 m
GPSCoordinates: 44.812500, 20.461200
Removes EXIF, XMP, IPTC, comments and other metadata from an image, as well as anything appended after the image itself (HDR gain maps, Motion Photo videos, vendor trailers), which can carry metadata of its own. Nothing is re-encoded — the JPEG scan data and the PNG/WebP image chunks are copied byte for byte, so there is no quality loss. Supports JPEG, PNG and WebP.
Note: The ICC color profile is kept by default so colors keep rendering the same — pass
--strip-iccto drop it as well. The orientation is kept as well: when a photo is stored sideways and only the EXIF Orientation tag turns it upright (as with most phone photos taken in portrait), the EXIF block is replaced by a minimal one with that single tag, which says nothing about who took the photo or where. HDR gain maps are removed with the rest of the appended data, so an HDR photo shows as its regular (SDR) version. TIFF is not supported, because there the metadata is the structure that points to the image data, and neither are HEIC and AVIF — convert them to JPEG first.
# Writes photo-clean.jpg next to the original
orbx scrub photo.jpg
# Custom output path
orbx scrub photo.jpg --out clean.jpg
# Overwrite an existing output file
orbx scrub photo.jpg --out clean.jpg --force
# Also remove the ICC color profile
orbx scrub photo.jpg --strip-iccSample output:
✓ Removed EXIF except orientation (1.0 KB)
✓ Removed XMP (3.0 KB)
✓ Removed IPTC (126 B)
Saved to photo-clean.jpg (293.8 KB → 289.6 KB)
Generates a QR code from text or a URL. By default it renders directly in the terminal using half-block Unicode characters. Use --out to save a PNG or SVG file instead.
# From argument
orbx qr 'https://example.com'
# From stdin
echo -n 'https://example.com' | orbx qr
# Higher error correction
orbx qr 'https://example.com' --level 4
# Save to PNG
orbx qr 'https://example.com' --out qr.png
# Save to SVG
orbx qr 'https://example.com' --out qr.svgCalculates subnet details from an IPv4/IPv6 address in CIDR notation, or an IPv4 address with a netmask (dotted-decimal or hex).
# CIDR notation
orbx subnet 192.168.1.10/24
# IP + dotted-decimal netmask
orbx subnet 192.168.1.10 255.255.255.0
# IP + hex netmask (e.g. as reported by ifconfig)
orbx subnet 192.168.1.10 0xffffff00
# IPv6
orbx subnet 2001:db8::/64- Go 1.20+