dcash

GnuCash 的
手機隨手記
Jot it down on your phone. Find it in GnuCash.

在外面花的現金,當下用手機記下來;回到電腦打開 GnuCash,它已經在帳本裡了。 Record cash spending the moment it happens. Next time you open GnuCash on your desktop, it's already in your book.

記帳畫面:一筆支出拆成食材與日用品兩個類別 Entry screen: one purchase split across Groceries and Household

GnuCash 很好,但它只在桌上。GnuCash is great. It also never leaves your desk.

記Add

十秒記完一筆Ten seconds per entry

日期、描述、金額、類別。一筆可以拆成多個類別,就像 GnuCash 的分割交易。沒訊號也能記。 Date, description, amount, category. Split one receipt across categories, just like in GnuCash. Works offline.

待入帳清單:剛記下、等待寫入帳本的支出 Inbox: an entry waiting to be written into the book
查Search

打幾個字,馬上有答案Type a word, get the answer

打關鍵字,立刻看到每一筆和各年合計。歷史資料存在手機上,不用等、不用連線。 Type a keyword and see every match, with totals by year. Your history lives on the phone, so it's instant and works offline.

查帳畫面:搜尋「咖啡」的結果與各年合計 Search screen: results for “coffee” with totals by year
對Reconcile

錢包現在應該有多少What your wallet should hold

畫面最上方告訴你錢包現在應該有多少:帳本餘額減掉還沒入帳的支出。打開錢包數一數就知道有沒有漏記。 The top of the screen shows what your wallet should hold: the book balance minus what you haven't synced yet. Count your cash and you know if you missed something.

錢包現金應有金額:帳本餘額減待入帳 Expected wallet amount: book balance minus pending entries
運作方式How it works

帳本只在你的電腦上被寫入。Your book is only ever written on your own computer.

  1. 手機記的帳先放在你自己的 Cloudflare 帳號裡等候。Entries from your phone wait in your own Cloudflare account.
  2. 你打開 GnuCash 時,桌機上的小程式先備份帳本,再透過 GnuCash 官方介面把這些帳寫進去。When you open GnuCash, a small desktop script backs up the book, then writes them in through GnuCash's official API.
  3. 關掉 GnuCash 後,最新的支出紀錄會更新到手機。When you close GnuCash, your phone gets the updated history.
資料與安全Data and safety

沒有我們的伺服器。There is no server of ours.

一切跑在你自己的 Cloudflare 免費帳號,用 email 驗證碼登入,只有你的信箱進得去。 Everything runs in your own free Cloudflare account, behind email one-time codes that only your address can receive.

會上傳Uploaded

  • 支出的日期、描述、備註、類別、金額Date, description, notes, category and amount of expenses
  • 現金錢包的餘額The balance of your cash wallet

不會上傳Never uploaded

  • 收入、投資Income and investments
  • 銀行與其他資產的餘額Bank or other asset balances

每次寫入前自動備份;寫入的交易都有標記,找得到、刪得掉。 Every write is preceded by a backup. Entries written by dcash are tagged, so you can always find or remove them.

適合誰Who it's for

適合你,如果A good fit if

你在 Linux 上用 GnuCash、帳本存成 SQLite、願意花半小時架一次。 you run GnuCash on Linux, keep your book as SQLite, and don't mind half an hour of one-time setup.

目前不適合Not yet for

Windows、Flatpak 版 GnuCash、XML 格式帳本、想記收入或外幣。macOS 理論上可以透過 MacPorts 的 Python bindings 使用,但還沒有人測過,歡迎幫忙驗證。 Windows, Flatpak GnuCash, XML books, or recording income and foreign currency. macOS should be possible through the MacPorts Python bindings, but nobody has tested it yet. Help verifying it is welcome.

安裝Install

交給你的 AI agent。Let your AI agent do it.

你只要開 Cloudflare 帳號、建一組 API token,然後對 agent 說: Create a Cloudflare account and an API token, then tell your agent:

照 docs/agent-install.md 幫我裝 dcash。 Install dcash for me by following docs/agent-install.md.

agent 安裝指南Agent install guide · 想自己來?README 有完整步驟。 Prefer doing it by hand? The README has every step (in Chinese).

FAQ

這是線上版 GnuCash 嗎?Is this GnuCash online?

不是,它只做隨手記支出和查帳。No. It only records expenses and searches history.

要錢嗎?Does it cost anything?

軟體免費(MIT),Cloudflare 免費方案就夠個人使用。The software is free (MIT) and Cloudflare's free plan is enough for personal use.

GnuCash 開著時記的帳呢?What if GnuCash is open?

會等你關掉才寫入,不會和你搶帳本。It waits until you close it. It never writes while GnuCash has the book open.

GnuCash 升級會壞嗎?Will a GnuCash upgrade break it?

寫入走官方介面;遇到沒見過的版本會先在帳本副本上自我檢測,不通過就不動正本。Writes go through the official API. On an unfamiliar version it tests itself on a copy first and leaves your book alone if that fails.

不想用了怎麼辦?How do I stop using it?

刪掉 Cloudflare 上的資源即可,已寫入的交易就是一般交易。Delete the Cloudflare resources. What's already in your book stays as ordinary transactions.