Robdel12/DraftPatch

A macOS LLM chat app

★ 10Forks 1SwiftGitHub ↗Compare
chatgptclaudegeminillmollamaopenaiswiftui

README

DraftPatch

DraftPatch is a simple and practical macOS app built to integrate Large Language Models (LLMs) such as OpenAI, Anthropic, Gemini, and locally hosted Ollama models into your workflow. It helps you draft, refine, and improve your text and code directly within native macOS applications.

Whether you're coding in Xcode, editing in Emacs, jotting notes, or working within iTerm, DraftPatch provides seamless, context-aware AI suggestions based on the currently selected text or the content of your application's active window.

Features

  • ✅ Supports multiple LLM providers (OpenAI, Anthropic, Gemini, Ollama)
  • ✅ Quick drafting integration with Xcode, Emacs, iTerm, and Notes.app
  • ✅ Markdown rendering with syntax highlighting
  • ✅ 100% native, lightweight, keyboard-friendly interface

Getting Started

  1. Install and launch DraftPatch.
  2. Go to Settings (⌘ + ,) to add your API keys or configure your Ollama server URL.
  3. Pick your default model.
  4. Begin drafting and refining text directly from supported applications.

Compatibility

  • macOS 14.0+

Screenshots

drafting-demo.mov
download-ollama-model.mov

Contributors

Robdel12

Issues