Credentials. Cloud use needs your own OpenAI or Anthropic key, so keep that key private and do not paste it into shared notes or logs.
Who it is forA user who wants summaries or rewrites of selected text and needs to decide where that text is allowed to go.
The problemGetting AI help on text usually means copying it into a chat window and pasting the answer back.
The outcomeAI actions run from the popup on the text you selected, using the provider you chose.
What you need first
- A Mac running macOS 14 or later
- Accessibility permission granted to OpenClip
- Homebrew for the recommended install
Steps
- Install OpenClip with
brew install --cask openclipand grant it Accessibility permission. - Choose a provider: a local Ollama model, Apple Intelligence, or an OpenAI or Anthropic key.
- If you use a cloud provider, add your own OpenAI or Anthropic key in OpenClip.
- Select text in any app and pick an AI action from the contextual bar.
- Check which provider handled the request before you send sensitive text.
Prompt for your agent
Using the OpenClip repo at https://github.com/ganeshmshetty/openclip, configure one AI provider named <provider> and run an AI action on the selected text <target text> from the contextual bar. Expected output: a model response for that text shown in the popup. Verify that only the provider you chose is configured.
Caveat. The README calls OpenClip privacy-first with 100% local execution, but cloud keys send selected text to that provider, so use a local model for private text.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for ganeshmshetty/openclip and "Run AI actions on selected text with local or API models"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer