Settings Guide
Settings Guide
Configure Study Buddy to work best for your needs and preferences.
Quick Setup
1. Choose AI Provider
- OpenAI: High-quality responses, requires API key
- Together AI: Cost-effective, supports open-source models
- Custom: Use any OpenAI-compatible endpoint
2. Configure Search Engine
- DuckDuckGo: Privacy-focused, no setup required
- Bing: High-quality results, requires API key
- SearXNG: Self-hosted option for maximum privacy
- Disabled: Chat-only mode without web search
3. Set Education Level
Choose your default learning level from Elementary to Graduate.
AI Provider Setup
OpenAI Configuration
- Get API Key: Visit platform.openai.com/api-keys
- Create New Key: Click “Create new secret key”
- Copy Securely: Save the key (you won’t see it again)
- Enter in Settings: Paste into AI Provider section
- Test Connection: Verify it works before saving
Recommended Models:
- GPT-3.5-turbo: Fast and cost-effective for most topics
- GPT-4: Higher quality but slower and more expensive
- GPT-4-turbo: Good balance of quality and speed
Together AI Configuration
- Sign Up: Visit api.together.xyz
- Generate API Key: Create key from dashboard
- Select Model: Choose from available options:
- Llama-3.1-8B-Instruct-Turbo: Fast, efficient
- Llama-3.1-70B-Instruct-Turbo: Higher quality
- Mixtral-8x7B-Instruct-v0.1: Balanced performance
Custom Endpoint Setup
For self-hosted or third-party AI services:
- Base URL: Enter your API endpoint (e.g.,
http://localhost:8080/v1) - API Key: Provide authentication if required
- Model Name: Specify model your endpoint supports
- Test: Verify connection works properly
Compatible Services:
- Ollama (local models)
- LM Studio
- Text Generation WebUI
- Azure OpenAI
- AWS Bedrock (with proxy)
Search Engine Configuration
DuckDuckGo (Recommended for Privacy)
- Setup: No configuration required
- Privacy: No tracking or personal data collection
- Limitations: May be rate-limited during heavy usage
- Best For: Privacy-conscious users, no API costs
Bing Search
- Azure Account: Sign up at portal.azure.com
- Create Resource: Search for “Bing Search v7”
- Get API Key: Copy from resource overview page
- Enter Key: Paste into Search Engine settings
- Test: Verify search functionality works
Pricing: Pay-per-use model, check Azure pricing
Serper (Google Search)
- Account: Sign up at serper.dev
- API Key: Generate from dashboard
- Credits: Monitor usage to avoid overages
- Configure: Enter key in settings
Features: Access to Google search results via API
SearXNG (Self-Hosted)
For maximum privacy and control:
- Find Instance: Visit searx.space for public instances
- Test Instance: Verify it’s fast and reliable
- Enter URL: Format like
https://searx.example.com - Test Search: Confirm functionality
Self-Hosting SearXNG:
# Docker setup
docker run -d --name searxng \
-p 8080:8080 \
searxng/searxng
# Then use: http://localhost:8080
Brave Search
- API Access: Visit api.search.brave.com
- Subscribe: Choose appropriate plan
- Generate Key: Create API key from dashboard
- Configure: Enter key in settings
Benefits: Independent search index, ad-free results
Advanced Configuration
Default Education Level
Set your preferred learning level:
- Elementary: Simple explanations for young learners
- Middle School: Intermediate complexity with examples
- High School: Advanced concepts with detailed analysis
- Undergraduate: College-level depth and rigor
- Graduate: Research-level discussions and theory
This setting is automatically applied to new conversations.
Connection Settings
- Timeout: Default 30 seconds for AI responses
- Search Timeout: Default 10 seconds for search queries
- Retries: Automatic retry for failed requests
Privacy Controls
- Local Storage: All data stays on your device
- No Tracking: Zero analytics or telemetry
- API Key Security: Keys stored locally, never transmitted
Troubleshooting Settings
Common Issues
“API Key Required” Error
- Verify key is correctly entered without extra spaces
- Check if key has been revoked or expired
- Ensure API key has sufficient credits/quota
“Connection Failed” Error
- Test internet connection with other applications
- Verify API key permissions
- Check provider status pages for outages
Search Not Working
- Try different search engine temporarily
- Verify API quotas haven’t been exceeded
- For SearXNG: Try different instance from searx.space
Settings Not Saving
- Check if app has write permissions to user directory
- Verify sufficient disk space available
- Disable antivirus temporarily to test file writing
- Delete corrupt settings file and reconfigure
Reset Configuration
If settings become corrupted:
- Backup API Keys: Write them down first
- Close Application: Ensure it’s fully closed
- Delete Settings:
- Windows:
%APPDATA%/study-buddy/settings.json - macOS:
~/Library/Application Support/study-buddy/settings.json - Linux:
~/.config/study-buddy/settings.json
- Windows:
- Restart App: Reconfigure from scratch
Security Best Practices
API Key Management
- Keep Private: Never share API keys publicly
- Rotate Regularly: Change keys every few months
- Monitor Usage: Check provider dashboards for unusual activity
- Revoke if Compromised: Immediately revoke exposed keys
Network Security
- HTTPS Only: All connections use secure protocols
- Local Storage: Settings stored locally, not in cloud
- No Telemetry: No usage data sent to external servers
Performance Optimization
Speed Improvements
- Choose Faster Models: GPT-3.5 vs GPT-4 for speed
- Disable Search: For simple questions that don’t need web data
- Local AI: Use Ollama or similar for offline processing
- Better Internet: Faster connection improves response times
Cost Management
- Model Selection: Smaller models cost less per token
- Disable Search: Reduces API calls for search engines
- Monitor Usage: Check provider dashboards regularly
- Set Limits: Configure spending limits on provider platforms
Need help with configuration? Check our Troubleshooting Guide or visit the GitHub repository for support.