For 99% of users: Use type: "local" - even if your vault is synced via iCloud, Dropbox, or Obsidian Sync. Point to the folder location on your computer.
What Obsidian DOES provide:
- ✅ Plugin API - For building plugins that run in the desktop app
- ✅ URI Protocol - For opening notes/executing commands (requires app running)
- ✅ Community Plugin "Local REST API" - Third-party localhost API (requires app running)
What Obsidian does NOT provide:
- ❌ Public API for Obsidian Sync
- ❌ Cloud API for remote access
- ❌ Server-side vault access
This is intentional - Obsidian is privacy-first, keeping your data on your devices.
What it is: Direct filesystem access to your Obsidian vault folder.
Use when:
- Your vault is on your computer's hard drive
- Your vault is in iCloud/Dropbox/OneDrive (synced folder)
- Your vault is on a mounted network drive
- Your vault uses Obsidian Sync (the folder is still local)
Example:
{
"name": "my-vault",
"type": "local",
"path": "/Users/you/Documents/ObsidianVault"
}How it works: Reads and writes markdown files directly from the filesystem.
What it is: Connects to a self-hosted REST API server that provides access to your vault.
Use when:
- You've built your own sync server
- You have a custom REST API for serving Obsidian notes
- You're using a third-party sync service with an HTTP API
- NOT for Obsidian Sync (that's still local - use
type: "local")
Example:
{
"name": "cloud-vault",
"type": "remote",
"url": "https://my-obsidian-server.com/api",
"apiKey": "your-secret-key",
"syncInterval": 60000
}How it works: Makes HTTP requests to your API to read/write notes.
What it is: Controls the Obsidian desktop application itself (NOT vault content).
Use when:
- You want to open notes in the Obsidian app
- You want to execute Obsidian commands
- You want app-level features
Requires: "Local REST API" community plugin installed in Obsidian
Example:
{
"obsidianApi": {
"restApiUrl": "http://localhost:27124",
"apiKey": "your-plugin-api-key",
"vaultName": "my-vault"
}
}How it works: Sends commands to the running Obsidian application.
Note: This is completely separate from vault access. You still need a vault configuration (local or remote).
✅ No! Use type: "local" and point to the synced folder on your computer. The cloud service handles syncing automatically.
✅ No! The plugin is only for controlling the Obsidian app itself. For vault access, use type: "local".
✅ No! Obsidian Sync doesn't have a public API. Remote vault is for YOUR OWN server.
Do you have a vault folder on your computer?
├─ YES → Use type: "local" (even if it's synced via iCloud/Dropbox/Obsidian Sync)
└─ NO → Did you build a custom REST API server for your notes?
├─ YES → Use type: "remote"
└─ NO → You need type: "local" - download/sync your vault first
Do you want to open notes in the Obsidian app?
├─ YES → Configure "obsidianApi" section + install Local REST API plugin
└─ NO → Skip the "obsidianApi" section
{
"vaults": [
{
"name": "personal",
"type": "local",
"path": "/home/user/Documents/MyVault"
}
]
}{
"vaults": [
{
"name": "icloud-vault",
"type": "local",
"path": "/Users/user/Library/Mobile Documents/iCloud~md~obsidian/Documents/MyVault"
}
]
}Note: iCloud handles the syncing - you just access the local folder.
{
"vaults": [
{
"name": "work",
"type": "local",
"path": "/home/user/Dropbox/WorkVault"
},
{
"name": "personal",
"type": "local",
"path": "/home/user/Documents/PersonalVault"
}
]
}{
"vaults": [
{
"name": "self-hosted",
"type": "remote",
"url": "https://notes.myserver.com/api",
"apiKey": "my-secret-key-123",
"syncInterval": 30000
}
]
}A: No. Obsidian Sync does not provide a public API. The vault is synced to your local device, and you access it via type: "local" pointing to the local folder.
A: No. Obsidian is privacy-first and doesn't expose your data via cloud APIs. All access is local.
A: It only works locally. The plugin creates an API on localhost (127.0.0.1) that only your computer can access. It's not accessible from other devices or the internet.
A: Not via Obsidian's services. You would need to:
- Build your own sync server with an API
- Use
type: "remote"configuration - Or use cloud storage (Dropbox, iCloud) and access the local synced folder with
type: "local"
A: Local app integration only.
- Opening notes in the Obsidian app
- Executing commands
- Controlling the app programmatically
- Only works when the Obsidian app is running on the same machine
A: Yes, for local vaults over the network:
- Mount the vault folder via NFS/SMB/SSHFS
- Use
type: "local"pointing to the mounted path - Or build your own REST API server and use
type: "remote"
A: It's for publishing, not vault access. Obsidian Publish creates a static website from your notes. It has no API for reading/writing vault content.
- 90%+ of users: Use
type: "local"pointing to your vault folder - Cloud sync users (iCloud, Dropbox, Obsidian Sync): Still use
type: "local"pointing to the synced folder - Advanced users with custom servers: Use
type: "remote"with your API URL - Want app integration: Add
obsidianApiconfig + install "Local REST API" community plugin - Remember: Obsidian has NO public cloud API - by design!