A cross-platform, production-ready desktop productivity app built with Python 3 + PyQt6.
---
| Feature | Description |
|---|---|
| System Tray | Runs silently; right-click for Dashboard, Settings, Quit |
| Action Overlay | Frameless floating tooltip appears at cursor for 5 s on smart content |
| Smart Detection | URLs, YouTube links, Emails, Hex colors, Code, JSON, XML, Currency |
| Inline Calc | Copy calc: 500+250 → clipboard becomes 750 automatically |
| Secure Clipboard | Passwords detected & masked (••••••••), never saved to disk |
| Hex Color Preview | Color swatch shown in overlay and history for #RRGGBB values |
| JSON / XML Format | Copied unformatted JSON/XML is auto-prettified and offered back |
| AI Integration | Summarize / Fix Grammar via OpenAI, Gemini, or built-in mock |
| OCR | Extract text from copied images via pytesseract |
| Network Sync | Sync clipboard across LAN devices (UDP broadcast, HMAC-signed) |
| Global Hotkeys | Ctrl+Shift+V open Dashboard, Ctrl+Shift+X clear history |
| Voice Dictation | Ctrl+Shift+M → speak → clipboard filled |
| Analytics | Daily copy counts, type breakdown, 14-day bar chart |
| 📟 Main Dashboard | ⚙️ Advanced Settings |
|---|---|
![]() |
![]() |
# 1. Clone / extract the project
cd 2cp
# 2. Create a virtual environment (recommended)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
# 3. Install dependencies
pip install -r requirements.txt
# Linux clipboard support (pick one)
sudo apt install xclip # or: sudo apt install xdotool
# OCR support (optional)
sudo apt install tesseract-ocr # macOS: brew install tesseract
# 4. Run
python main.py- Donwnload Installar File: Windows
- Install : Install 2cp.exe file.
All settings are stored in:
- Windows:
%APPDATA%\2CP\config.json - macOS:
~/Library/Application Support/2CP/config.json - Linux:
~/.2cp/config.json
Edit via Settings window (tray → Settings) or directly in the JSON file.
{
"general": {
"overlay_duration": 5000,
"history_limit": 100
},
"features": {
"ai_enabled": false,
"network_sync": false
},
"ai": {
"provider": "mock",
"api_key": "sk-..."
}
}- Open Settings → AI
- Set Provider to
openaiorgemini - Paste your API key
- Enable Features → AI Actions
Without a key, set provider to mock for offline testing.
- Install 2CP on all devices
- Open Settings → Network on each device
- Set the same port and secret key
- Enable Features → Local Network Clipboard Sync
All clipboard data is HMAC-SHA256 signed to prevent spoofing.
| Action | Default Hotkey |
|---|---|
| Open Dashboard | Ctrl+Shift+V |
| Clear History | Ctrl+Shift+X |
| Voice Dictation | Ctrl+Shift+M |
Customisable in Settings → Hotkeys.
| Platform | Status |
|---|---|
| Windows 10/11 | ✅ Full support |
| macOS 12+ | ✅ Full support |
| Linux (X11) | ✅ Requires xclip or xdotool |
| Linux (Wayland) | wl-clipboard |
MIT — Free to use and extend.

