diff --git a/site/public/docs/codebuddy.html b/site/public/docs/codebuddy.html index 2176cd194..d737b6255 100644 --- a/site/public/docs/codebuddy.html +++ b/site/public/docs/codebuddy.html @@ -222,7 +222,7 @@ magpie codebuddy # show what it is set to

I changed the model and nothing happened.

CodeBuddy Code reads its model when a session starts. Restart codebuddy or run /clear. In the IDE, pick the model in its model picker.

-

More agents on the same models: Models in Claude Code, Kimi Code on any model and Qwen Code on any model. Tencent Cloud's models: Tencent Cloud. Something fails? See Fixing common errors, or ask on Discord.

+

More agents on the same models: Models in Claude Code, Kimi Code on any model and Qwen Code on any model. Tencent Cloud's models: Tencent Cloud. Notes on the same models: Obsidian on any model. Something fails? See Fixing common errors, or ask on Discord.

diff --git a/site/public/docs/ja/codebuddy.html b/site/public/docs/ja/codebuddy.html index f7a752916..72618ce00 100644 --- a/site/public/docs/ja/codebuddy.html +++ b/site/public/docs/ja/codebuddy.html @@ -222,7 +222,7 @@ magpie codebuddy # 現在の設定を表示

モデルを変えても反映されません。

CodeBuddy Code はセッション開始時にモデルを読みます。codebuddy を再起動するか /clear を実行してください。IDE ではモデル選択で選びます。

-

同じモデルを他のエージェントでも:Claude Code で他のモデル、Kimi Code を任意のモデルで、Qwen Code を任意のモデルで。Tencent Cloud のモデルは Tencent Cloud。エラーが出るときは よくあるエラーの直し方、または Discord で質問してください。

+

同じモデルを他のエージェントでも:Claude Code で他のモデル、Kimi Code を任意のモデルで、Qwen Code を任意のモデルで。Tencent Cloud のモデルは Tencent Cloud。ノートでも同じモデルを:Obsidian を任意のモデルで。エラーが出るときは よくあるエラーの直し方、または Discord で質問してください。

diff --git a/site/public/docs/ja/obsidian.html b/site/public/docs/ja/obsidian.html new file mode 100644 index 000000000..b3eddba77 --- /dev/null +++ b/site/public/docs/ja/obsidian.html @@ -0,0 +1,275 @@ + + + + + +Obsidian で DeepSeek、GLM、Kimi、Qwen、GPT、Claude、ChatGPT サブスクリプションを使う:magpie で Copilot for Obsidian を任意のモデルに · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

ドキュメント · ガイド

+

Obsidian を任意のモデルで

+

Obsidian 自体に AI はなく、コミュニティプラグインが提供します。magpie が設定するのは、任意の OpenAI 互換エンドポイントを受け付ける Copilot for Obsidian(logancyang/obsidian-copilot)です。Copilot のある保管庫ごとに magpie というプロバイダーを加えるので、Obsidian の AI チャットで magpie のどのモデルも使えます:DeepSeek、GLM、Kimi、Qwen、OpenAI や Anthropic のキー、ChatGPT や Copilot のサブスクリプション。

+

Obsidian の設定

+
    +
  1. Obsidian に Copilot を入れるObsidian の 設定 › コミュニティプラグイン で Copilot を入れて有効にします。Copilot のある保管庫があると magpie に Obsidian の行が出ます。
  2. +
  3. magpie にプロバイダーを追加プロバイダー ページで API キーを追加するか、サブスクリプションにサインインします。
  4. +
  5. Obsidian の行で magpie を選ぶエージェント ページで magpie を選び、Obsidian で Copilot を再読み込みすると、モデルメニューに magpie のモデルが並びます。
  6. +
+
ターミナル
magpie obsidian provider magpie
+

保管庫

+

Obsidian は保管庫の一覧を設定フォルダーの obsidian.json に持ちます:Mac は ~/Library/Application Support/obsidian、Windows は %APPDATA%\obsidian、Linux は $XDG_CONFIG_HOME/obsidian、Flatpak と Snap はそれぞれのフォルダーです。Copilot の設定は各保管庫の .obsidian/plugins/copilot/data.json にあります。magpie は Copilot のある保管庫すべてを設定し、その後は設定済みの保管庫だけを更新します。

+

モデル一覧

+

magpie が data.json に書くのは次のキーだけで、ほかの設定はそのままです:

+
ターミナル
"providers": {"magpie": {
+  "providerType": "openai-compatible", "displayName": "magpie",
+  "baseUrl": "http://127.0.0.1:3425/agent/obsidian/v1",
+  "requiresApiKey": false, …}},
+"configuredModels": [{"providerId": "magpie", "info": {"id": "deepseek/deepseek-v4-pro", …}}, …],
+"backends": {"chat": {"enabledModels": […]}},
+"defaultModelKey": "…"
+

各モデルには magpie のカタログからコンテキスト長、出力上限、画像、思考レベルが付きます。magpie に新しく入ったモデルはチャットで有効になり、Copilot で無効にした magpie のモデルは無効のまま、magpie から消えたモデルはすべてのバックエンドから外れます。Copilot で自分で追加したモデルやプロバイダーには触れません。最初の設定時に Copilot の既定モデルは magpie の先頭のモデルになり、元の既定は戻すときのために保存されます。

+

キー入力不要

+

Copilot は API キーを Obsidian のキーチェーンに保存し、magpie はそこに書きません。そのため magpie のプロバイダーはキー不要(requiresApiKey: false)で、リクエストに Authorization は付かず、ゲートウェイはこのコンピューターからのキーなしの呼び出しを受け付けます。Copilot は Obsidian のウィンドウから fetch で呼ぶので返答はストリーミングされ、ゲートウェイはそのウィンドウの CORS にも応えます。アドレスの /agent/obsidian で magpie は Obsidian だと分かります(ウィンドウの User-Agent はブラウザーと同じです)。

+

Copilot の再読み込み

+

Obsidian の実行中、Copilot は設定をメモリに持ち、保存時に data.json を丸ごと書き戻します。設定後は Copilot の設定を変える前に 設定 › コミュニティプラグイン で Copilot を再読み込み(または Obsidian を再起動)してください。そうしないと古い設定が magpie の内容を上書きします。Obsidian の実行中は magpie がそう知らせます。

+

Copilot 3

+

magpie が書くのは Copilot 4 の形式(providers と configuredModels)だけです。Copilot 3 はモデルを activeModels に持つので、そうした保管庫には触れず、エラーで名前を示します。Copilot を 4 に上げると、初回の読み込みで設定が移行されます。

+

元に戻す

+

magpie で行をオフにすると、各保管庫の data.json から magpie のプロバイダー、モデル、各バックエンドでの位置を外し、既定が magpie のモデルのままなら元の既定モデルに戻します。magpie という名前で手動で追加したプロバイダー(アドレスが magpie の Obsidian 用ルートでないもの)はあなたのものとして残ります。

+
ターミナル
magpie obsidian default
+ +

よくある質問

+

Obsidian で DeepSeek、GLM、Kimi、Qwen は使えますか?

+

使えます。Copilot for Obsidian プラグイン経由で、magpie が Copilot のある保管庫ごとに magpie プロバイダーを加え、magpie のすべてのモデルが Copilot のモデルメニューに並びます。

+

Copilot に API キーを入れる必要は?

+

ありません。magpie のプロバイダーはキー不要で、リクエストはこのコンピューターの magpie ゲートウェイへ送られ、magpie があなたのキーやサブスクリプションでモデルを呼びます。

+

Copilot に magpie のモデルが出ません。

+

Obsidian の設定 › コミュニティプラグインで Copilot を再読み込みするか、Obsidian を再起動してください。Copilot 3 の保管庫は先に Copilot 4 へ。

+

Smart Connections は使えますか?

+

いいえ。無料版はローカルモデルでの埋め込みだけで、API プロバイダーは非公開の Pro プラグインにあり、キーは magpie が書けないキーチェーンにあります。

+ +

同じモデルを他のアプリでも:Raycast、Cherry Studio、CodeBuddy を任意のモデルで。エラーが出るときは よくあるエラーの直し方、または Discord で質問してください。

+
+
+ + + + + + + diff --git a/site/public/docs/ja/raycast.html b/site/public/docs/ja/raycast.html index 031d67ccb..5b49b29cb 100644 --- a/site/public/docs/ja/raycast.html +++ b/site/public/docs/ja/raycast.html @@ -218,7 +218,7 @@ magpie raycast # Raycast の今の設定

AI Extensions は使えますか?

