๐Ÿง  Karpathy LLM Wiki Plugin for Obsidian

September 12, 2026 ยท View on GitHub

Karpathy LLM Wiki plugin banner โ€” a network of interconnected wiki pages built from your Obsidian notes

๐Ÿง  Karpathy LLM Wiki Plugin for Obsidian

An Obsidian plugin that turns your notes into a connected, queryable knowledge base โ€” the Karpathy LLM Wiki idea, built into the editor where you already write.

Obsidian Review Perfect Score โ€ข Zero-embedding graph retrieval โ€ข 11-language native โ€ข Native PDF + images + Office ingest โ€ข Works with every provider โ€ข Local-first โ€ข No backend โ€ข GDPR-Friendly

Version License Obsidian Languages Providers
Maintenance Build Status Author
GitHub Stars Downloads Release Obsidian plugin Ask DeepWiki

English | ็ฎ€ไฝ“ไธญๆ–‡ | ็น้ซ”ไธญๆ–‡ | ๆ—ฅๆœฌ่ชž | ํ•œ๊ตญ์–ด | Deutsch | Franรงais | Espaรฑol | Portuguรชs | Italiano | ะ ัƒััะบะธะน

Official Site | Obsidian Marketplace | Blog | Discussions

๐Ÿค” Why this plugin? | ๐Ÿš€ Quick Start | โœจ Features | ๐ŸŒ Ecosystem | ๐Ÿ› ๏ธ Headless CLI | ๐Ÿ” How Retrieval Works | ๐Ÿค– Models | โ“ FAQ

ko-fi โ† If this plugin has helped you, feel free to buy me a coffeeโ™ฅ๏ธ or drop a star๐ŸŒŸโ†—


๐Ÿค” Why this plugin?

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, command palette included.

How we compare

