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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c66141e927dfc4874de3f2a00e1a385afd283f8bc8f210b713e83a05b4b689c
|
|
| MD5 |
51691521c1ef6bd7b3c60ccfde8a5302
|
|
| BLAKE2b-256 |
61343b4da4ce560e2cff572fd5a3d73c1a99997faa662dcae0098f2eda2c2242
|
Provenance
The following attestation bundles were made for cmdclip-1.0.1.tar.gz:
Publisher:
python-publish.yml on M5Develop/cmdclip
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cmdclip-1.0.1.tar.gz -
Subject digest:
0c66141e927dfc4874de3f2a00e1a385afd283f8bc8f210b713e83a05b4b689c - Sigstore transparency entry: 1515575006
- Sigstore integration time:
-
Permalink:
M5Develop/cmdclip@c0f3b3a5f85d23e8f3efde7eb9f336d62039cda0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/M5Develop
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@c0f3b3a5f85d23e8f3efde7eb9f336d62039cda0 -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af0f5baf7e50396a49e404ec6c5a008c2b38f16b78714257670bc1564014253f
|
|
| MD5 |
d78c8955974b410c6460cb4bee78be92
|
|
| BLAKE2b-256 |
82731f66006f0050bf7fdf7a65deb677c7822a23859f341f0a569f7251b40de8
|
Provenance
The following attestation bundles were made for cmdclip-1.0.1-py3-none-any.whl:
Publisher:
python-publish.yml on M5Develop/cmdclip
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cmdclip-1.0.1-py3-none-any.whl -
Subject digest:
af0f5baf7e50396a49e404ec6c5a008c2b38f16b78714257670bc1564014253f - Sigstore transparency entry: 1515575129
- Sigstore integration time:
-
Permalink:
M5Develop/cmdclip@c0f3b3a5f85d23e8f3efde7eb9f336d62039cda0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/M5Develop
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@c0f3b3a5f85d23e8f3efde7eb9f336d62039cda0 -
Trigger Event:
workflow_dispatch
-
Statement type: