{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "ganeshmshetty-openclip--run-ai-actions-on-selected-text",
 "repo": "ganeshmshetty/openclip",
 "repo_url": "https://github.com/ganeshmshetty/openclip",
 "repo_slug": "ganeshmshetty-openclip",
 "title": "Run AI actions on selected text with local or API models",
 "page_title": "How to run AI actions on selected text with local or API models with Openclip",
 "summary": "Send selected text to a local Ollama model, Apple Intelligence, or an OpenAI or Anthropic key from the popup.",
 "who": "A user who wants summaries or rewrites of selected text and needs to decide where that text is allowed to go.",
 "problem": "Getting AI help on text usually means copying it into a chat window and pasting the answer back.",
 "outcome": "AI actions run from the popup on the text you selected, using the provider you chose.",
 "steps": [
  "Install OpenClip with `brew install --cask openclip` and 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."
 ],
 "agent_prompt": "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.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "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.",
 "category": "Personal productivity",
 "tags": [
  "Personal productivity"
 ],
 "lang": "swift",
 "requirements": [
  "A Mac running macOS 14 or later",
  "Accessibility permission granted to OpenClip",
  "Homebrew for the recommended install"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Cloud use needs your own OpenAI or Anthropic key, so keep that key private and do not paste it into shared notes or logs."
  }
 ],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/ganeshmshetty-openclip/run-ai-actions-on-selected-text/",
 "md": "https://dedupedai.com/use-cases/ganeshmshetty-openclip/run-ai-actions-on-selected-text/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/ganeshmshetty-openclip--run-ai-actions-on-selected-text.json",
 "api_version": "v1"
}
