English | 中文
Sync selected Obsidian Markdown notes to one or more Dify Knowledge Bases.
Vault2Dify is a desktop-only Obsidian plugin for users who keep notes in Obsidian and use Dify for personal or team knowledge-base Q&A. It syncs only the Markdown notes that match your enabled path mappings to the Dify service URL you configure.
The plugin UI defaults to English. You can switch to Chinese from the language icon in the settings top bar.
GET /v1/datasets.Build the plugin:
npm install
npm run build
Copy the release files into your vault:
.obsidian/plugins/vault-to-dify/
├── main.js
├── manifest.json
└── styles.css
Enable Vault2Dify from Settings -> Community plugins -> Installed plugins, then open Settings -> Vault2Dify.
First-time setup:
New installs do not upload notes until you configure a mapping and start sync.
More details:
Use the service root that Obsidian can reach. The plugin appends Dify API paths such as /v1/datasets automatically.
| Deployment | Example |
|---|---|
| Local Docker on the same computer | http://localhost:5000 |
| NAS/Docker or LAN server | http://dify-host.example.test:5000 |
| NAS through Tailscale | http://tailnet-device.example.test:5000 |
| Reverse proxy or Dify Cloud | https://dify.example.com |
Do not use localhost unless Dify and Obsidian run on the same computer.
See SECURITY.md for details.
This release is desktop-only. Mobile support is not enabled until it has been tested separately.
npm install
npm test
npm run typecheck
npm run build
Attach only these files to a release:
main.js
manifest.json
styles.css
Do not include node_modules, API keys, local Obsidian vault data, plugin data files, sync records, prototypes, or local archives.
MIT License