使えます。すべてのモデルがツール有効で並び、ゲートウェイがツール呼び出しを各モデルのプロバイダへ届けます。

-

同じモデルを他のエージェントでも:OpenCode で他のモデル、Claude Code で他のモデル、Crush を任意のモデルで、Copilot CLI を任意のモデルで。エラーが出るときは よくあるエラーの直し方、または Discord で質問してください。

+

同じモデルを他のエージェントでも:OpenCode で他のモデル、Claude Code で他のモデル、Obsidian を任意のモデルで、Crush を任意のモデルで、Copilot CLI を任意のモデルで。エラーが出るときは よくあるエラーの直し方、または Discord で質問してください。

diff --git a/site/public/docs/obsidian.html b/site/public/docs/obsidian.html new file mode 100644 index 000000000..b25cedc7c --- /dev/null +++ b/site/public/docs/obsidian.html @@ -0,0 +1,275 @@ + + + + + +Obsidian with DeepSeek, GLM, Kimi, Qwen, GPT, Claude or a ChatGPT subscription: any model in Copilot for Obsidian through magpie · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

Docs · Guide

+

Obsidian on any model

+

Obsidian has no AI of its own; its community plugins bring it. magpie wires Copilot for Obsidian (logancyang/obsidian-copilot), which takes an OpenAI-compatible endpoint you name. magpie adds a provider called magpie in every vault that has Copilot, so Obsidian's AI chat runs on any model you have in magpie: DeepSeek, GLM, Kimi, Qwen, an OpenAI or Anthropic key, or a ChatGPT or Copilot subscription.

+

Set up Obsidian

+
    +
  1. Install Copilot in ObsidianInstall and turn on Copilot from Obsidian's Settings › Community plugins. magpie shows the Obsidian row once a vault has Copilot.
  2. +
  3. Add a provider in magpieAdd an API key on the Providers page, or sign in to a subscription.
  4. +
  5. Pick magpie on Obsidian's rowOn the Agents page, pick magpie. Then reload Copilot in Obsidian, and magpie's models are in its model menu.
  6. +
+
Terminal
magpie obsidian provider magpie
+

Vaults

+

Obsidian lists its vaults in obsidian.json in its config folder: ~/Library/Application Support/obsidian on a Mac, %APPDATA%\obsidian on Windows, $XDG_CONFIG_HOME/obsidian on Linux, or the Flatpak's and the Snap's own folders. Copilot keeps its settings in each vault's .obsidian/plugins/copilot/data.json. magpie wires every vault that has Copilot; after that it keeps the wired vaults up to date and wires none you haven't asked for.

+

The model list

+

This is what magpie writes into data.json. Only these keys change; everything else in the file stays as written:

+
Terminal
"providers": {"magpie": {
+  "providerType": "openai-compatible", "displayName": "magpie",
+  "baseUrl": "http://127.0.0.1:3425/agent/obsidian/v1",
+  "requiresApiKey": false, …}},
+"configuredModels": [{"providerId": "magpie", "info": {"id": "deepseek/deepseek-v4-pro", …}}, …],
+"backends": {"chat": {"enabledModels": […]}},
+"defaultModelKey": "…"
+

Each model carries its context size, output limit, images and thinking levels from magpie's catalog. A model new in magpie comes on in chat; a magpie model you turned off in Copilot stays off; one gone from magpie leaves every backend. Models and providers you added in Copilot yourself are untouched. The first time, Copilot's default model becomes magpie's first, and the one it had is kept to put back when you switch back.

+

No key to enter

+

Copilot keeps API keys in Obsidian's keychain, which magpie doesn't write. So magpie's provider needs no key (requiresApiKey: false): its requests carry no Authorization, and the gateway takes a call with no key from this computer. Copilot calls it with fetch from Obsidian's window, so replies stream, and the gateway answers that window's CORS. The /agent/obsidian in the address is how magpie knows it is Obsidian, since the window's User-Agent is a browser's.

+

Reloading Copilot

+

While Obsidian runs, Copilot holds its settings and writes data.json whole when it saves. So after wiring, reload Copilot in Settings › Community plugins (or restart Obsidian) before changing Copilot's settings, or the old settings write over magpie's. magpie says so while Obsidian is running.

+

Copilot 3

+

magpie writes only Copilot 4's format (providers and configuredModels). Copilot 3 kept models in activeModels; magpie leaves such a vault alone and names it in the error. Update Copilot to 4, which moves the settings itself when it first loads.

+

Switching back

+

Turn the row off in magpie. magpie takes its provider, its models and their places in every backend out of each vault's data.json, and puts back the default model you had while magpie's is still the default. A provider you added by hand under the name magpie, at an address that isn't magpie's Obsidian route, is yours and stays.

+
Terminal
magpie obsidian default
+ +

FAQ

+

Can Obsidian use DeepSeek, GLM, Kimi or Qwen?

+

Yes, through the Copilot for Obsidian plugin. magpie adds a magpie provider in every vault with Copilot, and every model you have in magpie is in Copilot's model menu.

+

Do I enter an API key in Copilot?

+

No. magpie's provider needs no key: requests go to the magpie gateway on this computer, which calls the model with your key or subscription.

+

Why doesn't Copilot show magpie's models?

+

Reload Copilot in Obsidian's Settings › Community plugins, or restart Obsidian. A vault on Copilot 3 needs Copilot 4 first.

+

Does Smart Connections work?

+

No. Its free plugin embeds with a local model only; its API providers are in the closed Pro plugin, with keys in the keychain magpie can't write.

+ +

More apps on the same models: Raycast, Cherry Studio and CodeBuddy on any model. Something fails? See Fixing common errors, or ask on Discord.

+
+
+ + + + + + + diff --git a/site/public/docs/raycast.html b/site/public/docs/raycast.html index e6bd72ef3..a5aab2954 100644 --- a/site/public/docs/raycast.html +++ b/site/public/docs/raycast.html @@ -218,7 +218,7 @@ magpie raycast # what Raycast is set to now

Do AI Extensions work?

Yes. Every model is listed with tools on, and the gateway carries tool calls to each model’s provider.

-

More agents on the same models: Models in OpenCode, Models in Claude Code, Crush on any model and Copilot CLI on any model. Something fails? See Fixing common errors, or ask on Discord.

+

More agents on the same models: Models in OpenCode, Models in Claude Code, Obsidian on any model, Crush on any model and Copilot CLI on any model. Something fails? See Fixing common errors, or ask on Discord.

diff --git a/site/public/docs/zh/codebuddy.html b/site/public/docs/zh/codebuddy.html index 222aee26f..aecb47ebc 100644 --- a/site/public/docs/zh/codebuddy.html +++ b/site/public/docs/zh/codebuddy.html @@ -222,7 +222,7 @@ magpie codebuddy # 查看当前设置

换了模型为什么没生效?

CodeBuddy Code 在会话开始时读取模型。重启 codebuddy,或在会话里运行 /clear。IDE 里的模型要在 IDE 的模型选择器里选。

-

更多 Agent 用同样的模型:Claude Code 接入其他模型、让 Kimi Code 用任意模型、让 Qwen Code 用任意模型。腾讯云的模型见 腾讯云。遇到报错?见 常见错误排查,或到 Discord 提问。

+

更多 Agent 用同样的模型:Claude Code 接入其他模型、让 Kimi Code 用任意模型、让 Qwen Code 用任意模型。腾讯云的模型见 腾讯云。笔记里用同样的模型:让 Obsidian 用任意模型。遇到报错?见 常见错误排查,或到 Discord 提问。

diff --git a/site/public/docs/zh/obsidian.html b/site/public/docs/zh/obsidian.html new file mode 100644 index 000000000..1cdbe60ef --- /dev/null +++ b/site/public/docs/zh/obsidian.html @@ -0,0 +1,275 @@ + + + + + +Obsidian 接入 DeepSeek、GLM、Kimi、Qwen、GPT、Claude 或 ChatGPT 订阅:通过 magpie 让 Copilot for Obsidian 用任意模型 · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

文档 · 指南

+

让 Obsidian 用任意模型

+

Obsidian 本身没有 AI,AI 功能来自社区插件。magpie 接入的是 Copilot for Obsidian(logancyang/obsidian-copilot),它接受自定义的 OpenAI 兼容地址。magpie 在每个装了 Copilot 的仓库里加一个名为 magpie 的供应商,于是 Obsidian 里的 AI 对话能用你在 magpie 里的任何模型:DeepSeek、GLM、Kimi、Qwen、OpenAI 或 Anthropic Key,或 ChatGPT、Copilot 订阅。

