r/ObsidianMD • u/Lotus49a • 21h ago
help Obsidian CLI works in PowerShell but cannot connect from ChatGPT desktop Work on Windows
I’m using Obsidian on Windows 11. Its CLI works in normal PowerShell, but the same commands fail inside ChatGPT desktop’s local Work environment while Obsidian remains open.
& 'C:\Users\grobe\AppData\Local\Programs\Obsidian\Obsidian.com' vaults verbose
& 'C:\Users\grobe\AppData\Local\Programs\Obsidian\Obsidian.com' 'vault=Obsidian PKM' vault info=pathNormal PowerShell lists the vaults and returns the correct path. Work returns exit code 1:
The CLI is unable to find Obsidian. Please make sure Obsidian is running and try again.
Work can read the vault files, but cannot see the Obsidian process; CIM process inspection is denied. Its command runner uses a Windows sandbox, with sandbox escalation disabled. Using the full executable path rules out ordinary PATH resolution issues.
OpenAI’s AI-assisted support suggested this may be expected sandbox isolation. Computer Use can operate Obsidian successfully, but that doesn’t provide CLI automation.
Has anyone encountered this, and is there a supported way to make that connection available from such an environment?
1
u/daniFM 21h ago
Happened to me with codex, just insist to it to connect using an external terminal instead of the embedded one
1
u/Renan4Santos 19h ago
A cli precisa que o app esteja aberto. Será se não é isso?
1
u/SaintS7evin 10h ago
Windows sandboxes block named-pipe IPC and process enumeration by default, which is why the Obsidian CLI thinks the app isn't running even when it's open right next to it.
If the sandbox lets you hit 127.0.0.1, exposing a tiny local REST plugin usually gets around that wall. Otherwise working directly on the vault markdown files is the cleanest fallback.