An Obsidian plugin that turns your notes and documents into a connected, queryable knowledge base — the Karpathy LLM Wiki idea, built into the editor where you already write.
Zero-embedding graph retrieval • Native PDF, image & Office ingest • 15+ LLM providers • 14 languages • Local-first & No backend
English | 简体中文 | 繁體中文 | 日本語 | 한국어 | Deutsch | Français | Español | Português | Italiano | Русский | Nederlands | Polski | ไทย
Official Site | Obsidian Marketplace | Blog | Discussions
🤔 Why this plugin? | 🚀 Quick Start | ✨ Features | 🌐 Ecosystem | 🔍 How retrieval works | 🤖 Models | ❓ FAQ | 🔒 Privacy
Left: your untouched original note. Right: the interlinked wiki page generated from it — properties, aliases, description, and related concepts.
You write notes. They sit in folders. Finding what relates to what means remembering threads you forgot months ago.
Other open-source reimplementations of Karpathy's LLM Wiki idea exist — but none ships as a one-click Obsidian plugin. Most are CLI tools, Claude Code skills, or separate desktop apps; this one runs inside Obsidian — Graph View, ribbons, and command palette included.
- 🪟 Obsidian is the runtime. No terminal, no separate app, no Docker, no Python. Install from Community Plugins, click Ingest, and the wiki lives in your vault from the first second. Obsidian's native Graph View renders your
[[wiki-link]]graph — built in, zero extra bundle size. - 🧭 Clean and self-contained. Zero dependencies: no embedding model, no vector database, no pip package. One plugin reads your notes, talks to an LLM, and writes pages into your vault.
- 🔌 Any model you already pay for. Anthropic, Bedrock, OpenAI, ChatGPT Plan (Codex OAuth), Gemini, DeepSeek, Qwen, Grok, Kimi, GLM, MiniMax, Step, Hunyuan, MiMo, Gemma, Ollama, LM Studio, OpenRouter, Anthropic-compatible, custom endpoint — fifteen-plus providers, none of them required to have an embedding endpoint.
The plugin treats your existing folders as strictly read-only. Everything it creates lives inside a dedicated wiki/ folder — trivial to inspect, query with Dataview, or separate in git diff:
your-vault/
├── notes/ # 🔒 Strictly read-only — never modified or rewritten
│ ├── machine-learning.md
│ └── attention-paper.pdf
└── wiki/ # ✨ Generated & maintained by the plugin
├── index.md # Auto-maintained directory of pages and aliases
├── sources/ # Source summaries + grounded verbatim quotes
├── entities/ # People, organizations, products, events
└── concepts/ # Theories, methods & terms linked via [[wiki-links]]
- You want a 5-minute setup. Install from Community Plugins → pick a provider → ingest one note. Wiki pages appear in
wiki/within seconds, with no CLI, no Python, and no vector database to stand up first. - You want answers from your own notes, with every answer citing the pages it came from. Ollama or LM Studio keep the whole call on your machine.
- You write in or read from any of 14 languages. Interface and wiki output are independent: a Chinese wiki behind an English interface is a supported setup.
- You want one-click maintenance. Lint health scan and Smart fix all keep duplicates, dead links, and orphans in check without hand-curating.
Not for you if you want a general-purpose ChatGPT replacement, RAG over external corpora such as Confluence or arXiv, or a hosted service with team collaboration. Answers come from your vault, ingest covers your vault plus standalone files, and there is no backend to share.
📊 How we compare with CLI and desktop LLM Wiki implementations
| Karpathy LLM Wiki (this plugin) | nashsu / llm_wiki | SamurAIGPT / llm-wiki-agent | atomicstrata / llm-wiki-compiler | |
|---|---|---|---|---|
| Delivery | ✅ One-click Obsidian plugin | 🟡 Tauri desktop app | 🟡 Claude Code / Codex / OpenCode / Gemini CLI skill | 🟡 TypeScript CLI pipeline |
| Dependencies | ✅ None — plugin only | 🟡 Python runtime + sqlite | 🟡 Claude Code / Codex / OpenCode runtime | ❌ Embedding model + vector DB (per their docs) |
| i18n (UI + wiki output) | ✅ 14 languages | 🟡 EN / 中文 | ❌ EN only | ❌ EN only |
| LLM providers | ✅ 15+ (Anthropic, OpenAI, Bedrock, Gemini, DeepSeek, Qwen, Grok, Kimi, GLM, MiniMax, Step, Hunyuan, MiMo, Gemma, Codex OAuth, Ollama, LM Studio, OpenRouter, Anthropic-Compatible, …) | 🟡 OpenAI-compatible | 🟡 Subscription via Claude Code / Codex | 🟡 OpenAI-compatible |
| Retrieval & query pipeline | ✅ PPR + Monte Carlo over [[wiki-link]] graph |
🟡 2-hop decay (4-signal heuristic) | 🟡 Louvain community detection | 🟡 BM25 + semantic over chunks |
| Graph visualization | ✅ Obsidian's native Graph View (built in, zero extra size) | 🟡 Custom sigma.js + graphology in desktop app | 🟡 vis.js graph.html (separate file) | ❌ Read-only browser viewer |
| Ingest formats | ✅ Markdown + PDF + images + Office (DOCX/PPTX/XLSX) — one switch flips between native PDF (Anthropic / OpenAI / Bedrock / Gemini) and the built-in MinerU multi-format backend | 🟡 Markdown + PDF | 🟡 Markdown / code files only | 🟡 Markdown only |
Requirements: Obsidian 1.11.4 or newer, desktop or mobile. Nothing else — no Node, no Python, no container. Your own API key, or a local model with no key at all; credentials live in Obsidian SecretStorage, which is why 1.11.4 is the floor.
-
Install. Obsidian → Settings → Community plugins → Browse → search "Karpathy LLM Wiki" → Install → Enable. Or visit the Community Plugin page and click Add to Obsidian.
-
Configure a provider. Open Settings → Karpathy LLM Wiki → pick a provider (OpenAI, Anthropic, Ollama, ChatGPT Plan (Codex OAuth), etc.) → enter API key (not needed for local) → click Test Connection → Save Settings.
-
Ingest one note. Two ways:
- ⌨️ Keyboard:
Cmd+P/Ctrl+P→ "Ingest single source" → pick any Markdown or PDF file. - 🖱️ Toolbar icon: Click the sticker icon in Obsidian's left ribbon to instantly ingest the currently-open note — no menu hunting.
Your first wiki pages appear in
wiki/sources/,wiki/entities/, andwiki/concepts/within seconds. - ⌨️ Keyboard:
-
Query your wiki. Two ways:
- ⌨️ Keyboard:
Cmd+P/Ctrl+P→ "Query wiki". - 🖱️ Toolbar icon: Click the message-circle icon in Obsidian's left ribbon.
A right-docked side panel opens (Copilot-style) where you can chat with your wiki. Answers carry
[[wiki-links]]back into your knowledge graph. - ⌨️ Keyboard:
That's it. Both Ingest and Query wiki are pinned to the left ribbon for one-click access anytime. (Cmd on macOS, Ctrl on Windows/Linux.)
| Command | What it does |
|---|---|
| 📥 Ingest single source | Cmd+P / Ctrl+P → "Ingest single source" — pick a Markdown or PDF file, get entity/concept/wiki pages. Also: 🖱️ ribbon sticker icon on the active note. |
| 📂 Ingest from folder | Cmd+P / Ctrl+P → "Ingest from folder" — batch-ingest every note in a folder, skipping the ones already ingested. |
| 📑 Ingest multiple files | Cmd+P / Ctrl+P → "Ingest multiple files" — pick a subset via a two-pane file tree (with live queue + per-file cancel). |
| 🔍 Query wiki | Cmd+P / Ctrl+P → "Query wiki" — chat with your wiki in a right-docked side panel; answers carry [[wiki-links]]. Also: 🖱️ ribbon message-circle icon. |
| 🛠️ Lint wiki | Cmd+P / Ctrl+P → "Lint wiki" — full health scan: duplicates, dead links, empty pages, orphans, missing aliases, contradictions. |
| ⚡ Smart fix all | Inside Lint Modal — one-click causal-order repair with per-phase report. |
| 📋 Regenerate index | Cmd+P / Ctrl+P → "Regenerate index" — rebuild wiki/index.md with current pages and aliases. |
| ⏹ Cancel | Cmd+P / Ctrl+P → "Cancel current ingestion" or click the status bar — stops cleanly at the next batch boundary. |
| 📊 Ingestion history | Cmd+P / Ctrl+P → "View operation history" — searchable UI for past ingestions, lint reports, and maintenance runs. |
| Before | After |
|---|---|
notes/machine-learning.md (a flat file) |
wiki/concepts/supervised-learning.md with [[bidirectional links]], aliases, source attribution, and an entry in wiki/index.md |
📖 Walkthroughs in GitHub Discussions → Guides. Found it useful? Star the repo to follow releases.
- 🔍 Entity & concept extraction — LLM extracts entities (people, orgs, products, events) and concepts (theories, methods, terms) into standalone pages. Granularity is configurable (Minimal → Fine, plus Custom) so you trade cost vs. depth.
- 🏷️ Mandatory aliases — every page ships with at least one alias (translation, abbreviation, variant) so cross-language duplicate detection works.
- 🔄 Tiered duplicate detection — Tier 1 (direct name match: cross-language, abbreviation, high-similarity titles) is always verified; Tier 2 (shared links, medium similarity) fills remaining token budget.
- 🧩 Smart merge & contradiction state — duplicates merge while preserving aliases; contradictions are flagged with source attribution;
reviewed: truepages are protected from overwrite. - 🎨 One tag vocabulary, yours — the tags a page may carry come from your notes' nested tags, the tags already on wiki pages, and the Custom (user-defined) list in Settings → Wiki Configuration → Tag Vocabulary Configuration. Prompt, write gate, lint, and retag all read that one list, so what the model is offered is what lands on disk; a value outside it is dropped, never written. Small models still drift (about one run in ten returns the model's own taxonomy) — the gate catches it and Lint reports the page. Design anchor: Issue #328.
Six on-ramps, switchable per ingest:
| On-ramp | Formats | How it works |
|---|---|---|
| 1. 🧾 Built-in MinerU backend | PDF, images (PNG/JPG/WebP/GIF/BMP), Office (DOC/DOCX/PPT/PPTX/XLS/XLSX) | Settings → Wiki Configuration → Markdown conversion backend → MinerU online API. Powered by MinerU's Precise parser. Ideal for scanned papers and Office files where layout matters. |
| 2. ☁️ Cloud providers with native PDF | Anthropic, OpenAI, Google Gemini, and AWS Bedrock (Anthropic + OpenAI variants) read PDFs as file parts out of the box. No setup beyond provider selection. | |
| 3. 🖥️ Local OCR on Apple Silicon | oMLX bundles Microsoft Markitdown + local vision OCR (Baidu Unlimited-OCR). Point the plugin at oMLX as a Custom OpenAI-Compatible provider with Force PDF support enabled. The PDF never leaves your machine. | |
| 4. 🛠️ Third-party extractor (MinerU online UI) | PDF, Office, images | Use the MinerU Extractor online service for a quick manual UI without wiring up an API token. Drop the downloaded .md into your vault and ingest as a regular Markdown note. |
| 5. 🔌 Force PDF support | For any other OpenAI/Anthropic-compatible endpoint that accepts file parts (Settings → LLM Configuration → Advanced LLM parameters). Failures surface as a localized Notice. | |
| 6. 🖼️ Embedded Markdown images | Local ![[image.png]] &  inside .md |
Turn on Analyze embedded images during Markdown ingestion under Show advanced settings. Each local image is analyzed alongside its nearest Markdown paragraphs. |
🔧 Plumbing, bounded cache, token limits & Office format caveats
- MinerU caps & token lifecycle — Token lives in SecretStorage and expires after about 90 days (a
401notice names the renewal page). Caps are 200 MB / 200 pages per PDF and 256 MB / 10,000 files per archive. - Embedded image caps & audit trail — Sent in 20 MiB visual-evidence packages, capped at 10 MiB per image; remote URLs are never downloaded. Optionally enable Save embedded image visual evidence to source page to add a collapsible audit section to the generated source page.
- 🗄️ Bounded cache —
.obsidian/plugins/karpathywiki/pdf-cache/stores converted Markdown keyed by content hash + model + converter version; 100 MB total / 1,000 entries / 10 MB single-entry caps with LRU-by-mtime eviction. - 📝 Optional vault sidecar — Settings → Wiki Configuration → Wiki Folder → Write converted Markdown to Vault writes
<basename>.pdf.mdnext to the source PDF (off by default — cache-only is the default). - 🛡️ Verbatim transcriber prompt — OCR-style conversion with
[illegible]/[figure: ...]anti-hallucination markers; markdown-fence-wrapping from small local models is auto-cleaned before cache write. - 🔁 Source-page verbatim quotes — Every generated
sources/<slug>.mdpage carries a Mentions in Source section built from the same verbatim quotes the extraction captured per entity/concept, so the underlying document has a grounded trail back to its source text. - Caveat for Office formats — Obsidian does not natively render
.docx/.xlsx/.pptx(file-formats), so the practical workflow is: MinerU converts to.md, the plugin ingests that.mdinto wiki pages, and the original Office file is kept for reference. Use a community plugin like Pandoc Plugin / Docxer / Md Importer / Office Reader if you need inline Office previews.
📖 Full setup walkthroughs for all paths (cloud providers, oMLX hardware tiers, MinerU installation, cache housekeeping) → docs/PDF-OCR-GUIDE.md
Retrieval and answers
- 🧭 5-stage PPR cascade — Personalized PageRank over
[[wiki-link]]gives graph-aware multi-hop context (see How retrieval works). - 🔤 Body-aware lexical scoring — the fast path scores title, aliases, summary, and body text with BM25F, so the longest text on a page reaches the scorer. It is the single largest recall improvement the project has made.
- 🧩 Related-page shaping — one hub page can no longer drag every other page toward it. Related lists are recomputed on every write from the names that survived, ranked, and capped.
- 📏 16,000-token answer budget — the pipeline states explicitly when the budget runs out instead of stopping silently. Context is fitted to a page budget before assembly, so 20 pages enter the prompt by plan rather than by luck.
- 🔖 Academic-style citations — every claim footnotes the wiki pages it came from. The composer grows with your content, and clear history clears the record.
- 🪟 Right-docked side panel — Query Wiki opens in a Copilot-style right sidebar leaf instead of a centered modal.
Maintenance and repair
- 🔍 Lint health scan — a single command catches duplicates, dead links, empty pages, orphans, missing aliases, and contradictions. It also lists hub pages whose neighbourhood has crystallized — a hub standing in for connections that content can no longer make.
- ⚡ Smart fix all — one-click causal-order repair: fill aliases → merge duplicates → fix dead links → link orphans → expand empty pages, with a per-phase report.
- 📊 Operation history panel — searchable, filterable UI for past ingestions, lint reports, and maintenance runs.
⚙️ Gates that run before a call is paid for & settings that shape a run
Pre-call gates & fallback controls
- 🛡️ Pre-ingest gate — empty, whitespace, or frontmatter-only notes are rejected before any LLM call; content-hash dedup catches identical files across paths.
- 🚦 Ingest candidate gate — opt-in (
skipMentionOnlyCandidates, off by default). A candidate named only inside parentheses, an enumeration, or a short list item is pruned before it costs a generation and a dedup call. Applies only to languages with a measured profile; cross-language notes are never gated silently. - 🚧 Fix Dead Links leave-it outcome — Settings → Show advanced settings → Create stub pages for unresolvable links (on by default). Turn it off and a dead link stays visible in every lint report until a real source defines it, instead of becoming an empty placeholder page.
- 🔁 Legacy query scorer switch — Settings → Show advanced settings → Legacy query scorer runs the previous hand-tuned linear ranking instead of the default BM25F scorer.
Eight settings that shape a run
Most of what the plugin does is decided for you. These eight settings change that, and each one is the answer to a failure someone hit:
| Setting | Where | What it changes |
|---|---|---|
| Stream ingest calls | Show advanced settings | auto streams on mobile; always and never force the choice. Streaming keeps a long ingest under a provider's idle timeout. |
| Thinking level | Advanced LLM parameters | default / low / medium / high. The AI SDK translates the level per provider, so no hand-written provider field is involved. |
| Max output tokens per call | Advanced LLM parameters | Works in both directions: raise it when a reasoning model spends the budget before writing, lower it to cap cost. Empty asks the model for its own ceiling. |
| Model context window | Advanced LLM parameters | The ceiling can no longer exceed the window, so a small local model is never sent a number it cannot accept. |
| LLM Concurrency | LLM Configuration | 1–20 parallel calls. Higher finishes a large ingest sooner; lower keeps a local model inside its memory. |
| Extraction Focus and Content Requirements | Show advanced settings | Free text written into schema/config.md. Shapes what the model extracts without editing the schema by hand. |
| Per-step output mode and thinking | Advanced LLM parameters | Override text mode or thinking level for one step — extraction, merge, query — without changing the others. |
| Excluded files | Obsidian's own list | Folder ingest, the file watcher, and the automatic path all honour the exclusions you set in Obsidian. |
- 🖥️ Ollama, LM Studio, OpenRouter, custom endpoint — out of the box. Local models work well for query (smaller context windows); ingest on a 2,000-page vault usually benefits from a long-context cloud model.
- 📄 Fully local PDF OCR on Apple Silicon — see Document / PDF / Image ingest above.
- 🔐 ChatGPT Plan (Codex OAuth) — desktop loopback or mobile device-code; credentials live only in Obsidian SecretStorage.
- 🌍 14 UI languages — English, 简体中文, 繁體中文, 日本語, 한국어, Deutsch, Français, Español, Português, Italiano, Русский, Nederlands, Polski, ไทย. UI and wiki-output language are independent — your wiki can be Chinese while the interface is English.
- 📚 14 wiki-output languages — same set; pick in Settings → Wiki Configuration, plus a Custom input option for ad-hoc prompts.
- All UI strings translated per locale — every label, modal, and notice. Adding another language is contributor-driven (PR #159 pattern).
The plugin composes with the rest of your Obsidian stack — each tool below plugs into the [[wiki-link]] graph without code changes.
-
📄 MinerU multi-format backend — what used to be a separate CLI/UI step is a built-in plugin switch; see Document / PDF / Image ingest. The MinerU online service and self-hosted MinerU are also supported.
-
🕸️ Obsidian Graph View — open the native graph on any wiki page; every
[[wiki-link]]becomes a node, every back-link an edge. Built in, zero extra bundle size. -
✂️ Obsidian Web Clipper — official browser extension. Save web pages (articles, blog posts, Reddit threads, Hacker News, research papers, YouTube transcripts) into any folder of your vault, then run Ingest from folder to batch-extract entities and concepts.
-
📊 Dataview — query the wiki like a database with DQL (
LIST FROM "wiki/entities" WHERE contains(tags, "person")) or JS API. The plugin writes standard frontmatter (tags:,type:,aliases:) on every page. -
🌿 Git — version your vault with any Git client. Because the plugin never rewrites your source files and only writes under
wiki/,git diffcleanly separates your edits from LLM-generated content. -
🎞️ Marp Slides — turn any wiki page into slide decks via Marp frontmatter (
marp: true). -
🖼️ Canvas — drag wiki cards onto Obsidian's native infinite canvas to assemble study guides, mind maps, or research overviews from
[[wiki-links]].
Most "AI search" plugins fragment your notes into chunks and embed them in a vector DB. We don't. Karpathy's argument against RAG is that chunking breaks the LLM's ability to reason across your whole knowledge graph — and that argument holds up in practice. Instead, we walk the graph you already maintain by writing [[wiki-links]].
flowchart LR
Q([User Query]) --> S1["1. Lex Fast Path<br/>(Local BM25F)"]
S1 -- "Enough signal (0 LLM calls)" --> S5
S1 -- "Weak signal" --> S2["2. Cross-Language<br/>Keyword Gen (1 call)"]
S2 --> S3["3. Local Substring<br/>Scan (0 calls)"]
S3 -- "Enough signal" --> S5
S3 -- "Still weak" --> S4["4. LLM KB<br/>Semantic Fallback"]
S4 --> S5["5. Monte Carlo PPR<br/>over [[wiki-links]]"]
S5 --> A([Cited Answer])
When you ask "Who founded Microsoft?", Query Wiki runs five stages before any answer generation:
- Lex fast path — BM25F over every entity/concept title, aliases, summary, and body text, with per-field saturation and IDF over a real document-frequency table. Free, instant, and the gating step for everything that follows.
- LLM keyword generation — the LLM proposes 8–12 cross-language keywords from your query (handles synonyms, abbreviations, and token-overlap-resistant terms in one LLM call).
- Local substring scan — every generated keyword is re-matched locally against page titles, aliases, and body snippets. No extra LLM call; rounds out noise-tolerant recall.
- LLM KB fallback — when lex + keyword scan returns weak signals, the LLM re-seeds the top-N candidates against the full wiki for one semantic pass.
- PPR graph expansion — Personalized PageRank (Haveliwala 2002) over the
[[wiki-link]]graph starting from the candidate seed set. This gives graph-aware multi-hop context: "Bill Gates" → "Microsoft" → "competitors", not just literal title overlap.
The cascade truncates at whichever stage returned enough signal — no fixed 5-stage cost, no LLM calls when lex is sufficient, and semantic fallback only when lex + keyword scan alone isn't enough.
When the cascade reaches the graph stage, the query is expanded twice before the seeds are chosen: once with the wiki's own terms, then again with LLM-proposed terms. Each pass is weighted, and the gain is measured on the project's own vaults rather than assumed — on the two vaults written by the current release, the expansion is worth +0.086 and +0.113 at r@10, with the interval excluding zero in both cases. The claim is deliberately narrow: the weighted form is not measurably better than simple concatenation, and the switch that runs the previous scorer (Settings → Advanced → Legacy query scorer) is there for any reader whose results got worse.
We use Monte Carlo PPR (Fogaras 2005) — 3,000 random walks × 50 steps each — with the dead-end rule from Haveliwala 2002. Cost is
PPR @5 = 27.1% vs. pure-kNN baseline 24.1% on a project vault. The corpus is not public, so read the number as the comparison the project measured for itself rather than a claim about your vault; tools/dev-instrument/run-recall-harness.mjs is the harness that measures recall against a vault.
We deliberately rejected the embedding path in Issue #175. The graph signal is already there — every [[wiki-link]] is a hand-curated "these are related" edge, and most providers we support (Ollama, LM Studio, Anthropic, Bedrock, Kimi, GLM, MiniMax) don't ship a /v1/embeddings endpoint at all. Adding an embedding model would mean a per-page download, a per-provider adapter, and zero benefit on retrieval quality.
Fifteen named providers, plus any OpenAI- or Anthropic-compatible endpoint. The full pick-by-tier table — cloud, local, OCR, quantization, hardware — lives in docs/MODEL-GUIDE.md, verified against models.dev.
- Frontier cloud — Anthropic, OpenAI, Google Gemini, xAI Grok, Moonshot Kimi, Zhipu GLM, MiniMax. Native PDF on Anthropic, OpenAI, and Gemini.
- Budget and open-weight — DeepSeek, Alibaba Qwen, Step, Tencent Hunyuan, Xiaomi MiMo, Google Gemma.
- Enterprise — AWS Bedrock (Anthropic and OpenAI variants, with API key, SSO, or IAM auth) and ChatGPT Plan through Codex OAuth.
- Local and gateways — Ollama, LM Studio, OpenRouter, Anthropic-compatible gateways.
- 🧠 Context window ≥ 200K tokens for vaults over about 500 pages. Below 200K the cascade may drop earlier stages to fit.
- ⚖️ Instruction-following quality matters more than raw IQ for extraction — pick a model that follows the schema template, not just the biggest leaderboard number.
- 🔌 Embedding endpoint is irrelevant — we don't use embeddings. A provider that lacks
/v1/embeddingsworks seamlessly. - 🦙 Local works for query, cloud for ingest — ingest on a 2,000-page vault usually needs a long-context cloud model; a 262K local model covers most queries.
- 🔧 Custom Headers & resilient streaming — each provider includes a free-text Custom Headers field below the API Base URL (ships with an OpenCode preset and a
/v1/responsesvariant). When a cross-origin request is refused on desktop, streaming retries overnode:httpstransport instead of degrading to a buffered answer.
🔐 Provider auth boundaries: Codex OAuth & AWS Bedrock (API Key / SSO / IAM)
- Anthropic (and its Bedrock variant) — separately billed Anthropic Platform API key.
- OpenAI — separately billed OpenAI Platform API key.
- ChatGPT Plan (Codex OAuth) — experimental, distinct provider that uses eligible Codex allowance after browser or device-code sign-in; availability follows OpenAI Codex authentication and allowance policies, not plan name. Third-party Codex compatibility, not an OpenAI partnership or a general ChatGPT API.
Settings → LLM Configuration → Bedrock (Anthropic / OpenAI) supports three auth modes, asking only for the inputs that mode requires:
- API key — bearer token path; recommended for users who already use a Bedrock API key.
- SSO — IAM Identity Center device flow. Click Sign in with AWS SSO, paste the verification code in the browser, and the plugin exchanges the SSO token in SecretStorage for temporary role credentials, signing every request with hand-rolled SigV4 (no AWS SDK added).
- IAM — static access keys for environments without SSO (CI, scheduled batch jobs), stored in SecretStorage with in-memory credential memoization.
All three modes share Obsidian SecretStorage discipline (no credentials in data.json, logs, or docs) and a zero-AWS-SDK hand-rolled OIDC + SigV4 implementation.
📖 Full pick table (cloud + local + PDF OCR + Codex OAuth + quantization + hardware tiers) → docs/MODEL-GUIDE.md
Pick a note, folder, or file selection: the LLM extracts entities and concepts and writes an interlinked wiki with [[bidirectional links]] under wiki/. Ask a question and the answer comes from those pages, with citations. Your original notes are never modified.
✅ Backward compatible since v1.0.0. Set reviewed: true on any page to protect it from overwrite. Upgrades never rewrite your vault, and PDF conversion is cache-only by default unless you opt into vault sidecars.
No chunking, no embeddings, no vector database. Personalized PageRank runs over the [[wiki-link]] graph you already maintain, giving multi-hop context at zero embedding cost.
Use Coarse or Minimal extraction granularity for batch ingest. Files that were already ingested are skipped automatically. Auto Maintenance is OFF by default, and Lint shows exact counts before running fixes — nothing is charged without your approval.
Click the status bar (shows "Ingesting... click to cancel") or run Cmd+P / Ctrl+P → "Cancel current ingestion". It stops cleanly at the next batch boundary.
GitHub Issues for bug reports · GitHub Discussions for questions and feature requests · Developer Console (Ctrl+Shift+I / Cmd+Option+I) for plugin logs.
This plugin is listed on the Obsidian Community Plugin Market and undergoes automated review for security and permissions.
- 🚫 No backend of its own, no telemetry, no data collection. Pure local software running inside Obsidian. The plugin operates no server and reports nothing anywhere.
- 🔐 Network access is opt-in and explicit. It exists only to reach services you configure: your LLM provider, and — if you turn on the MinerU document backend —
mineru.net. That second one is the exception worth naming: it uploads the document to a jurisdiction you did not choose and that publishes no retention statement. Where your document is processed lists every path and where the file goes. - 📁 Vault file access is used exclusively for wiki management (reading notes, generating pages under
wiki/, scanning dead links, detecting duplicates). The plugin never modifies your source files. - 📋 Clipboard access is used exclusively by the "Copy" button in the Query panel — and only when you click it.
For complete data locality, use Ollama or LM Studio. With a local provider, your data never leaves your machine.
Karpathy LLM Wiki is free, self-hosted, and has no backend of its own. If it has become a meaningful part of your knowledge workflow:
- ☕ Buy me a Ko-fi — one-time or monthly
- 💳 Tip via PayPal — one-time tip
- ⭐ Star the repository — helps others discover the project
Thanks to the following for supporting the project: @jameses-cyber, @issaqua, Dikson Choi
Bug reports and pull requests are both welcome. CONTRIBUTING.md covers the build, the test loop, and the checks a change must pass; CODE_OF_CONDUCT.md is short. ROADMAP.md shows what is planned, and CHANGELOG.md records what shipped.
Building from source: pnpm install, pnpm build:dev, pnpm gate:1 — the last one runs lint, architecture check, type check, build, test, and CSS lint in one command. tools/dev-instrument/ is the dev-only measurement instrument: it runs the real WikiEngine.ingestSource against a folder on disk with no Obsidian runtime and prints per-task token and wall-clock accounting, which is where the performance numbers in the changelog come from. The user-facing CLI is a sibling repo — npm i -g karpathywiki-cli.
- obsidian-llm-wiki-cli — the same
WikiEnginewith no renderer:npm i -g karpathywiki-cli, thenkarpathywiki-cli ingest --sources <path> --wiki <path> --provider <id> --key <key>. - pi-shift-router — a task-level router for pi-coding-agent: a small judge marks each turn routine or consequential, and the tier it picks drives the model, the tools, and the fallback chain. MIT. → shiftrouter.greenerai.top
- dsh-shift-router — the same routing design for the dsh-coding-agent runtime. MIT.
- dsh-plugin-dev-skill — the DSH-side Obsidian plugin workflow: scaffolds a workspace, drives a Red→Green loop, runs the same quality gates this repository uses, and leaves a release-ready
feat/*orfix/*branch.
Apache License, Version 2.0 — see LICENSE, NOTICE, and THIRD-PARTY-NOTICES.md.
Built on:
- 💡 Andrej Karpathy's LLM Wiki — the original concept
- 🛠️ Obsidian Plugin API
- 🔌 Vercel AI SDK v7 (
@ai-sdk/openai,@ai-sdk/anthropic,@ai-sdk/openai-compatible) via ObsidianrequestUrl - 🧮 Personalized PageRank (Haveliwala 2002) and Monte Carlo PPR (Fogaras 2005) — retrieval algorithms
Maintainers: @green-dalii (author) · @DocTpoint (co-maintainer since September 2026)