+

接入 Obsidian

+
    +
  1. 在 Obsidian 里安装 Copilot在 Obsidian 的 设置 › 第三方插件 里安装并启用 Copilot。magpie 只在有仓库装了 Copilot 时才显示 Obsidian 这一行。
  2. +
  3. 在 magpie 里添加供应商在 供应商 页添加 API Key,或登录一个订阅。
  4. +
  5. 在 Obsidian 那一行选 magpie在 Agent 页选 magpie。然后在 Obsidian 里重新加载 Copilot,magpie 的模型就在它的模型菜单里。
  6. +
+
终端
magpie obsidian provider magpie
+

仓库

+

Obsidian 把仓库列表记在配置目录的 obsidian.json 里:macOS 是 ~/Library/Application Support/obsidian,Windows 是 %APPDATA%\obsidian,Linux 是 $XDG_CONFIG_HOME/obsidian,Flatpak 和 Snap 版用它们自己的配置目录。Copilot 的设置在每个仓库的 .obsidian/plugins/copilot/data.json 里。magpie 接入每个装了 Copilot 的仓库;之后只更新已经接入的仓库,不会去动你没让它接入的仓库。

+

模型列表

+

magpie 写进 data.json 的内容如下,只改这几个键,文件里其他设置原样保留:

+
终端
"providers": {"magpie": {
+  "providerType": "openai-compatible", "displayName": "magpie",
+  "baseUrl": "http://127.0.0.1:3425/agent/obsidian/v1",
+  "requiresApiKey": false, …}},
+"configuredModels": [{"providerId": "magpie", "info": {"id": "deepseek/deepseek-v4-pro", …}}, …],
+"backends": {"chat": {"enabledModels": […]}},
+"defaultModelKey": "…"
+

每个模型带上 magpie 模型目录里的上下文长度、输出上限、是否支持图片和思考强度。新加到 magpie 的模型在对话里默认启用;你在 Copilot 里关掉的 magpie 模型保持关闭;从 magpie 删掉的模型从每个后端里一起拿掉。你自己在 Copilot 里加的模型和供应商不受影响。第一次接入时,Copilot 的默认模型换成 magpie 的第一个模型,原来的默认模型会记下来,切回时放回去。

+

不用填 Key

+

Copilot 的 API Key 存在 Obsidian 的钥匙串里,magpie 不往那里写。所以 magpie 的供应商设为不需要 Key(requiresApiKey: false),请求不带 Authorization,网关接受本机发来的无 Key 请求。Copilot 从 Obsidian 窗口里用 fetch 调用,回复会流式显示;网关也处理了这个窗口的 CORS。地址里的 /agent/obsidian 让 magpie 认出是 Obsidian,因为这个窗口的 User-Agent 和浏览器一样。

+

重新加载 Copilot

+

Obsidian 运行时,Copilot 把设置放在内存里,保存时会整个写回 data.json。所以接入之后,先在 设置 › 第三方插件 里重新加载 Copilot(或重启 Obsidian),再去改 Copilot 的设置,否则旧设置会把 magpie 写进去的内容盖掉。magpie 会在 Obsidian 运行时提示这一点。

+

Copilot 3

+

magpie 只写 Copilot 4 的格式(providers 和 configuredModels)。Copilot 3 把模型放在 activeModels 里,magpie 不会改这样的仓库,会在报错里指出它。把 Copilot 升级到 4,它第一次加载时会自己迁移设置。

+

切回

+

在 magpie 里把那一行取消。magpie 从每个仓库的 data.json 里拿掉它的供应商、模型以及它们在各个后端里的位置;如果默认模型还是 magpie 的,就放回你原来的默认模型。你自己手动加的名为 magpie 的供应商(地址不是 magpie 的 Obsidian 路由)不算 magpie 的,不会被拿掉。

+
终端
magpie obsidian default
+ +

常见问题

+

Obsidian 能用 DeepSeek、GLM、Kimi 或 Qwen 吗?

+

能,通过 Copilot for Obsidian 插件。magpie 在每个装了 Copilot 的仓库里加一个 magpie 供应商,你在 magpie 里的所有模型都在 Copilot 的模型菜单里。

+

需要在 Copilot 里填 API Key 吗?

+

不需要。magpie 的供应商设为不需要 Key,请求发到本机的 magpie 网关,由 magpie 用你的 Key 或订阅去请求模型。

