A lightweight local prompt management software based on Python, enabling AI text processing from anywhere through global hotkeys
Prompt Manager is a local AI tool designed to enhance text processing efficiency. Users can select text in any application, trigger AI model processing through preset global hotkeys, and output results in real-time to the current cursor position. No need to switch applications or manually copy-paste, achieving a truly seamless AI collaboration experience.
- Global Hotkeys:
Ctrl+Shift+1/2one-click trigger, supports arbitrary custom key combinations - Smart Text Selection: Automatically captures currently selected text content
- Real-time Output: AI responses stream character by character to cursor position
- Zero Switching: No need to leave the current application, maintaining workflow continuity
- Local Processing: All processing done locally, protecting privacy and security
- Flexible Templates: Uses Markdown format prompt templates with variable substitution support
Watch these animated demonstrations to see Prompt GO in action:
- Python: 3.8 or higher
- Operating System: macOS 10.14+, Windows 10+, Linux (Ubuntu 18.04+)
Using this software on macOS requires enabling terminal accessibility permissions:
Setup Steps:
- Open "System Preferences" β "Security & Privacy"
- Click the "Privacy" tab
- Select "Accessibility" from the left sidebar
- Click the lock icon to unlock settings
- Check the "Terminal" app (or Python app)
- Restart the program to use normally
# 1. Clone the project
git clone https://github.com/astordu/prompt_go.git
cd prompt_go
# 2. Install dependencies (recommended uv)
uv sync
# or use pip
pip install -r requirements.txt
# 3. Configure API key
cp config/global_config.example.yaml config/global_config.yaml
# Edit config/global_config.yaml and enter your API key (currently only supports deepseek)
# 4.Configure hotkeys
cp config/hotkey_mapping.example.yaml config/hotkey_mapping.yaml
# 5. Start the program
uv run python main.py- Visit Deepseek Platform
- Register an account and create an API key
- Configure in
config/global_config.yaml:
api:
deepseek:
base_url: https://api.deepseek.com
key: 'sk-your-deepseek-api-key'
model: deepseek-chat- Start Program:
uv run python main.py - Select Text: Select a piece of text in any application
- Trigger AI: Press
Ctrl+Shift+1(content organization) orCtrl+Shift+2(translation) - View Results: AI processing results will automatically insert at cursor position
prompt_go/
βββ main.py # Main program entry
βββ config/
β βββ global_config.yaml # Global configuration (API keys, etc.)
β βββ hotkey_mapping.yaml # Hotkey mapping
β βββ *.example.yaml # Configuration templates
βββ prompt/ # Prompt template directory
β βββ tidy_content.md # Content organization template
β βββ translate.md # Translation template
βββ modules/ # Core functionality modules
βββ tests/ # Test suite
api:
deepseek:
base_url: https://api.deepseek.com
key: 'sk-your-deepseek-api-key'
model: deepseek-chat
max_tokens: 2000
temperature: 0.7
logging:
level: INFO
file: prompt_manager.log
max_size: 10485760 # 10MB
backup_count: 5
performance:
typing_speed: 0.005 # Typing speed (seconds/character)
hotkey_response_timeout: 0.5
template_cache_enabled: truehotkeys:
ctrl+shift+1: tidy_content.md # Content organization
ctrl+shift+2: translate.md # Translation function
settings:
enabled: true
response_delay: 100 # Response delay (milliseconds)Create .md files in the prompt/ directory:
model: deepseek,deepseek-chat
temperature: 0.3
max_tokens: 2000
---
You are a professional translation assistant. Please translate the following text into English, maintaining the original tone and format:
{{input}}
Please provide accurate, natural translation, paying attention to contextual coherence.This project is licensed under the MIT License - see the LICENSE file for details.
Thanks to the following open source projects:
- pynput - Cross-platform keyboard monitoring
- pyperclip - Clipboard operations
- PyYAML - YAML parsing
- pytest - Testing framework
- uv - Python package management
β If this project helps you, please give it a star!
π Found an issue? Submit Issue | π‘ Have suggestions? Start Discussion
Made with β€οΈ for the AI community