Setup, inline edits, and Ghost Text
Baram has built-in AI writing assistance powered by Claude, OpenAI, Google Gemini, and Ollama (local).
- Open Settings with
Cmd+,(macOS) orCtrl+,(Windows/Linux) - Go to the AI tab
- Select your AI provider (Claude, OpenAI, Gemini, or Ollama)
- Enter your API key (each provider has its own key field; Ollama requires no key)
- Choose your preferred model (models are loaded dynamically from the provider)
Privacy Mode
Section titled “Privacy Mode”Enable Privacy Mode in Settings > AI to prevent document content from being sent to cloud AI providers. When Privacy Mode is on, only Ollama (local) is allowed.
Privacy can be set globally or per-file using frontmatter:
---privacy: true---Inline AI Editing (Cmd+J)
Section titled “Inline AI Editing (Cmd+J)”Press Cmd+J (macOS) or Ctrl+J (Windows/Linux) to open the inline AI prompt:
- Type your instruction (e.g., “make this more concise”, “translate to Korean”)
- The AI processes your request with real-time streaming
- Review the suggestion with character-level diff highlighting:
- Green text = additions
- Red text = deletions
- Click Accept to apply or Reject to discard
Ghost Text (AI Autocomplete)
Section titled “Ghost Text (AI Autocomplete)”AI-powered autocomplete suggestions appear as faded text ahead of your cursor as you type:
| Action | macOS | Windows/Linux |
|---|---|---|
| Accept Full Suggestion | Tab |
Tab |
| Accept First Word | Cmd+Right |
Ctrl+Right |
| Dismiss | Escape |
Escape |
Ghost Text can be enabled or disabled in Settings > AI.

