Skip to content

URI Handler & iOS Shortcuts

PennyWallet registers the obsidian://penny-wallet URI scheme. Any app that can open a URL — including iOS Shortcuts, Android automation tools, or browser bookmarks — can open the transaction form with fields pre-filled.


URI Format

obsidian://penny-wallet?param1=value1&param2=value2

Parameters

ParameterRequiredDescription
typeNoexpense (default) / income / transfer
amountNoAmount
noteNoNote / description
categoryNoCategory key or custom name
walletNoAccount name (expense / income)
fromWalletNoSource account (transfer)
toWalletNoDestination account (transfer)
dateNoDate in yyyy-mm-dd format, defaults to today

Default Category Keys

Expense

KeyEnglishChinese
foodFood飲食
clothingClothing服飾
housingHome住家
transportTransport交通
educationEducation學習
entertainmentEntertainment休閒娛樂
shoppingShopping購物
medicalMedical醫療
cash_expenseCash Expense現金消費
insuranceInsurance保險
feesFees費用/手續費
taxTax稅金

Income

KeyEnglishChinese
salarySalary薪資
interestInterest利息所得
side_incomeSide Income兼職
bonusBonus獎金
lotteryLottery發票/彩券中獎
rentRent租金
cashbackCashback優惠回饋
dividendDividend股利
investment_profitInvestment Profit投資獲利
insurance_incomeInsurance Claim保險理賠
pensionPension退休金

Transfer

KeyEnglishChinese
account_transferAccount Transfer帳戶互轉
credit_card_paymentCredit Card Payment信用卡繳費
credit_card_refundCredit Card Refund信用卡刷退
investment_tradeInvestment Trade投資買賣

Example

obsidian://penny-wallet?type=expense&amount=280&category=food&note=Lunch

iOS Shortcuts Setup

  1. Open the Shortcuts app → tap + to create a new shortcut
  2. Add action: Ask for Input → prompt Amount, type Number, save to variable amount
  3. Add action: Ask for Input → prompt Note (optional), type Text, save to variable note
  4. Add action: Choose from Menu → prompt Category, options: food, transport, shopping, entertainment, medical, save to variable category
  5. Add action: Open URL:
    obsidian://penny-wallet?type=expense&amount=[amount]&note=[note]&category=[category]
    Replace [amount], [note], [category] with the corresponding Shortcut variables.
  6. Tap Done and name the shortcut (e.g. Log Expense)

To add it to the home screen: tap Add to Home Screen.


FAQ

Can I use this with multiple vaults?

No. PennyWallet does not support targeting a specific vault via URI. The URI always opens in whichever vault is currently active.

Do account and category names need to match exactly?

Yes — they are case-sensitive and must match what's configured in PennyWallet Settings.

Can the URI submit a transaction silently?

No. The form always opens for user confirmation — silent submission is not supported.

Do I need to URL-encode special characters?

Yes, if your account or category names contain spaces or non-ASCII characters. iOS Shortcuts handles this automatically.

Released under the MIT License.