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:
- Get your API key from OpenAI
- Go to Settings → AI Providers → OpenAI
- Enter your API key
- 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:
- Get your API key from Anthropic Console
- Go to Settings → AI Providers → Anthropic
- Enter your API key
- Select your preferred model
Best for: Long-form content, technical writing, analysis
Local AI Providers
Ollama
Setup:
- Install Ollama on your Mac
- Download a model:
ollama pull llama2 - Go to Settings → AI Providers → Ollama
- Configure the model name and endpoint
Best for: Privacy-focused users, offline usage
LM Studio
Setup:
- Install LM Studio
- Download and load a model
- Start the local server
- Go to Settings → AI Providers → LM Studio
- Configure the server URL
Best for: Advanced users, custom models
Provider Comparison
| Provider | Speed | Privacy | Cost | Offline |
|---|---|---|---|---|
| OpenAI | ⭐⭐⭐⭐⭐ | ⭐⭐ | ⭐⭐ | ❌ |
| Anthropic | ⭐⭐⭐⭐ | ⭐⭐ | ⭐⭐ | ❌ |
| Ollama | ⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ✅ |
| LM Studio | ⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ✅ |
Switching Providers
You can easily switch between providers:
- Go to Settings → AI Providers
- Select your preferred provider
- 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)