Custom Actions
Custom actions let you save frequently-used prompts and URL templates for instant access. Type to filter your actions and custom actions appear inline — no menus, no setup each time.
Three Types of Custom Actions
Prompt Actions
Save an AI instruction you use often. When triggered, Cai sends your clipboard text to the LLM with your saved prompt.
Examples:
Rewrite as a professional email replyTranslate to GermanExtract action items as a bullet listConvert to SQL query
URL Actions
Save a URL template with %s as a placeholder. When triggered, Cai replaces %s with your clipboard text and opens it in your browser.
Examples:
https://www.reddit.com/search/?q=%shttps://translate.google.com/?text=%shttps://en.wikipedia.org/wiki/%shttps://maps.google.com/maps?q=%s
Tip: The clipboard text is automatically URL-encoded, so spaces and special characters are handled for you.
Shell Actions
Save a shell command that runs with your clipboard text. Use this to automate workflows, trigger scripts, or pipe text to command-line tools.
Examples:
echo "%s" | pbcopy— transform and re-copygh issue create --title "%s"— create a GitHub issuesay "%s"— read clipboard text aloudopen "https://google.com/search?q=%s"— open a URL from the terminal
Caution: Shell actions execute with your user-level permissions and can modify files, send network requests, and control other applications. Only create shell actions if you understand exactly what the command does. Never paste commands from untrusted sources.
Creating Custom Actions
- Left-click the Cai menu bar icon to open Preferences
- Click Custom Actions
- Click the add button and fill in:
- Name — what you’ll see in the action list
- Type — Prompt, URL, or Shell
- Value — the prompt instruction, URL template (use
%sfor the clipboard text), or shell command
- Click Save
You can edit or delete existing custom actions from the same screen.
Using Custom Actions
Custom actions appear when you type to filter in the action window:
- Select text and press ⌥C
- Start typing to filter — your custom actions matching the search appear alongside built-in actions
- Use ⌘1–9 or arrow keys to pick one
- The action executes immediately
Example: You have a custom action named “Reddit Search”. Type red and it appears — press Enter or its ⌘ number to search Reddit with your clipboard text.
Requirements
- Prompt actions require a running local LLM server
- URL actions work without any LLM — they just open your browser
- Shell actions work without any LLM — they execute the command directly