Skip to main content

Obsidian vaults stayed invisible on Mac until the author enabled the CLI

XX雨哥向前冲2026-11-20

ResearchGetting startedSource read in fullRead first

Overview

After the official Obsidian integration, Grok Bot can find past notes, make outlines and save drafts in one request. The author's first Mac step hit a snag: the installed plugin could not read vaults.

Workflow

Trigger: Avoid retrieving notes and pasting them into AI by hand. Direct Obsidian integration saves this step. On Mac the author installed the plugin and still could not read vaults because the Obsidian CLI was disabled by default. Four connection steps in the original order:

  1. By hand: Search for Obsidian in Grok Bot's plugins and add the official one.
  2. By hand: Update Obsidian to 1.12.7 or later. If it reports an old installer, reinstall it too.
  3. By hand: In Settings → General → Advanced, enable and register the command-line interface. The author marks this as the easiest step to miss.
  4. By hand: Keep the desktop app open and approve the local permission prompt when it appears.

The author actually sent this test prompt after connecting:

Meaning: List the Obsidian vaults on my computer by name only, without reading note contents.

列出我电脑上的 Obsidian 笔记库,只列库名,别读正文。

The author got 5 vaults, confirming the connection. Four sample prompts follow, based on documented abilities and numbered as in the original. Replace brackets before use.

  1. Bot: Find topics. Meaning: Find ideas and drafts on a topic in the named vault and return 5 topics worth writing about with source note titles.

搜【库名】里关于【主题】的灵感和草稿,给我 5 个值得写的选题,附原笔记标题

  1. Bot: Assemble an outline. Meaning: Turn notes on the topic in the named vault into an outline. Cite each section and distinguish tests, excerpts and unverified information.

把【库名】里【主题】相关的笔记整理成提纲,每节标出处,分清实测、摘录和待核实

  1. Bot: Archive. Meaning: Turn this draft, sources and date of the test into an archive note. Show it to the author and create it only after approval.

把这篇稿子、来源链接和实测日期整理成一篇归档笔记,先给我看内容,确认后再新建

  1. Bot: Write a weekly report. Meaning: Summarize the last week of a project under done, blockers and next week, with a source for each item.

汇总【项目名】最近一周的记录,按已完成、卡点、下周计划列,每项附来源

Three reminders: name the vault if there are several and avoid asking it to organize everything at first. Start read-only and check the proposed changes before writing. Notes it reads go to the model, so avoid whole-vault reads of sensitive material. Local vaults work without buying Sync. Check: The author tested only listing vaults and got 5. The four other prompts are based on docs and were not run. The author invites comments from readers who get them working.

Key points and results

  • The command line is off by default. An installed plugin alone cannot read vaults. Enable and register the CLI in Settings → General → Advanced. The author missed this step.
  • Use a read-only test first. List vault names without contents. The author's test found 5 and confirmed the connection. Review proposed changes before writing.
  • Four prompts are examples. Topic search, outlining, archiving and weekly reports follow product docs and were not tried by the author. Replace brackets.

Contributions from others

Added by others (not the author)

  • zack6116 hit the same CLI registration snag in step 3. With multiple vaults, keep the name in standing instructions because the model sometimes chooses the wrong one. For archiving, request a diff before writing to avoid overwrites (https://x.com/zack6116/status/2123862964826763457).

Source

Platform
X
Author
雨哥向前冲
Published
Categories
Research, Getting started

What this evidence label means

Source read in full

We read the source (post, article or transcript). That only means the original was read. It does not mean this site reproduced the author's results.

Read the editorial and evidence policy

Other cases in this scenario

This unofficial community project is independent of xAI. xAI has neither approved nor endorsed it. No sign-up. The methods and figures come from the original authors.