# Calends Documentation > Official user and self-hosting documentation for Calends (订阅账本), an open-source (MIT), self-hosted subscription ledger (v1.84.0, 46 MCP tools). Available in 14 languages. ## How AI Agents Should Read These Docs - **Read-only Docs MCP Server (Streamable HTTP, zero auth)**: https://docs.calends.date/mcp (`claude mcp add --transport http calends-docs https://docs.calends.date/mcp`) - **Per-page Markdown (recommended, fast & untruncated)**: Every documentation page in all 14 languages is available as clean Markdown with YAML frontmatter, absolute `.md` links, and section/global navigation. Replace the trailing `/` with `.md` (e.g., `https://docs.calends.date/en/ai/mcp.md` or `https://docs.calends.date/tracking/cycles.md`), or send `Accept: text/markdown` to any page URL. - **Full English documentation bundle (single file)**: https://docs.calends.date/llms-full.txt - **Full Simplified Chinese documentation bundle (single file)**: https://docs.calends.date/llms-zh.txt - **Docs AI Agent Guide**: https://docs.calends.date/AGENTS.md - **Deployment & MCP Safety Guide**: https://calends.date/AGENTS.md - **Product LLMs Summary & Full Reference**: https://calends.date/llms.txt | https://calends.date/llms-full.txt - **Complete Changelog (Markdown)**: https://calends.date/en/releases.md | https://calends.date/releases.md - **Website**: https://calends.date | **Live Demo**: https://demo.calends.date | **Source**: https://github.com/imetn/calends ## Getting started - [Introduction](https://docs.calends.date/en/start/introduction.md): What Calends is, who it's for, and what it can keep track of. - [Quick start](https://docs.calends.date/en/start/quick-start.md): Deploy with Cloudflare Workers, Docker or systemd, or hand a prompt to an AI agent. - [First-time setup](https://docs.calends.date/en/start/first-setup.md): Set your password with the setup token, add a passkey, then choose base currency, language, time zone and other general settings. - [A tour of the app](https://docs.calends.date/en/start/tour.md): The sidebar modules, the upcoming charges panel, and how to reorder modules and choose a start page. - [Keyboard shortcuts](https://docs.calends.date/en/start/shortcuts.md): New entries, global and page search, detail editing, form submission and calendar navigation. ## Tracking - [Subscriptions and billing cycles](https://docs.calends.date/en/tracking/cycles.md): What each field in the editor means, and how cycles, lifetime purchases, trials, intro offers, free time, pauses and end dates are billed. - [Bills and payments separately](https://docs.calends.date/en/tracking/settlement.md): Track late, combined, partial and advance payments without moving bill periods; understand pending bills, Reports and Wallet dates. - [Price history and phases](https://docs.calends.date/en/tracking/phases.md): Price changes, region and plan switches, payment method changes, lapses and resubscribing — how one subscription splits into phases, and how overlaps and gaps are billed. - [Linked subscriptions](https://docs.calends.date/en/tracking/bundles.md): Attach included perks or paid add-ons to a parent subscription, either following the parent schedule or billing independently. - [Categories](https://docs.calends.date/en/tracking/categories.md): Built-in categories, custom names, icons, colors and order, and what's special about the Domains category. - [The detail page](https://docs.calends.date/en/tracking/detail.md): Status-aware metrics, current-period progress, the charge timeline, yearly records and per-charge payment methods in a single-column dialog. ## Money - [Currencies and exchange rates](https://docs.calends.date/en/money/currency.md): Base currency and original amounts, which day's rate past and future charges use, where rates come from and how often they refresh. - [Wallet and balance runway](https://docs.calends.date/en/money/wallet.md): Payment method types, balances and recalibrating, how many charges are left, when a balance runs out, and a top-up plan in gift card denominations. - [Report metrics](https://docs.calends.date/en/money/report.md): Definitions and formulas for every figure on the Reports page — monthly equivalent, monthly changes, checkup, cash vs. true cost, prepaid value, unrefunded losses, top-up plan, changelog and year in review. ## People - [Shared plans](https://docs.calends.date/en/people/carpool.md): Hosting or joining a shared plan — members, billing periods, paid-through dates and payments — and how yearly net cost or profit is worked out. - [Paid for others](https://docs.calends.date/en/people/paid-for-others.md): Subscriptions you pay on someone else's behalf — charged to your card but not your spending, with what they've paid back tracked per charge. - [People](https://docs.calends.date/en/people/people.md): One list of shared plan members and people you pay for — what each owes and has paid, contact changes everywhere at once, and merging duplicates. ## Calendar & reminders - [Calendar](https://docs.calends.date/en/calendar/calendar.md): Reading the month and year views, and subscribing to your billing dates in Apple Calendar, Google Calendar or Outlook. - [Reminder rules](https://docs.calends.date/en/calendar/reminders.md): When the daily reminder and the monthly bill preview are sent and what they contain; lead days, send time and time zone, and the rhythm of shared plan, paid-for and low balance reminders. - [Notification channels](https://docs.calends.date/en/calendar/channels.md): What to fill in for each of the 11 channels — email, Telegram, Lark (Feishu), DingTalk, WeCom, Bark, ntfy, ServerChan, Discord, Slack and custom webhooks. ## AI - [Built-in assistant](https://docs.calends.date/en/ai/assistant.md): Use your own AI provider API key to turn receipts, screenshots and payment texts into subscription drafts you confirm before anything is saved — or just ask about your spending. - [MCP access](https://docs.calends.date/en/ai/mcp.md): Connect Calends to Claude Code, Codex, Cursor, Claude Desktop, Grok Bot and other AI assistants through the /mcp endpoint — tokens, read-only vs. read/write, client setup and the global switch. - [MCP tool reference](https://docs.calends.date/en/ai/tools.md): All 41 tools of the Calends MCP server — what they do, their main parameters, and dry_run previews. ## Sharing - [Public page](https://docs.calends.date/en/sharing/public-page.md): Enable read-only sharing, select subscriptions, arrange widgets and metric cards, and check server-side masking and visitor access. - [Share images](https://docs.calends.date/en/sharing/share-images.md): The year-in-review image and per-subscription share images — styles, what's on them, and hiding amounts. ## Data & security - [Backup and restore](https://docs.calends.date/en/data/backup.md): What a full JSON backup contains and leaves out, and what happens when you restore one. - [Import data and export CSV](https://docs.calends.date/en/data/csv.md): Move over from another subscription app, or export your subscriptions to a spreadsheet. - [Sign-in and devices](https://docs.calends.date/en/data/sign-in.md): Password, passkeys, the list of signed-in devices, the device limit, remote sign-out, and sign-in rate limiting. - [Privacy](https://docs.calends.date/en/data/privacy.md): Where your data lives, which requests leave your server, and what ends up on the public page and in backups. ## Self-hosting - [Cloudflare Workers + D1](https://docs.calends.date/en/self-host/cloudflare.md): Deploy Calends to your own Cloudflare account — one-click or from the command line — with the D1 database, the cron trigger and optional email reminders. - [Docker](https://docs.calends.date/en/self-host/docker.md): Run Calends anywhere with the official image — docker run and compose, the setup token, data directory, scheduled jobs, HTTPS and backups. - [Configuration](https://docs.calends.date/en/self-host/config.md): Every environment variable, secret and binding — SETUP_TOKEN, SITE_URL, EMAIL, MAIL_FROM, TRUST_PROXY, DATA_DIR, PORT and more. - [Custom domain and HTTPS](https://docs.calends.date/en/self-host/custom-domain.md): Put Calends on your own domain — a custom_domain route on Cloudflare, or a reverse proxy in front of Docker — and what to watch for with passkeys and links when changing domains. - [Upgrading](https://docs.calends.date/en/self-host/upgrade.md): Back up, update Cloudflare, Docker or systemd, check the result, and prepare a compatible rollback. - [Local development](https://docs.calends.date/en/self-host/development.md): Run a development copy of Calends, the common commands, how the code is laid out, and what to check before a pull request. - [Translating](https://docs.calends.date/en/self-host/translate.md): Where Calends' interface strings live, and how to improve a translation or add a new language. ## 中文文档索引(简体中文 · Markdown 直链) ### 开始 - [介绍](https://docs.calends.date/start/introduction.md): Calends(订阅账本)是什么,适合谁,能记下哪些情况。 - [快速开始](https://docs.calends.date/start/quick-start.md): 使用 Cloudflare Workers、Docker 或 systemd 部署,也可以交给 AI 代理。 - [首次设置](https://docs.calends.date/start/first-setup.md): 用初始化令牌设置密码,绑定 Passkey,再选好本位币、语言、时区等通用设置。 - [界面导览](https://docs.calends.date/start/tour.md): 侧边栏的各个模块、即将扣款面板,以及怎样调整模块顺序和启动页。 - [快捷键](https://docs.calends.date/start/shortcuts.md): 新建、全局与页面搜索、详情编辑、表单提交和日历翻页快捷键。 ### 记账 - [订阅与计费周期](https://docs.calends.date/tracking/cycles.md): 添加订阅时每个字段的含义,以及各种周期、买断、试用、首期优惠、赠送时长、暂停和到期不续是怎么计费的。 - [账单与缴费分开记](https://docs.calends.date/tracking/settlement.md): 按期生成账单,单独记录晚缴、合缴、分次缴费和预缴,核对待缴、报告与钱包的不同日期口径。 - [价格历史与分段](https://docs.calends.date/tracking/phases.md): 调价、换区、换套餐、换支付方式、断更与续订:一个订阅怎样分成多个阶段,阶段之间重叠或留空时怎么计费。 - [关联订阅](https://docs.calends.date/tracking/bundles.md): 把随主订阅附赠的权益或付费加购服务挂在主订阅下,选择跟随主订阅周期或独立计费。 - [分类](https://docs.calends.date/tracking/categories.md): 内置分类、自定义分类的名称、图标、颜色和顺序,以及「域名」分类的特殊行为。 - [详情页](https://docs.calends.date/tracking/detail.md): 单列详情弹窗中的状态指标、本期进度、扣款时间轴、按年记录和单笔支付方式。 ### 资金 - [多币种与汇率](https://docs.calends.date/money/currency.md): 本位币、原币显示,过去的扣款和未来的扣款分别按哪天的汇率折算,汇率从哪里来、多久更新一次。 - [钱包与余额续航](https://docs.calends.date/money/wallet.md): 支付方式的类型、余额与校准、还能扣几期、什么时候不够,以及按礼品卡面额给出的充值计划。 - [报告指标说明](https://docs.calends.date/money/report.md): 报告页每个数字的定义和算法:每月成本、月度变动、体检、现金与真实成本、预付余值、未退款损失、充值计划、变更日志、年度回顾。 ### 合租与代付 - [合租](https://docs.calends.date/people/carpool.md): 发起或加入合租,管理成员、收费周期、已付至和收款记录,以及每年净成本、净赚是怎么算的。 - [代付](https://docs.calends.date/people/paid-for-others.md): 替别人付的订阅:钱从你的卡上扣,但不算你的支出,每一期单独记下对方还了多少。 - [人员](https://docs.calends.date/people/people.md): 合租成员和代付对象的统一名册:每个人欠你多少、付过多少,改联系方式处处生效,重复的人可以合并。 ### 日历与提醒 - [日历](https://docs.calends.date/calendar/calendar.md): 月历和年历怎么看,以及怎样把扣款日订阅到 Apple 日历、Google 日历或 Outlook。 - [提醒规则](https://docs.calends.date/calendar/reminders.md): 每日提醒和每月账单预告在什么时候发、包含哪些内容;提前天数、发送时间、时区,以及合租收款、代付、余额提醒的节奏。 - [通知渠道](https://docs.calends.date/calendar/channels.md): 11 种通知渠道各自要填什么:邮件、Telegram、飞书、钉钉、企业微信、Bark、ntfy、Server酱、Discord、Slack、自定义 Webhook。 ### AI - [内置助手](https://docs.calends.date/ai/assistant.md): 用自己的 AI 供应商 API Key,把收据、截图、扣款短信整理成订阅草稿,确认后再写入账本;也可以直接问花销。 - [MCP 接入](https://docs.calends.date/ai/mcp.md): 用 /mcp 端点把 Calends 接入 Claude Code、Codex、Cursor、Claude Desktop 等 AI 助手:令牌、只读与读写权限、各客户端的配置、总开关。 - [MCP 工具参考](https://docs.calends.date/ai/tools.md): Calends MCP 服务器提供的全部 41 个工具:用途、主要参数,以及 dry_run 预览。 ### 分享 - [公开页](https://docs.calends.date/sharing/public-page.md): 开启只读公开页,选择订阅,自定义组件布局与指标卡,并检查服务端脱敏和访客可见范围。 - [分享图](https://docs.calends.date/sharing/share-images.md): 年度回顾分享图和单个订阅的分享图:有哪些样式,包含哪些数字,怎样隐藏金额。 ### 数据与安全 - [备份与恢复](https://docs.calends.date/data/backup.md): 完整 JSON 备份包含什么、不包含什么,以及恢复时会发生什么。 - [数据导入与 CSV 导出](https://docs.calends.date/data/csv.md): 从其他订阅应用迁移过来,或者把订阅列表导出到表格里。 - [登录与设备](https://docs.calends.date/data/sign-in.md): 密码、Passkey、登录设备列表、同时登录的设备上限、远程移出设备,以及登录限速。 - [隐私](https://docs.calends.date/data/privacy.md): 数据存在哪里、哪些请求会离开你的服务器、哪些内容会出现在公开页和备份里。 ### 自托管 - [Cloudflare Workers + D1](https://docs.calends.date/self-host/cloudflare.md): 把 Calends 部署到自己的 Cloudflare 账号:一键部署或命令行部署、D1 数据库、定时任务,以及可选的邮件提醒。 - [Docker](https://docs.calends.date/self-host/docker.md): 用官方镜像在任意机器上运行 Calends:docker run 与 compose、初始化令牌、数据目录、定时任务、HTTPS 与备份。 - [配置项](https://docs.calends.date/self-host/config.md): 全部环境变量、密钥和绑定:SETUP_TOKEN、SITE_URL、EMAIL、MAIL_FROM、TRUST_PROXY、DATA_DIR、PORT 等。 - [自定义域名与 HTTPS](https://docs.calends.date/self-host/custom-domain.md): 给 Calends 换上自己的域名:Cloudflare 的 custom_domain 路由,或 Docker 前面的反向代理;以及换域名时 Passkey 和链接要注意什么。 - [升级](https://docs.calends.date/self-host/upgrade.md): 备份后升级 Cloudflare、Docker 或 systemd,核对实际功能,并准备兼容的回退方案。 - [本地开发](https://docs.calends.date/self-host/development.md): 在本机运行 Calends 的开发环境、常用命令、代码结构和提交前的检查。 - [参与翻译](https://docs.calends.date/self-host/translate.md): Calends 的界面文案在哪里、怎样改进现有翻译或新增一种语言。 ## All 14 Languages (Index & Per-Page Markdown) - 简体中文 (`zh-CN`): https://docs.calends.date/index.md (web: https://docs.calends.date/) - English (`en`): https://docs.calends.date/en/index.md (web: https://docs.calends.date/en/) - 繁體中文(台灣) (`zh-TW`): https://docs.calends.date/zh-tw/index.md (web: https://docs.calends.date/zh-tw/) - 繁體中文(香港) (`zh-HK`): https://docs.calends.date/zh-hk/index.md (web: https://docs.calends.date/zh-hk/) - 日本語 (`ja`): https://docs.calends.date/ja/index.md (web: https://docs.calends.date/ja/) - 한국어 (`ko`): https://docs.calends.date/ko/index.md (web: https://docs.calends.date/ko/) - Español (`es`): https://docs.calends.date/es/index.md (web: https://docs.calends.date/es/) - Français (`fr`): https://docs.calends.date/fr/index.md (web: https://docs.calends.date/fr/) - Deutsch (`de`): https://docs.calends.date/de/index.md (web: https://docs.calends.date/de/) - Português (Brasil) (`pt-BR`): https://docs.calends.date/pt-br/index.md (web: https://docs.calends.date/pt-br/) - Русский (`ru`): https://docs.calends.date/ru/index.md (web: https://docs.calends.date/ru/) - Türkçe (`tr`): https://docs.calends.date/tr/index.md (web: https://docs.calends.date/tr/) - Bahasa Indonesia (`id`): https://docs.calends.date/id/index.md (web: https://docs.calends.date/id/) - Tiếng Việt (`vi`): https://docs.calends.date/vi/index.md (web: https://docs.calends.date/vi/)