Readit News logoReadit News
loufe · 4 minutes ago
I have probably searched "Obsidian CLI" once a month since I started playing around with AI over a year ago. This is pretty exciting.
corysama · 6 hours ago
Also new: Obsidian joins the CLI gang

https://help.obsidian.md/cli

I’ve been having a lot of fun recently using AI CLIs with Obsidian. No plugins necessary because it’s just a directory tree of markdown files.

mihaelm · 5 hours ago
I love that CLIs are getting a second wind.
AbstractH24 · 43 minutes ago
> I love that CLIs are getting a second wind.

I just wish there were more solutions to add simple things like copy and paste to them.

As though they were more a derivative of the text box I type in right now. And less to MS-DOS I grew up with.

Outside of that, agreed. Eliminate GUI as a blocker.

manmal · 5 hours ago
I've been using iCloud to sync Obsidian, and have consistently run into the problem that iCloud file container access needs full disk permissions that I don't want to give the agent (or Ghostty). Does everybody use Obsidian's paid sync instead or what? Or SyncThing?
kcrwfrd_ · 4 hours ago
I just pay for the sync.

I like that I can have some vaults that sync to both my personal and work laptops and other vaults that only sync to one or the other.

It’s awfully convenient without any vendor lock in since I can just take my plain markdown files and leave anytime.

