Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Sanyuan Context Router

yuyu55 downloads

Retrieve local vault context through a Sanyuan-compatible sidecar.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates2

Sanyuan Context Router is a desktop Obsidian client for an independently run Sanyuan retrieval sidecar. It sends an explicit query or editor selection to a user-configured endpoint, previews the returned read-injection block, and lets the user copy or insert it into the active note.

External sidecar required

This repository contains only the Obsidian thin client. Retrieval, embeddings, reranking, database access, and Sanyuan topology processing run in a separate Python sidecar. The plugin is not useful until that sidecar is installed and running.

The current reference sidecar (package sanyuan-obsidian 0.1.0) and its setup instructions live in the upstream Sanyuan Obsidian integration at the pinned commit b930c8dd (an immutable commit, not a mutable branch). That sidecar, the Sanyuan project, and its cognitive rules are separate works with separate licensing; they are not included in or licensed by this repository's MIT License.

Compatibility contract

  • Sidecar API (sanyuan-obsidian 0.1.0): GET /health, POST /v1/should-retrieve, POST /v1/retrieve-and-inject.
  • This release (0.1.1) ships the commands listed under Commands below.
  • The browse-sanyuan-nodes command exists only on the upstream integration/obsidian branch and is not part of the 0.1.1 release. A client that requires that command must be built from the pinned commit above.
  • Health checks must judge capability by contract version, not by assuming a command exists in every release.

Privacy and network disclosure

  • No telemetry, analytics, advertising, or background vault scan.
  • No request is made merely by loading the plugin.
  • The default endpoint is http://127.0.0.1:8765.
  • A non-loopback endpoint requires an explicit setting opt-in.
  • When a retrieval command is invoked, the plugin sends the query text, current note path, and optional sanyuan_axes frontmatter to the configured endpoint.
  • If a remote endpoint is enabled, that data leaves the device and is handled under the remote endpoint operator's policies.
  • Embedding-provider credentials stay in the sidecar environment and are never stored by this plugin.
  • An optional sidecar bearer token is stored in Obsidian's local plugin data.
  • The plugin never reads the clipboard. Clicking Copy writes only the currently displayed injection block to the clipboard.

Commands

  • Retrieve context always runs retrieval.
  • Smart retrieve context runs only when the sidecar's conservative trigger recognizes an explicit retrieval intent.
  • Check sidecar verifies connectivity and displays the detected status.

If the current editor selection is empty, the plugin asks for a query. Optional query axes can be declared in note frontmatter:

sanyuan_axes:
  - periodontitis
  - PNPLA8
  - fibroblast

Installation

After the plugin is accepted into the Obsidian Community directory, install it from Settings → Community plugins.

For manual installation, download main.js, manifest.json, and styles.css from the release whose tag matches the version in manifest.json. Put the three files in:

<vault>/.obsidian/plugins/sanyuan-context-router/

Restart Obsidian, enable the plugin, and configure the sidecar endpoint under Settings → Sanyuan Context Router.

Development

npm ci
npm run build

The production build creates main.js. The release workflow verifies that the manifest, package, and compatibility-map versions match, generates GitHub artifact attestations, then publishes main.js, manifest.json, and styles.css as release assets.

License scope

The source code and assets in this standalone repository are available under the MIT License. The Python sidecar, the upstream Sanyuan repository, and Sanyuan ontology or cognitive-rule materials are not part of this license.

HealthExcellent
ReviewPassed
About
Send an explicit query or editor selection to a configured Sanyuan sidecar and preview the returned read-injection block. Copy or insert retrieved context into the active note and verify sidecar connectivity or use smart retrieval for explicit intent. Run using an external Sanyuan sidecar.
AIIntegrations
Details
Current version
0.1.1
Last updated
2 months ago
Created
2 months ago
Updates
2 releases
Downloads
55
Compatible with
Obsidian 1.5.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
yuyulkh-cq
GitHublkh-cq
  1. Community
  2. Plugins
  3. AI
  4. Sanyuan Context Router

Related plugins

Fast Note Sync

Real-time sync of your vaults across server, mobile, and web; shareable with anyone; supports REST and MCP integrations to build your personal AI knowledge base.

Agent Client

Chat with Claude Code, Codex, Gemini CLI, and more via the Agent Client Protocol — right from your vault.

Snipd Official

Sync Snipd podcast highlights to your vault with transcript, notes, AI summaries and metadata.

Claude Sidebar

Run Claude Code in your sidebar.

Claude Code IDE

Connect your vault to Claude Code and share editor context with the CLI.

Plaud Sync

Sync Plaud voice recordings into Markdown notes with transcripts, AI summaries, and highlights.

Copilot

Run AI agents such as Claude Code, Codex, and OpenCode inside your vault. Turn your second brain into a smart assistant that gets knowledge work done.

Claudian

Embeds Claude Code/Codex and other local Agents as AI collaborators in your vault.

BRAT

Easily install a beta version of a plugin for testing.

Self-hosted LiveSync

Sync vaults securely to self-hosted servers or WEBRTC.