Andrej Karpathy’s llm-wiki Gist hit 5,000+ stars within weeks, and developers finally saw a solution to a problem they had for a long time: information everywhere, nothing organized. Here’s how it works: feed raw documents into an LLM, have it compile everything into an interlinked wiki of markdown files, and use Obsidian to browse and query the result. The LLM writes and maintains the wiki; you just supply sources and ask questions. Knowledge compounds every time you use it. In this guide, we’ll walk you through how to build your own Karpathy-style Wiki Knowledge Base with OpenCode and SiliconFlow. OpenCode is the agent that does the actual work — browsing the web via Chrome, extracting content, and writing structured markdown into your Obsidian vault. The oh-my-openagent plugin makes OpenCode smarter: instead of using one model for everything, it routes each task to the model best suited for it — fast models for extraction, strong reasoners for analysis, long-context models for compilation. All of these models run through SiliconFlow, giving you access to 200+ frontier models — DeepSeek V4 series, GLM-5.1, Kimi K2.6, and more — with a single API key.Documentation Index
Fetch the complete documentation index at: https://docs.siliconflow.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, ensure you have:- SiliconFlow account: https://cloud.siliconflow.com/
- Your SiliconFlow API Key: https://cloud.siliconflow.com/account/ak
- OpenCode installed & configured: How to Use OpenCode with SiliconFlow APIs
- Obsidian installed (free, for viewing and navigating your wiki): https://obsidian.md/
Step 1: Give Your Agents the Right Models
oh-my-openagent is a plugin that transforms OpenCode from a single-model assistant into a multi-agent development team. It provides specialized discipline agents — each tuned for a different type of cognitive work:
| Agent | Role | Recommended model | Note |
|---|---|---|---|
| sisyphus / prometheus / atlas | Orchestration, planning. Communicative models. | Kimi-K2.6 / GLM-5.1 | Claude-like family — safe swap |
| hephaestus / oracle / momus | Deep autonomous work, complex reasoning. Principle-driven. | DeepSeek-V4-Pro | Do not use Kimi/GLM here |
| explore / librarian | Fast search, documentation retrieval. | DeepSeek-V4-Flash | High-reasoning models are overkill |
| multimodal-looker / visual-engineering | Visual tasks, frontend, multimodal. | Qwen3-VL-32B | VLM models |
Installation
Open your OpenCode and paste the following prompt:Configuration
Then edit~/.config/opencode/oh-my-openagent.jsonc to wire each agent to a model. Here’s a recommended configuration:
Step 2: Initialize Your Wiki in Obsidian
Once the oh-my-openagent plugin is installed, type ultrawork (or ulw for short) to activate Ultra Work mode, and you’re ready to build your wiki knowledge base in Obsidian. Open OpenCode and tell it:ulw Build me a personal wiki knowledge base in Obsidian following Andrej Karpathy’s wiki knowledge base concept (reference: https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f).OpenCode, powered by oh-my-openagent, will research your sources and then create the scaffolding — folders for entities, concepts, and raw sources; an index that links everything together; and entry templates with fields for summaries, tags, and source URLs. You don’t need to design the structure yourself.
.png?fit=max&auto=format&n=qMQ7CbqBPEq3px8v&q=85&s=34e30d6f7d97b5df66e7f2fabe9007b6)
.png?fit=max&auto=format&n=qMQ7CbqBPEq3px8v&q=85&s=9683204a1e07651ef6fce49048a8a940)
_Copy-(1).png?fit=max&auto=format&n=qMQ7CbqBPEq3px8v&q=85&s=5c6385dcd1651f498b0d972fb2ed228d)
Step 3: Let OpenCode Browse for You
This is where the pipeline gets interesting. Because Chrome exposes the Chrome DevTools Protocol (CDP), OpenCode can launch a browser in debug mode and take control of it — browsing pages, clicking through navigation, and reading the content just like you would manually. Tell OpenCode:Launch Chrome in debug mode and browseOpenCode will open the browser, navigate the page, and take notes. Once it’s done reading, it saves the content as raw source material in your wiki vault. You can do this for as many sources as you want. You can also skip the browser entirely and just drop existing files — notes, PDFs, articles — directly into thethe sites you want to visit. Exploreyour key topics, compile your findings, and save the source material to the raw/ folder in my wiki knowledge base. Then ingest the sources in raw/ — extract the key entities, concepts, and summaries, and create wiki entries for each with cross-links between related pages.
raw/ folder.
Then, it identifies entities (companies, models, APIs), extracts concepts (RAG, MoE architecture, token pricing), writes summaries, and builds cross-links between entries. Everything gets written into your Obsidian vault as structured markdown files.
.png?fit=max&auto=format&n=qMQ7CbqBPEq3px8v&q=85&s=b7ba38a85e5f31803f88cf9ffcc97208)
Here’s What You Get
PressCtrl+G / CMD+G in Obsidian to open Graph View.
This is what the wiki looks like after processing documentation from SiliconFlow, DeepSeek, Stepfun, and Z.ai — along with a few background research entries on Andrej Karpathy and AI infrastructure companies. Every node is an entry. Every line is a connection the AI found. The knowledge base didn’t just store the content; it understood the relationships.
.png?fit=max&auto=format&n=qMQ7CbqBPEq3px8v&q=85&s=fbf93b000100991232448acc7c136426)
Your Wiki Grows With You
The loop is simple:- Come across something worth keeping — a useful project, an insight, a rabbit hole you want to revisit
- Tell OpenCode to go read it
- It becomes part of your wiki
- Next time you’re curious about the same topic, you already know more
Resources
Andrej Karpathy’s llm-wiki
OpenCode
- Website: https://opencode.ai
- Documentation: https://opencode.ai/docs
oh-my-openagent
- Website: https://omo.dev
- Docs: https://omo.dev/docs
SiliconFlow
- Website: https://siliconflow.com
- API Documentation: https://docs.siliconflow.com
- Model Library: https://siliconflow.com/models
- Discord: https://discord.com/invite/7Ey3dVNFpT
- X: https://x.com/SiliconFlowAI