rafaquintanilha · 2 hours ago
Definitely one of the biggest ROI is to pay for the sync. I regret all years I tried git-based alternatives (it's still useful to have it in git for backup, but not as the main syncing mechanism).
vergessenmir · 4 hours ago
Just pay for the sync. I used to juggle with git, rsync, inotify etc and other tools

Its one of the few subscriptions where it actually feels like money well spent

typicalrunt · 5 hours ago
I used to use SyncThing, then Dropbox, then iCloud. But then I just caved and paid for Obsidian Sync and it is the best money spent aside from Claude. I don't have to tinker with weird settings anymore or deal with sync issues, it just works.
mk12 · 2 hours ago
I use Syncthing (with Synctrain client on iOS) and it works great.
giancarlostoro · 4 hours ago
I use both and I prefer their builtin sync, since I also code on Linux.
seabrookmx · 3 hours ago
I've had good luck with syncthing. But I only sync between laptop and desktop.. the mobile story with syncthing isn't ideal.
JimmyBiscuit · 2 hours ago
Im just running a Nextcloud on a raspberry pi to sync everything. Works flawlessly for multiple years now.
vulkoingim · 2 hours ago
I used iCloud in the past, but found that syncing between a few devices sometimes left my notes in a weird state - sometimes overwritten, missing, etc. I switched some time ago to https://github.com/remotely-save/remotely-save with backblaze and I periodically sync to a git repo for a second backup. No issues since then.
vorticalbox · 3 hours ago
I have been using remotely save and a free bucket from backblaze. It as a s3 compatible api so works using the s3 feature.
codybontecou · 3 hours ago
I built a one-time purchase solution that might help you.

- https://isolated.tech/apps/syncmd

- https://isolated.tech/apps/syncmd/blog/obsidian-git-ios-setu...

You can git clone directly to your iOS file system which fixes the Obsidian git plugin issue so you can use the Obsidian git plugin on your computer and mobile devices.

chrisweekly · 5 hours ago
Obsidian's paid sync works great for me.
brnt · 2 hours ago
Resilio.
qaq · 3 hours ago
github private repo works fine
poglet · 4 hours ago
jadbox · 4 hours ago
It's not super useful yet- you can't really view notes in the CLI but you can can trigger features like search.
WNWceAJ9R9Ezc4 · 4 hours ago
Notes are stored in Markdown files. Why do you need Obsidian CLI to view notes when `cat` will do?
kepano · 4 hours ago
You can view notes with Obsidian CLI. See the "read" commands. But also you can do that with your built-in command line tools.

https://help.obsidian.md/cli

giancarlostoro · 4 hours ago
Oh snap! Thanks for that, I can really make good use of this!

Deleted Comment

spondyl · an hour ago
Oh neat, I had come across the headless client yesterday (and submitted a now-fixed bug report for it after running into some issues).

Before opening HN this morning and seeing this post, I actually wrote a post about how I'm experimentally using headless to publish my blog: https://utf9k.net/blog/obsidian-headless/

Well, that post was my experiment but I'll be looking forward to trying it out going forward.

There are of course many alternatives and I'm sure this workflow may have its pains but for now, it feels like a lot less friction between actually writing and having it published.

I've used plain Git for many years of course but I've also tried other rube goldberg machines such as various Git-inside-Obsidian plugins and so on but there's always just a bunch of "stuff" between writing and putting it online.

kepano · 5 hours ago
Oh! I worked on this project. If anyone has questions, I'll do my best to answer them!
Langley · 2 hours ago
Wanted to say thanks. We were literally talking about the lack of a cli sync at work last week and I had moved to Syncthing because of that gap.

Definitely will be looking at the official Obsidian sync plan now.

lukasb · 3 hours ago
How are sync conflicts handled in the filesystem? Say I write to a file and another client's edit wins and mine is rejected.
kepano · 3 hours ago
The headless Obsidian Sync client works the same way as desktop and mobile clients, see:

https://help.obsidian.md/sync/troubleshoot

- Markdown files: Obsidian Sync merges the changes using Google's diff-match-patch algorithm.

- Other file types: For all other files, including canvases, Obsidian uses a "last modified wins" approach. The most recently modified version replaces earlier versions.

For conflicts in Obsidian settings, such as plugin settings, Obsidian Sync merges the JSON files. It applies keys from the local JSON on top of the remote JSON.

8cvor6j844qw_d6 · 4 hours ago
Are there plans to support scoped token permissions (specific folders or even specific notes)? I'd love to try setting up something that automatically updates a specific Obsidian note on a state change or cronjob, but I'd want to avoid giving access to the rest of the vault.

also, thanks for the great product, bought the vip catalyst as a show of support.

chrisweekly · 2 hours ago
Related tangent: "Relay" (https://relay.md") lets you sync / share files based on directory (vs. the whole vault). That enables things like "my private vault contains a subdir for work, and my work machine syncs to only that child subdir".
kepano · 4 hours ago
Thanks for your support! Sync is end-to-end encrypted so the server doesn't know about specific paths in your vault. You would have to set those permissions at the filesystem level, or with the tool you're using.
Vaslo · an hour ago
I’m using a couchdb instance to sync a bunch of local obsidian installs and use an obsidian plugin to keep them synced- would this change that or make it easier?
surgical_fire · 4 hours ago
No question. Just wanted to drop by and say Obsidian is actually pretty cool. An absolute joy to use, and I only wish I learned about it earlier than I did.
Veen · 3 hours ago
It would be nice if one could sync dot files in the vault. For example, the .claude or .pi folder containing skills and whatnot.
kepano · 3 hours ago
Yes, we're looking into that!
Mountain_Skies · 5 hours ago
No questions, just thanks for helping with a great product.
raybb · an hour ago
Kinda related, does anyone have a favorite obsidian plugin for AI editing on mobile?

I wanna be able to talk to a document and iterate on it just like chatgpt with canvas but inside obsidian.

I've been digging around and haven't quite found anything to do that.

One potential challenge is I'm not sure how easy it would be to let it do tool calling to edit the document rather than spitting out the whole document each time (with risk of minor changes).

eric-p7 · 4 hours ago
I wish I could use Obsidian to edit single markdown files.

If my project has a readme.md I don't want to create an obsidian vault with its configuration files in my project, just to open it.

kepano · 4 hours ago
Yeah we'll add that at some point.

It's a bit trickier than it seems because a lot of Obsidian configuration and app functionality is vault-specific. E.g. what theme should be used? What plugins should be available? Does autocomplete for [[links]] or properties do anything? Etc.

toddmorey · 4 hours ago
VSCode opens single files outside of projects. What do they do? Personally I wouldn’t mind if it just defaulted to the settings of the last-used vault.
random3 · 3 hours ago
maybe you're overthinking it a little. You could make it of a default setup like the one you use for the sandbox, or some curated fast-loading one
segphault · 2 hours ago
This was my most-wanted Obsidian feature, so I’m thrilled to see this. It’s going to be great for server-side automation and RAG against Obsidian vaults.
kelvinjps10 · 6 hours ago
It would be good since I don't use obsidian on my desktop but I do on my phone, so that way I can use it for syncing and then open the documents on Neovim on my desktop