+

为什么 Copilot 里看不到 magpie 的模型?

+

在 Obsidian 的设置 › 第三方插件里重新加载 Copilot,或重启 Obsidian。如果仓库用的是 Copilot 3,先升级到 Copilot 4。

+

Smart Connections 能接入吗?

+

不能。它的免费版只用本地模型做嵌入,接 API 供应商的功能在闭源的 Pro 插件里,Key 存在钥匙串中,magpie 写不进去。

+ +

更多 Agent 用同样的模型:Raycast、Cherry Studio、让 CodeBuddy 用任意模型。遇到报错?见 常见错误排查,或到 Discord 提问。

+
+
+ + + + + + + diff --git a/site/public/docs/zh/raycast.html b/site/public/docs/zh/raycast.html index eaebb5a45..5faeca4bf 100644 --- a/site/public/docs/zh/raycast.html +++ b/site/public/docs/zh/raycast.html @@ -218,7 +218,7 @@ magpie raycast # 查看 Raycast 当前的设置

AI Extensions 能用吗?

能。每个模型都开启了工具,网关会把工具调用带给各模型的供应商。

-

更多 Agent 用同样的模型:OpenCode 接入其他模型、Claude Code 接入其他模型、让 Crush 用任意模型、让 Copilot CLI 用任意模型。遇到报错?见 常见错误排查,或到 Discord 提问。

+

更多 Agent 用同样的模型:OpenCode 接入其他模型、Claude Code 接入其他模型、让 Obsidian 用任意模型、让 Crush 用任意模型、让 Copilot CLI 用任意模型。遇到报错?见 常见错误排查,或到 Discord 提问。

