Headless mode that allows cli querying without GUI

Use case or problem

Previously the only folks who wants headless mode is the ones who wants to run sync from outside obsidian, but now with the landing of the cli, for now it is only a “remote control” of the gui app, it would make a lot of sense to have a native way to run obsidian headless
possible use cases:

  1. for those who already work in the cmdline, to quickly capture project ideas into notes.
  2. for sync case as described above.
  3. for other editor integration, for example, a vscode plugin to spawn obsidian headless to store some project notes, and I am the maintainer of obsidian.nvim, and many of the features that are not worth rebuilding in lua is now possible, like bases, can now be just created and queried, but requiring to open obsidian GUI first gives friction.
  4. for AI agents, to really make agent workflow seamless, it will be good to have the ability to just get the query result instead of accidentally open a obsidian session from cmdline and feed logs to AI.

Proposed solution

Current workaround (optional)

Possibility reference what neovim does, to have a --healess flag.

5 Likes

#2 is a NO GO for me. Soon as my paid for sync service is opened up like a few have been proposing, I will go to local only and use backups to “sync”; albeit slowly. Some things are sacred and I suspect that is a more widely held view.

A headless sync client has it’s own FR here.

I don’t think a headless sync client has any particular additional security implications. Maybe I am missing something. Anyway keep the convo about headless sync in its thread thanks!

1 Like

As a command line user it would be great to perform some operations directly there, including when connecting to my machine over SSH, and through CLI agents and automated workflows.

Also as @zzt42 mentioned obsidian.nvim is an incredible extra interface for Obsidian and being able to use things like Bases and other functionality through that would be glorious.

1 Like