Skip to main content

Smart cross-platform command clipboard manager — save, tag, search & run shell commands with AI-powered auto-tagging

Project description

cmdclip 📋

A smart, cross-platform command clipboard manager for the terminal. Built by M5 Dev — GPL-3.0


Why cmdclip?

history is short. grep is tedious. pet is Go-only.
cmdclip is Python, works on Linux / macOS / Windows, and has AI built in.


Install

pip install cmdclip

Quick start

# Save a command
cmdclip add "docker ps -a --format '{{.Names}}'" --tags docker,ops --note "list container names"

# List all
cmdclip list

# Search
cmdclip search docker

# Run by ID
cmdclip run a3f9

# Dry-run with AI explanation
cmdclip run a3f9 --dry-run

# AI explain any saved command
cmdclip explain a3f9

# Import from shell history (smart — picks commands used 5+ times)
cmdclip history

# Export / import
cmdclip export --output backup.json
cmdclip import backup.json --safe

# Share as a snippet (copies to clipboard)
cmdclip share a3f9

# Usage stats
cmdclip stats

AI features (Groq)

# Save your Groq API key once
cmdclip config set-key gsk_xxxxxxxxxxxx

# Now add / explain / dry-run all use AI automatically

Get a free key at console.groq.com.


Command templates

Use {variable} or {variable=default} syntax:

cmdclip add "ssh {user}@{host} -p {port=22}" --name ssh-connect
cmdclip run <id>
# Fill in: user? host? port [22]?

Safe mode

Import with --safe to automatically quarantine dangerous commands
(rm -rf, sudo rm, DROP TABLE, etc.) into a separate file.

cmdclip import backup.json --safe

Cross-platform paths

OS Data directory
Linux / macOS ~/.cmdclip/
Windows %LOCALAPPDATA%\cmdclip\

License

GNU General Public License v3.0 — see LICENSE
© M5 Dev

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cmdclip-1.0.1.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cmdclip-1.0.1-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file cmdclip-1.0.1.tar.gz.

File metadata

  • Download URL: cmdclip-1.0.1.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cmdclip-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0c66141e927dfc4874de3f2a00e1a385afd283f8bc8f210b713e83a05b4b689c
MD5 51691521c1ef6bd7b3c60ccfde8a5302
BLAKE2b-256 61343b4da4ce560e2cff572fd5a3d73c1a99997faa662dcae0098f2eda2c2242

See more details on using hashes here.

Provenance

The following attestation bundles were made for cmdclip-1.0.1.tar.gz:

Publisher: python-publish.yml on M5Develop/cmdclip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cmdclip-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: cmdclip-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 24.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cmdclip-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 af0f5baf7e50396a49e404ec6c5a008c2b38f16b78714257670bc1564014253f
MD5 d78c8955974b410c6460cb4bee78be92
BLAKE2b-256 82731f66006f0050bf7fdf7a65deb677c7822a23859f341f0a569f7251b40de8

See more details on using hashes here.

Provenance

The following attestation bundles were made for cmdclip-1.0.1-py3-none-any.whl:

Publisher: python-publish.yml on M5Develop/cmdclip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page