An Alfred workflow that lets you quickly run custom LLM prompts using OpenAI's API.
- 🔍 Quick Search: Find and run prompts with fuzzy search
- 📋 Clipboard Integration: Run prompts with clipboard content as input
- ⚡ Fast Access: Trigger prompts with a simple keyword (
p) - 🔔 Background Execution: Run prompts asynchronously with notifications
- ✏️ Easy Management: Edit your prompt collection in any text editor
- 📝 Structured Output: View formatted responses directly in Alfred
- Download and install the workflow in Alfred
- Configure your OpenAI API key and model:
- Open Alfred Preferences → Workflows
- Select "PromptBox"
- Click the
[x]button in the top right - Enter your OpenAI API key
- Select your preferred model (default: gpt-5-mini)
Note: The workflow includes a bundled terminal-notifier for notifications, so no additional dependencies are required.
- Activate Alfred and type
pfollowed by your search query - Select a prompt from the list
- Two options:
- Press ↩: Run the prompt with clipboard content as input (async mode)
- Press ⌘ + ↩: Run the prompt with text view
- View the AI response in the text view
- Choose an action:
- Press ⌘ + ↩: Copy the output to clipboard
- Press ⌥ + ↩: Insert the output into the foremost application
When using ↩ to run a prompt with clipboard content, the workflow runs in the background:
- 🚧 Shows a notification when processing starts
- ✅ Result automatically copied to clipboard when complete
- 🔔 Notification auto-dismisses
- Multiple prompts can run simultaneously without blocking Alfred
This is perfect for quick tasks like "fix grammar", "translate", or "summarize" where you just want the result in your clipboard without waiting in Alfred.
Type prompts edit in Alfred to open your prompts file for editing.
Prompts are stored in prompts.txt using a simple markdown-like format:
## Prompt Title
Your prompt instructions here.
This can be multiple lines.
## Another Prompt
Instructions for another prompt.Each prompt section:
- Starts with
##followed by the prompt title - Contains the instructions/system prompt on the following lines
- Sections are separated by blank lines
## Summarize
Summarize the following text in 2-3 sentences, focusing on the key points.
## Fix Grammar
Fix any grammar, spelling, or punctuation errors in the text. Maintain the original tone and style.
## Translate to Spanish
Translate the following text to Spanish. Keep the tone and meaning intact.
## Code Review
Review this code for potential bugs, performance issues, and best practices. Provide specific suggestions.Created by Radoslav Stankov