Skip to content

Build your personal knowledge base with Trilium Notes

docs(user): mention use of shell for path for LLM

Elian Doran20fb7d4457e2
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/AI/Providers.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/AI/Providers.html
index 000161c7e6..110c94bf4b 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/AI/Providers.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/AI/Providers.html
@@ -55,6 +55,11 @@
if needed.</li>
<li>By looking for <code spellcheck="false">claude</code> in your PATH, generally
works in most circumstances.</li>
+ <li>By asking your login shell for its <code spellcheck="false">PATH</code> which
+ lets a desktop install find a CLI installed through <code spellcheck="false">nvm</code>,
+ <code
+ spellcheck="false">fnm</code>, <code spellcheck="false">asdf</code> or Homebrew, since a GUI-launched
+ app doesn't inherit your terminal's environment.</li>
</ul>
<p>After your provider is set up, you'll benefit from the same features as
an API key (note tools, web search, extended thinking, image/PDF attachments,
diff --git a/docs/User Guide/User Guide/AI/Providers.md b/docs/User Guide/User Guide/AI/Providers.md
index 32be356f4a..f2b4fa4d4b 100644
--- a/docs/User Guide/User Guide/AI/Providers.md
+++ b/docs/User Guide/User Guide/AI/Providers.md
@@ -37,6 +37,7 @@ Trilium will identify your Claude Code binary in this order:
* By looking for a `TRILIUM_CLAUDE_CODE_PATH` environment variable pointing to the Claude binary. This allows overriding the path if needed.
* By looking for `claude` in your PATH, generally works in most circumstances.
+* By asking your login shell for its `PATH` which lets a desktop install find a CLI installed through `nvm`, `fnm`, `asdf` or Homebrew, since a GUI-launched app doesn't inherit your terminal's environment.
After your provider is set up, you'll benefit from the same features as an API key (note tools, web search, extended thinking, image/PDF attachments, streaming).