The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Samong listing page.
A local-first knowledge base for the notes already in your repositories
You solved it once and wrote it down. Six months later the note is still in the
repo and you cannot find it. Point Samong at a project root and the .md files
you would commit become searchable and linked — and readable by the AI tools you
already work with. Plain Markdown,
Obsidian-compatible ([[wikilink]] /
[[wikilink|alias]]), no account, no cloud, one binary.

.md file you would commit. Point it at a repository, not
at a special notes folder. .gitignore is respected and dependency
directories are always skipped, so a project root indexes your ADRs, runbooks
and design docs without dragging in node_modules — and samong doctor tells
you exactly what counted and what did not.samong-mcp speaks MCP, so Claude
Code and Claude Desktop search, read and write the same knowledge base you do.
No pasting context back in every session (setup).README.md. A title cannot tell them apart, and an index keyed on
titles silently collapses them — so search results, the API and the MCP tools
all carry the real path..gitignore answers "what do
I distribute?"; a knowledge base has to answer "what do I learn from?".
scope.include pulls a dependency's own docs in as read-only reference notes —
one project, one brain, no second vault.[[other-vault/note]]
resolves across every registered vault, and backlinks come back the other way
without any cross-vault index to keep in sync.--features semantic
and run samong embed to rank by meaning as well as by words, with a
multilingual model that never leaves your machine. Off by default on purpose:
see below.<vault>/.brain/ and can be rebuilt from the .md files at any time — there
is nothing to lock you in.Four ways in, in the order that costs you least trouble.
macOS and Linux — waanvar/homebrew-samong:
Windows — waanvar/scoop-samong:
Once the winget submission is accepted this becomes winget install Waanvar.Samong
with nothing to add first, since winget ships with Windows. The manifests are in
packaging/winget/ and CI installs from them on every push; the pull request to
Microsoft is the only step left. If you are on Windows and want to avoid the
SmartScreen warning below, this section is the answer — not the download links.
Arch Linux — paru -S samong-bin, once the package is submitted. Until then
packaging/aur/ builds it: cd packaging/aur && makepkg -si.
No Gatekeeper prompt, no SmartScreen warning. Both fetch the archive
themselves and verify it against the SHA-256 published beside it. Nothing arrives
through a browser, so macOS never sets the com.apple.quarantine attribute it
would otherwise refuse to open, and Windows has no download reputation to weigh.
Each tap's CI installs on a real runner and asserts this rather than assuming it.
Builds all four binaries with the web UI inside them; needs Rust 1.88 or newer. Compiling locally, there is likewise no download for either OS to object to.
Download, extract, double-click:
| Windows | Open Samong.exe |
| macOS | Samong.app |
| Linux | samong-app (copy samong.desktop to ~/.local/share/applications/ for a menu entry) |
No terminal, no configuration, no account. On the very first run it makes a
vault at Documents/Samong with two notes in it, indexes them, and opens
your browser. Everything after that is your own folder of Markdown files.
The ⏻ button in the top right stops it — the server outlives the browser tab,
so closing the tab is not the same as quitting.
Already have notes somewhere? Use + Add vault… in the vault menu and point it at that folder. Nothing is moved or converted.
Two environment variables exist for the awkward cases, because a double-clicked
program has no arguments: SAMONG_PORT when 3117-3128 are all taken by
something that stays, and SAMONG_NO_OPEN=1 to start without a browser.
If the launcher fails it writes ~/.config/samong/launcher.log and opens it.
Grab one from Releases, extract,
run. Direct links that always point at the newest release:
Linux ·
Windows ·
macOS Apple Silicon ·
macOS Intel. No Rust or Node needed — the web UI is already inside the binary. Four
platforms: x86_64-linux, x86_64-windows, aarch64-macos (Apple Silicon),
x86_64-macos (Intel).
Verify what you downloaded against the .sha256 published beside it:
This applies to options 3 and 4 above — anything that arrives through a browser.
A package manager and cargo install are unaffected: neither leaves a download
for the OS to be suspicious of.
Samong has no code-signing certificate, so the OS gets in the way:
macOS — Gatekeeper refuses to open it (not merely a warning). Either
right-click Samong.app → Open, which asks once, or clear the flag:
Windows — SmartScreen warns and names the publisher as unknown; choose More info → Run anyway. The executables do carry an embedded icon and version information, so the dialog names Samong rather than a bare filename, but that is as far as it goes without a certificate.
Both happen to any open-source project without a paid certificate and are not a sign that something is wrong with the file — but do check the checksum above, and only download from the official Releases page.
Buying a certificate would not remove the Windows warning, which is worth saying because it looks like it should. A certificate replaces "Unknown publisher" with a name; the warning itself is driven by SmartScreen reputation, and since 2024 not even an EV certificate grants that on sight. Reputation is also tied to the certificate's thumbprint, so it resets when the certificate is renewed — at most every 459 days under the rules that took effect in February 2026.
Option 1 avoids all of this, today and for free. Scoop, Homebrew and winget fetch and verify the archive themselves, so there is no browser download for either OS to weigh.
Needs Rust (stable) and Node.js 20+ (Node only if you want the web UI, which is embedded into the binary at build time — without it you get the CLI + API).
Order matters: build the web UI before
cargo build/cargo install—samong-serverembeds the web UI into the binary, so it ships as a single file with no UI folder alongside it. (To build without installing, usecargo build --release; binaries land intarget/release/.)
Update to the latest version later with samong update (see Updating below).
samong-server start serves the embedded web UI and opens your browser — no UI
files needed alongside it. Change the port with --port 8080, skip the browser
with --no-open (the old samong-server --port 8080 form still works).