Karpathy LLM Wiki (this plugin)nashsu / llm_wikiSamurAIGPT / llm-wiki-agentatomicstrata / 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)โœ… 11 languages๐ŸŸก EN / ไธญๆ–‡โŒ EN onlyโŒ EN only
LLM providersโœ… 16+ (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

Three we left off the table: sdyckjq/llm-wiki-skill was a Codex skill that 404s today (deleted by author); atomicstrata is included even though its retrieval is chunk-based because it's the most active TypeScript alternative; nashsu ships the largest user base of the three (10k+ stars, others 2k+) but is a Tauri desktop app, not an Obsidian plugin.

Three things we chose on purpose, not by accident

  • ๐ŸชŸ Obsidian is the runtime. No terminal, no separate app, no Docker, no Python. Install from Community Plugins, click Ingest, 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 โ€” a single plugin that reads your notes, talks to an LLM, and writes wiki pages. Everything lives inside Obsidian.
  • ๐Ÿ”Œ 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 โ€” sixteen-plus providers, none of them required to have an embedding endpoint.

๐ŸŽฏ Is it for me?

โœ… Yes, if you:

  • Want a 5-minute setup, not a 5-hour project. Install from Community Plugins โ†’ pick a provider โ†’ Ingest one note. No CLI, no Python, no separate runtime, no vector DB. You see wiki pages in wiki/ within seconds.
  • Want something clean and self-contained. The plugin has exactly zero external dependencies: no embedding model, no vector database, no pip package, no Docker container. It's a single Obsidian plugin that reads your notes, talks to an LLM, and writes wiki pages into your vault. Everything lives inside Obsidian.
  • Want a queryable chat that answers from your notes โ€” not the internet โ€” with every answer carrying [[wiki-links]] back into your knowledge graph.
  • Care about data sovereignty โ€” runs fully local with Ollama or LM Studio, never touching the internet.
  • Write in or read from any of 10 supported languages โ€” the UI and wiki output language are independent (your wiki can be in Chinese while the interface is in English).
  • Maintain the graph by writing [[wiki-links]] โ€” every link you write already enriches retrieval; no separate tagging/embedding/indexing step.
  • Want one-click maintenance โ€” Lint health scan + Smart Fix All keep duplicates, dead links, and orphan pages in check without you hand-curating.

โŒ No, if you:

  • Want a general-purpose ChatGPT replacement โ€” answers come from your vault only, not the internet.
  • Need RAG over large external corpora (Confluence, Notion, arXiv, scraped web pages) โ€” the plugin ingests your vault plus standalone PDF/Office files; bulk external-corpus RAG is out of scope by design.
  • Want a hosted SaaS with team collaboration โ€” there's no backend, no server, no shared state; everything runs locally inside your Obsidian.

๐Ÿš€ Quick Start

  1. Install. Obsidian โ†’ Settings โ†’ Community plugins โ†’ Browse โ†’ search "Karpathy LLM Wiki" โ†’ Install โ†’ Enable. Or visit the Community Plugin page and click Add to Obsidian.

  2. 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.

  3. Ingest one note. Two ways:

    • โŒจ๏ธ Keyboard: Cmd+P/Ctrl+P โ†’ "Ingest single source" โ†’ pick any Markdown (or PDF, v1.25.0+) 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/, wiki/concepts/ within seconds.

  4. 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.

Right-docked Query Wiki side panel in Obsidian showing a chat interface with wiki-link answers back to your knowledge graph

That's it. The plugin modifies nothing in your original notes โ€” only creates new pages under wiki/. Both Ingest and Query wiki are pinned to the left ribbon for one-click access anytime. (Cmd on macOS, Ctrl on Windows/Linux.)

Core commands

CommandWhat it does
๐Ÿ“ฅ Ingest single sourceCmd+P/Ctrl+P โ†’ "Ingest single source" โ€” pick a Markdown or PDF (v1.25.0+) file, get entity/concept/wiki pages. Also: ๐Ÿ–ฑ๏ธ ribbon sticker icon on the active note.
๐Ÿ“‚ Ingest from folderCmd+P/Ctrl+P โ†’ "Ingest from folder" โ€” batch-ingest every note in a folder, with smart batch skip
๐Ÿ“‘ Ingest multiple filesCmd+P/Ctrl+P โ†’ "Ingest multiple files" โ€” pick a subset via a two-pane file tree (with live queue + per-file cancel)
๐Ÿ” Query wikiCmd+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 wikiCmd+P/Ctrl+P โ†’ "Lint wiki" โ€” full health scan: duplicates, dead links, empty pages, orphans, missing aliases, contradictions
โšก Smart Fix Allinside Lint Modal โ€” one-click causal-order repair with per-phase report
๐Ÿ“‹ Regenerate indexCmd+P/Ctrl+P โ†’ "Regenerate index" โ€” rebuild wiki/index.md with current pages and aliases
โน CancelCmd+P/Ctrl+P โ†’ "Cancel current ingestion" or click the status bar โ€” stops cleanly at the next batch boundary
๐Ÿ“Š Ingestion historyCmd+P/Ctrl+P โ†’ "View Ingestion History" โ€” searchable UI for past ingestions, lint reports, maintenance runs

Command panel โ€” all LLM Wiki commands live in Obsidian's command palette

BeforeAfter
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.


โœจ Features

๐Ÿ“š Knowledge quality

  • ๐Ÿ” 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: true pages are protected from overwrite.
  • ๐ŸŽจ Custom tag vocabulary โ€” define your own entity-type and concept-type tags in Settings โ†’ Wiki โ†’ Tag Vocabulary โ†’ Custom. The vocabulary is a schema-injection hint, not a wire-level gate โ€” small/local models may still drift (about one in ten returns the model's built-in taxonomy). Lint surfaces the rest. Design anchor for schema enforcement: Issue #328.

๐Ÿ“„ Document / PDF / Image ingest

Five on-ramps, switchable per ingest:

  1. ๐Ÿ†• Built-in MinerU backend (v1.27.0, #404) โ€” Settings โ†’ Wiki Configuration โ†’ Markdown Conversion Backend โ†’ MinerU. PDF + images (PNG/JPG/JPEG/JP2/WebP/GIF/BMP) + Office (DOC/DOCX/PPT/PPTX/XLS/XLSX) through MinerU's Precise parser. Token in Obsidian SecretStorage. Best path for scientific papers, scanned documents, and Office files where layout preservation matters. Server caps: 200 MB / 200 pages per PDF, 256 MB / 10,000 files per archive.
  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 as a built-in PDFโ†’Markdown backend. Enable Markitdown in oMLX, load Baidu Unlimited-OCR (3B / 570M-active, open-sourced 2026-06) as the vision model, point the plugin at oMLX as a Custom OpenAI-Compatible provider, turn on Force PDF Support, pick the multimodal model oMLX is serving. The PDF never leaves your machine.
  4. ๐Ÿ› ๏ธ Third-party extractor (MinerU online UI) โ€” use the MinerU Extractor online service for a quick manual UI when you don't want to wire up an API token. Download the converted .md, drop it in your vault outside the wiki folder, and ingest as a regular Markdown note.
  5. ๐Ÿ”Œ Force PDF Support โ€” for any other OpenAI/Anthropic-compatible endpoint that accepts file parts, the plugin attempts the call (Settings โ†’ LLM Configuration โ†’ Advanced). The endpoint decides; failures surface as a localized Notice.

Caveat for Office formats: Obsidian does not natively render .docx / .xlsx / .pptx (file-formats), so the practical workflow for Office files is: MinerU converts to .md, the plugin ingests that .md into wiki pages, and the original Office file is kept around for reference. Use a community plugin like Pandoc Plugin / Docxer / Md Importer / Office Reader if you need to inline-preview Office files.

Plumbing shared across all paths:

  • ๐Ÿ—„๏ธ Bounded cache โ€” .obsidian/plugins/karpathywiki/pdf-cache/ stores converted Markdown keyed by content hash + model + converter version; 100 MB total / 1000 entries / 10 MB single-entry caps with LRU-by-mtime eviction.
  • ๐Ÿ“ Optional vault sidecar โ€” Settings โ†’ Wiki Configuration โ†’ Wiki Folder โ†’ Write PDF Markdown to Vault writes <basename>.pdf.md next 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 (v1.27.0, #496) โ€” every generated sources/<slug>.md page now carries a Mentions in Source section built from the same verbatim quotes the extraction captured per entity/concept (the prose the model already proved it could see), so the underlying document is the one wiki page with a real, grounded trail back to its source text.

๐Ÿ“– Full setup walkthroughs for all paths (cloud providers, oMLX hardware tiers, MinerU installation, cache housekeeping) โ†’ docs/PDF-OCR-GUIDE.md

๐Ÿ’ฌ Query & maintenance

  • ๐Ÿงญ 5-stage PPR cascade โ€” see How retrieval works. Personalized PageRank over [[wiki-link]] gives graph-aware multi-hop context.
  • ๐ŸชŸ Right-docked side panel โ€” Query Wiki opens in a Copilot-style right sidebar leaf (v1.22.1+) instead of a centered modal.
  • ๐Ÿ” Lint health scan โ€” single command catches: duplicates, dead links, empty pages, orphans, missing aliases, contradictions.
  • โšก Smart Fix All โ€” one-click causal-order repair: fill aliases โ†’ merge duplicates โ†’ fix dead links โ†’ link orphans โ†’ expand empty pages, with per-phase report.
  • ๐Ÿ†• Fix Dead Links leave-it outcome (v1.27.0, #485) โ€” Settings โ†’ Advanced โ†’ Create Stubs for Unresolvable Links (default ON) lets you opt out of empty placeholder pages: when off, the dead link stays visible in every lint report until a real source defines it, and ingest creates pages through normal channels. The never-LLM-expand gate from #197 is unchanged โ€” the new control only governs whether the stub page is written at all.
  • ๐Ÿ“Š Operation history panel โ€” searchable, filterable UI for past ingestions, lint reports, and maintenance runs.
  • ๐Ÿ›ก๏ธ Pre-ingest gate โ€” empty / whitespace / frontmatter-only notes are rejected before any LLM call; content-hash dedup catches identical files across paths.
  • ๐Ÿ†• Ingest candidate gate (v1.27.0, #514 / PR #521) โ€” opt-in toggle (skipMentionOnlyCandidates, default off, Settings โ†’ Advanced). For sources whose language has a measured profile (de measured; en/fr/es/pt/nl/ko estimated with pinned edge cases; zh/ja character-script thresholds unmeasured), candidates named only inside parentheses / enumerations / short list items are pruned before they cost a page plus dedup and generation calls. Cross-language notes are not gated; wiki languages without a profile report once per ingest and never silently skip.
  • ๐Ÿ†• Per-step task policies (v1.27.0, #525 / #490) โ€” LLM Advanced โ†’ Task Policies field; override the per-step text-mode/thinking setting without code changes. Built-in baseline stays intact for steps you don't list.

๐Ÿ”’ Privacy

  • ๐Ÿšซ No backend, no tracking, no analytics. Runs entirely inside Obsidian. Network is used only to communicate with the LLM provider you configure.
  • ๐Ÿ“ Source files are read-only. The plugin never modifies your original vault notes โ€” only creates new pages under wiki/.
  • ๐Ÿฆ™ Full local mode. Ollama, LM Studio, or any local OpenAI-compatible endpoint โ†’ your notes never leave your machine.
  • ๐Ÿ” Minimal permissions. Vault file access for wiki management. Clipboard access only when you click the "Copy" button in the Query modal.

๐Ÿฆ™ Local-first

  • ๐Ÿ–ฅ๏ธ Ollama, LM Studio, OpenRouter, custom endpoint โ€” out-of-the-box. Local models work for query (smaller context windows); ingest on a 2,000-page vault usually needs a long-context cloud model.
  • ๐Ÿ“„ PDF OCR path is fully local 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. (See Anthropic vs OpenAI vs Codex OAuth below for the full provider-boundary explanation.)

๐ŸŒ Language

  • ๐ŸŒ 11 UI languages โ€” English, ็ฎ€ไฝ“ไธญๆ–‡, ็น้ซ”ไธญๆ–‡, ๆ—ฅๆœฌ่ชž, ํ•œ๊ตญ์–ด, Deutsch, Franรงais, Espaรฑol, Portuguรชs, Italiano, ะ ัƒััะบะธะน. UI and wiki-output language are independent โ€” your wiki can be Chinese while the interface is English.
  • ๐Ÿ“š 11 wiki-output languages โ€” same set; pick in Settings โ†’ Wiki Configuration. Custom input option for ad-hoc prompts.
  • All UI strings translated per locale โ€” every label, modal, and notice. Adding a 12th language is contributor-driven (PR #159 pattern).

๐ŸŒ Ecosystem

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 (built-in since v1.27.0) โ€” what used to be a separate CLI/UI step is now a plugin switch; see Document / PDF / Image ingest for the full path table. The MinerU online service remains available for users who prefer a quick UI over an API token; self-host MinerU is also an option.
  • ๐Ÿ•ธ๏ธ 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, recipes, research papers, YouTube transcripts via Interpreter) into any folder of your vault, then run the plugin's Ingest from folder command 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, so Dataview queries work out of the box.
  • ๐ŸŒฟ Git โ€” version your vault (any Git client). The plugin never rewrites your source files; only creates new pages under wiki/, so git diff cleanly separates your edits from LLM-generated content.
  • ๐ŸŽž๏ธ Marp Slides โ€” turn any Obsidian note into slide decks via Marp frontmatter (marp: true). Wiki pages are pure Markdown, so they render as slides without extra conversion.
  • ๐Ÿ–ผ๏ธ Canvas โ€” Obsidian's native infinite canvas. Drag wiki cards onto a Canvas to assemble study guides, mind maps, or research overviews from [[wiki-links]] without leaving the vault.
  • ๐ŸŽค Obsidian Nous โ€” companion plugin for local voice memo and meeting capture (whisper.cpp on macOS; audio never leaves the machine). Generates speaker-labeled transcripts and its own wiki hub pages. Independent of this plugin โ€” both can share the same vault without coupling.

๐Ÿงฐ Headless CLI

Most users should ignore this section. The plugin's user-facing CLI lives in the sibling repo green-dalii/obsidian-llm-wiki-cli โ€” install with npm i -g karpathywiki-cli and run karpathywiki-cli ingest --sources <path> --wiki <path> --provider <id> --key <key>.

What ships in this repo at tools/dev-instrument/ is the dev-only headless measurement instrument for engine contributors โ€” it runs the real WikiEngine.ingestSource against a vault on disk with no Obsidian runtime, prints per-task token + wall-clock accounting โ€” same numbers that drive the perf evidence in CLAUDE.md and release notes. See tools/dev-instrument/README.md for the entry command, env vars, measurement modes, and exit-code spec.


๐Ÿ” How retrieval works

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]].

The 5-stage seed-selection cascade

When you ask "Who founded Microsoft?", Query Wiki runs five stages before any answer generation:

  1. Lex fast path โ€” straight token-overlap against every entity/concept title and aliases. Free, instant, and the gating step for everything that follows.
  2. 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).
  3. 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.
  4. 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.
  5. PPR graph expansion โ€” Personalized PageRank (Haveliwala 2002) over the [[wiki-link]] graph starting from the candidate seed set. This is what 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; semantic fallback only when lex + keyword scan alone isn't enough.

Personalized PageRank at scale

We use Monte Carlo PPR (Fogaras 2005) โ€” 3,000 random walks ร— 50 steps each โ€” with the dead-end rule from Haveliwala 2002. Cost is O(K ร— L) (K = walks, L = steps per walk), independent of the number of pages, so a 2,000-page vault sees the same expansion latency as a 200-page one.

PPR @5 = 27.1% vs pure-kNN baseline 24.1% on the project's own benchmark corpus (the only published retrieval benchmark in this open-source LLM-Wiki space).

Why no embeddings

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.


๐Ÿค– Models

Supported providers (16+, all from models.dev cross-check 2026-07):

ProviderSeriesNotes
AnthropicClaude 5 seriesNative PDF; /v1/messages protocol
OpenAIGPT-5.6 series (Sol / Terra / Luna)Native PDF; Platform API key
Google GeminiGemini 3.6 seriesNative PDF (file parts since 1.5); OpenAI-compatible endpoint
DeepSeekDeepSeek V4 seriesOpenAI-compatible; lowest cost tier
Alibaba QwenQwen3.7/3.8 seriesOpenAI-compatible (DashScope)
xAI GrokGrok 4 seriesOpenAI-compatible; long context
Moonshot KimiKimi K3 seriesOpenAI-compatible; 2.8T MoE frontier
Zhipu GLMGLM-5 seriesOpenAI-compatible; strong bilingual
MiniMaxMiniMax M3 seriesOpenAI-compatible; 1M context
Step (้˜ถ่ทƒๆ˜Ÿ่พฐ)Step 3 series (Flash)OpenAI-compatible; fast inference
Tencent HunyuanHy3 seriesOpenAI-compatible; open-weight MoE
Xiaomi MiMoMiMo V2.5 seriesMIT open-source; flat pricing
Google GemmaGemma 4 seriesOpen-weight; 262K context
AWS BedrockAnthropic + OpenAI variantsNative PDF; VPC / compliance path; API key + SSO + IAM (v1.27.0, #425)
ChatGPT Plan (Codex OAuth)Codex Responses APIBrowser/device-code sign-in; SecretStorage
Local: Ollama, LM Studio, OpenRouter, Anthropic-CompatibleAny OpenAI-/Anthropic-protocol modelCustom OpenAI-Compatible + Anthropic-Compatible (Token Plan / Coding Plan)

This plugin feeds the LLM your full Wiki context per query โ€” so long-context models win. The full tiered table (cloud + local) lives in docs/MODEL-GUIDE.md, cross-checked against models.dev so the picks stay current.

What matters

  • ๐Ÿง  Context window โ‰ฅ 200K tokens for vaults over ~500 pages. Below 200K the cascade may drop earlier stages to fit.
  • โš–๏ธ Instruction-following quality matters more than raw IQ for the extraction task โ€” pick a model that follows the schema template, not the biggest leaderboard number.
  • ๐Ÿ”Œ Embedding endpoint is irrelevant โ€” we don't use embeddings. A provider that lacks /v1/embeddings is fine (most of our 16+ providers don't ship one).
  • ๐Ÿฆ™ 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.

For PDF / image / Office ingest, see Document / PDF / Image ingest in Features โ€” Anthropic, OpenAI, Bedrock, and Gemini read PDFs as file parts natively; the built-in MinerU backend (v1.27.0+) and Force PDF Support cover everything else.

Anthropic vs OpenAI vs Codex OAuth โ€” they are distinct providers

  • 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.

AWS Bedrock โ€” three auth modes (v1.27.0, #425)

Settings โ†’ Provider โ†’ Bedrock (Anthropic / OpenAI) now picks one of three auth modes; the provider row then asks for the inputs that mode actually needs:

  • API key โ€” the original Stage-1 bearer path; behavior is byte-for-byte identical to v1.26.4 and the recommended pick for users who already pay for a Bedrock API key.
  • SSO โ€” IAM Identity Center device flow. Click Sign in with AWS SSO, paste the verification URL code in the browser, the plugin receives an SSO token via karpathywiki-bedrock-sso in SecretStorage, exchanges it for temporary role credentials, and signs every request with hand-rolled SigV4 (no AWS SDK added). Account ID and role name are auto-detected when the SSO identity exposes exactly one of each; otherwise enter them in the provider settings.
  • IAM โ€” static access keys for environments without SSO (CI, scheduled batch jobs). Stored in karpathywiki-bedrock-iam in SecretStorage; the in-memory cache memoizes per access-key to keep SigV4 signing within expiry.

All three modes share the same Obsidian SecretStorage discipline (no credentials in data.json, logs, or docs) and the same zero-AWS-SDK hand-rolled OIDC + SigV4 path. Bedrock region is independent of auth mode and is configured in the same provider row.

๐Ÿ“– Full pick table (cloud + local + PDF OCR + Codex OAuth + quantization + hardware tiers) โ†’ docs/MODEL-GUIDE.md

โ“ FAQ

What does the plugin actually do?

Pick any note, folder, or selection; the LLM extracts entities and concepts and generates an interlinked wiki with [[bidirectional links]]. Ask questions and get conversational answers grounded in your notes, not the internet. Your original vault notes are never modified.

How do I get started?

Install from Obsidian Community Plugins โ†’ pick a provider โ†’ Test Connection โ†’ run Ingest single source on any note. First wiki pages appear within seconds. See Quick Start.

Is my existing wiki safe?

โœ… Backward compatible since v1.0.0. Set reviewed: true on any page to protect it from overwrite. Upgrading from v1.24.x doesn't rewrite your vault; v1.25.0's PDF ingest is cache-only by default, and v1.27.0 adds native PDF + images + Office ingest without changing the on-disk wiki layout.

Can I ingest PDFs, images, and Office documents?

โœ… Yes. Anthropic, OpenAI, Bedrock, and Gemini read PDFs natively; the built-in MinerU backend (v1.27.0) covers everything else (PDF + images + Office). Full walkthrough โ€” cloud providers, Apple Silicon OCR, Force PDF Support, cache housekeeping โ€” in docs/PDF-OCR-GUIDE.md.

Is my data sent anywhere?

๐Ÿšซ No backend, no analytics โ€” the plugin runs entirely inside Obsidian. Only text you explicitly send for ingest/query leaves your device, and only to the LLM provider you configure. For complete data locality, use Ollama or LM Studio.

Can I use the plugin in my language?

๐ŸŒ 11 languages for both UI and wiki output. UI and wiki language are independent. Adding a 12th language is contributor-driven (PR #159 pattern).

How is this different from a RAG chatbot?

๐Ÿšซ No chunking. ๐Ÿšซ No embeddings. ๐Ÿšซ No vector DB. โœ… Personalized PageRank over your existing [[wiki-link]] graph โ€” graph-aware multi-hop context, zero embedding cost, full local-model support.

Which LLM should I use?

Long-context models (โ‰ฅ200K tokens) work best. The Models section covers the principles; the full tiered table is in docs/MODEL-GUIDE.md.

Is there a published benchmark?

Yes โ€” PPR @5 = 27.1% vs pure-kNN baseline 24.1% on the project's own corpus. The full pipeline and benchmark script are described in How retrieval works.

How do I control API costs?

Use Coarse or Minimal extraction granularity for batch ingest. Smart Batch Skip auto-detects already-ingested files. Auto-Maintenance is OFF by default. Lint shows counts before running fixes โ€” nothing is charged without your approval.

How do I cancel a running operation?

Click the status bar (shows "Ingestingโ€ฆ click to cancel") or Cmd+P/Ctrl+P โ†’ "Cancel current ingestion". Stops cleanly at the next batch boundary.

Where do I get help?

GitHub Issues for bug reports ยท GitHub Discussions for questions and feature requests ยท Developer Console (Ctrl+Shift+I / Cmd+Option+I) for plugin logs.


๐Ÿ”’ Privacy

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 for wiki management (reading notes, generating pages, scanning dead links, detecting duplicates). The plugin never modifies your source files.
  • ๐Ÿ“‹ Clipboard access is used exclusively by the "Copy" button in the Query modal โ€” 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.


๐Ÿ’– Support

If LLM-Wiki has become a meaningful part of your knowledge workflow:

Thanks to the following for supporting the project:

@jameses-cyber, @issaqua, Dikson Choi


๐Ÿ”ญ Other projects

  • obsidian-llm-wiki-cli โ€” the headless ingest CLI, sibling repo shipped as the karpathywiki-cli npm package. Runs the same WikiEngine against a vault on disk, no renderer. Install with npm i -g karpathywiki-cli. The in-tree tools/dev-instrument/ is the dev-only measurement instrument that drives the per-task cost numbers in this plugin's release notes.
  • pi-shift-router โ€” a task-level router for pi-coding-agent. Before each turn a small LLM judge marks your message routine or consequential, and the tier it picks drives the whole turn. Complex tasks go further: the Smart tier runs as a CTO that plans the work, delegates implementation to Fast subagents, reviews each result and iterates. Upgrades are instant, downgrades wait for a sustained trend; per-tier fallback chains ride out 429s and 5xx. Zero runtime deps, MIT. โ†’ shiftrouter.greenerai.top
  • dsh-shift-router โ€” DSH fork of pi-shift-router, same task-level routing design but targeted at the dsh-coding-agent runtime. Same judge-driven tier picks, same per-tier fallback chains, MIT.
  • dsh-plugin-dev-skill โ€” DSH companion to the Claude-side obsidian-plugin-dev workflow: scaffolds an Obsidian plugin workspace, drives the Redโ†’Green TDD loop, runs the Six-Gate quality closure (lint/tsc/test/build/css-lint), and prepares a release-ready branch on feat/* or fix/*. Built so DSH-using contributors get the same scaffolding + gate experience without copy-pasting from CLAUDE.md.

๐Ÿ“œ License & Credits

Apache License, Version 2.0 โ€” see LICENSE and NOTICE.

Built on:

Maintainers: @green-dalii (author) ยท @DocTpoint (co-maintainer since September 2026)

Star History Chart