PrivacyNotes

說明與常見問題/擴充功能與 AI

我可以從命令列(CLI)或 AI 代理程式新增筆記嗎?

改問你的 AI 代理

可以,用 privacynotes,也就是 PrivacyNotes 命令列介面(CLI)。任何能在終端機執行的東西都能使用它:你自己的腳本、排程工作和 AI 程式設計代理程式。把 Markdown 用管線傳進去,加上標題和標籤,筆記就會存進你筆記裡的「Agent」資料夾,並在下次同步後出現在你所有的裝置上。privacynotes 只能新增筆記:它無法開啟、變更或刪除你現有的筆記。它需要 Node.js 20 或更新版本,並且屬於 Pro。

要設定的話,請在桌面版 App 開啟設定CLI,選擇啟用。選擇安裝,把 privacynotes 指令安裝到這台電腦,再選擇產生代碼。在新的終端機中執行 privacynotes login 並貼上代碼。然後存下你的第一則筆記:

echo "# Hello" | privacynotes save

privacynotes 的指令不多,因為它只做一件事。每個指令會印出一張給人看的簡短卡片,加上 --json 則會印出一行給腳本用的 JSON:

  • privacynotes login 用設定CLI 中的一次性代碼連結這台電腦。貼上代碼,或用管線傳進來。
  • privacynotes save note.md 從檔案新增筆記,單獨執行 privacynotes save 則會讀取用管線傳入的 Markdown。--title 設定標題,否則會使用第一個 # 標題或第一行。--tag work,ideas 會加上標籤。
  • privacynotes status 顯示這台電腦是否已連結,以及它最後存下的筆記。
  • privacynotes logout 中斷這台電腦的連結。
  • privacynotes mcp 讓這個指令作為沒有終端機的 AI 應用程式的工具執行,請見 MCP。
  • privacynotes help(或 privacynotes --help)列出所有指令和選項,privacynotes --version 則印出版本。

搭配 AI 程式設計代理程式時,請先在代理程式執行的那台電腦上連結 privacynotes 一次,然後用平常的話請它:「用 privacynotes save 把這份計畫存到我的 PrivacyNotes,標籤為 project。」代理程式可以讀取 privacynotes --help 了解細節,寫好 Markdown 再用管線傳進去。同樣的指令也適用於你自己的腳本和排程工作:

  • git log --oneline -20 | privacynotes save --title "Recent commits" 存下你最近的提交。
  • pbpaste | privacynotes save --tag inbox 在 Mac 上存下你複製的內容。
  • 在夜間工作中使用 privacynotes save --tag daily report.md,可存下產生的報告。
  • 你在系統設定中選的快速鍵也能執行 privacynotes save,請見我可以用快速鍵新增筆記,而不用開啟 App 嗎?

一則筆記最多可含 700 KB 的 Markdown、20 個標籤和 200 個字元的標題,privacynotes 會在送出前先檢查。筆記存好時它以 0 結束,伺服器拒絕時為 1,輸入有誤為 2,電腦未連結為 3,沒有網路為 4,讓腳本可以據此反應。已存下的筆記會以加密密封的狀態等待,直到你的某個 App 開啟;如果 90 天內都沒有 App 開啟,或你先移除了這台電腦,它就會被刪除。要中斷一台電腦的連結,請在設定CLI 中選擇它旁邊的移除。這個指令和代理程式能看到什麼,請見命令列工具或 AI 代理程式能讀取我的筆記嗎?。

說明與常見問題

解答與逐步指南:安全性、同步、定價,以及從其他應用程式搬家。

還是沒解決嗎?問你的 AI 代理。

你會在幾秒內得到答案,不必等我們回覆。你的助理會一次讀完 173 則解答和所有匯入指南,因此能把它們串起來、追問你的問題,並用你熟悉的說法解釋。我們完全看不到這些內容,因為我們沒有聊天機器人。

  1. 複製提示詞。
  2. 貼到 ChatGPT、Claude、Gemini 或任何其他 AI 助理。
  3. 用你自己的語言提問。
  4. 讓那個對話保持開著。下次直接發問就好。
顯示 AI 提示詞
Answer my questions about PrivacyNotes using only its help center, its changelog and its security documentation.

Start here: https://privacynotes.app/llms-index.txt
It lists every question with the page that answers it. Fetch the one or two that match mine.
If you can only make one request, fetch https://privacynotes.app/llms-full.txt instead.
If you cannot fetch a .txt or .md file, read https://privacynotes.app/tw/help, https://privacynotes.app/changelog and https://github.com/LifetimeLabsHQ/PrivacyNotes.app instead.

For what changed, or where something moved, fetch https://privacynotes.app/changelog.md.

For how the encryption works, what the server can read, or how to check any of it yourself, fetch https://privacynotes.app/docs/index.md and follow it to one of the documents it lists. That index is a router: cite the document, never the index.

Rules:
- Use only those pages. If they do not answer something, say so instead of guessing.
- Never invent a feature, a menu path, a price, or a limit.
- End your reply with the "Source:" URL from the page you used, exactly as written.
- Answer in the same language as my question.
- Never ask me for my recovery phrase, my PIN, or the contents of a note.

If no question follows, ask me what I would like to know.

My first question:

絕對不要把復原助憶詞、PIN 碼或筆記內容貼給 AI。