| Command | What it does |
|---|---|
samong new <title> | Create a note + index it |
samong edit <title> | Open in $EDITOR, reindex on close |
samong rename <old> <new> | Rename + rewrite every [[wikilink]] pointing at it |
samong delete <title> | Delete + warn about dangling backlinks |
samong links <title> [--all-vaults] | Forward links + backlinks (incl. cross-vault) |
samong orphans / samong broken | Unlinked notes / links to missing notes |
samong search <q> [--vault <name>|--all-vaults] [--limit N] | Full-text search |
samong graph [--all-vaults] | Link-graph edges |
samong list | List every note |
samong reindex [--full] | Sync the index (changed files only / everything) |
samong embed [--reference] | Embed notes for semantic search (needs --features semantic) |
samong pack <dir> [--include-reference] | Copy the publishable part of the vault out — notes and manifest, never the index |
samong watch | Watch the vault, keep the index fresh |
samong vault add/list/remove | Manage the central registry |
samong vault install <git-url> | Install someone else's vault as read-only reference notes |
samong vault update [name] | Pull the latest content for installed vaults |
samong vault verify [name] [--require-signature] | Check installed vaults are what their publishers published |
samong doctor | Report what counts as a note, what was skipped, and any ambiguous titles |
samong update [--check] | Update to the latest GitHub release (--check only reports) |
samong-app | The double-click launcher: finds or creates a vault, serves, opens the browser |
One rule: a note is a .md file you would commit. Point samong vault add
straight at a project root — no configuration needed. Samong will:
.gitignore, so node_modules/, dist/ and target/ never get indexednode_modules, vendor, site-packages, __pycache__, Pods, bower_components).git, .obsidian, .brain)samong doctor shows what that adds up to:
To adjust it, add samong.toml at the vault root — commit it, so every
machine and any central server reads the same rules. Every field is optional:
If your repo gitignores its own notes, .samongignore brings them back. Same
syntax as gitignore, negation included:
scope.include).gitignore answers "what do I distribute?". A knowledge base has to answer
"what do I learn from?" — not the same question. The clearest case is
documentation shipped inside a dependency: Next.js puts 400-odd Markdown files
in node_modules.
Those become reference notes — same vault, same index, so [[installation]]
from your own note resolves. One project, one brain; no second vault.
.samongignorewith!node_modules/...cannot do this. Dependency directories are pruned before the walker looks inside them, so there is nothing for a negation to match, and gitignore itself cannot re-include a path whose parent is excluded.scope.includeis the right lever.
Two things to know:
samong.toml travels with git;
node_modules does not. A machine that has not installed dependencies — or a
server holding only git history — will not find them. That is not an error:
Samong skips them and prints one warning line, and samong doctor reports
which roots are present.save_note / PUT / delete / rename
refuse them: the file belongs to a dependency and any edit would be erased on
the next install. This matters most for agents — save_note("installation")
must not overwrite a framework's own docs page.exclude applies to the main scan only. To leave part of an include root out,
point include at a narrower directory.
Deliberately ignored: the global gitignore (
~/.config/git/ignore),.git/info/exclude, and.gitignorefiles above the vault. Those are per-machine, and honoring them would make one repo index differently on two laptops.
A vault can be handed to another person. samong pack copies out the
publishable part — notes and manifest, never the index — and the reader installs
the result straight from git:
That clones into vendor/sre-handbook, adds it to scope.include, adds it to
your .gitignore, and reindexes. The notes land as reference notes by the
rules above: same graph, same search, [[Runbook]] from your own note resolves
into them — and read-only, because an edit would be erased by the next
samong vault update.
The .gitignore line is written for you, with the reason attached:
Results say whose they are. A hit from an installed vault carries that vault's name and licence, in the CLI, the web UI, the API and the MCP tools:
The moment worth protecting is not search, it is the paragraph somebody copies
out of a result into work of their own — after which nothing records where it
came from. A vault that states no licence is reported as
licence not stated rather than left blank: that is an answer, not a gap.
samong vault verify)Integrity is not the missing piece — an installed vault is a git checkout, and
every byte is already covered by the commit hash. A SHA256SUMS beside the
content would restate that, and restate it weaker: whoever can change a note can
change the checksum file next to it.
What is missing is authenticity, which is a signature. Publishers should sign
commits, not release tags — samong vault update follows a branch, so
readers take commits between tags and a tag signature says nothing about the
commit they just pulled:
Readers get that key pinned at install, the way SSH pins a host key: whoever gave you the URL is the authority the first time, and every update afterwards is checked against it.
git -C vendor/<name> config --unset samong.signer..md
dropped into an installed vault would be indexed and would show up in search
attributed to its publisher.--require-signature is there for anyone who has decided otherwise.Nothing about who published what is stored outside the checkout. The clone is its own provenance, and a record kept elsewhere could only drift away from it.
samong update downloads the latest GitHub release and replaces all three
binaries (samong / samong-server / samong-mcp) in place — including the embedded
web UI. samong update --check reports whether a newer version exists without
installing, and samong-server start prints a one-line notice when an update is
available (best-effort; never blocks, never fails offline).
A published GitHub release is required first (
git tag v0.1.0 && git push origin v0.1.0triggers the workflow that builds binaries for all three OSes) beforesamong updatecan find anything.
Lexical search only finds notes that use the words you typed. When you cannot remember the words you wrote, it finds nothing. Semantic search fixes that by comparing meaning — and it is off by default, which is a decision, not an oversight.
What it costs you. The feature pulls in ONNX Runtime, and the first embed
downloads intfloat/multilingual-e5-small from Hugging Face into
~/.config/samong/models — 465 MB on disk, measured, not estimated: a 470 MB
float32 ONNX graph plus a 17 MB tokenizer. Your notes and your queries still never
leave the machine, and nothing needs a network after that download. But "one
binary, nothing to fetch" stops being true, and that promise is why people choose
this over a cloud tool — so it is yours to opt into, not ours to impose.
Embedding is the slowest thing the program does. A real measurement: 430 notes, most of them vendored Next.js documentation, took 11m 25s on a laptop CPU. That is also why reference notes are excluded unless you ask for them — they were 95% of that time.
The model is multilingual on purpose. The nearest comparable project embeds with an English-only model, which quietly makes its semantic search useless for anyone whose notes are not in English. This one covers 100+ languages.
How the two rankings combine. Reciprocal Rank Fusion, not a weighted sum of scores: BM25 is unbounded and cosine similarity is −1 to 1, so mixing the raw numbers needs a calibration that drifts with every vault. Fusing positions needs none. A note ranked well by both wins; a note ranked first by only one still places.
Notes are chunked (~900 characters, split at paragraph breaks) so a long document
is matched by its relevant section rather than its first page, and each note
scores as its best chunk. Vectors live in <vault>/.brain/vectors.redb, stamped
with the same content hash the reindexer uses, so re-embedding skips unchanged
notes. Delete that file and the vault is exactly what it was.
samong doctor reports how many notes have vectors, so "semantic search did not
help" can be told apart from "nothing was embedded".
An original design, not an Obsidian clone. The whole UI is embedded into the
samong-server binary (rust-embed) — ships as one file, runs instantly, and
the fonts are bundled so it works offline.
Ctrl+K focuses the field in the frame — there is
no palette to open. Typing dims every node that does not match, so a query
becomes a place; Esc brings the whole map back.[[ for note autocomplete across vaults; click wikilinks to follow
(missing notes are created on the spot)?lang=, your saved choice, or the browser, and
switchable in the header. English is the default.UI development: cd web && npm run dev (Vite proxies to samong-server on
port 3117).
Binds to 127.0.0.1 only (local-first, no auth).
| Endpoint | Purpose |
|---|---|
GET /api/vaults | Registered vaults |
POST /api/vaults | Register a vault ({name, path}) — no terminal needed |
GET /api/vaults/{vault}/notes | Notes in a vault: {key, title, reference} |
GET /api/vaults/{vault}/doctor | The same scope report as samong doctor |
GET/PUT/DELETE /api/notes/{vault}/{path} | Read / write / delete markdown, addressed by path |
GET /api/links/{vault}/{path} | Forward + backlinks + cross-vault |
GET /api/search?q=&vault=&limit= | Search (omit vault for all vaults) — results include the file path |
GET /api/graph?vault= | Nodes + edges as JSON |
WS /ws | Events when .md files change |
samong-mcp is an MCP server over stdio. Agents get these tools:
search_notes, read_note, save_note, get_links,
list_notes, list_vaults — deliberately no delete tool; erasing knowledge
stays a human action.
MCP is a feature of the client, not of the model. The useful question is not "can Gemini use MCP" but "can the program I talk to Gemini through use MCP" — the same model connects or does not depending on what you run it in.
samong-mcp runs on your machine over stdio, so it works with any client on the
same machine. A browser-only assistant cannot reach it — ChatGPT on the web,
Gemini on the web and Grok in X all run on someone else's server, and their
connector features want an MCP server at a public URL. That is the opposite of
what Samong is for.
| Client | Model | Add it with | Config file |
|---|---|---|---|
| Claude Code | Claude | claude mcp add --scope user samong -- samong-mcp | .mcp.json |
| Claude Desktop | Claude | install the .mcpb from the release page | claude_desktop_config.json |
| Codex CLI / ChatGPT desktop | GPT | codex mcp add samong -- samong-mcp | ~/.codex/config.toml |
| Gemini CLI | Gemini | gemini mcp add samong samong-mcp | ~/.gemini/settings.json |
| Qwen Code | Qwen | qwen mcp add samong samong-mcp | ~/.qwen/settings.json |
| Kimi Code CLI | Kimi | kimi mcp add samong -- samong-mcp | managed by kimi mcp |
| Grok Build | Grok | grok mcp add samong -- samong-mcp | ~/.grok/config.toml |
| GLM (Z.ai) | GLM | through another client — see below | that client's |
| DeepSeek | DeepSeek | through another client — see below | that client's |
Claude Code, Gemini CLI and Qwen Code all take the same JSON shown above; only the file location differs. Codex and Grok take TOML instead:
Note the underscore — Codex spells it mcp_servers, not mcpServers, and gets it
wrong silently.
GLM and DeepSeek are models, not MCP clients. Z.ai's GLM Coding Plan is built to run inside clients you already have (Claude Code, Cline, OpenCode), and DeepSeek ships no MCP client of its own — so configure Samong in the host client and the model sees the tools through it. The same rule covers anything not listed: pick a client that speaks MCP, then pick the model.
If a binary is not on PATH, use its full path instead of samong-mcp — the
PATH a GUI client inherits is often not the one your terminal has.
Full setup, a verification step and a CLAUDE.md recipe:
docs/AI-AGENT.md
Delete .brain/ any time — samong reindex rebuilds everything from the
Markdown files. When the schema/tokenizer version changes, stale indexes are
rebuilt automatically.
Note: run
cd web && npm run buildbefore the firstcargo testso the embedded-UI tests exercise a real build (they self-skip the UI part otherwise).
The UI is embedded into the binary at compile time (rust-embed), so editing
anything under web/ and then running an already-installed samong-server still
serves the old UI. Build, then install over it:
While working on the UI, use cd web && npm run dev (hot reload, proxied to the
API) or cargo run --bin samong-server -- start, which always picks up the
latest web/dist — much faster than reinstalling on every change.
Done since the first public release: binaries for four platforms, an "add vault" button in the web UI, connectedness-aware ranking, and optional local semantic search.
Apache-2.0 — free to use, modify, and ship commercially, including inside your own closed-source software. Keep the copyright notice and give attribution.
All third-party components are credited in THIRD-PARTY.md —
the words_th.txt segmentation dictionary comes from
PyThaiNLP (Apache-2.0).
"Samong" and the logo are not covered by Apache-2.0. Fork the code, change it, sell it — but please pick a different name for anything you ship separately, so users are never confused about who maintains which version. Referring to this project, comparing against it, or saying you are compatible with Samong needs no permission.
The exclusion is written out in site/brand/LICENSE, beside the files it applies to, because the root LICENSE would otherwise read as covering them: Apache-2.0 withholds trademark rights but grants broad rights over artwork, and a clone of this repository has no way to guess that those six SVGs are different. That file also lists what you may do without asking — which is most things.