obx vault
The obx vault command allows you to define aliases for your Obsidian vaults. This enables you to switch between vaults easily and configure dynamic vault switching for the MCP server.
Configuration is stored in ~/.config/obx/config.json.
obx vault [command]Available Commands
Section titled “Available Commands”Registers a new vault alias globally.
obx vault add my-notes /Users/zach/Documents/MyNotesLists all established vault aliases and displays the currently active default vault.
obx vault listOutput:
Available vaults: my-notes: /Users/zach/Documents/MyNotes work: /Users/zach/Documents/WorkVault (active)switch
Section titled “switch”Changes the default active vault for the CLI. If OBSIDIAN_VAULT_PATH is not set and no path argument is provided to a command, obx will use this active vault.
obx vault switch my-notesDynamic Vault Switching
Section titled “Dynamic Vault Switching”These aliases are not just for CLI convenience. If you want your AI assistant to switch between multiple vaults autonomously over the MCP protocol without restarting the server, you can pass these aliases to obx mcp:
obx mcp --allow-vault-switching --allowed-vaults my-notes,workThis ensures the agent can only access paths you have explicitly authorized.