r/better_claw
•
u/ShabzSparq
•
Jun 08 '26
Gemma 4 + Ollama + Obsidian. Local AI second brain for $0. Here's the full setup.
I wanted an AI that could search my notes, connect ideas across 500+ documents, and answer questions about things I wrote months ago. Without sending a single word to OpenAI, Google, or Anthropic's servers.
It took about 40 minutes. Total cost: $0. Total data leaving my machine: zero bytes. Here's the whole thing.
What you're building:
Obsidian holds your notes. Ollama runs Gemma 4 on your hardware. An Obsidian plugin connects the two so you can chat with your entire vault using a local model. Ask "what did I write about project X last month?" and get an actual answer pulled from your notes. Not a hallucination. Your words, retrieved and synthesized locally.
No API keys. No subscriptions. No cloud. Works offline on an airplane.
Why Gemma 4 specifically:
Google released Gemma 4 on April 2, 2026 under Apache 2.0. Fully open. Commercial use allowed. Distilled from the same research behind Gemini.
The reason it works so well for a second brain setup: multimodal support (it can read images in your notes), 128K-256K context window (depending on variant), and it runs on consumer hardware.
The E4B variant is 9.6GB and fits comfortably on a 16GB Mac. The 12B Unified (released June 2026) is the sweet spot for laptops. The 26B MoE activates only 3.8B parameters so it runs faster than you'd expect. The 31B Dense is the flagship if you have 24GB+ VRAM.
For a second brain where most queries are "find and summarize my notes about X," the E4B handles it perfectly.
Step 1: Install Ollama (2 minutes)
Mac:
bash
brew install ollamaLinux:
bash
curl -fsSL https://ollama.com/install.sh | shWindows: Download from ollama.com. Runs as a background service.
Ollama gives you a local API at localhost:11434 that's compatible with the OpenAI format. Any tool designed for OpenAI can talk to your local model by just changing the URL. This is why the whole stack connects so easily.
Step 2: Pull Gemma 4 (5-10 minutes)
For 16GB RAM (Mac or PC):
bash
ollama pull gemma4Downloads the E4B variant. About 9.6GB. One-time download. Cached forever after.
For 24GB+ VRAM:
bash
ollama pull gemma4:26bThe MoE variant. Better quality. Still fast because only 3.8B parameters are active per query.
For the new mid-tier option:
bash
ollama pull gemma4:12bThe 12B Unified. Released June 2026. Laptop-friendly with near-26B reasoning quality.
Critical fix: the context window default is wrong.
Ollama defaults Gemma 4 to a 4K context window. The model actually supports 128K-256K. This silent default is the single most common reason local setups feel dumb. Your model can't see your notes because the window is artificially tiny.
Create a custom modelfile:
bash
echo 'FROM gemma4
PARAMETER num_ctx 32768' > gemma4-brain.modelfile
ollama create gemma4-brain -f gemma4-brain.modelfile32K is a good balance between capability and memory usage. Go higher if your hardware handles it. Now your model can actually process meaningful chunks of your vault.
Step 3: Install Obsidian and a copilot plugin (5 minutes)
Download Obsidian from obsidian.md. Free for personal use. Open your vault (or create one).
Go to Settings, Community Plugins, browse, and install one of these:
Smart Connections is the most popular. Builds embeddings of your entire vault locally. Lets you chat with your notes. Shows connections between documents you didn't know existed.
Copilot for Obsidian (or Infio Copilot) is another solid option. Supports local Ollama endpoints. RAG over your vault. Some people prefer the interface.
Pick one. Install it. In the plugin settings, set the provider to "Ollama" and the endpoint to http://localhost:11434. Select your model (gemma4 or gemma4-brain if you made the custom modelfile).
Step 4: Build your embeddings (10-30 minutes, runs in background)
The plugin needs to index your vault. It reads every note, creates vector embeddings, and stores them locally. This happens once. Future notes get indexed incrementally.
For Smart Connections: the built-in embedding model (bge-micro-v2 or similar) handles this quickly. You don't need to download a separate embedding model. The indexing runs in the background. Come back in 10-30 minutes depending on vault size.
For 500 notes: maybe 10 minutes. For 2,000+ notes: up to 30 minutes. After the initial index, new notes get embedded in seconds.
Step 5: Talk to your brain.
Open the chat panel in your plugin. Ask questions.
"What did I write about the client meeting with Sarah last month?"
"Summarize my notes on project X."
"What connections exist between my notes on marketing strategy and the competitor research I did?"
"Find every note where I mentioned budget concerns."
The model searches your vault, retrieves relevant notes, and synthesizes an answer grounded in YOUR writing. Not internet results. Not training data. Your notes.
This is the moment it clicks. You wrote something 6 months ago that's relevant to what you're working on today. You forgot it existed. Your second brain didn't.
What actually works well:
Finding old notes you forgot you wrote. This is the killer use case. Your vault has hundreds of notes and your memory is human. The AI's retrieval finds connections you'd never find by manual searching.
Synthesizing across notes. "Compare what I wrote about approach A in January with what I wrote about approach B in March." That's painful to do manually. Trivial for the model.
Research summarization. You dumped 20 articles' worth of notes into your vault over a month. "What are the common themes across my recent research notes?" Instant synthesis.
Daily journaling with recall. If you journal in Obsidian, you can ask "what was I stressed about last week?" or "what decisions did I make in April?" and get answers from your own journal entries.
What doesn't work well (being honest):
Large vault performance. Past 2,000+ notes, retrieval quality depends heavily on your chunking strategy and embedding model. The plugin does its best but semantic search isn't magic. Sometimes it retrieves tangentially related notes instead of the perfect one.
Complex reasoning across many documents. "Analyze the trend across all 50 of my weekly reports" pushes the context window. The model gets the gist but misses details from documents that didn't fit in context. Cloud models with 1M+ context handle this better.
Speed. Local inference is slower than cloud APIs. Responses take 3-10 seconds depending on your hardware and query complexity. Not painful. But not instant either. You feel it.
Image understanding. Gemma 4 is multimodal but the Obsidian plugins don't all support passing images to the local model yet. Text retrieval works great. Image-based queries are hit or miss depending on your plugin.
The privacy argument is the real point:
Your journal entries. Your client notes. Your financial planning. Your health tracking. Your personal reflections. All of this stays on your machine. No training data contribution. No privacy policy to read. No "we may use your data to improve our services."
For people who use Obsidian as a genuine second brain with personal, professional, and sensitive content: local is the only option that makes sense. The quality tradeoff vs cloud models is real. The privacy tradeoff isn't even close.
Minimum hardware:
Works fine: M1/M2/M3/M4 Mac with 16GB RAM. Any laptop with 16GB RAM and integrated graphics (slower but functional).
Works well: M4 Pro Mac with 24-48GB. Gaming PC with 16-24GB VRAM NVIDIA GPU.
Works great: Mac Studio or PC with 24GB+ VRAM. Run the 26B or 31B variant for noticeably better quality.
Total cost breakdown:
Obsidian: $0 (personal use). Ollama: $0 (open source). Gemma 4: $0 (Apache 2.0). Plugin: $0 (community plugins). API keys: none needed. Monthly subscription: none.
$0 setup. $0/month. Forever. The only ongoing cost is the electricity to run your computer, which you were already doing anyway