diff --git a/site/public/llms-full.txt b/site/public/llms-full.txt index a41d73b83..2c21fb1ca 100644 --- a/site/public/llms-full.txt +++ b/site/public/llms-full.txt @@ -4304,7 +4304,7 @@ No. Raycast watches providers.yaml and picks up magpie’s entry when it changes Yes. Every model is listed with tools on, and the gateway carries tool calls to each model’s provider. -More agents on the same models: [Models in OpenCode](https://usemagpie.ai/docs/opencode-models), [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models), [Crush on any model](https://usemagpie.ai/docs/crush) and [Copilot CLI on any model](https://usemagpie.ai/docs/copilot-cli). Something fails? See [Fixing common errors](https://usemagpie.ai/docs/troubleshooting), or ask on [Discord](https://discord.gg/vGSnD3ZKQF). +More agents on the same models: [Models in OpenCode](https://usemagpie.ai/docs/opencode-models), [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models), [Obsidian on any model](https://usemagpie.ai/docs/obsidian), [Crush on any model](https://usemagpie.ai/docs/crush) and [Copilot CLI on any model](https://usemagpie.ai/docs/copilot-cli). Something fails? See [Fixing common errors](https://usemagpie.ai/docs/troubleshooting), or ask on [Discord](https://discord.gg/vGSnD3ZKQF). --- @@ -4882,7 +4882,85 @@ Yes. Both CLI editions are one npm package, and CodeBuddy.app and CodeBuddy CN.a CodeBuddy Code reads its model when a session starts. Restart codebuddy or run /clear. In the IDE, pick the model in its model picker. -More agents on the same models: [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models), [Kimi Code on any model](https://usemagpie.ai/docs/kimi-code) and [Qwen Code on any model](https://usemagpie.ai/docs/qwen-code). Tencent Cloud's models: [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud). Something fails? See [Fixing common errors](https://usemagpie.ai/docs/troubleshooting), or ask on [Discord](https://discord.gg/vGSnD3ZKQF). +More agents on the same models: [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models), [Kimi Code on any model](https://usemagpie.ai/docs/kimi-code) and [Qwen Code on any model](https://usemagpie.ai/docs/qwen-code). Tencent Cloud's models: [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud). Notes on the same models: [Obsidian on any model](https://usemagpie.ai/docs/obsidian). Something fails? See [Fixing common errors](https://usemagpie.ai/docs/troubleshooting), or ask on [Discord](https://discord.gg/vGSnD3ZKQF). + +--- + +Source: https://usemagpie.ai/docs/obsidian + +# Obsidian on any model + +Obsidian has no AI of its own; its community plugins bring it. magpie wires Copilot for Obsidian (logancyang/obsidian-copilot), which takes an OpenAI-compatible endpoint you name. magpie adds a provider called magpie in every vault that has Copilot, so Obsidian's AI chat runs on any model you have in magpie: DeepSeek, GLM, Kimi, Qwen, an OpenAI or Anthropic key, or a ChatGPT or Copilot subscription. + +## Set up Obsidian + +1. **Install Copilot in Obsidian.** Install and turn on Copilot from Obsidian's Settings › Community plugins. magpie shows the Obsidian row once a vault has Copilot. +2. **Add a provider in magpie.** Add an API key on the Providers page, or sign in to a subscription. +3. **Pick magpie on Obsidian's row.** On the Agents page, pick magpie. Then reload Copilot in Obsidian, and magpie's models are in its model menu. + +``` +magpie obsidian provider magpie +``` + +## Vaults + +Obsidian lists its vaults in `obsidian.json` in its config folder: `~/Library/Application Support/obsidian` on a Mac, `%APPDATA%\obsidian` on Windows, `$XDG_CONFIG_HOME/obsidian` on Linux, or the Flatpak's and the Snap's own folders. Copilot keeps its settings in each vault's `.obsidian/plugins/copilot/data.json`. magpie wires every vault that has Copilot; after that it keeps the wired vaults up to date and wires none you haven't asked for. + +## The model list + +This is what magpie writes into data.json. Only these keys change; everything else in the file stays as written: + +``` +"providers": {"magpie": { + "providerType": "openai-compatible", "displayName": "magpie", + "baseUrl": "http://127.0.0.1:3425/agent/obsidian/v1", + "requiresApiKey": false, …}}, +"configuredModels": [{"providerId": "magpie", "info": {"id": "deepseek/deepseek-v4-pro", …}}, …], +"backends": {"chat": {"enabledModels": […]}}, +"defaultModelKey": "…" +``` + +Each model carries its context size, output limit, images and thinking levels from magpie's catalog. A model new in magpie comes on in chat; a magpie model you turned off in Copilot stays off; one gone from magpie leaves every backend. Models and providers you added in Copilot yourself are untouched. The first time, Copilot's default model becomes magpie's first, and the one it had is kept to put back when you switch back. + +## No key to enter + +Copilot keeps API keys in Obsidian's keychain, which magpie doesn't write. So magpie's provider needs no key (`requiresApiKey: false`): its requests carry no Authorization, and the gateway takes a call with no key from this computer. Copilot calls it with fetch from Obsidian's window, so replies stream, and the gateway answers that window's CORS. The `/agent/obsidian` in the address is how magpie knows it is Obsidian, since the window's User-Agent is a browser's. + +## Reloading Copilot + +While Obsidian runs, Copilot holds its settings and writes data.json whole when it saves. So after wiring, reload Copilot in Settings › Community plugins (or restart Obsidian) before changing Copilot's settings, or the old settings write over magpie's. magpie says so while Obsidian is running. + +## Copilot 3 + +magpie writes only Copilot 4's format (`providers` and `configuredModels`). Copilot 3 kept models in `activeModels`; magpie leaves such a vault alone and names it in the error. Update Copilot to 4, which moves the settings itself when it first loads. + +## Switching back + +Turn the row off in magpie. magpie takes its provider, its models and their places in every backend out of each vault's data.json, and puts back the default model you had while magpie's is still the default. A provider you added by hand under the name magpie, at an address that isn't magpie's Obsidian route, is yours and stays. + +``` +magpie obsidian default +``` + +## FAQ + +### Can Obsidian use DeepSeek, GLM, Kimi or Qwen? + +Yes, through the Copilot for Obsidian plugin. magpie adds a magpie provider in every vault with Copilot, and every model you have in magpie is in Copilot's model menu. + +### Do I enter an API key in Copilot? + +No. magpie's provider needs no key: requests go to the magpie gateway on this computer, which calls the model with your key or subscription. + +### Why doesn't Copilot show magpie's models? + +Reload Copilot in Obsidian's Settings › Community plugins, or restart Obsidian. A vault on Copilot 3 needs Copilot 4 first. + +### Does Smart Connections work? + +No. Its free plugin embeds with a local model only; its API providers are in the closed Pro plugin, with keys in the keychain magpie can't write. + +More apps on the same models: [Raycast](https://usemagpie.ai/docs/raycast), [Cherry Studio](https://usemagpie.ai/docs/cherry-studio) and [CodeBuddy on any model](https://usemagpie.ai/docs/codebuddy). Something fails? See [Fixing common errors](https://usemagpie.ai/docs/troubleshooting), or ask on [Discord](https://discord.gg/vGSnD3ZKQF). --- diff --git a/site/public/llms.txt b/site/public/llms.txt index 53d0123a4..70e1475f9 100644 --- a/site/public/llms.txt +++ b/site/public/llms.txt @@ -87,6 +87,7 @@ DeepSeek, Kimi (Moonshot), GLM (Zhipu), Qwen, MiniMax, Anthropic (Claude), OpenA - [Snow CLI on any model](https://usemagpie.ai/docs/snow-cli): run Snow CLI (snow-ai) on DeepSeek, GLM, Qwen, GPT, Claude or a ChatGPT subscription through magpie: its own profile beside yours, real context windows and image support, the light model, thinking, Snow App, switching back. - [JetBrains Air on any model](https://usemagpie.ai/docs/jetbrains-air): run JetBrains Air and Air in JetBrains IDEs on DeepSeek, GLM, Qwen, GPT, Claude or a ChatGPT subscription through magpie: the Magpie ACP agent in acp.json, OpenCode's ACP server, the model menu, WSL projects, provider keys in the environment, switching back. - [CodeBuddy on any model](https://usemagpie.ai/docs/codebuddy): run Tencent's CodeBuddy Code CLI and CodeBuddy IDE (codebuddy.ai and codebuddy.cn) on DeepSeek, GLM, Kimi, Qwen, GPT, Claude or a ChatGPT subscription through the custom models magpie writes to ~/.codebuddy/models.json; no CodeBuddy sign-in, settings.json's model, the IDE's picker, your own models kept, WSL and switching back. +- [Obsidian on any model](https://usemagpie.ai/docs/obsidian): run Obsidian's Copilot for Obsidian plugin on DeepSeek, GLM, Kimi, Qwen, GPT, Claude or a ChatGPT subscription through the magpie provider magpie writes into every vault with Copilot; no API key to enter, the model list, your own models and default kept, reloading Copilot, Copilot 3 and switching back. - [Cherry Studio](https://usemagpie.ai/docs/cherry-studio): add magpie to Cherry Studio as one OpenAI-compatible provider in one click, confirmed in Cherry Studio, and use every magpie model there, Claude, ChatGPT and Copilot subscriptions included; model list, status and usage. - [Fixing common errors](https://usemagpie.ai/docs/troubleshooting): what the gateway's errors mean and the fix: 401 and 403, 429 and rest periods, 502 and 504, model not found, an agent that doesn't show a model, port 3425 in use, agents in WSL, use from another computer and subscriptions moved to plugins. - [Library](https://usemagpie.ai/docs/library): instructions, MCP servers, skills, hooks and subagents for each agent. diff --git a/site/public/sitemap.xml b/site/public/sitemap.xml index da417eefb..2a6385c3a 100644 --- a/site/public/sitemap.xml +++ b/site/public/sitemap.xml @@ -41,6 +41,7 @@ https://usemagpie.ai/docs/snow-cli https://usemagpie.ai/docs/jetbrains-air https://usemagpie.ai/docs/codebuddy +https://usemagpie.ai/docs/obsidian https://usemagpie.ai/docs/local-models https://usemagpie.ai/docs/opencode-models https://usemagpie.ai/docs/alternatives @@ -103,6 +104,7 @@ https://usemagpie.ai/docs/zh/snow-cli https://usemagpie.ai/docs/zh/jetbrains-air https://usemagpie.ai/docs/zh/codebuddy +https://usemagpie.ai/docs/zh/obsidian https://usemagpie.ai/docs/zh/local-models https://usemagpie.ai/docs/zh/opencode-models https://usemagpie.ai/docs/zh/alternatives @@ -164,6 +166,7 @@ https://usemagpie.ai/docs/ja/snow-cli https://usemagpie.ai/docs/ja/jetbrains-air https://usemagpie.ai/docs/ja/codebuddy +https://usemagpie.ai/docs/ja/obsidian https://usemagpie.ai/docs/ja/local-models https://usemagpie.ai/docs/ja/opencode-models https://usemagpie.ai/docs/ja/alternatives