Your private treasury
of thought.
Local-first second brain. Capture anything. Search semantically. Your data never leaves your machine.
What is Khayal?
A second brain that
actually stays yours.
Khayal captures your thoughts, articles, and images — then processes them with your own local LLM. Everything is stored as plain markdown in a folder on your machine. No cloud. No accounts. No lock-in.
Features
Capture anything,
zero friction.
Quick thoughts, screenshots, articles, URLs. From the terminal with kl or the embedded PWA. No forms, no overhead — just capture.
Your own AI,
on your machine.
Ollama processes every capture locally — auto-tagging, summarization, entity extraction. Your data never leaves your hardware. No API keys, no rate limits, no privacy concerns.
Find by words
or by meaning.
Hybrid search combines FTS5 keyword matching with vector semantic search, merged with RRF. Find exact terms or discover related thoughts you forgot you had.
Plain markdown.
No lock-in.
Your vault is just a folder of .md files. Works with Obsidian, git, or any editor. Khayal is a capture and retrieval layer — the files remain plain text that any tool can read.
The CLI experience
Privacy
Your data never
leaves your machine.
Not "privacy-friendly." Not "privacy-focused." Actually private. No servers, no accounts, no telemetry. Your vault is a folder on your disk — plain markdown files that you own completely.
Craftsmanship
over convenience.
Your thoughts deserve better than a cloud service.
Build a second brain that's truly yours.