This guide is for someone starting from zero: you have heard of Obsidian and OriginTrail DKG, but you have not installed either yet.
By the end, you will have:
- Obsidian installed.
- A local OriginTrail DKG v10 node running.
- The OriginTrail Shared Memory Obsidian plugin installed.
- An Obsidian vault “powered up” into an OriginTrail DKG Project.
- Markdown notes imported into DKG Working Memory.
DKG v10 is currently release-candidate software on testnet. Expect iteration and breaking changes. Use it for testing and demos, not production-critical knowledge.
Obsidian is the local Markdown app where you write and organize notes in a vault.
Download: https://obsidian.md/download
OriginTrail DKG is the local agent memory node. This plugin uses it as the memory backend for your Obsidian vault.
Source repo: https://github.com/OriginTrail/dkg
This repository is the Obsidian plugin. It connects your vault to your local DKG node.
Plugin repo: https://github.com/Zigoljube/Obsidian-OriginTrail-Shared-Memory
- Go to https://obsidian.md/download.
- Download Obsidian for your operating system.
- Install and open Obsidian.
- Create a new vault or open an existing one.
Example vault names:
My Research VaultAI NotesSupply Chain Research
The vault name matters because the plugin can create a DKG Project with the same name.
The DKG CLI and this plugin’s developer build use Node.js.
Recommended:
- Node.js 22+
- npm 10+
Check your versions:
node -v
npm -vIf you do not have Node.js, install it from:
Advanced users may prefer nvm, fnm, or a package manager such as Homebrew.
For the simplest standalone local node:
npm install -g @origintrail-official/dkg
dkg init
dkg startWhat this does:
- Installs the
dkgCLI. - Creates local DKG configuration under your home directory.
- Starts the DKG daemon at:
http://127.0.0.1:9200
Open the DKG dashboard:
Useful checks:
dkg status
dkg auth status
dkg auth showYou will need the auth token from dkg auth show when configuring the Obsidian plugin.
If you are already using Hermes or OpenClaw, the DKG repo also supports framework-specific setup commands such as
dkg hermes setupanddkg openclaw setup. For this Obsidian plugin, the important part is that the local DKG API is reachable athttp://127.0.0.1:9200and you have an auth token.
You have two options.
Use this if you do not want to develop the plugin.
- Open https://github.com/Zigoljube/Obsidian-OriginTrail-Shared-Memory.
- Click Code → Download ZIP.
- Unzip it.
- Confirm the unzipped folder contains:
main.js
manifest.json
styles.css
Use this if you want to develop or inspect the plugin.
git clone https://github.com/Zigoljube/Obsidian-OriginTrail-Shared-Memory.git
cd Obsidian-OriginTrail-Shared-Memory
npm install -g pnpm
pnpm install
pnpm buildThe build outputs the same three plugin files:
main.js
manifest.json
styles.css
Obsidian plugins are installed per vault.
Find your vault folder. Inside it, create this folder:
.obsidian/plugins/origintrail-shared-memory/
Copy these three files from this repository into that folder:
main.js
manifest.json
styles.css
Final structure:
Your Vault/
.obsidian/
plugins/
origintrail-shared-memory/
main.js
manifest.json
styles.css
If .obsidian is hidden in your file browser, enable hidden files or create the folder from a terminal.
Replace /path/to/Your Vault and /path/to/Obsidian-OriginTrail-Shared-Memory with your real paths:
mkdir -p "/path/to/Your Vault/.obsidian/plugins/origintrail-shared-memory"
cp /path/to/Obsidian-OriginTrail-Shared-Memory/main.js \
/path/to/Obsidian-OriginTrail-Shared-Memory/manifest.json \
/path/to/Obsidian-OriginTrail-Shared-Memory/styles.css \
"/path/to/Your Vault/.obsidian/plugins/origintrail-shared-memory/"- Open Obsidian.
- Open your vault.
- Go to Settings → Community plugins.
- Turn off Restricted mode if Obsidian asks.
- Under installed plugins, enable:
OriginTrail Shared Memory
If you do not see it:
- Make sure the folder name is exactly
origintrail-shared-memory. - Make sure
manifest.json,main.js, andstyles.cssare directly inside that folder. - Fully quit and reopen Obsidian.
In Obsidian:
- Go to Settings → OriginTrail Shared Memory.
- Set:
DKG node URL: http://127.0.0.1:9200
Auth token: paste the output from dkg auth show
- Click Test.
Expected result:
OriginTrail DKG connection OK
Once the plugin is enabled, an unlinked vault will offer to be powered up.
You can either:
- Click Power up vault in the first-run prompt, or
- Open the command palette:
- macOS:
Cmd + P - Windows/Linux:
Ctrl + P
- macOS:
- Run:
OriginTrail Shared Memory: Power up current vault with OriginTrail Shared Memory
Powering up does this:
- Reads your Obsidian vault name.
- Creates or links an OriginTrail DKG Project with that name.
- Saves that Project as the vault’s target.
- Imports existing Markdown notes into DKG Working Memory.
- Enables auto-sync for future saved Markdown notes.
- Keeps Shared Memory promotion off until you enable it.
By default, notes go to Working Memory first. This is private/local staging memory.
When you are ready to make synced notes visible to the Project’s Shared Memory layer:
- Open Settings → OriginTrail Shared Memory.
- Enable:
Promote saved notes to Shared Memory
Future synced notes will then be promoted from Working Memory to Shared Memory.
Do not enable this until you are comfortable with the basic Working Memory flow.
Check that this exists inside your vault:
.obsidian/plugins/origintrail-shared-memory/manifest.json
.obsidian/plugins/origintrail-shared-memory/main.js
.obsidian/plugins/origintrail-shared-memory/styles.css
Then fully quit and reopen Obsidian.
Check that DKG is running:
dkg statusCheck that the dashboard opens:
Check your auth token:
dkg auth showPaste that token into the plugin settings.
That is normal for manual installs. Obsidian plugins are installed per vault. Repeat step 5 for each vault.
Open the command palette and run:
OriginTrail Shared Memory: Power up current vault with OriginTrail Shared Memory
Or use the button in Settings → OriginTrail Shared Memory.
This is an MVP/developer install. The next packaging improvements are:
- GitHub release ZIP containing only
main.js,manifest.json, andstyles.css. - BRAT install instructions.
- Obsidian Community Plugin submission.
- Friendlier DKG token discovery inside the plugin.