notesmd-cli icon indicating copy to clipboard operation
notesmd-cli copied to clipboard

Newbie Q: Where to install my CLI Ubuntu (Claude Code) / Windows (Obsidian)

Open michellepace opened this issue 9 months ago • 4 comments

Hello there,

Thank you for this CLI.

My Goal: Give this CLI for Claude Code to use

My Problem: I have a complicated setup. Obsidian is installed on Windows. But Claude Code is installed on Ubuntu via WSL. In other words, when working on my Vault this is the present working directory of Claude Code, we mount it, /mnt/c/Users/mp/Documents/ideas-vault git:(main) ✗

Question: Is it possible to install your CLI so that Claude Code (on Ubuntu) can use the CLI on Obsidian (installed on Windows). Which CLI do I use, can I just use brew install yakitrak/yakitrak/obsidian-cli on Ubuntu?

Thanks very much in advance, Michelle

michellepace avatar Feb 12 '26 00:02 michellepace

Hey! Unfortunately I don't use Windows so cant answer for WSL specific questions, but there is an active issue which has similar questions: https://github.com/Yakitrak/obsidian-cli/issues/70

I think it requires a code change to allow WSL paths to be discoverable. There might be a PR coming soon which will hopefully enable you to use it.

Yakitrak avatar Feb 12 '26 00:02 Yakitrak

Thank you @Yakitrak - I just found that Issue now. I'll close this one. Thank you.

michellepace avatar Feb 12 '26 00:02 michellepace

Coming from a similar situation — we were trying to use obsidian-cli on a Windows 10 machine and hit the same wall. It seems like the macOS dependency is architectural (the CLI relies on AppleScript/OSA to communicate with Obsidian), so it's not just a matter of packaging.

For anyone else in this situation:

  • On WSL: The CLI depends on the Obsidian app running on the host macOS, so WSL alone won't help either.
  • On native Windows: There's no plan for Windows support at the moment since the underlying URI scheme and inter-process communication are macOS-specific.
  • Alternative: We are currently using plain Markdown in the vault folder directly (via a file watcher), which works as a cross-platform fallback.

If the maintainer is open to a platform-agnostic architecture (e.g., using Obsidian's local REST API or direct file system operations), that would be a great addition. Thoughts?

JeremyCooper2077 avatar May 15 '26 07:05 JeremyCooper2077

Thanks for chiming in, but a few of the claims here don't match how the CLI actually works:

  • No AppleScript/OSA dependency. The CLI doesn't use AppleScript or osascript anywhere. It uses open-golang, which is cross-platform (open on macOS, xdg-open on Linux, cmd /c start on Windows).
  • Windows and Linux are already supported. The release pipeline builds for darwin, linux, and windows (amd64 + arm64), and there's both a Scoop package for Windows and an AUR package for Arch Linux.
  • Most operations are pure file system. Create, delete, move, search, and print all work directly on markdown files. Only open (without --editor) uses the obsidian:// URI scheme, which itself works on any platform where Obsidian is installed.

The actual challenge with WSL, as discussed in #70, is vault path discovery across the WSL/Windows boundary -- not a macOS architectural dependency.

Yakitrak avatar May 15 '26 10:05 Yakitrak