AI Providers

RewriteBar supports multiple AI providers, giving you flexibility in choosing the best model for your needs.

Choose the Right Model

If you want guidance on speed vs quality, local model tradeoffs, and per-command overrides, see:

Cloud-Based Providers

OpenAI

Models: GPT-4, GPT-3.5-turbo, GPT-4o

Setup:

  1. Get your API key from OpenAI
  2. Go to Settings → AI Providers → OpenAI
  3. Enter your API key
  4. Select your preferred model

Best for: General-purpose rewriting, creative content, complex instructions

Anthropic (Claude)

Models: Claude-3.5-Sonnet, Claude-3-Haiku, Claude-3-Opus

Setup:

  1. Get your API key from Anthropic Console
  2. Go to Settings → AI Providers → Anthropic
  3. Enter your API key
  4. Select your preferred model

Best for: Long-form content, technical writing, analysis

Local AI Providers

Ollama

Setup:

  1. Install Ollama on your Mac
  2. Download a model: ollama pull llama2
  3. Go to Settings → AI Providers → Ollama
  4. Configure the model name and endpoint

Best for: Privacy-focused users, offline usage

LM Studio

Setup:

  1. Install LM Studio
  2. Download and load a model
  3. Start the local server
  4. Go to Settings → AI Providers → LM Studio
  5. Configure the server URL

Best for: Advanced users, custom models

Provider Comparison

ProviderSpeedPrivacyCostOffline
OpenAI⭐⭐⭐⭐⭐⭐⭐⭐⭐
Anthropic⭐⭐⭐⭐⭐⭐⭐⭐
Ollama⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐
LM Studio⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐

Switching Providers

You can easily switch between providers:

  1. Go to SettingsAI Providers
  2. Select your preferred provider
  3. The change takes effect immediately

Troubleshooting

API Key Issues

  • Ensure your API key is valid and has sufficient credits
  • Check that the API key has the correct permissions

Local AI Issues

  • Verify that Ollama/LM Studio is running
  • Check the server URL and port
  • Ensure the model is loaded and accessible

Performance Issues

  • Try a different model
  • Check your internet connection (for cloud providers)
  • Restart the local AI service (for local providers)