Docs/AI Providers

AI Providers

MemryLab has 9 provider presets, 8 of them with free tiers (Ollama runs locally and needs no key), plus a custom OpenAI-compatible endpoint. You can switch providers at any time without losing data. LLM and embedding providers can be configured independently — for example, use Gemini for analysis and Ollama for private local embeddings.

Recommended Local Models (Ollama)

For local inference, pick models based on your GPU VRAM. Embedding model is always nomic-embed-text.

VRAMLLM ModelSpeedInstall
4 GBllama3.2:3b~40 tok/sollama pull llama3.2:3b
8 GBllama3.1:8b~35 tok/sollama pull llama3.1:8b
12 GB ★qwen2.5:14b-instruct-q5_K_M~25 tok/sollama pull qwen2.5:14b-instruct-q5_K_M
16 GB+qwen2.5:32b-instruct-q4_K_M~15 tok/sollama pull qwen2.5:32b-instruct-q4_K_M

Larger models produce better belief extraction and contradiction detection. For no-GPU setups, use Gemini Flash (free) or Groq (free) as cloud providers.

💡 Pro Tip: Mix Providers

In Settings → Embedding Provider, you can use a different provider for embeddings vs LLM. The best privacy setup: use Gemini Flash (free, fast) for analysis + Ollama (local) for embeddings. This way your search index stays fully private while analysis uses a powerful cloud model.

Quick Comparison

ProviderFree TierDetails
Ollama (Local)YesRuns on your own hardware, no limits and no internet needed
OpenRouterYesFree models from several labs, about 20 requests/min and 200/day per model
GroqYesFree tier: 30 requests/min, about 1,000 requests/day on the 70B model
Google GeminiYesFree tier: 10 requests/min on Flash, 5 on Pro, no credit card. Includes embeddings
CerebrasYesFree tier: 1M tokens/day, very fast inference
MistralYesFree experiment plan: 1 request/sec, up to 1B tokens/month. Includes embeddings
SambaNovaYesFree tier: 10-30 requests/min depending on the model
CohereYesFree tier: 1,000 API calls/month. Includes embeddings
Claude (Anthropic)PaidPay-per-use API key, no free tier
Custom (OpenAI-compatible)VariesAny OpenAI-compatible endpoint (LM Studio, vLLM, OpenAI and others)

Ollama (Local)

1. Install Ollama from ollama.com/download
2. Pull a model: ollama pull llama3.1:8b
3. Pull the embedding model: ollama pull nomic-embed-text
4. In MemryLab: Settings → AI Provider → select "Ollama (Local)"
5. No API key is needed

https://ollama.com/download

OpenRouter

1. Go to openrouter.ai and create an account
2. Generate an API key
3. In MemryLab: Settings → AI Provider → select "OpenRouter"
4. Paste your API key — a free model is pre-selected

https://openrouter.ai

Groq

1. Go to console.groq.com and create an account
2. Generate an API key from the dashboard
3. In MemryLab: Settings → AI Provider → select "Groq"
4. Paste your API key and test connection

https://console.groq.com

Google Gemini

1. Go to aistudio.google.com and sign in
2. Create an API key
3. In MemryLab: Settings → AI Provider → select "Google Gemini"
4. Paste your API key and test connection

https://aistudio.google.com

Cerebras

1. Go to cloud.cerebras.ai and sign up
2. Create an API key from the dashboard
3. In MemryLab: Settings → AI Provider → select "Cerebras"
4. Paste your API key and test connection

https://cloud.cerebras.ai

Mistral

1. Go to console.mistral.ai and create an account
2. Generate an API key
3. In MemryLab: Settings → AI Provider → select "Mistral"
4. Paste your API key and test connection

https://console.mistral.ai

SambaNova

1. Go to cloud.sambanova.ai and sign up
2. Create an API key
3. In MemryLab: Settings → AI Provider → select "SambaNova"
4. Paste your API key and test connection

https://cloud.sambanova.ai

Cohere

1. Go to dashboard.cohere.com and sign up
2. Copy your trial API key
3. In MemryLab: Settings → AI Provider → select "Cohere"
4. Paste your API key and test connection

https://dashboard.cohere.com

Claude (Anthropic)

1. Go to console.anthropic.com and sign in
2. Create an API key
3. In MemryLab: Settings → AI Provider → select "Claude (Anthropic)"
4. Paste your API key and test connection

https://console.anthropic.com

Custom (OpenAI-compatible)

1. In MemryLab: Settings → AI Provider → Custom OpenAI-compatible endpoint
2. Enter the base URL (e.g., http://localhost:1234/v1)
3. Enter an API key if required (or leave blank for local)
4. Select a model name and test connection

API Key Security

MemryLab stores API keys in your operating system's secure keychain — never in plain text files, environment variables, or the SQLite database.

  • Windows: Windows Credential Manager
  • macOS: Keychain Access
  • Linux: libsecret (GNOME Keyring / KWallet)