Skip to content

Build your personal knowledge base with Trilium Notes

docs(user): update user-facing documentation regarding subscriptions

Elian Doranee7b017cb259
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/AI.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/AI.html
index 7067b8bc08..76c8c0897e 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/AI.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/AI.html
@@ -1,8 +1,3 @@
-<aside class="admonition warning">
- <p>This feature is currently marked as experimental. While it is functional,
- we do expect that the user interface might change or we might add or remove
- some features related to it.</p>
-</aside>
<h2>History</h2>
<h3>Removal in v0.102.0</h3>
<p>Starting with version v0.102.0, AI/LLM integration has been removed from
@@ -45,7 +40,7 @@
with little guidance, as the AI has been instructed in how to produce them.</p>
</aside>
<h2>LLM Providers</h2>
-<h3>Cloud providers</h3>
+<h3>Cloud providers using API keys</h3>
<p>Currently, only three cloud providers are supported:</p>
<ul>
<li><a href="https://platform.claude.com/settings/workspaces/default/keys">Anthropic</a>
@@ -55,13 +50,54 @@
</ul>
<p>For all the providers, an API key is needed. Note that this is charged
separately from the subscription you might already have (e.g. Claude Pro).
- If that might be a problem, consider using the MCP server and connecting
- it to your agent (e.g. Claude Code).</p>
+ If that might be a problem, consider using either a subscription provider
+ (see below) or using it externally via MCP.</p>
<aside class="admonition note">
<p>We don't plan to support all cloud providers, even if the library we are
using would theoretically support them. Before opening a PR adding support
for a different cloud provider, make sure to discuss it over GitHub discussions.</p>
</aside>
+<h3>Subscription providers</h3>
+<aside class="admonition important">
+ <p>Subscription-based providers are still in beta. They are safe to use (they
+ won't use additional funds and respect the terms of use), but you might
+ experience small issues. Consider&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/BgmBlOIl72jZ/_help_wy8So3yZZlH9">Reporting issues</a>.</p>
+</aside>
+<p>Some cloud providers offer a subscription, which has a fixed monthly fee
+ instead of pay-per-use (unlike the API keys). Trilium v0.104.0 introduces
+ beta support for Anthropic's Claude Pro/Max subscriptions. Other subscription-based
+ providers such as ChatGPT are on the roadmap, but not yet implemented.</p>
+<p>To use a subscription:</p>
+<ol>
+ <li>First, Claude Code needs to be installed on the machine that runs Trilium.
+ So for a&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/Otzi9La2YAUX/_help_poXkQfguuA0U">Desktop Installation</a>,
+ Claude needs to be installed locally and for a&nbsp;<a class="reference-link"
+ href="#root/pOsGYCXsbNQG/Otzi9La2YAUX/_help_WOcw2SLH6tbX">Server Installation</a>&nbsp;accessed
+ via a browser, Claude needs to be installed on the server.</li>
+ <li>Claude Code must already be authenticated. To do so, run <code spellcheck="false">claude</code> in
+ a terminal once, type <code spellcheck="false">login</code> and follow the
+ instructions.</li>
+ <li>Go to&nbsp;<a class="reference-link" href="#root/_help_4TIF1oA4VQRO">Options</a>&nbsp;→ <em>AI / LLM</em> and
+ add the Claude Code provider.</li>
+</ol>
+<p>Trilium will identify your Claude Code binary in this order:</p>
+<ul>
+ <li>By looking for a <code spellcheck="false">TRILIUM_CLAUDE_CODE_PATH</code> environment
+ variable pointing to the Claude binary. This allows overriding the path
+ if needed.</li>
+ <li>By looking for <code spellcheck="false">claude</code> in your PATH, generally
+ works in most circumstances.</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,
+ streaming).</p>
+<aside class="admonition note">
+ <p>Trilium intentionally uses your Claude Code binary in order not to have
+ to package a ~250 MB client with it, but this comes at a cost: there is
+ a small risk for a version incompatibility, if the version installed locally
+ doesn't match the one expected by Trilium. Generally it's best to keep
+ both Claude Code and Trilium updated to the latest version.</p>
+</aside>
<h3>Self-hosted providers</h3>
<p>Since v0.104.0, self-hosted LLM providers are supported indirectly. Simply
create an Anthropic, ChatGPT, or Gemini provider and select the appropriate
@@ -75,14 +111,9 @@
the response against a cloud provider (Claude Sonnet is recommended).</p>
</aside>
<h2>Enabling the AI integration</h2>
-<p>Because it is an experimental feature, enabling the AI integration is
- a two-step process:</p>
-<ol>
- <li>Go to&nbsp;<a class="reference-link" href="#root/_help_4TIF1oA4VQRO">Options</a>&nbsp;→ <em>Advanced</em> and
- check <em>AI / LLM Chat</em> in the <em>Experimental Options</em> section.</li>
- <li>Go to&nbsp;<a class="reference-link" href="#root/_help_4TIF1oA4VQRO">Options</a>&nbsp;→ <em>AI / LLM</em> and
- configure a new provider.</li>
-</ol>
+<p>To enable the AI integration, simply go to&nbsp;<a class="reference-link"
+ href="#root/_help_4TIF1oA4VQRO">Options</a>&nbsp;→ <em>AI / LLM</em> and press
+ the toggle in the top-right of the dialog and configure a provider.</p>
<h2>Creating a new chat</h2>
<p>There are two different chat interfaces:</p>
<ul>
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Templates.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Templates.html
index 2cbee3650a..8e423e6c31 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Templates.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Templates.html
@@ -58,17 +58,17 @@
Only the structure present at the time of note creation is considered.</p>
</aside>
<h2>Regarding note types</h2>
-<p>By default, newly created notes are&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_iPIMuisry3hd">Text</a>&nbsp;notes.
+<p>By default, newly created notes are&nbsp;<a class="reference-link" href="#root/_help_iPIMuisry3hd">Text</a>&nbsp;notes.
If a parent note defines a <code spellcheck="false">child:template</code> pointing
to a template of a different type (e.g. a Code note), the behavior depends
on how the new note is created:</p>
<ul>
<li>If no note type is explicitly chosen (e.g. the + button in the&nbsp;
<a
- class="reference-link" href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_oPVyFC7WL2Lp">Note Tree</a>), the template is applied and the new note takes the type
+ class="reference-link" href="#root/_help_oPVyFC7WL2Lp">Note Tree</a>), the template is applied and the new note takes the type
and content of the template.</li>
<li>If a note type is explicitly selected (e.g.&nbsp;<a class="reference-link"
- href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_oPVyFC7WL2Lp">Note Tree</a>&nbsp;→ <em>Insert note after</em> / <em>Insert child note</em>):
+ href="#root/_help_oPVyFC7WL2Lp">Note Tree</a>&nbsp;→ <em>Insert note after</em> / <em>Insert child note</em>):
<ul>
<li>If the selected type matches the template's type, the template is applied.</li>
<li>If the selected type differs, the template is disregarded entirely — the
@@ -83,11 +83,11 @@
<code
spellcheck="false">#cssClass</code>attributes, allowing all instance notes (e.g., books)
to display a specific icon and CSS style.</p>
-<p>Explore the concept further in the&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/tC7s2alapj8V/wX4HbRucYSDD/_help_6tZeKvSHEUiB">Demo Notes</a>,
- including examples like the&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_iRwzGnHPzonm">Relation Map</a>,&nbsp;
+<p>Explore the concept further in the&nbsp;<a class="reference-link" href="#root/_help_6tZeKvSHEUiB">Demo Notes</a>,
+ including examples like the&nbsp;<a class="reference-link" href="#root/_help_iRwzGnHPzonm">Relation Map</a>,&nbsp;
<a
- class="reference-link" href="#root/pOsGYCXsbNQG/tC7s2alapj8V/5668rwcirq1t/_help_xYjQUYhpbUEW">Task Manager</a>, and&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/tC7s2alapj8V/5668rwcirq1t/_help_l0tKav7yLHGF">Day Notes</a>.</p>
-<p>Additionally, see&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/tC7s2alapj8V/_help_47ZrP6FNuoG8">Default Note Title</a>&nbsp;for
+ class="reference-link" href="#root/_help_xYjQUYhpbUEW">Task Manager</a>, and&nbsp;<a class="reference-link" href="#root/_help_l0tKav7yLHGF">Day Notes</a>.</p>
+<p>Additionally, see&nbsp;<a class="reference-link" href="#root/_help_47ZrP6FNuoG8">Default Note Title</a>&nbsp;for
creating title templates. Note templates and title templates can be combined
by creating a <code spellcheck="false">#titleTemplate</code> for a template
note.</p>
\ No newline at end of file
diff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.json
index f408286ab2..8d5cf9d175 100644
--- a/docs/User Guide/!!!meta.json
+++ b/docs/User Guide/!!!meta.json
@@ -15742,67 +15742,67 @@
"position": 30
},
{
- "type": "label",
- "name": "shareAlias",
- "value": "template",
- "isInheritable": false,
- "position": 30
- },
- {
- "type": "label",
- "name": "iconClass",
- "value": "bx bx-copy",
+ "type": "relation",
+ "name": "internalLink",
+ "value": "iPIMuisry3hd",
"isInheritable": false,
- "position": 110
+ "position": 40
},
{
"type": "relation",
"name": "internalLink",
- "value": "47ZrP6FNuoG8",
+ "value": "oPVyFC7WL2Lp",
"isInheritable": false,
- "position": 120
+ "position": 50
},
{
"type": "relation",
"name": "internalLink",
"value": "6tZeKvSHEUiB",
"isInheritable": false,
- "position": 130
+ "position": 60
},
{
"type": "relation",
"name": "internalLink",
"value": "iRwzGnHPzonm",
"isInheritable": false,
- "position": 140
+ "position": 70
},
{
"type": "relation",
"name": "internalLink",
"value": "xYjQUYhpbUEW",
"isInheritable": false,
- "position": 150
+ "position": 80
},
{
"type": "relation",
"name": "internalLink",
"value": "l0tKav7yLHGF",
"isInheritable": false,
- "position": 160
+ "position": 90
},
{
"type": "relation",
"name": "internalLink",
- "value": "iPIMuisry3hd",
+ "value": "47ZrP6FNuoG8",
"isInheritable": false,
- "position": 170
+ "position": 100
},
{
- "type": "relation",
- "name": "internalLink",
- "value": "oPVyFC7WL2Lp",
+ "type": "label",
+ "name": "shareAlias",
+ "value": "template",
"isInheritable": false,
- "position": 180
+ "position": 30
+ },
+ {
+ "type": "label",
+ "name": "iconClass",
+ "value": "bx bx-copy",
+ "isInheritable": false,
+ "position": 110
}
],
"format": "markdown",
@@ -18663,6 +18663,20 @@
"value": "bx bx-bot",
"isInheritable": false,
"position": 30
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "poXkQfguuA0U",
+ "isInheritable": false,
+ "position": 180
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "WOcw2SLH6tbX",
+ "isInheritable": false,
+ "position": 190
}
],
"format": "markdown",
diff --git a/docs/User Guide/User Guide/AI.md b/docs/User Guide/User Guide/AI.md
index 685441a048..606be36d23 100644
--- a/docs/User Guide/User Guide/AI.md
+++ b/docs/User Guide/User Guide/AI.md
@@ -1,7 +1,4 @@
# AI
-> [!WARNING]
-> This feature is currently marked as experimental. While it is functional, we do expect that the user interface might change or we might add or remove some features related to it.
-
## History
### Removal in v0.102.0
@@ -38,7 +35,7 @@ One of the key changes that lead to the reimplementation is that now we are usin
## LLM Providers
-### Cloud providers
+### Cloud providers using API keys
Currently, only three cloud providers are supported:
@@ -46,11 +43,34 @@ Currently, only three cloud providers are supported:
* OpenAI
* Gemini
-For all the providers, an API key is needed. Note that this is charged separately from the subscription you might already have (e.g. Claude Pro). If that might be a problem, consider using the MCP server and connecting it to your agent (e.g. Claude Code).
+For all the providers, an API key is needed. Note that this is charged separately from the subscription you might already have (e.g. Claude Pro). If that might be a problem, consider using either a subscription provider (see below) or using it externally via MCP.
> [!NOTE]
> We don't plan to support all cloud providers, even if the library we are using would theoretically support them. Before opening a PR adding support for a different cloud provider, make sure to discuss it over GitHub discussions.
+### Subscription providers
+
+> [!IMPORTANT]
+> Subscription-based providers are still in beta. They are safe to use (they won't use additional funds and respect the terms of use), but you might experience small issues. Consider <a class="reference-link" href="Troubleshooting/Reporting%20issues.md">Reporting issues</a>.
+
+Some cloud providers offer a subscription, which has a fixed monthly fee instead of pay-per-use (unlike the API keys). Trilium v0.104.0 introduces beta support for Anthropic's Claude Pro/Max subscriptions. Other subscription-based providers such as ChatGPT are on the roadmap, but not yet implemented.
+
+To use a subscription:
+
+1. First, Claude Code needs to be installed on the machine that runs Trilium. So for a <a class="reference-link" href="Installation%20%26%20Setup/Desktop%20Installation.md">Desktop Installation</a>, Claude needs to be installed locally and for a <a class="reference-link" href="Installation%20%26%20Setup/Server%20Installation.md">Server Installation</a> accessed via a browser, Claude needs to be installed on the server.
+2. Claude Code must already be authenticated. To do so, run `claude` in a terminal once, type `login` and follow the instructions.
+3. Go to <a class="reference-link" href="Basic%20Concepts%20and%20Features/UI%20Elements/Options.md">Options</a> → _AI / LLM_ and add the Claude Code provider.
+
+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.
+
+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).
+
+> [!NOTE]
+> Trilium intentionally uses your Claude Code binary in order not to have to package a ~250 MB client with it, but this comes at a cost: there is a small risk for a version incompatibility, if the version installed locally doesn't match the one expected by Trilium. Generally it's best to keep both Claude Code and Trilium updated to the latest version.
+
### Self-hosted providers
Since v0.104.0, self-hosted LLM providers are supported indirectly. Simply create an Anthropic, ChatGPT, or Gemini provider and select the appropriate base URL.
@@ -62,10 +82,7 @@ Model selection for self-hosted providers is not yet supported, but generally th
## Enabling the AI integration
-Because it is an experimental feature, enabling the AI integration is a two-step process:
-
-1. Go to <a class="reference-link" href="Basic%20Concepts%20and%20Features/UI%20Elements/Options.md">Options</a> → _Advanced_ and check _AI / LLM Chat_ in the _Experimental Options_ section.
-2. Go to <a class="reference-link" href="Basic%20Concepts%20and%20Features/UI%20Elements/Options.md">Options</a> → _AI / LLM_ and configure a new provider.
+To enable the AI integration, simply go to <a class="reference-link" href="Basic%20Concepts%20and%20Features/UI%20Elements/Options.md">Options</a> → _AI / LLM_ and press the toggle in the top-right of the dialog and configure a provider.
## Creating a new chat