# Calends Documentation (Full English Bundle) > Complete English documentation for Calends v1.84.0 (46 MCP tools: 18 read, 28 write). > Index: https://docs.calends.date/llms.txt | Per-page Markdown: replace trailing / with .md | Agent Guide: https://calends.date/AGENTS.md | Changelog: https://calends.date/en/releases.md --- # User and self-hosting guides URL: https://docs.calends.date/en/ Markdown: https://docs.calends.date/en/index.md Description: Use and self-host Calends. Track subscriptions, understand spending, and connect AI assistants. Use these guides to deploy Calends or look up a feature while keeping your ledger. ## Choose your next step - [Quick start](https://docs.calends.date/en/start/quick-start.md): Deploy your ledger, set up sign-in and add a subscription. - [Built-in assistant](https://docs.calends.date/en/ai/assistant.md): Paste a receipt or screenshot. Review drafts before saving. - [MCP access](https://docs.calends.date/en/ai/mcp.md): Connect Claude Code, Codex, Cursor and other clients. - [Self-hosting](https://docs.calends.date/en/self-host/cloudflare.md): Configure Cloudflare or Docker, then back up and upgrade. ## See the ledger Track recurring costs, the next charges and prepaid balances in one place. The code illustration below uses fictional data. ## Find a specific answer - **How is a charge scheduled?** Read [billing cycles](https://docs.calends.date/en/tracking/cycles.md) and [price history](https://docs.calends.date/en/tracking/phases.md). - **Got a perk or add-on tied to another subscription?** Use [linked subscriptions](https://docs.calends.date/en/tracking/bundles.md). - **Paying several bills together?** See [separate settlement](https://docs.calends.date/en/tracking/settlement.md). - **Why do these amounts differ?** Check [exchange rates](https://docs.calends.date/en/money/currency.md), [report metrics](https://docs.calends.date/en/money/report.md) and [balance runway](https://docs.calends.date/en/money/wallet.md). - **Who still owes me?** Manage [shared plans](https://docs.calends.date/en/people/carpool.md) and [subscriptions paid for others](https://docs.calends.date/en/people/paid-for-others.md). - **How do I avoid missing a renewal?** Set up [calendar subscriptions](https://docs.calends.date/en/calendar/calendar.md) and [notification channels](https://docs.calends.date/en/calendar/channels.md). - **Arranging your public page?** Follow the [layout and masking guide](https://docs.calends.date/en/sharing/public-page.md). - **Moving an existing ledger?** Choose [import](https://docs.calends.date/en/data/csv.md) or a [full backup](https://docs.calends.date/en/data/backup.md). For a running ledger without setup, visit the [live demo](https://demo.calends.date). To host it on your own machine, follow the [Docker and systemd guide](https://docs.calends.date/en/self-host/docker.md). --- # Introduction URL: https://docs.calends.date/en/start/introduction/ Markdown: https://docs.calends.date/en/start/introduction.md Description: What Calends is, who it's for, and what it can keep track of. Learn what Calends tracks and where it runs before setting up your ledger. Calends is a subscription ledger you deploy yourself and use on your own. It records more than "how much per month": it keeps the whole story of each subscription — when it started, every charge, the day the price went up, the region you moved to, who you share it with, and who still owes you money. ## Who it's for Use Calends for situations such as: - You subscribe through App Store accounts in different regions, paying in Turkish lira, Nigerian naira or yen, and want everything converted into one base currency. - You organize a family plan and need to know how far each member has paid and how many periods they owe. - You pay for subscriptions on behalf of friends or family — the money leaves your card, but it isn't your spending. - You pay with gift cards, App Store balances or phone credit, and want to know how long the balance will last and when to top up. - You want Claude, Codex, Cursor or another AI assistant to answer "what renews next week?" or carry out "Netflix went up to $17.99 from today". ## What it does - **Every billing cycle**: every _n_ days, weeks, months or years, lifetime purchases, and contract terms independent of billing cycles; trials, intro offers, free time, pauses, "not renewing" and [separate bills and payments](https://docs.calends.date/en/tracking/settlement.md). See [Subscriptions and billing cycles](https://docs.calends.date/en/tracking/cycles.md). - **Full history and linked subscriptions**: price changes, region and plan switches (including upgrade proration), payment method changes, lapses and resubscriptions with overlapping phases, plus [included perks and add-ons](https://docs.calends.date/en/tracking/bundles.md) linked to a parent plan. See [Price history and phases](https://docs.calends.date/en/tracking/phases.md). - **Multi-currency**: past charges use that day's exchange rate, future ones use today's. See [Currencies and exchange rates](https://docs.calends.date/en/money/currency.md). - **Wallet and runway**: how many charges a balance still covers, when it runs out, and how much to top up for a full year. See [Wallet and balance runway](https://docs.calends.date/en/money/wallet.md). - **Shared plans and paying for others**: members, billing periods, paid-through dates and payments, with net cost or profit per year worked out for you. See [Shared plans](https://docs.calends.date/en/people/carpool.md) and [Paid for others](https://docs.calends.date/en/people/paid-for-others.md). - **Reports**: annual and cumulative spending, scoped reports, month-over-month changes, cash vs. accrual, prepaid value, a checkup with insights, and a year-in-review image. See [Report metrics](https://docs.calends.date/en/money/report.md). - **Calendar and reminders**: month and year views, a private ICS feed, and 11 notification channels. See [Reminder rules](https://docs.calends.date/en/calendar/reminders.md). - **Postpaid and usage**: bills at period end, plus custom per-period usage or cumulative readings shared across subscriptions in any unit, shown in detail metrics, aligned charts and charge records. - **AI**: a built-in assistant that reads receipts and screenshots, and an MCP server with 37 tools. See [Built-in assistant](https://docs.calends.date/en/ai/assistant.md) and [MCP access](https://docs.calends.date/en/ai/mcp.md). - **Private by default, optionally public**: a single owner, password plus passkeys, and remote sign-out for devices; arrange widgets and metric cards in the [public page editor](https://docs.calends.date/en/sharing/public-page.md) using server-masked data. - **Languages and backups**: 14 interface languages (plus Australian English regional formatting), manual JSON backups, automatic encrypted backups to S3 or WebDAV, and CSV or external ledger imports. ## Where it runs Calends is a Cloudflare Worker that stores data in D1 (SQLite). You can: - deploy it to your Cloudflare account with Workers, D1 and Cron; - run the official Docker image on any machine, with data kept as a SQLite file in a volume; or - run it directly on Linux with systemd (one-line installer for Debian/Ubuntu, or release tarballs for other distributions). Core features are identical across all three. Email reminders rely on Cloudflare Email Sending and are only available on Cloudflare; the other 10 notification channels need no server configuration. See [Quick start](https://docs.calends.date/en/start/quick-start.md). To look around first, open the [live demo](https://demo.calends.date): fictional data you can edit, no sign-in, reset daily at 00:00 UTC. ## Open source Calends is MIT-licensed. The code is on [GitHub](https://github.com/imetn/calends). --- # Quick start URL: https://docs.calends.date/en/start/quick-start/ Markdown: https://docs.calends.date/en/start/quick-start.md Description: Deploy with Cloudflare Workers, Docker or systemd, or hand a prompt to an AI agent. Choose a deployment method and follow this guide to deploy Calends and sign in for the first time. Calends runs with the same features on Cloudflare Workers, in Docker or directly with systemd on Linux. You can also paste the prompt below into an AI agent with terminal access and let it do the work. ### Cloudflare **One-click deploy**: use the Deploy to Cloudflare button in the GitHub README, or open [deploy.workers.cloudflare.com](https://deploy.workers.cloudflare.com/?url=https://github.com/imetn/calends). Afterwards, add a secret named `SETUP_TOKEN` in the Worker's settings — without it you can't set a password. **From the command line**: 1. Clone the repository and install dependencies: ```bash git clone https://github.com/imetn/calends && cd calends npm ci ``` 2. Sign in to Cloudflare: ```bash npx wrangler login ``` 3. Set the setup token. Use any long random string; you'll type it once when setting your password: ```bash npx wrangler secret put SETUP_TOKEN ``` 4. Deploy. This builds the front end, creates the D1 database automatically, deploys the Worker and runs the database migrations: ```bash npm run deploy ``` 5. Open `https://.workers.dev`, enter the setup token and choose your password. For email reminders, the cron trigger and custom domains, see [Cloudflare Workers + D1](https://docs.calends.date/en/self-host/cloudflare.md). ### Docker ```bash docker run -d --name calends -p 127.0.0.1:8787:8787 -v calends-data:/data xizozhe/calends:latest docker logs calends # prints the one-time setup token on first run ``` Open `http://localhost:8787`, enter the setup token from the logs and choose your password. Data lives in the `calends-data` volume as SQLite. > **CAUTION**: On the public internet, put it behind a reverse proxy such as Caddy, Nginx or Traefik for HTTPS (passkeys require HTTPS). On a remote host, keep the port bound to loopback and use `ssh -L 8787:localhost:8787 user@server` for first login, or configure HTTPS before sending the setup token. Usually leave `TRUST_PROXY` unset and follow [the proxy rules](https://docs.calends.date/en/self-host/custom-domain.md). The image supports `linux/amd64` and `linux/arm64` and allows anonymous pulls. GHCR alternative: `ghcr.io/imetn/calends:latest`. For production, pin a version such as `xizozhe/calends:1.84.0`. For Compose, upgrades, the data directory and scheduled jobs, see [Docker](https://docs.calends.date/en/self-host/docker.md). ### Let an AI agent do it Paste this into Claude Code, Codex, Cursor or any coding agent with terminal access: ```text Deploy Calends (https://github.com/imetn/calends), a self-hosted subscription ledger, for me. 1. Ask me whether to deploy to Cloudflare Workers (subject to account quotas) or Docker on this machine/server. 2. Cloudflare: clone the repo, run `npm ci`, make sure `npx wrangler whoami` works (run `npx wrangler login` if not), generate a random SETUP_TOKEN and set it with `npx wrangler secret put SETUP_TOKEN`, then `npm run deploy`. If I want a custom domain, add it under "routes" in wrangler.jsonc as a custom_domain before deploying. 3. Docker: run the official image xizozhe/calends with a named volume for /data and port 8787, then read the setup token from the container logs. Offer to put it behind HTTPS with Caddy. 4. Finally give me the app URL and the setup token, and remind me to add a passkey and connect my AI assistant on the AI access page (/connect). ``` ## One-line install (Debian/Ubuntu) ```bash curl -fsSL https://calends.date/install.sh | sudo bash ``` Installs its own Node and starts Calends on `127.0.0.1:8787`. Run the same command to upgrade with a data backup and rollback on failure or interruption. It does not configure domains or web servers: set up your reverse proxy and `SITE_URL` yourself. See [systemd installation](https://docs.calends.date/en/self-host/docker.md#without-docker-systemd). ## After deploying 1. At `/login`, enter the setup token and choose a password of at least 8 characters. See [First-time setup](https://docs.calends.date/en/start/first-setup.md). 2. Under **Settings → General**, pick your base currency, time zone and language. 3. Under **Settings → Security**, add a passkey so you can sign in with Face ID, Touch ID or your device passcode. 4. Add your first subscription: press `N`, or paste a receipt into the **Assistant**. 5. To get reminders, add at least one [channel](https://docs.calends.date/en/calendar/channels.md) under **Notification channels** in Settings. > **NOTE**: The app's Overview page is at `/overview`, and sign-in is at `/login`. When signed in, opening `/` redirects to the start page chosen in Settings (Overview by default). Signed-out visits to other app pages redirect to `/login?next=...` and return to the requested page after sign-in. Signed-out visitors opening `/` go to `/public` if the public page is enabled, or to `/login` otherwise. The public page is off by default; see [Public page](https://docs.calends.date/en/sharing/public-page.md). --- # First-time setup URL: https://docs.calends.date/en/start/first-setup/ Markdown: https://docs.calends.date/en/start/first-setup.md Description: Set your password with the setup token, add a passkey, then choose base currency, language, time zone and other general settings. After deploying, use this guide to set your password, add a passkey, and choose your language, base currency and time zone. ## Set a password A fresh deployment has no password yet. To stop a stranger from claiming it first, setting the first password requires the setup token `SETUP_TOKEN` configured at deploy time. 1. Open `https://calends.example.com` to reach `/login`. You'll see "First time here? Set a password to sign in." 2. Enter the token under **Setup token (SETUP_TOKEN)**: - Cloudflare: the string you set with `wrangler secret put SETUP_TOKEN`; - Docker: printed in the logs on first start (`docker logs calends`) and saved as the `setup-token` file in the data directory. You can also set your own with the `SETUP_TOKEN` environment variable. 3. Enter a new password (at least 8 characters) twice and click **Set password and continue**. After that the setup token is no longer needed. The password is stored as a salted PBKDF2-SHA256 hash; the server never keeps it in plain text. > **CAUTION**: If `SETUP_TOKEN` wasn't configured, the setup page reports "SETUP_TOKEN wasn't configured at deploy time, so setup can't continue." Add the secret and reload. ## Add a passkey Go to **Settings → Security** and click **Add passkey**. From then on you can choose **Sign in with passkey** on the sign-in page and use Face ID, Touch ID or your device passcode instead of typing a password. Add one per device or password manager. Passkeys require HTTPS. Cloudflare's `workers.dev` address and custom domains are HTTPS out of the box; for Docker, set up a reverse proxy first — see [Custom domain and HTTPS](https://docs.calends.date/en/self-host/custom-domain.md). More sign-in options are covered in [Sign-in and devices](https://docs.calends.date/en/data/sign-in.md). ## General settings Under **Settings → General**: | Setting | What it does | | --- | --- | | Language | Language for the interface, reminder messages and MCP responses — 14 in total, plus an English (Australia) regional option; dates follow the interface locale. With **System default**, the interface follows your browser, and reminders and MCP use the language the app was last used in. | | Name | Shown on year-in-review images and the public page. | | Avatar | Your avatar in the sidebar, on the public page and in shared plans. Use an image URL or upload one (PNG, JPEG, WebP, GIF or SVG); the Calends icon is used if empty. | | Open to | Default start page: Overview, Subscriptions, Calendar, Reports or Wallet. Opening a specific page address returns you to that page after sign-in. | | Cash flow signs | On by default: expenses show −, refunds and money received show +. Turn it off under Settings → General to hide these direction signs; amounts and calculations stay the same. | | Base currency | The currency everything is converted into; USD by default. You can change it any time and all figures are recalculated. | | Time zone | Decides what "today" is and which local hour reminders go out at. UTC by default. | | Week starts on | Monday (default) or Sunday, for the calendar. | > **TIP**: Set your base currency and time zone right away. The time zone decides what "today" is, which in turn decides which charges count as past and on which day reminders are sent. General also shows the running version and checks GitHub for stable releases. An available update opens upgrade guidance and marks More on phones with a dot. Updates are never installed automatically. You can also choose a default payment method under **Settings → Tracking**, and control anonymous version and usage counts under **Settings → Anonymous usage stats** (see [Privacy](https://docs.calends.date/en/data/privacy.md#anonymous-usage-stats)). ## Check your first entry 1. Create the funding account in Wallet using its actual settlement currency. Leave balance empty if it is not prepaid. 2. Add a subscription with its original price, currency, cycle and start date, then assign the payment method. Use History for earlier changes. 3. Open details and check the next charge, records and service period. Use Add for a different actual payment; keep historical list prices. 4. Check the charge in Calendar, then compare monthly equivalent and cash in Reports. They normally differ for annual plans. When migrating, use the [import preview](https://docs.calends.date/en/data/csv.md) first instead of recreating entries and importing them again. ## Next steps - Get to know the app: [A tour of the app](https://docs.calends.date/en/start/tour.md). - Add subscriptions: [Subscriptions and billing cycles](https://docs.calends.date/en/tracking/cycles.md). - Set up reminders: [Reminder rules](https://docs.calends.date/en/calendar/reminders.md) and [Notification channels](https://docs.calends.date/en/calendar/channels.md). - Coming from another app: [Import and CSV export](https://docs.calends.date/en/data/csv.md). --- # A tour of the app URL: https://docs.calends.date/en/start/tour/ Markdown: https://docs.calends.date/en/start/tour.md Description: The sidebar modules, the upcoming charges panel, and how to reorder modules and choose a start page. Find your way around the app and customize the sidebar, start page and upcoming charges window. App pages use paths directly under the site root, with Overview at `/overview`; each module's path is listed below. The sidebar is on the left and the current module on the right. At widths of 860px or less, phones show the first four visible sidebar modules in a glass dock (or fewer when fewer are visible); More opens short-label round buttons for the remaining modules, currency, theme, settings and New. At 640px and wider, tablets and landscape layouts show every visible module in the dock, leaving only currency, theme, settings and New under More. The active module is marked by its icon and text color. On Shared plans, Paid for others and People, More → New creates the item for that page. Wallet adds payment methods through a dashed card at the end of its grid; elsewhere New creates a subscription. Assistant and Connect share the Assistant entry on phones, with a switch inside the page. Signed-out visits to app pages redirect to `/login?next=...`, and signing in returns you to the requested page. Signed-out visitors opening `/` go to `/public` if the public page is enabled, or to `/login` otherwise. ## Sidebar modules | Module | What's in it | | --- | --- | | Overview (`/overview`) | Full-month paid and pending, daily cumulative spending and comparison with last month; subscription stars, upcoming timeline, monthly spending charts, Wallet summary and checkup. | | Subscriptions (`/list`) | All subscriptions in **Cards**, **List** or **Timeline** view, filtered by status, category or payment, sorted by next charge, monthly cost, name or start date. | | Calendar (`/calendar`) | Month and year views, plus subscribing in your system calendar. See [Calendar](https://docs.calends.date/en/calendar/calendar.md). | | Reports (`/report`) | Annual or all-time spending, cash vs. true cost, where the money goes, monthly changes, checkup, cancellations and stops, top-up plan, changelog. See [Report metrics](https://docs.calends.date/en/money/report.md). | | Wallet (`/wallet`) | Payment methods and balance runway. See [Wallet and balance runway](https://docs.calends.date/en/money/wallet.md). | | Shared plans (`/family`) | Plans you organize and plans you've joined, plus the **People** list. See [Shared plans](https://docs.calends.date/en/people/carpool.md) and [People](https://docs.calends.date/en/people/people.md). | | Paid for others (`/behalf`) | Subscriptions you pay on someone else's behalf and what they owe. See [Paid for others](https://docs.calends.date/en/people/paid-for-others.md). | | Assistant (`/assistant`) | The built-in AI assistant. See [Built-in assistant](https://docs.calends.date/en/ai/assistant.md). | | AI access (`/connect`) | MCP tokens for external AI assistants. See [MCP access](https://docs.calends.date/en/ai/mcp.md). It disappears from the sidebar when **AI access (MCP)** is turned off in Settings. | At the top of the sidebar are **New** (`N`) and **Search** (`⌘` `K` / `Ctrl` `K`), and `⌘` `B` / `Ctrl` `B` collapses or expands the sidebar; at the bottom are the theme switch (Light → Dark → System) and Settings (`/settings`). Overview's monthly charts offer saved time ranges and bar/stream views (distinguishing forecasts from history), and dense timelines cluster charges by day with the largest charge's icon and daily count—click a cluster to inspect that day's charges and total. Deleting records or revoking tokens first changes the same button to “Confirm delete?”. Further clicks within 600ms are ignored; wait briefly and click again to confirm. Losing focus, Escape or four seconds without a click cancels confirmation. Other confirmation flows use in-app dialogs. ### Reorder or hide modules 1. Open **Settings → Sidebar** and drag a module’s handle to reorder it. The sidebar and number shortcuts follow this order. 2. Hide modules you do not use with their toggles (everything except Overview and Subscriptions can be hidden). 3. Under **Look ahead**, choose **This month** or a number of days to control the sidebar's Upcoming charges window. Module order, views, sorting, theme, sidebar collapse, shared-plan and paid-for filters, and calendar mode are stored on the server and synced across devices (if changed concurrently, the last saved value wins). The phone dock follows **Settings → Sidebar** directly: the first four visible modules appear in the dock and the rest go in More, with no separate dock setting. Only the page title stays pinned on phones; search, sorting and other toolbar controls scroll with the page. ### Start page **Settings → General → Open to** chooses the default start page: Overview, Subscriptions, Calendar, Reports or Wallet. When signed in, opening `/` redirects to this page (Overview at `/overview` by default). Opening a specific page address returns you to that page after sign-in. ## Upcoming charges Below the navigation, **Upcoming** lists what's about to be charged, by date — up to 12 items, labeled Today, Tomorrow or In _n_ days. Subscriptions you pay for others aren't listed here; they have their own page. Under **Settings → Sidebar**: - **Upcoming charges** turns the panel on or off; - **Look ahead** sets how far: This month (to the end of the month), or 3, 7, 14, 30, 45, 60, 90 or 180 days. The default is 45 days. ## Three views of your subscriptions - **Cards**: one card per subscription with amount, cycle, next charge and status (linked perks and paid add-ons also show **Included** or **Add-on** badges). - **List**: a table with subscription, category, payment method, amount, monthly, start and next charge. - **Timeline**: one bar per subscription, showing every phase, lapses, planned changes, intro offers and bonus periods (shown as striped segments). Zoom to 1Y, 3Y or This year, color by payment or region, move earlier or later, or jump **Back to now**. The legend lists payment methods before types, including **Trial / bonus**. Chinese search supports full pinyin, initials and mixed syllables. Subscriptions can also sort by category following the order in Settings. On phones, the Subscriptions and People sort menus show direction beside the selected option; selecting it again reverses the direction and closes the menu. ### Filters and Clear After filtering by status, category or payment method, or searching, a gray **Clear** pill appears. Category and payment-method filters persist across reloads and devices—if items appear missing, check those filters and click **Clear** to restore all statuses, the current category page's category (or all categories on the main list), all payment methods and an empty search. ### Reports for the current selection When there are matching results, use the dashed **Generate current report** entry below them. Cards, List and Timeline all support it. Every matching subscription except paid-for-others is included; sorting and the timeline window do not change its scope. Once generated, the dashed line carries the title and cards sit directly below it without an outer card. **Copy as image** and **Collapse report** are inside the first section. When collapsed, click the whole dashed title line to expand it. Subscription icons and detail links open the original subscription. While open, the report replaces the toolbar's duplicate selection summary. Changing filters or search offers generation for the new selection. Generation and disclosure preferences sync across devices; returning to the same conditions restores the report. Copying creates the complete report image and preserves its disclosure state. Spending trends, composition, upcoming charges, events, losses, refunds and shared-plan collections appear when there is data. Empty sections stay hidden. See [Selection and monthly reports](https://docs.calends.date/en/money/report.md#selection-and-monthly-reports). Only explicit generation plays the assembly animation, which respects reduced motion. What the status labels mean: | Label | Meaning | | --- | --- | | Not started | The start date is in the future. | | Active | Billing normally. | | On trial | In a trial; nothing is charged before the trial ends. | | Paused | No charges are projected from the pause date. | | Not renewing | Has an end date and won't be charged after it; shown as **Service until** on cards. | | Canceled | Already over. | | Lifetime | Paid once. | ## Demo mode The [live demo](https://demo.calends.date) runs in demo mode: anyone can browse and edit the fictional ledger without signing in. Data resets daily at 00:00 UTC. Its assistant plays local simulated scenarios without calling a model. --- # Keyboard shortcuts URL: https://docs.calends.date/en/start/shortcuts/ Markdown: https://docs.calends.date/en/start/shortcuts.md Description: New entries, global and page search, detail editing, form submission and calendar navigation. Press `?` outside editable controls to open the app’s shortcut help. Single-key shortcuts are disabled while typing, composing text or using another popup. ## Global | Keys | Action | | --- | --- | | `N` | New subscription | | `1`–`9` | Visible sidebar modules in their saved order | | `⌘` / `Ctrl` + `K` | Global search | | `⌘` / `Ctrl` + `B` | Collapse or expand sidebar | | `?` | Shortcut help | | `/` | Focus current-page search, when available | | `E` | Edit the open subscription detail | The older `⌘` / `Ctrl` + `\` sidebar shortcut is still supported. ## Search Global search finds subscriptions and pages, including New subscription. It matches names, categories, tags, methods, regions, notes and paid-for-others names; multiple words must all match. Ended subscriptions come later, with up to eight results. Chinese search supports full pinyin, initials and mixed syllables, including in subscription lists and pickers. | Keys | Action | | --- | --- | | `↑` / `↓` | Move through results | | `Enter` | Open selected result | | `Esc` | Close global search; clear the subscription-list query | ## Forms | Keys | Action | | --- | --- | | `Enter` in a writable single-line field | Submit the current form | | `⌘` / `Ctrl` + `Enter` or `S` | Submit the current form, including from a multiline field | | `Esc` | Close the current popup or cancel inline confirmation | Open pickers keep their own keyboard behavior. A disabled action is not submitted, and a nested form does not submit its parent. `⌘` / `Ctrl` + `S` is reserved by the app rather than saving the web page. ## Calendar | Keys | Action | | --- | --- | | `←` / `→` | Previous/next month or year, depending on view | | `T` | Return to today | ## Other Assistant: `Enter` sends; `Shift` + `Enter` inserts a newline. Date pickers use arrows for days/weeks and `Enter` to select. Report year selection also supports `←` / `→` outside editable controls. --- # Subscriptions and billing cycles URL: https://docs.calends.date/en/tracking/cycles/ Markdown: https://docs.calends.date/en/tracking/cycles.md Description: What each field in the editor means, and how cycles, lifetime purchases, trials, intro offers, free time, pauses and end dates are billed. Before adding a subscription, learn how billing fields, trials, offers, free time and cancellation affect charges. Press `N` or click **New** in the sidebar to open the editor. You can paste an App Store link straight into the name field; typing a popular service fills in its logo, category and website from the built-in catalog. New subscriptions also offer **Fill in with AI → Open Assistant** at the top (collapsing to a subtle hint when AI is unconfigured), or you can paste an image anywhere in the form to jump to the [built-in assistant](https://docs.calends.date/en/ai/assistant.md) and return via **Back to add subscription** with your draft intact. ## Add a subscription 1. Click **New** in the sidebar, or press `N`. 2. Enter the name, amount, currency, cycle and start date, then choose a payment method (or set **Linked to** to attach an included perk or add-on to a parent plan; see [Linked subscriptions](https://docs.calends.date/en/tracking/bundles.md)). 3. Open **More options** for an offer, free time, contract term or reminder if needed. 4. Review and save, then open the subscription’s details to check the next charge. ## App Store plan prefill Paste a full App Store link, including a long link with a percent-encoded app name, into the name field when adding or editing a subscription. Selecting the result fills in the app name and icon; the storefront is read from the link. When the server is rate-limited by the App Store, name suggestions fall back to a direct browser request. Plan prefill still relies on the server; enter the details manually if it is temporarily unavailable. After selecting an App Store search result, choose a recognizable in-app purchase to prefill amount, currency and billing cycle. Review and edit the fields before saving. Plans come from the corresponding storefront page; when the page is unavailable or cannot be parsed, fields remain manual rather than using a zero price. ## Fields in the editor **Billing** | Field | Meaning | | --- | --- | | Amount | The price per period, in the currency below. | | Currency | The subscription's own currency (TRY for a Turkish App Store account, say). It doesn't have to be your base currency. | | Billing cycle | See below. | | Payment method | Chosen from your [wallet](https://docs.calends.date/en/money/wallet.md). New subscriptions default to **Settings → Bookkeeping → Default payment method** (pure free included perks leave it unset by default). | | Start date | Service start. Ordinary subscriptions project charges from this date; external imports retain a history boundary rather than reconstructing pre-import charges. Lifetime purchases call this **Purchase date**. | | Region | The store region for region-priced stores such as the App Store, e.g. TR or NG. | | Account | Login email, phone number or username. In the **Phone & Mobile** category it becomes **Phone number**. Only shown in the app, never sent to the public page. | **Linked to**: optionally attach this entry as an [included perk or add-on](https://docs.calends.date/en/tracking/bundles.md) to a standalone parent subscription, choosing **Follows parent** or **Independent**. **Status**: Active, Trial, Paused or Stop. Stop offers not renewing, early cancellation and provider termination; fill in the relevant dates and refund details. Done saves the whole draft; Cancel discards it. **Who uses it**: Just me, I host (shared plan), I joined (shared plan), or Paying for. See [Shared plans](https://docs.calends.date/en/people/carpool.md) and [Paid for others](https://docs.calends.date/en/people/paid-for-others.md). **History** appears before **More options** and maintains price and plan changes; see [Price history and phases](https://docs.calends.date/en/tracking/phases.md). **More options**: intro offer, free time, renewal rules, contract term, reminder, links & appearance (website, manage page and icon), tags and notes. The **Manage page** is where the family members, billing and renewal settings live; the detail and shared plan pages link straight to it. The icon row accepts an inline image URL (abbreviated on blur) or emoji, or click **Upload**, drag-and-drop or paste a local image (PNG, JPEG or WebP up to 8 MB, scaled inside 128×128 with metadata stripped and stored at ≤ 64 KB); uploaded icons are saved with the subscription and included in backups. ## Billing cycles Presets are Weekly, Monthly, Quarterly, Every 6 months, Yearly, Every 2 years and Lifetime. **Custom…** lets you bill every _n_ days, weeks, months or years. Charge dates are projected from the start date: charge _k_ = start date + _k_ cycles. Monthly projection keeps the original day of the month and clamps to the last day in short months: a monthly plan started on January 31 charges on February 28, then March 31. For "per month" figures, a month is 30.4375 days and a year is 365.25 days: ```text monthly cost = price per period × 30.4375 ÷ days in the cycle ``` So $120 a year is about $10 a month, and $8 every 4 weeks is about $8.70 a month. ### Postpaid billing Choose Postpaid in the editor to bill at the end of each period, using the price for the period covered. A stop or mid-period plan change prorates the final bill through the end date; a pause retains the final bill without proration. A late payment stays with the earlier period it settles. Existing subscriptions remain prepaid. ### Separate settlement Under **More options → Renewal rules → Bills & payments**, choose **Separate** (the default is **Together**) when payments can be late, combined, partial or prepaid. Bills follow the cycle; actual payments have their own dates. The automatically saved tracking start fixes the first period whose arrears are tracked; earlier bills are inferred paid. Reports and Calendar use bill months, while Wallet and accumulated cost use actual payment dates. See [Bills and payments separately](https://docs.calends.date/en/tracking/settlement.md) for steps, examples and switching back. ### Lifetime Paid once, recorded as a single charge on the purchase date. Cards and list rows show a green **Lifetime** badge with an infinity icon. Lifetime purchases don't count toward monthly cost, but they do count toward total spent, the year in review and that month's cash. ## Renewal rules Under **More options → Renewal rules**, set how many days before the service boundary a renewal is charged, and how many days before that charge you must cancel. Both default to zero. Choose an effective date when changing a rule: earlier charges and recorded payments stay intact. First purchase and trial conversion keep their original dates. For example, a December 1 service renewal charged 30 days ahead is due November 1; a 7-day cancellation lead makes October 25 the deadline. The cancellation lead is measured from the cash charge date. Details show next charge, service expiry and cancellation deadline; calendar, forecasts, wallet and reminders use the cash schedule, while paid coverage follows the service dates. The Next charge date in Renewal rules can be edited manually; changing charge lead days, the cycle or billing dates recalculates it. A first payment within one cycle before the start is included in charge history. Early renewal advances the next charge, while current-period progress stays on the active service period until the next one starts. New Cloudflare Registrar records default to 30 days of advance charging; new App Store records get one day of cancellation notice. Existing records and explicit zero values are preserved. Dates have day precision, without an exact time-of-day guarantee. Service expiry is derived from the service cycle and can differ from the cash charge date; legacy `expires` records remain compatible and `update_subscription` still accepts that field. ## Contract terms Under **More options → Contract**, optionally set a contract term at least as long as the billing cycle, its start date, automatic renewal and notice days. Choose **Custom** for every N months or years; existing non-preset terms also appear as custom. A yearly contract paid monthly still charges monthly: the contract only controls display and renewal notices, leaving charges, payment history and statistics unchanged. Turning off contract renewal does not stop billing; record the last service day separately when service ends. Contract notices use their own lead days, independently of charge reminders. They appear at the chosen lead time and, when it exceeds one day, again the day before. Leaving notice days unset disables contract notices. Details show the contract beside the billing period; Calendar, the event history and the private ICS feed mark renewal or expiry. Contract fields are excluded from the public page. ## Trials Set the status to **Trial** and fill in **Trial ends**. Charge dates before the trial end are skipped; scheduled charges on or after that date are billed. A subscription on trial isn't counted in monthly cost or in the number of active subscriptions. Once the trial end date passes, it shows as active automatically. If billing starts on the day the trial ends, set the start date to the trial end date so the first charge lands that day. ## Intro offers Under **More options → Intro offer**, enter the **Intro price** and **Offer ends**. Charges dated before the offer ends use the intro price; from that day on, the regular price applies. When an offer ends within 30 days, the [checkup](https://docs.calends.date/en/money/report.md#checkup) flags it, and the charge reminder notes that the regular price is back. ## Free time For deals like "buy one year, get one free", fill in **Free from** and **Free until** under **More options → Free time**, or use the +7 days, +1 month, +3 months, +6 months and +1 year shortcuts. - Enabling Free time defaults its start to the next charge date; if that date is on or before service starts, it advances to the end of the first full paid cycle. You can edit it; the start must precede the end. - No charges are projected during the free period. From **Free until**, billing restarts on the original cycle. - Until the free time ends, the monthly equivalent in Overview and the subscription list is spread thinner: one period's price ÷ (one cycle + the free days). After that it returns to normal. - Charges you've recorded yourself are kept as they are. - Timeline gives free time its own striped segment; the legend includes **Trial / bonus**. ## Pause Click **Pause** on the detail page, or set the status to **Paused** in the editor. From the pause date, no charges are projected and the subscription doesn't count toward monthly cost. **Resume** preserves the pause interval, skips inferred charges during it and continues on the original cycle. Extra payments already saved by older versions are not automatically removed; check your records before correcting them. If you actually stopped for a while and then came back, use **Resubscribe** under **History** in the editor instead, so the gap is recorded as a lapse. See [Price history and phases](https://docs.calends.date/en/tracking/phases.md). ## Ends on and cancelling **Ends on** is the subscription's last day of service: nothing is charged after it. **Stop service → Not renewing** normally defaults to the day before the next actual charge. After the cancellation deadline, the next purchased service period is included and the form warns that another charge remains due. Selecting the renewal date still includes that day's charge, and a warning appears before you apply the change. Before the end date the subscription shows as **Not renewing**; afterwards it shows as **Canceled**. Ending reminders follow the subscription or global lead days, with another reminder one day before when the lead exceeds one day; Never disables them. When you stop renewing, use **Stop → Not renewing** and review the last service date. Past charges stay, nothing is charged afterwards, and the report can show how much less you spend per month from cancelling. Deleting a subscription removes its whole history. If you've just stopped renewing, use Stop → Not renewing instead. ## Charges By default, charges are projected from the start date and the cycle. When reality is different — paying several years at once, renewing early, a promotional price, a refund — click **Add** in the charges list on the detail page: | Type | Meaning | | --- | --- | | Charge | A normal charge. | | Refund | Enter the amount refunded; it's saved as negative. | | Adjustment | E.g. the difference paid when upgrading a plan. | | Failed charge | Kept in the record, but counted as 0 and not as spending. | **Charged to card** is optional: when your card settles in another currency (the subscription is in TRY but your card was charged in USD), enter the card currency and amount. Statistics then use that actual amount, so FX spreads and fees count as real cost. The currency defaults to the payment method's own currency, or your base currency when the method has none. It is available for charges and refunds only, not for adjustments, failed charges or split-source records. Once a stretch of the subscription has any recorded charges, it follows the records entirely. The first time you edit by hand, Calends first writes the charges it had projected up to today as records, then applies your edit; future charges use an explicit next due date if set, or start one cycle after the last record. ## Reminders Each subscription can have its own reminder: Default (follows the global setting), On the due date, 1, 2, 3, 5, 7, 14 or 30 days before, or Never. See [Reminder rules](https://docs.calends.date/en/calendar/reminders.md). --- # Bills and payments separately URL: https://docs.calends.date/en/tracking/settlement/ Markdown: https://docs.calends.date/en/tracking/settlement.md Description: Track late, combined, partial and advance payments without moving bill periods; understand pending bills, Reports and Wallet dates. Property fees, broadband and similar services may be paid late, together or in advance. **Bills say which period owes what; payments say when money was actually paid.** Keep the default mode for ordinary automatic renewals. ## Enable and start tracking 1. Create or edit a subscription with its price, currency, cycle and start date. Also choose Postpaid if billing happens at the end of service. 2. Open **More options → Renewal rules**, then choose **Separate** under **Bills & payments** (the default is **Together**). The app automatically fixes a tracking start: the bill date from which unpaid amounts are tracked. It does not move the service start or cycle anchor, and the current UI has no separate date field for editing it. 3. Save, check bills and unpaid amounts in details, then add payments from actual records. Bills before tracking starts are inferred paid: **this does not establish actual payment evidence**. When first enabled, the first regular payment determines its bill period; if that payment names bills, the earliest named bill is used. Without payments, tracking starts with the current bill. The start is saved, does not move with today and is not automatically moved by editing payments. An external import’s history boundary does not prevent separate settlement from generating bills. Check the tracking start so unknown history does not become arrears. ## Late, combined and partial payments 1. In detail payment history, choose Add. Use the actual payment date and amount. 2. Check the bills to settle. By default, the amount covers the oldest unpaid bills; you can name specific bills. 3. Read the allocation preview, including each bill’s paid and remaining amounts, then save and check details. - **Combined payment**: one payment can settle several bills without merging their periods. - **Partial payments**: several payments can settle one bill. Its unpaid remainder stays pending and remains overdue if the bill is in the past. - **Prepayment**: payments can settle future bills. Default allocation clears old debt first; explicitly select bills to skip that debt. - **Edit or delete**: allocation is recalculated, so a previously settled bill can become unpaid again. The cycle stays unchanged. - **Across plans**: a payment allocates within one phase only. Record bills from another region or currency phase separately. Payments dated before the tracking start first cover the older inferred bills by default. If the payment actually prepays later tracked bills, select those bills explicitly; an earlier payment date alone does not express that intention. When a subscription using Together mode is renewed early for multiple periods, Add payment offers a switch to separate tracking. Review the automatically selected bills and save: tracking starts with the period this payment would have settled, earlier bills stay inferred paid, and the next charge skips the covered periods. The selected phase must accommodate the full payment; saving is disabled until the selected bills absorb it. ## Read the detail view The top shows the earliest unpaid bill and arrears count and amount. Cost bars follow bills: solid paid portions, hatched or dashed unpaid portions, and solid prepaid future bills. Payment history follows actual payment dates. The amount column shows only the amount; the service-period column spans the first settled period through the last day of the final settled period. Inferred history before tracking cannot be edited as if it were a real payment. ## Why Reports, totals and Wallet differ | View | Date and amount basis | | --- | --- | | Monthly/annual reports, composition and Calendar | Bill month. A cross-year payment is allocated back to each period; past unpaid bills stay pending, and prepaid future bills count as paid. | | Accumulated cost, payment history and Wallet balance | Real payments on their payment dates, plus inferred paid history before tracking. Unpaid debt is not actual cash outflow. | | Actual monthly | Bill amounts spread over their coverage, including unpaid bills, so paying early or late does not cause a sudden change. | | Exchange rates | Paid portions use each payment date and any actual card settlement. Unpaid portions use available bill-date history or current rates. | | Upcoming charges and reminders | Prepaid portions are skipped. Arrears remain pending instead of repeatedly becoming the next renewal reminder. | Ordinary-mode reports retain their cash-date rules. A separate-settlement report total is not a bank statement for the same month. ## Before disabling > **CAUTION**: Disabling separate settlement clears the tracking start and explicit bill links on payments. It keeps payments and returns to ordinary inference rules. [Export a full backup](https://docs.calends.date/en/data/backup.md) first, then check history and the next charge. Restore the backup if you need the associations back. ## With AI [MCP](https://docs.calends.date/en/ai/tools.md) `save_subscription` accepts `settlement: "separate"` and `settledBefore`; `record_payment.periods` names bill dates, and `get_subscription.unpaid_bills` lists unpaid bills. Preview writes with `dry_run: true`. The in-app assistant still requires draft confirmation. --- # Price history and phases URL: https://docs.calends.date/en/tracking/phases/ Markdown: https://docs.calends.date/en/tracking/phases.md Description: 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. Use price history and phases when a subscription changes price, region or plan, or resumes after a break. A subscription goes through a lot: the vendor raises the price, you move from the US store to Turkey, monthly becomes yearly, you cancel for a year and come back. Calends doesn't record these as unrelated subscriptions; they all go into the same subscription's history. Use **History** before **More options** in the editor. Changes take effect when you save the editor. ## Two kinds of change - **Price change**: the price changed within the same plan. It goes into the current phase's price history; currency, cycle and payment method stay the same. - **New phase**: the region, currency, cycle or payment method changed, or you resubscribed after a gap. A phase keeps their defaults; an occasional card switch can use a [per-charge method](https://docs.calends.date/en/tracking/detail.md#per-charge-payment-methods) without a new phase. ## Record a price change 1. Expand **History** in the editor and click **Record price change**. 2. Enter **New price starts** and the new price. 3. Finish the change and save the editor. - Charges on or after that date use the new price; earlier charges keep the old one. - Dates before the first price record use the first price. - Subscriptions whose price went up in the past year show up in the [checkup](https://docs.calends.date/en/money/report.md#checkup). ### Editing price history In **History**, edit a price point’s effective date or amount inline, or delete a later point. Dates must be unique and inside that phase; the initial price can be edited but not deleted. Removing a later point extends the previous price. Actual payments stay intact; when past estimated charges change, Done asks before saving. Invalid inline values block Done until corrected or removed. Cancel discards the draft. ## Change region, plan or payment method Click **Change region, plan or payment method**, enter **Change takes effect**, then the new price, currency, cycle, payment method and region (phases can also attach or detach a [linked subscription](https://docs.calends.date/en/tracking/bundles.md)). The cycle picker also supports **Lifetime** and **Custom…**; Custom shows a stepper and unit picker for every N days, weeks, months or years. By default the switch is seamless: the previous phase ends the day before that date and the new one starts on it, avoiding two charges on the handover day. When upgrading with proration credit from the previous plan, choose whether to reset or keep the renewal cycle and verify the prorated adjustment amount. When a multi-phase subscription moves into a lifetime phase, no further next-charge date is projected. ### Running side by side A common case: your US account is paid up until next March, and today you started a new one in the Turkish store. Turn on **Keep the old one running** and set **Old one runs until**: - the two phases overlap in time and are both billed as usual; - monthly cost during the overlap is the sum of both; - the detail page lists the previous plan under **Also running**, with the date it runs until; - when you record a charge dated inside the overlap, you choose which phase it **Belongs to**. ### Just planned Tick **Not final, just planned**: the phase still counts in forecasts (future charges, runway, top-up plan) and is marked **Planned**. When the time comes, use **Confirm switch** or **Don't switch** on the detail page. **Don't switch** deletes the planned phase, and the previous phase ends the day before the planned switch date — in other words, it won't renew. If the previous phase already had a later end date of its own (running side by side), that date is kept. ## Lapses and resubscribing When you come back after a break, click **Resubscribe** and enter **Resubscribed on**. The previous phase keeps its own end date, and the gap in between is the lapse. Gaps of 3 days or less don't count as a lapse (renewing a day or two late, time zone differences). Longer gaps show as **Lapsed** on the timeline, and the detail page says "Lapsed _n_ months" or "Lapsed _n_ days". If an older phase running side by side covers the gap, it isn't a lapse. ## Undo **Undo latest phase** removes the last phase. If the phase before it only ended because of that switch, it becomes ongoing again. With only one phase left, the subscription goes back to being a plain subscription. ## Add earlier history If there's history before the subscription's start (say it was a one-time purchase before it became a subscription), ask the [built-in assistant](https://docs.calends.date/en/ai/assistant.md) to add it, or use the MCP tool `change_plan` with `action=earlier`. That phase runs until the original first phase starts by default; with an end date, the time in between counts as a lapse. ## The subscription's end date and pause The subscription's end date and pause date apply to every phase: planned phases that would start after the end date are dropped, and phases that run past it (including an older phase running side by side) stop on that day. The last phase's end date is the subscription's end date; if an older parallel phase runs longer, the later date wins. ## Where you see all this - **History on the detail page**: subscribed, plan switched, price change, back to regular price, paused, lapsed, ended and more — plus the number of phases and lapses. - **The Timeline view**: one bar segment per phase, with lapses, planned phases and intro offers marked. - **The changelog in Reports**: every spending decision and its effect on monthly cost. A region or plan switch is one "Switched region / plan" entry; coming back after a lapse is "Resumed". See [Report metrics](https://docs.calends.date/en/money/report.md#changelog). - **Subscribed for** on the detail page: how long you've actually been subscribed, minus lapses, without double-counting overlapping phases. --- # Linked subscriptions URL: https://docs.calends.date/en/tracking/bundles/ Markdown: https://docs.calends.date/en/tracking/bundles.md Description: Attach included perks or paid add-ons to a parent subscription, either following the parent schedule or billing independently. When a subscription comes with free perks (such as streaming bundled with a shopping membership or lounge access included with a credit card) or a paid add-on tied to a base plan (such as extra storage on top of a bundle), you can track it as a **linked subscription**. ## Included perks vs. add-ons A linked subscription attaches to one standalone parent subscription. Calends distinguishes two kinds automatically from the price: - **Included**: price is `0` (with no intro offer or price history entry above `0`). Shown with an **Included** badge, generates no `$0` recurring charges, and leaves the payment method blank by default instead of applying your default method. - **Add-on**: price is greater than `0` (or has a positive intro/historical price). Shown with an **Add-on** badge and keeps its own charge records and spending totals. ## Schedule modes After choosing **Linked to** in the editor, pick a **Schedule**: | Mode | Best for | Lifecycle & billing behavior | | --- | --- | --- | | **Follows parent** (default) | Perks or add-ons that stop working when the parent pauses or ends | Status cascades from the parent: parent paused or in a gap pauses the child; parent ended or non-renewing cascades to the child; a free perk mirrors the parent's trial state. Paid add-ons skip prepaid charges outside parent coverage and prorate postpaid bills by parent active days. | | **Independent** | Grouping related services whose billing schedules stay separate | Keeps the parent/child navigation cards while billing dates, pauses and status remain completely independent. | ## Creating and viewing 1. When creating or editing the parent subscription, expand **More options** and click **Add** in the **Linked subscriptions** section at the top. 2. Choose **Create new** to add an included perk (price defaults to `0`) or paid add-on with its schedule mode, or choose **Link existing** to attach an existing standalone subscription (with live history pre-validation). Additions, schedule updates and unlinks are saved together with the parent subscription. 3. You can also link any existing standalone subscription by setting **Linked to** in its own editor. - **Parent detail**: shows a **Linked subscriptions (N)** card only when linked children exist, listing active and upcoming children; click any row to jump to its detail view. - **Child detail**: shows a source card at the top (**Included with …** or **Add-on to …**) with schedule mode and any non-active parent status; click to jump back to the parent. - **Compact view for pure free perks**: a free perk with no financial history hides `$0` spending KPIs and the Charges section, shows only duration in the top KPI card, displays the **Parent billing period** bar in Summary, and hides standalone Pause when following the parent. ## Rules and limits > **CAUTION**: Links are strictly **one level deep**: a parent cannot itself be linked to another parent, a subscription with linked children cannot link to a parent, and [paid-for-others](https://docs.calends.date/en/people/paid-for-others.md) subscriptions cannot be linked. - **Deletion protection**: you cannot delete a parent while any subscription references it in any phase (including historical or planned phases); unlink those children first. - **History protection**: editing a link in place is blocked if it would erase recorded charges or served days. Use **History → Switch plan** ([Price history and phases](https://docs.calends.date/en/tracking/phases.md)) to create a new phase instead. - **Public page masking**: on the [public page](https://docs.calends.date/en/sharing/public-page.md), if the parent is also public, the link is preserved. If the parent is hidden, the server strips the parent's ID and name and sends only an `included` marker and sanitized availability spans so the hidden parent is never leaked. - **Backups and CSV**: full [JSON backups](https://docs.calends.date/en/data/backup.md) preserve all links and validate parent-child consistency on import. [CSV export](https://docs.calends.date/en/data/csv.md) does not include bundle columns. ## Managing with AI MCP tools support linked subscriptions end to end: - `create_subscription`, `save_subscription`, `update_subscription` and `change_plan` accept `bundle` (such as `{ parent, follow }`; pass `bundle: null` in `update_subscription` to unlink). - `get_subscription` returns `bundle` on phases and the summary row; `list_subscriptions` search also matches parent names. - `delete_subscription` lists affected `linked_children` in `dry_run` previews and refuses deletion while linked children remain. See the [MCP tool reference](https://docs.calends.date/en/ai/tools.md). --- # Categories URL: https://docs.calends.date/en/tracking/categories/ Markdown: https://docs.calends.date/en/tracking/categories.md Description: Built-in categories, custom names, icons, colors and order, and what's special about the Domains category. Use categories to organize subscriptions; read this page to add or reorder categories and understand domain masking. Every subscription belongs to one category. Categories decide grouping and color in the subscription list, in **Where the money goes** in Reports, and in the breakdown on the public page. 1. Open **Settings → Categories → Manage categories**. 2. Click **New category**, enter a name, choose an icon and color, and save. 3. Drag categories to set their order, then select the new category in a subscription’s editor. ## Built-in categories A new ledger comes with 20 categories, in this order: AI, Tools, Productivity, Video, Music, Games, Cloud & Servers, Storage, Domains, VPN & Network, Developer, Design, Education, News & Reading, Social, Shopping, Finance, Health & Fitness, Phone & Mobile, Lifestyle. Default categories in a new ledger use the interface language. Names already used by subscriptions and custom category names are preserved; changing the language does not translate them automatically. ## Managing categories Under **Settings → Categories → Manage categories**: - **New category**: a name (up to 40 characters, unique), a color and an icon. Search the icon library or use any emoji. - **Edit**: renaming a category updates every subscription in it. - **Reorder**: drag to reorder. Lists, filters and reports follow this order. - **Delete**: if subscriptions still use it, pick a category to move them to. You can also choose **New category…** right in the editor. New categories from [CSV imports](https://docs.calends.date/en/data/csv.md) are appended. [MCP](https://docs.calends.date/en/ai/tools.md) requires explicit creation with `save_category` or `create_category: true`. ## The Domains category The built-in **Domains** category is special: subscriptions in it — or whose tags or notes mention a domain, or whose name looks like a domain — are masked on the [public page](https://docs.calends.date/en/sharing/public-page.md). Only the first letter and the top-level domain are kept, as in `e••••••.com`, and the URL and icon aren't sent. For a domain that's live and fine to show, turn on **Show domain on public page** in the editor and visitors will see it in full. Built-in categories are still recognized after you rename them: rename Domains to anything you like and masking keeps working. ## Phone & Mobile In the **Phone & Mobile** category, the editor's **Account** field becomes **Phone number**, for keeping track of SIM cards. --- # The detail page URL: https://docs.calends.date/en/tracking/detail/ Markdown: https://docs.calends.date/en/tracking/detail.md Description: Status-aware metrics, current-period progress, the charge timeline, yearly records and per-charge payment methods in a single-column dialog. Read a subscription’s spending, duration and charge history, and understand how its detail-page figures are calculated. Click a subscription anywhere to open a single-column detail dialog. Status-aware metrics lead into current-period progress and facts, the charge timeline, notices, sharing, yearly charge records and event history. Desktop and phone keep the same order; single-phase lifetime purchases and sparse histories use a compact layout. ## Actions - **Edit**: open the editor. - **Pause / Resume**: see [Pause](https://docs.calends.date/en/tracking/cycles.md#pause). Not shown for lifetime purchases or ended subscriptions. - **Manage**: open the **Manage page** from the editor (where the family group and billing live). - **Copy as image**: on desktop, copies the detail view as a PNG to paste elsewhere, without the action buttons. Available when the browser supports image clipboard writes. - **Share**: make a share image of this subscription. See [Share images](https://docs.calends.date/en/sharing/share-images.md). Account details are maintained in the editor. Notes appear at the bottom and can be masked for the open sheet; masked notes are omitted from copied images. Opening shared-plan details above subscription details hides the covered sheet and adds a back button. Deletion actions use an inline confirmation capsule. ## Status-aware figures | Figure | How it's calculated | | --- | --- | | Next charge / Ended on | Active and trial subscriptions show the next charge; ended subscriptions show their end date. Lifetime purchases and paused subscriptions have no next-charge cell. | | Spent this year / Total spent | Spent this year highlights current-year spending with a same-period last-year comparison when available; Total spent includes all past charges, each converted to the base currency at that day's rate; charges with a **Charged to card** amount use that. Refunds are negative, failed charges count as 0. The number of charges is shown alongside. If you host a shared plan, this is the full amount you paid out; members' contributions are on the shared plan page. | | Subscribed for / Owned for | Time actually subscribed: each phase from its start to today (or its end), minus lapses, without double-counting overlapping phases. If there were lapses, it says how many. | | Actual monthly | Net spending spread over paid service coverage, not just elapsed time. Prepaid coverage includes the unused portion already purchased. Incomplete imported history, less than 30 days or fewer than two regular charges shows Expected monthly instead. Lifetime purchases spread cost over months owned, with at least one month. | For postpaid subscriptions, the fourth card shows the current-year monthly average when year spending differs from total spending, at least 28 billed days are available this year, and the yearly monthly average differs from the full-history average by at least 5%. New subscriptions, unknown dates or incomplete data retain their usual figures. Unit-price trends use monthly equivalents, and postpaid cards omit the unit-price change badge while retaining the year-over-year badge when available. With transfers, the figures become Held / Net cost (or Net gain) / Actual monthly and daily. Net cost = service payments + takeover payments − resale receipts; averages use the actual holding period from the earliest takeover through resale. Record the actual cash in any currency, converted at that date’s rate, in the Transfers card or the editor’s More options. Transfers enter monthly and annual cash flow, but not MRR, renewal forecasts, wallet balances or charge counts; the public page never receives them. Resold remaining service is not counted as unused loss. A subscription can be stopped with an unknown date. Details say the date is unknown, omit exact duration and averages, and draw the chart only through known payment coverage. Dated stops end the chart on the actual end date; the today marker appears only inside the displayed range. ## Separate bills and payments When Separate settlement is enabled, the top metric shows the earliest unpaid bill and arrears, while bars follow bill periods and payment history follows actual payment dates. Monthly averages include billed periods, even if not yet paid. See [Bills and payments separately](https://docs.calends.date/en/tracking/settlement.md) for allocation and prepayment steps. ## Per-charge trend Bars place regular charges on a real date axis: solid past charges, hollow dashed future estimates and a today marker between them. Refunds, adjustments, failures and negative commissions are excluded. - Switch between original and base currency; choose All, 1Y or 6M. - Dense bars automatically aggregate into monthly, quarterly or yearly totals; nearby charges at a plan switch stack into one bar. - Only the next charge is forecast. Lifetime, ended and paused subscriptions have no next-charge forecast. Hover over a charge to see refunds in its service period and the net amount spent; foreign-currency amounts, refunds and net spending each show their base-currency equivalent on the same line. For subscriptions with several phases, bars under the chart show each phase, with overlapping phases on separate lanes. Phases that hand over on the same day continue on the same lane, consistently across the detail chart, subscription timeline and history. ## Stop cards Each cancelled or provider-terminated phase has a card showing its stop date, paid-through date and refund. Provider termination also shows the recorded reason. Unrefunded loss is emphasized only when it is positive; fully refunded or zero-loss phases do not show a loss amount. ## Summary The heading shows the current price, billing cycle, category and region. Below the metrics, current-period progress and facts include payment method and start date, plus service expiry, end or trial dates when applicable. External imports explain their history boundary; charges before the import date are not inferred. - **Intro offer**: intro price, offer end and the price after. - **Shared plan**: for a plan you host, "Shared · I host (taken/seats)", each member's paid-through date or amount due, your share, and how many seats are free; for a plan you joined, who you pay. **Open plan** opens its detail dialog. - **Upcoming change**: for a planned or upcoming phase, "Planned change · not confirmed", "Starting soon" or "Upcoming change", with the effective date. Planned changes can be confirmed or dropped right here. - **Also running**: after a region switch, while the old plan is still running, the previous plan and when it runs until. - **Linked subscriptions**: child details show a source card at the top (**Included with …** or **Add-on to …**) linking back to the parent. Pure free perks hide `$0` spending KPIs, the Charges section and standalone Pause (when following the parent), showing only duration and the **Parent billing period** bar. Parent details show a **Linked subscriptions (N)** card only when linked children exist (for viewing and navigation); creating, linking and unlinking children live under **More options** in the parent subscription's editor. See [Linked subscriptions](https://docs.calends.date/en/tracking/bundles.md). - **Paid for others**: proxy subscriptions replace own-spending KPIs with the recipient, charges paid, received and due (or net difference), and use the recorded **Charged to card** currency and amount in charge history. - **Contract terms and not started**: contract terms appear beside the billing period with renewal or expiry and notice dates. Before a subscription starts, current-period progress and cancellation deadlines are hidden. ## Usage meters Define custom per-period usage or cumulative readings with any unit, including an empty unit. Detail metrics show latest usage, average per period, average unit price and total. The usage chart shares the fee chart’s date axis, charge records include usage, and regular charge sheets let you enter it. Postpaid fee and usage bars sit at the middle of the service period; reports and calendars keep the cash date. Link a meter from another subscription in meter management: values are stored once and can be recorded from either subscription. Linked meters appear as a line on the usage chart, with unit prices calculated from each charge’s own service period. Unlink dependants before deleting a source meter. ## Charges The default view shows this year, or the most recent year with records. The heading counts all history; expand to see earlier years. Every charge, grouped by year, with refunds, adjustments and failures labeled to the left of the amount. Use **Add** for a refund, adjustment, failed charge or card amount; charges with a card amount show it in the currency the card was charged in. Click a charge to edit or delete it. Older refunds stored as negative payments without a type are also shown as refunds, including in history. Reading does not rewrite storage; the next subscription save writes the current format. Rules are in [Charges](https://docs.calends.date/en/tracking/cycles.md#charges). The fourth column adapts by priority: **Cost then** when any charge uses another currency (with an extra usage column if meters also exist); otherwise usage, postpaid **Paid on**, or **Service period**. For separate settlement, the settled period range appears in the Service period column while the amount column shows only the amount; service-period dates use month and day. ### Edit a charge 1. Click a charge in the list, or click **Add**. 2. Choose the date and type, and check the amount. With overlapping phases, choose **Belongs to**. 3. Check the payment method: change just this charge for an occasional card switch, or update the entire plan period. Without an override, a charge uses its phase’s method. 4. If you need the actual settlement amount, complete **Charged to card (optional)** and save. ## History The subscription's events in order: subscribed, plan switched, price change, back to regular price, paused, lapsed, sharing started, ended or ends, next charge — plus the number of phases and lapses. See [Price history and phases](https://docs.calends.date/en/tracking/phases.md). History offers **List / Trend**: Trend plots list prices as a step line through today, with phase lanes and hover details. One currency stays in its original currency; currency changes use base-currency rates at each step’s start. Different cycles are normalized monthly. Trend is unavailable for unchanged prices, overlapping phases, lifetime purchases or missing required exchange rates. ## Per-charge payment methods A charge’s payment method is retained independently. Reports, calendars, reminders, ICS and MCP group that charge by its effective method. An occasional card switch does not need a new phase; for a lasting change, update the whole period from the charge editor or use [plan phases](https://docs.calends.date/en/tracking/phases.md). Payment method and **Charged to card** are separate: one identifies the card, the other records settlement amount and currency. A charge can also use **Split payment**: enter each payment method and its amount; the parts must add up to the charge. The charge table shows all sources, and payment-method reports and the year review allocate spending by each part. ## Files The Files page stores invoices, receipts and contracts. Upload PDF, PNG, JPEG or WebP (10 MB per file, 300 MB total by default), then link each file to a subscription, charge date or contract term. Subscription details and charge dialogs also accept uploads. Files are ungrouped by default; optionally group by subscription, month, year or category and switch among three views, with list-view rows showing crisp miniature paper sheets that subtly stack 1–2 underlying sheets for 2-page and 3+-page PDFs. In subscription details, a single file stays in a horizontal row while multiple files tile across a single responsive row (up to 6 columns on desktop and 3 on phones); overflow collapses into a trailing `+N` card previewing the latest remaining file with adaptive contrast. Click any card to preview and step through files, or click `+N` or the file count to see only that subscription on the Files page, with subscription and year filters (the year row is omitted for a single year); Missing shows document gaps from the earliest file of each kind, rather than requiring a document for every subscription. On desktop, hold Command (macOS) or Ctrl (Windows/Linux) to reveal selection checkboxes; normal browsing and hover keep them hidden, and mobile has no multi-select. Preview images and PDFs in the app. PDFs relying on non-embedded CJK fonts may show missing glyphs because CMaps are not bundled. --- # Currencies and exchange rates URL: https://docs.calends.date/en/money/currency/ Markdown: https://docs.calends.date/en/money/currency.md Description: Base currency and original amounts, which day's rate past and future charges use, where rates come from and how often they refresh. Manage subscriptions in different currencies and check how exchange rates apply to past spending and future charges. Every subscription and payment method has its own currency. All totals — monthly cost, total spent, reports — are converted into one **base currency**. ## Base currency and original amounts - **Settings → General → Base currency** sets the currency everything is converted into; USD by default. - The currency picker in the sidebar switches it any time: pick a currency and all statistics are converted into it (this also changes the base currency setting); pick **Original** and the list shows each subscription in its own currency while totals stay in the base currency. You can change the base currency whenever you like; every figure is recalculated instantly, no data migration needed. ## Which day's rate There are two core rules: 1. **Past charges use the exchange rate of the day they were charged.** TRY charged in March 2024 is converted at the TRY rate for that day in March 2024, as a historical-rate estimate; your card’s actual settlement may differ. 2. **Future (projected) charges use today's rate.** Nobody knows tomorrow's rates, so today's is the best guess. Also: - Charges with a **Charged to card** amount are converted from that actual currency and amount, so FX spreads and fees count as real cost. - If there's no rate for a given day, the nearest earlier day is used; failing that, the nearest later day; failing that, today's rate. - Payments from shared plan members and repayments for charges you paid for others are converted at the rate of the day you received them. - With [separate settlement](https://docs.calends.date/en/tracking/settlement.md), Reports assigns costs to bill months, while paid portions are converted at each actual payment date; paying old bills together does not move all of them into the payment month. ### Which rate monthly cost uses Figures that mean "how much per month right now", like monthly subscription spend, use today's rates. Historical figures retain the corresponding date's rates; there is no switch to revalue history at today's rates. The Reports chart uses charge-date rates for historical cash and current rates for forecasts, with no rate-basis switch. The monthly change breakdown shows exchange-rate changes separately. See [Report metrics](https://docs.calends.date/en/money/report.md). ## Conversion example Suppose Alex pays 300 TRY per month and uses CNY as the base currency. These rates are illustrative. | Date | Assumed rates | CNY equivalent | | --- | --- | --- | | Previous charge | 1 USD = 30 TRY and 1 USD = 7.20 CNY | 300 ÷ 30 × 7.20 = 72 | | Today (next charge forecast) | 1 USD = 40 TRY and 1 USD = 7.20 CNY | 300 ÷ 40 × 7.20 = 54 | The historical charge remains 72 CNY; the next forecast is 54 CNY. If the card actually charged 75 CNY, record 75 CNY under **Charged to card (optional)** for that charge and historical spending uses 75 CNY. ## Where rates come from | Purpose | Source | Updates | | --- | --- | --- | | Current rates | [open.er-api.com](https://open.er-api.com) (USD-based) | The scheduled job checks every hour and fetches again if the last update is more than 20 hours old; you can also refresh by clicking **Current rate** under **Settings → Exchange rates**. Each fetch is also saved as that day's historical rate. | | Historical rates (from 2024-03-02) | [fawazahmed0/currency-api](https://github.com/fawazahmed0/exchange-api) daily snapshots, covering almost every currency | Filled in as needed | | Historical rates (earlier) | [Frankfurter](https://frankfurter.dev) (European Central Bank data since 1999, major currencies) | Filled in as needed | Calends needs historical rates for: every past charge date, every month end (for the trend chart), and every balance's as-of date. Missing dates are filled in the background when you open the app. **Settings → Exchange rates → Historical rates** shows how many days are covered and the earliest one; if some are missing, click **Fill in missing rates**. Historical snapshots store all currencies supported by the exchange-rate source. Responses include common currencies and every currency used by ledger amounts, including historical phases, card settlements and shared-plan collections. Older snapshots missing a used currency are fetched again in the background; ECB snapshots are kept because their source has narrower coverage. The current rate table keeps the currencies returned by its source. > **NOTE**: Frankfurter doesn't cover some currencies (NGN, for example). Charges in those currencies before 2024-03-02 use the earliest rate available after that date. ## Built-in fallback rates Before any rate has been fetched (or without network access), Calends uses a built-in set of fallback rates for twenty-odd common currencies such as CNY, EUR, JPY, TRY and NGN, so the interface still works. They're replaced by live rates once online. When an exchange rate is missing, a standalone amount stays in its original currency; a paired converted amount shows a dash. Totals show the known converted part plus unconverted original currencies, with ratios hidden. MCP and reminders return `null` and mark incomplete amounts rather than reporting zero. ## Currency choices and display precision Fetch current rates in **Settings → Exchange rates**, then find the code in subscription, wallet or base-currency pickers. Frequent choices include USD, CNY and currencies used by subscription phases; the complete list is sorted by code. - Availability follows the current rate table rather than a fixed short list. SLE, XCG and ZWG have dedicated names. - Pickers omit special drawing rights, units of account, some pegged local codes and retired codes, including XDR, CLF, CNH, HRK, SLL and ZWL. Without a rate table, they fall back to frequent currencies. - Display uses either zero or two decimals. JPY, KRW and other established choices follow the app’s fixed rules; less common currencies also consult browser currency metadata. This is not a full ISO accounting-precision implementation. - Display rounding neither rewrites historical amounts nor changes existing allocation, refund or card-settlement calculation precision. --- # Wallet and balance runway URL: https://docs.calends.date/en/money/wallet/ Markdown: https://docs.calends.date/en/money/wallet.md Description: 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. Track payment methods and prepaid balances, then use runway and top-up plans to see how many charges remain and when to add funds. **Wallet** lists all your payment methods. Each subscription (or each phase of a multi-phase subscription) can be linked to one. Drag cards to reorder. 1. Open **Wallet** and click **Add**. 2. Enter the payment method’s name, type and currency. For a prepaid account, also fill in **Current balance** and **As of**. 3. Save, then select this payment method in a subscription’s editor. 4. Return to Wallet and open it to check linked charges under **Upcoming charges**. ## Payment method types | Type | Typical use | | --- | --- | | Bank card, Credit card | Regular debit and credit cards. Pick a card network (Visa, Mastercard, UnionPay and others) and enter the last 4 digits. Include the bank's name and its icon is detected. | | Alipay, WeChat Pay, PayPal | Wallet-style payments. | | App Store balance, Google Play balance | A store balance in one region, usually topped up with gift cards. | | Gift card | Other gift cards. | | Store balance | A merchant account you top up first and get charged from. | | Phone credit | Carrier balance; you can add the phone number (shown only in the app). | | Crypto card | Crypto-funded cards. | | Other | Anything else. | Every payment method has a currency, region and notes, plus optional **Website / top-up page**, **Cashback / points** percentage and a custom logo (upload, image URL, website icon or bank icon; tick **Wide wordmark** for logos that are wider than tall). ## Balances and recalibrating Give a balance-capable payment method a **Current balance** and an **As of** date, and Calends subtracts every charge after that date to estimate today's balance. Estimates drift (exchange rates, refunds, other spending). When you see the real balance, open the payment method and click **Top up / adjust balance**: - **Top up**: enter the amount; it's added to the current estimate and the as-of date becomes today. You can also record **Amount paid**: if you bought a Turkish gift card with yuan, say how much you paid, and the top-up history shows "_n_% premium" or "_n_% below market" compared with that day's rate. - **Set actual balance**: overwrite the balance with what you actually see; the as-of date becomes today. You can record a top-up at the same time. Deleting a top-up record doesn't change the balance. Recorded charges deduct from their actual payment method, including a one-off override or each share of a split payment. Future forecasts keep using the phase’s method. Deleting or merging methods migrates split references too; transfer payments and receipts do not change wallet balances. If a balance has an expiry date, set **Balance expires** on the payment method. Charges on that day are still paid; anything left afterwards is forfeited and no longer counts toward runway or the top-up plan. The detail view shows the forfeited amount, and you are reminded before the date. ## Balance runway Payment methods with a balance appear under **Balance runway**. Calends takes the next 36 months of charges from linked subscriptions, converts them into the account currency at today's rates, and subtracts them one by one: | Shown | Meaning | | --- | --- | | About _x_/mo | The combined monthly cost of the active subscriptions linked to it (account currency). | | _n_ charges left | How many charges the balance can still pay in full. | | Runs out before … | The first charge the balance can't cover, and its date. | | Top up _x_ to cover a full year | The next 12 months of charges minus the current balance. | | Enough for the next 3 years | Nothing runs short within 36 months. | **Upcoming charges** on the payment method lists every charge and the balance after it. ### Runway example Alex calibrates a balance to 250 TRY today. The account will pay one 100 TRY charge each month, with no other spending: | Charge | Balance after | Result | | --- | --- | --- | | First | 150 TRY | Covered | | Second | 50 TRY | Covered | | Third | −50 TRY | First shortfall; add at least 50 TRY beforehand | The balance covers 2 full charges. If exactly 12 charges fall in the next year, the total is 1200 TRY and the top-up needed is 1200 − 250 = 950 TRY. > **NOTE**: Runway projects subscription charges after the as-of date; it does not read your bank or store balance. Charges on the as-of date are treated as already reflected. Recorded debits use actual card or paid-for-others settlement amounts and dated rates; unrecorded future charges use plan amounts and current rates. Calibrate regularly. Details and top-up plans use up to the next 60 charge rows, which may cover less than three years for frequent billing. ### Low balance alerts Each payment method has a **Low balance alert**, 30 days ahead by default. When the first charge the balance can't cover falls within that window: - the checkup in Reports shows an alert; - the daily reminder includes it _n_ days before that charge (_n_ being the alert setting), and again at 14, 7, 3 and 1 days and on the day. See [Reminder rules](https://docs.calends.date/en/calendar/reminders.md). ## Top-up plan The **Top-up plan** in Reports answers: over the next 3 months, 6 months or year, how much does each balance account need, and by when? - **Short by**: what's due in that period minus the current balance. - **Most urgent**: the minimum to add before the first charge you can't afford. - **Suggested gift cards**: App Store balance, Google Play balance, gift cards and phone credit can only be topped up in fixed amounts, so Calends suggests a combination of built-in denominations (largest first, rounding the last one up). Bank cards, crypto cards and other types say "Top up any amount". Built-in denominations: | Currency | Denominations | | --- | --- | | TRY | 100, 250, 500, 1000 | | NGN | 5000, 10000, 25000, 50000 | | PHP | 100, 300, 500, 1000 | | USD | 10, 25, 50, 100 | | CNY | 50, 100, 200, 500 | | INR | 500, 1000, 2000 | | PKR | 1000, 2500, 5000 | | EGP | 100, 250, 500 | Other currencies use a round power of ten matching the size of the amount needed. ## No payment method Subscriptions without a payment method are listed at the bottom of the wallet. Once you've chosen a **Default payment method** under **Settings → Bookkeeping**, **Use default for all** assigns it in one go (subscriptions with multiple phases and ones you pay for others are skipped). --- # Report metrics URL: https://docs.calends.date/en/money/report/ Markdown: https://docs.calends.date/en/money/report.md Description: 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. Understand the report’s metrics when comparing recurring cost, cash charges, stopped services and losses. Reports express recurring cost as monthly recurring spend (MRR), with a minus sign for money going out by default. You can turn off **Cash flow signs** in Settings → General. This is different from the cash charged this month. ## Common rules Monthly and cash metrics use different bases: - **Monthly cost and cash vs. true cost count only your share.** For a shared plan you host, only what's left after members' shares; for a plan you joined, the price is already your share; subscriptions you [pay for others](https://docs.calends.date/en/people/paid-for-others.md) don't count at all. - **Monthly cost** = that day's price × 30.4375 ÷ days in the cycle × your share ratio. - **Not counted in monthly cost**: lifetime purchases, subscriptions not started yet, ended ones (on and after the end date), cancelled, paused (from the pause date) and on trial. For multi-phase subscriptions, every phase running that day is added up — both, if two overlap. - **Shared plan share ratio** = (price − the per-period shares of members on board that day who pay) ÷ price, never below 0. - **Year in review** uses net spending at your share, including refunds and transfers. **Next 90 days** uses full upcoming debits without member deductions and skips prepaid bills. - **Exchange rates**: "per month right now" figures use today's rates; totals and cash figures use each charge's own day. See [Currencies and exchange rates](https://docs.calends.date/en/money/currency.md). ## Selection and monthly reports You can also generate a report from [filtered or searched subscriptions](https://docs.calends.date/en/start/tour.md#reports-for-the-current-selection), or view a whole-month report in [Calendar](https://docs.calends.date/en/calendar/calendar.md#monthly-report). Both exclude paid-for-others and use the monthly cost, FX, cash and my-share rules on this page. Sections appear only when they have data. Both support cross-device preferences and copying a complete image. Selection reports collapse to their title line; Calendar switches between mini and full reports. - **Selection lifecycle report**: cumulative net spend, current monthly cost (the monthly cost before stopping when all selected subscriptions have stopped), stopped/terminated count and loss, and average duration, followed by a mini timeline, cash chart, events and upcoming charges. It can be copied as an image; it no longer presents cancellation-savings metrics. - **Monthly report**: net cash for the full calendar month, including refunds and scheduled future charges. Charged amounts run through today; upcoming amounts fall after today. Charge counts exclude refunds and failed payments. Month-over-month and year-over-year comparisons both use full months. Percentages are omitted when comparison cash is zero or negative; the yearly comparison is omitted when that prior month has no charges. - **Changes and other sections**: changes run through today for the current month and month-end for past months; future months have no changes breakdown. Refunds belong to their payment month, and losses to their stop month. Shared-plan collections include only plans you organize, separating receipts in the period from unpaid periods starting within it, without older arrears. The total beside the calendar uses full charge amounts, while monthly reports subtract shared-plan members' portions, so these totals can differ. Select a ledger year (including next year) or **All** at the top. Sharing follows that scope; next year cannot be shared. Checkup and top-up plans appear only for the current year. Supported cards expose **Copy as image** on hover or keyboard focus. ## Annual spending and monthly equivalent Current monthly-cost figures still use prices, cycles and your share. The Reports headline now shows the selected year's spending rather than monthly cost multiplied by 12. - **Full-year subscription spending** is net cash from January 1 through December 31, including refunds and transfers, at your share and excluding paid-for-others. Past charges are actual; future charges follow current plans. The chart accumulates monthly cash through that year, with forecasts for future months. - **Paid, pending, monthly average and peak month** separate paid and pending for this year. The average is the full-year total divided by 12; the peak is the largest monthly total. In ordinary mode, past years are paid and next year is forecast; separate settlement retains each bill’s paid/unpaid state. - **Year card** groups new, stopped, more paid and less paid subscriptions; shared-plan and paid-for-others results replace the last two slots when present. The headline comparison uses January 1 through today against the same dates last year; past years compare full years. MCP `year_outlook` additionally returns next month and next year estimates. - **All** shows cumulative spending and detail from the first charge through today, composition by category/payment/currency/cycle, annual cash vs. true cost and all stops. Subscription tenure includes average active and stopped service days, stops within 31 days, peak concurrent subscriptions, longest subscriptions and active-count history. Gaps do not count as service days. Historical cash uses charge-date rates, forecasts use current rates, and there is no rate-basis or 1Y/3Y range switch. Overview's first card shows the whole current month's paid and pending charges, with a daily cumulative chart and a comparison against the whole previous month. Use the controls beside the year selector to move between years. Trends stay solid through today and dashed afterward, with amount ticks and the peak month labeled. Cash bars show amounts above them and open the corresponding calendar month; annual bars in All open that year without changing your saved month/year view preference. ## Monthly changes A breakdown of how monthly cost changed from last month-end to this month-end (to today for the current month), with bars comparing the size of each driver. Use **Previous month** and **Next month** to move around. | Step | Meaning | | --- | --- | | Last month | Monthly cost on the last day of the previous month, at that day's rates. | | FX | The same subscriptions at the same prices, re-valued from last month-end rates to month-end rates. | | New | Not billing at last month's end, billing at month end. | | Price up | Billing at both ends, more expensive at month end. | | Price down | Billing at both ends, cheaper at month end. | | Stopped | Billing at last month's end, not at month end. | | Now / Month end | The result. | New, price up, price down and cancelled are all calculated at month-end rates, so the steps add up exactly to the result. Below the chart, each subscription is listed by size of impact. If only exchange rates moved, you're told the whole change came from FX. ## Checkup An automatic check of your ledger. Subscriptions you pay for others are left out. | Check | When it triggers | | --- | --- | | Yearly renewal window | Subscriptions with a cycle of 180 days or more auto-renew within 60 days; shows the total. | | Possible duplicates | Same name after stripping region, platform, parentheses and words like Pro, Plus or Premium, same currency, similar price. Shared plans and same-name subscriptions with different accounts are excluded. | | Price hikes in the past year | A price change in the last 12 months, and it costs more now than before. | | Intro offer ending | An intro offer ends within 30 days; shows the intro price and the price after. | | Low balance | A payment method's balance won't cover a charge within its low balance alert window (30 days by default). | | Currency exposure | How much of your monthly cost is in foreign currencies, and the largest one. | | No payment method | How many subscriptions aren't linked to a payment method. | | Priciest per day | The subscription costing the most per day, and its share of your monthly cost. | The [Overview](https://docs.calends.date/en/start/tour.md) shows three of these, with "Heads up" items first. ## Cash vs. true cost The chart compares two views: January–December for the selected year, or annual history through today for **All**: - **Charged that month (cash)**: money charged in that month. Yearly plans create a spike in the month they're charged. - **Cost spread per month (accrual)**: each charge is spread over the service period it covers (until the next charge; with no next charge, one cycle, cut short at the end date), then split by month. This is the true monthly cost. Lifetime purchases aren't included in this line. Both count only your share, at each charge's own exchange rate. Future months are marked as forecast; the allocated-cost line is gray and dashed. Separate settlement groups by bill month, as explained below. These two figures appear only for the current year: | Figure | How it's calculated | | --- | --- | | Prepaid value | What you've paid for but not used yet: latest charge × days remaining ÷ days covered × your share. Prepaid time left on an old region after a switch counts too. Open it to see how long each item lasts. | | Due in the next 90 days | Full charges from tomorrow through 90 days ahead, excluding paid-for-others. Past charges use charge-date rates; forecasts use today’s rates. | The [MCP tool](https://docs.calends.date/en/ai/tools.md) `get_insights` with `cancel_savings` additionally reports how much cancelling has saved so far: the monthly amount × months since cancelling. ## Cancellations and terminations This card covers the selected year, or all history through today for **All**, separating early cancellations from provider terminations. Counts include stops without a loss, with neutral styling rather than savings or price-change signals. Unrefunded loss is the paid but unused portion of your share that was not returned, converted at stop-date rates. The first five details are shown; expand the rest or click a row to open its subscription. ## Where the money goes Net cash for the selected year (including forecasts), or cumulative net cash for **All**, grouped by category, payment method, currency or cycle (300+ day cycles count as yearly, 80+ days as quarterly / semiannual, the rest as monthly). Click a group to see what's in it. ## Funds flow, category profile and regions The selected year or All also includes a payment-method → category → subscription Sankey, a radar comparing category shares with the previous period, and a subscription-region globe with a compact legend. The globe sits above its legend, showing flag-and-amount tags for the top five regions and the hovered region. The legend lists every region’s flag and spending share and matches the adjacent radar legend’s styling. Sankey flows use the same category colors as the spending composition. The radar compares the selected year with the previous year, or the last 12 months with the 12 before for All. The other cards use the selection’s net spending, exclude non-positive groups and show data-quality warnings when exchange rates are missing; cards without enough data stay hidden. The eye button at the top right of the Sankey switches between amounts and percentages; each layer adds up to 100%, and the choice syncs across devices. Hover a Sankey node or a region legend entry to highlight its relationships. The year or All selection syncs across devices. ## Comparing the figures Alex’s annual service charges 120 USD on January 1 and covers a full non-leap year: | Basis | Result | | --- | --- | | Monthly cost | 120 ÷ 12 = 10 USD | | January cash charge | 120 USD, with no cash charge for this service in later months | | January’s allocated cost | 120 × 31 ÷ 365 ≈ 10.19 USD, allocated by service days | MCP retains cancellation-savings estimates: after cancelling a 10 USD monthly service for 90 days, the cumulative estimate is 10 × 90 ÷ 30.4375 ≈ 29.57 USD. It is neither a refund nor the Reports page’s unrefunded loss. > **NOTE**: Free time reduces the monthly equivalent in Overview and the subscription list; the report’s MRR trend uses the price and original billing cycle. Status labels on the trial end date or subscription end date can also differ from the report’s billing boundary. Use charge records to reconcile actual payments. ## Top-up plan See [Wallet and balance runway](https://docs.calends.date/en/money/wallet.md#top-up-plan). ## Changelog Like a git log, it lists every spending decision, newest first, with its effect on monthly cost (base currency per month): | Event | Effect | | --- | --- | | Started | Adds the subscription's monthly cost. | | Cancelled | Removes its monthly cost as of the day before it ended. | | Price change | The difference between old and new price, per month. | | Intro offer ended | The difference between regular and intro price, per month. | | Bought outright | A one-time amount. | | Paused | Removes its monthly cost. | | Switched region / plan | The difference between the new and old phase's monthly cost; when they overlap, the new phase counts in full and the old one gets its own Cancelled entry when it ends. | | Resumed | Back after a lapse; adds the new phase's monthly cost. | Subscriptions you pay for others aren't in the changelog. ## Year in review **Share \{year\} in review** makes an image for the selected year; **All** shares a cumulative review from the first charge through today; see [Share images](https://docs.calends.date/en/sharing/share-images.md#year-in-review). The figures: - **Total and count**: net spending at your share includes refunds and transfers; paid-for-others is excluded. Count includes service debits only, not refunds, failed rows or transfers. - **Top spend**: per-subscription totals, ranked; - **Most expensive month**: the month with the most charged; - **Longest**: of subscriptions still going, the one that started earliest; - **New / cancelled**: subscriptions started and ended that year; - **Per day**: total ÷ days of the year so far; - **Currencies used**: how many currencies that year's charges were in. ## Separate settlement and dates For [bills and payments tracked separately](https://docs.calends.date/en/tracking/settlement.md), monthly and annual report totals, paid/pending, daily charts, monthly bars and composition follow bill periods. A combined cross-year payment is split into those years; an overdue bill remains pending in its original month, and a prepaid future bill is already paid. Even the cash row in this mode is grouped by bill month. Wallet and accumulated cost still follow actual payments, so paying several periods together can produce a different total for the payment month. Paid portions use each payment’s FX date; missing rates stay marked incomplete. ## Daily view A selected year includes a daily spending heatmap that can switch to isometric bars. The presentation choice syncs across devices and does not change the report scope. Year and All selections control the flow, category profile and regions cards too. The report region card needs at least two regions; it uses spending in the selected period, unlike the public globe’s current monthly cost. --- # Shared plans URL: https://docs.calends.date/en/people/carpool/ Markdown: https://docs.calends.date/en/people/carpool.md Description: Hosting or joining a shared plan — members, billing periods, paid-through dates and payments — and how yearly net cost or profit is worked out. After hosting or joining a shared plan, use this guide to manage members’ billing periods, payments and your net cost. A shared plan has two roles: - **I host**: the subscription is recorded at full price, charged to your card, and you collect from members. Your monthly cost only counts what's left after members' shares. - **I joined**: you're in someone else's family plan. Enter only your own share as the amount, plus who you pay (the host). ## Making a plan shared 1. In the subscription editor, set **Who uses it** to **I host** or **I joined**. 2. When hosting, save first, then set seats and fees and add members in shared-plan details. When joining, enter only your own share as the amount and fill in **Host**. 3. Save and open it on **Shared plans** to check members, seats and net cost. Existing subscriptions with tags such as “family” or “shared” appear under **Possibly shared**. **Make shared** lets you choose a role and total seats, with a suggested per-person share when hosting. ## Members Click a vacant row to add a member. The host takes one seat; former members remain in collapsed history. Clicking a member opens one sheet for details, billing and receipts, with a separate **Record payment** action to open collection. Edit people separately from seats: choose the person and plan-specific account on the seat; maintain names, contacts and avatars in [People](https://docs.calends.date/en/people/people.md). | Field | Meaning | | --- | --- | | Name | Choose from [People](https://docs.calends.date/en/people/people.md); maintain the name in the person’s details. One person is shared across plans and paid-for subscriptions. | | Contact | A channel and account maintained in the person’s details; open the corresponding app in one click. | | Member account | An email, username or other account for this person in this plan. Other plans can use different accounts; contact edits do not synchronize them. | | Joined | Defaults to today for a new member; older records without it use the plan or subscription start. | | Left | After this date they no longer take a seat or owe anything; past payments are kept. | | Billing | Follow the plan, set a custom fee or take an exempt seat. Custom billing has its own cycle, amount, currency and effective date. The currency defaults to **Settings → Bookkeeping → Shared plan currency** (or the base currency if unset). | | Doesn't pay | Takes a seat but pays nothing — your second account, or family. | | Source | Which group they came from or who referred them. | | Paid through | Derived from consecutive settled periods; departed members retain the coverage paid for. | A member's billing period can differ from the subscription's: the subscription may be charged monthly while a member pays you yearly. Custom periods support any whole number of months from 1 to 120. New members can also start collection on their join date and follow their own cadence; recorded receipts remain intact. ### Plan collection rules Set seats, cycle, fee, currency and common collection date at the top of shared-plan details; the subscription editor no longer duplicates these controls. New members follow this rule by default; members can use custom billing or an exempt seat instead. Choose an effective date when changing the plan rule. Only followers change; custom, exempt and former members keep their settings. The coverage start selects the rate for the entire period. A period crossing a price change is not split, and recorded receipts stay unchanged. Custom member fees also accept an effective date: past dates may change unpaid dues, while future dates take effect when reached. ### Common collection date and mid-period joins The common collection date aligns the joining period. If unset, it is inferred from the plan start, earliest recorded coverage start (or a period inferred from paid-through), then subscription start. The first period aligns to this anchor using the member’s cycle; month ends clamp in short months and return to the anchor day afterwards (January 31 → February 28 → March 31). Changing the plan collection date preserves existing members’ original anchor and history, then starts a new rhythm on the new date; member anchors and restarts take precedence. Returning a member to the plan rule aligns their rhythm from the effective date; transition dues can use a full fee or custom amount. Collection dates do not split earlier history backwards, and short fragments before a restart merge into the previous period. Click any period to override its dues. Later periods follow the member’s own cycle independently of receipt order. Legacy interruptions and restarts retain their collection schedule. For a mid-period join, the first period covers the join date through the aligned period end, both inclusive. Choose: - **Prorated** (default): regular fee × actual first-period days ÷ actual full-period days, rounded to cents; - **Full fee**: charge the regular full-period fee; - **Free first period**: skip the partial period and collect from the next full period, without a zero receipt. You can override a non-free first fee in the member's fee currency; later periods use the regular fee. With a January 1 monthly anchor and a 31 USD fee, joining on January 20 covers January 20–31 for 12 USD by default; the regular 31 USD applies from February 1. ### Member table and billing sheet Wide member sections use a timeline table; narrow layouts show compact rows. Drag or scroll horizontally to explore past and future coverage: | Column | Meaning | | --- | --- | | Member | Avatar, name and account for this plan. Click for details, billing and receipts; contact details live in People. | | Billing | Amount, cycle and follow/custom label. Exempt members take a seat without paying. | | Timeline | Periods follow the member’s own cycle and distinguish paid, due, future and paid-but-unused time after exit, with a shared today marker. | | Collection status | Due, settled, exempt or left. Overdue days count from the earliest unpaid start; due today is not overdue. | | Collect | Records a receipt in the same member sheet. The suggested amount covers the earliest unpaid period; plan totals include all arrears. | The member sheet has three sections: person and plan-specific account, collection cells, then fees and dates. It opens read-only with **Delete**, **Edit** and **Done** at the bottom. **Edit** lets you choose another person, change the account, select follow/custom/exempt billing, and edit join and exit dates. Fee history is listed by effective date, with the current rule last; contact details remain in People. Cancel and Save both return to read-only mode in the same sheet. Collection uses a twelve-month grid per year (weekly billing uses a quarter row), joining multi-month periods and splitting them at year boundaries. Hover highlights the whole period; settled cells open records for inspection, editing or deletion, while unsettled cells collect that period. Moving the join date later previews the count and amount of earlier paid and waived periods that will be removed on Save; a period spanning the new date moves to the new first period. Moving it earlier preserves existing records, and Cancel leaves the ledger unchanged. The subscription editor’s **Who uses it** section also lists follow/custom status, next collection dates and overdue days; click a member to edit. ### Share per period The share per period is how much of each subscription period a member covers (in the subscription's currency). It's derived from their billing: ```text share per period = their fee converted to the subscription currency at the rate when saved × months per subscription period ÷ months per billing period ``` For example, with a subscription at 22.99 USD a month and a member paying you 600 CNY a year: if the rate when saved is 1 USD = 7.50 CNY, 600 CNY is 80 USD; divide by 12 to get about 6.67 USD per month. If the subscription's currency or cycle changes, shares are recalculated from each member's fee. ### Seats Details show subscription and collection cycles side by side when member cycles agree; received/outgoing tabs show counts and totals. Total seats includes you. Seats taken = members still on the plan + 1. Exempt members also occupy seats; former members do not. A full plan shows **Full** and has no vacant rows in its details. ### Leaving and refunds After setting an exit date, you can record an actual refund. Calends suggests an amount by prorating recorded receipts over unused coverage; the exit day is unused. An exit within the first period caps the suggestion at the amount collected above the shortened first-period fee. Suggestions are not saved automatically, and paid-through alone never invents a receipt. Adjust the actual amount, currency, date and note. Missing FX for mixed currencies leaves the suggestion unavailable. Receipts, paid-through dates and fee history remain intact. Refunds reduce received cash and profit at refund-date rates; refunds already paid this year also reduce expected yearly income and net figures. Paid-but-unused time stays gray when no refund is recorded; a recorded refund ends the timeline before exit. Clearing the exit date also clears its exit refund. ## Collecting payments Open collection with **Record payment** in the member sheet; closing it returns to the same member sheet. Recipient and amount appear before period selection. Click a period’s dues amount to override only that period when saving; other periods keep their billing rule. This is separate from the actual amount received. A settled member can record a prepayment for the next period. - Tick the periods this receipt settles. The earliest unsettled period is selected by default; skip earlier periods or prepay future ones, selecting a continuous range (skipping within a range automatically fills the gap). Unselected overdue periods remain owed. - Only the next upcoming period appears initially. Show more adds periods progressively: three at a time, with further expansion available. - The suggested amount totals selected dues and uses receipt-date FX when changing currency. Override it with the actual receipt; changing the selection recalculates the amount, and multiple periods receive proportional allocations in currency minor units and are treated as settled without a residual balance. - Use the light-red **Waive** button at the bottom left to remove dues without recording income. Edit the received date, currency and note; open an existing record to edit or delete it. Period popovers edit dates, amounts and notes in place. Deleting removes only that period while preserving the others; opening-balance settlements can be replaced with actual receipts. Paid through ends at the last consecutive settled period from the start; collecting a later period does not hide earlier arrears. On the first ledger load, legacy paid-through values, coverage-based receipts and proxy entries are converted automatically and written back, retaining receipt amounts. Back up before upgrading; restoring an older backup triggers conversion again on its next load. ### How the amount owed is worked out For each paying member, Calends sums unsettled periods through today using the member’s effective cycle, including skipped arrears and the current period. Paid, waived and free periods are excluded. The first-period choice applies once; later periods use the regular fee. Members who left stop the day before leaving. Ended or stopped subscriptions retain dues through their cutoff; exempt members owe nothing. Paused plans generate no dues from the pause date. Removing exemption automatically waives unsettled periods before the fee effective date. Older records without a fee can derive it from the stored per-period share. Filters on the Shared plans page show **Active**, **Owed**, **Settled** and **Ended** plans. On desktop, switch between Cards and List at the top right. Column headings cycle through their default direction, reverse direction and the default sort; the result also orders cards, with ended plans last. Phones use cards. In the detail header, turn on privacy masking before copying an image: member identities and free notes are hidden, the current timeline window is retained, and actions and receipt history are omitted. ## The yearly view and since the start Cards retain annualized cost, income and net figures based on current rules. The list also shows plan price, this year’s total cost, this year’s profit/loss and cumulative profit/loss; details show the current-year result below cumulative profit/loss. **This year’s profit/loss** uses the calendar year: income (receipts less refunds plus periods still due this year, including arrears) minus cost (past charges plus remaining projected charges this year). Past cash uses each date’s rate; future amounts use current rates. This differs from multiplying today’s monthly cost by 12 and also applies to lifetime and ended plans. Details lead with paid, received, cumulative profit/loss and pending collections, all in the base currency: **Per year (expected)** | Figure | How it's calculated | | --- | --- | | Cost / yr | The current phase's full monthly cost × 12, at today's rates. | | Income / yr | Per-period shares of members still on the plan who pay × periods per year. | | Profit / yr, Loss / yr | Income − cost. When members pay more than the subscription costs, it's a profit. | **Since the plan started** | Figure | How it's calculated | | --- | --- | | Paid so far | Every charge of this subscription since the plan started, at each charge's own rate. | | Received so far | All payments from all members (including ones who've left), less exit refunds, at each receipt or refund date's rate. | | Net gain / Net cost | Received − paid. | If the start date isn't set, the first payment date is used, then the earliest member join date, then the subscription's start date. The monetary totals at the top of Shared plans cover active plans you host: net cost (or gain) per year, what members pay per year, what's owed (and by how many members), and how many plans you organize and have joined. ## Reminders With reminders on, each member's next period triggers a reminder 7 days before, 3 days before and on the due day; once overdue, again on day 7 and day 14, then every 30 days. The reminder includes the member's contact and the amount due. Once the subscription has an end date and the next period would start on or after it, payment reminders stop. Members who don't pay are never reminded. See [Reminder rules](https://docs.calends.date/en/calendar/reminders.md). ## Effect on monthly cost Monthly cost in [Reports](https://docs.calends.date/en/money/report.md) and the Overview only counts your part: ```text your share ratio = (price − per-period shares of members on board who pay) ÷ price ``` If members' shares add up to more than the price, the ratio is 0, your monthly cost is 0, and the surplus shows up as **Profit / yr**. **Recovered from sharing/mo** in Reports is the total members cover each month. ## Net cost example Suppose Alex hosts a 30 USD monthly family plan. Three members each pay 8 USD monthly, all remain on the plan, and exchange rates do not change: | Item | Calculation | Result | | --- | --- | --- | | Full subscription cost | 30 × 12 | 360 USD/year | | Members’ expected fees | 3 × 8 × 12 | 288 USD/year | | Your cost | 360 − 288 | 72 USD/year, or 6 USD/month | This is expected net cost, not proof that everyone paid. If Alex paid out 90 USD but collected only 48 USD, the actual net outlay since the start is still 42 USD. Changing **Paid through** alone does not create a receipt; record each payment to count it as money collected. ## Managing shared plans with AI The [built-in assistant](https://docs.calends.date/en/ai/assistant.md) and [MCP tools](https://docs.calends.date/en/ai/tools.md) can do the same: `set_share` to make a plan shared, `save_share_member` to add or edit members, `record_receivable` to record payments, and `get_carpool` for free seats, the yearly view and who owes what. The same anchor, first-period rules and receipt defaults are supported; see [Shared-plan collections](https://docs.calends.date/en/ai/tools.md#shared-plan-collections). ## Lifetime shared plans Lifetime subscriptions collect member fees once rather than generating yearly dues. Receipts count toward cumulative received cash and profit/loss; the calendar-year result still uses that year’s costs, receipts and dues. --- # Paid for others URL: https://docs.calends.date/en/people/paid-for-others/ Markdown: https://docs.calends.date/en/people/paid-for-others.md Description: 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. When paying for Alex or someone else, track each charge and repayment separately from your own spending. Paying for others means a subscription you pay for someone else: it's charged to your card, but it isn't your expense, and you collect each charge back from them. On desktop, switch between Cards and List at the top right. Column headings cycle through their default direction, reverse direction and the default sort; sorting also orders cards, with ended subscriptions last. Phones use cards. A paid-for subscription's detail view shows the recipient, charges paid, received and due (or net difference), and uses each period's recorded **Charged to card** currency and amount. ## Setting it up Create or edit a subscription and set **Who uses it** to **Paying for**, then fill in: - **Paying for**: pick someone from the [people](https://docs.calends.date/en/people/people.md) list or create a new person; - **Contact**: a channel and account; - a short note, e.g. "Coworker, pays at month end". Amount, currency, cycle and payment method are filled in as usual, and charges are projected as usual. 1. After saving the subscription, open **Paid for others** and select it. 2. Find the charge date and click **Record**. 3. Select the periods, check the amount, currency and received date, then save. Adjust the actual card charge separately on its charge row. 4. Open an existing receipt to edit or delete it; deleting reopens its periods. You can also create a subscription or convert an existing one directly from Paid for others. Detail header actions mask personal information, copy an image and open Stop paying with a mode and date. Period popovers list individual receipts and support inline editing or deleting only that period. Card amount and currency share one line, with repayment suggestions using charge-date FX. ## It doesn't count as your spending Subscriptions you pay for others: - aren't counted in monthly cost, the number of active subscriptions, the Overview timeline and monthly spending, cash vs. accrual, or the year in review; - don't appear in the checkup, the changelog, the sidebar's upcoming charges or the monthly bill preview; - never appear on the [public page](https://docs.calends.date/en/sharing/public-page.md). The list labels them "Paid for others · not counted" or "Paid for _name_". The money does leave your card, so they still count toward the linked payment method's [balance runway](https://docs.calends.date/en/money/wallet.md#balance-runway), and they appear in the [ICS calendar feed](https://docs.calends.date/en/calendar/calendar.md#subscribe-in-your-calendar). The in-app calendar doesn't show them. ## The ledger per charge Open one on the **Paid for others** page. The table lists every charge: | Column | Meaning | | --- | --- | | Charge date | When this charge happened. | | Charged | Defaults to the subscription's price. If your card settles in a different currency (the subscription is in JPY and your card is charged in USD), change it to the actual currency and amount. | | Paid back | What they paid you, in which currency, and when. Empty means not received yet. | | Difference | Paid back − charged. The charge is converted at the charge-date rate; the repayment at the rate of the day received. | The receipt form is shared with shared plans. It selects the earliest unsettled period by default and supports skipped periods, multi-period receipts, prepayments and waivers. The suggested amount totals selected dues; a receipt is allocated proportionally across periods. Waivers create neither arrears nor income. Only the next upcoming period appears initially; Show more adds three at a time. Select a continuous range; gaps are filled automatically. Amounts recalculate when periods change and allocate in currency minor units. Yearly paid-back subtotals include prepayments; profit recognizes periods when their charge date arrives. The top of the page sums up what's owed (unpaid charges, at charge-date rates), the total you've paid, and the difference exchange rates and fees made on charges that were paid back. Filters show **Active**, **Owed** and **Ended**. Legacy proxy entries are converted and written back on the first ledger load, retaining receipt amounts. Conversion first matches exact charge dates; old single-period entries may match within 15 days. Back up before upgrading and review unmatched records shown separately. ## Difference example Alex’s card is charged 10 USD when 1 USD = 7.20 CNY, giving a cost of 72 CNY. The other person later repays 75 CNY. The difference is 75 − 72 = 3 CNY. It is a paid-for reconciliation difference, separate from personal subscription spending. > **NOTE**: For recorded charges, Wallet uses the actual debit amount and currency, converted at the charge date. Unrecorded future charges still use plan prices and current rates. Repayments reconcile what the other person owes; they are not wallet top-ups. ## Reminders You're reminded on the day of each charge; if it hasn't been paid back, again 3, 7, 14 and 30 days later. The reminder includes their contact and the amount charged. See [Reminder rules](https://docs.calends.date/en/calendar/reminders.md). ## Recording repayments with AI The existing `record_receivable` tool uses `periods` (charge dates) or `count`, supports waivers and edits/deletes by record `id`; update clients using legacy arguments. Passing only `person` finds their single open item. See [MCP tool reference](https://docs.calends.date/en/ai/tools.md). --- # People URL: https://docs.calends.date/en/people/people/ Markdown: https://docs.calends.date/en/people/people.md Description: 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. Link the same person across shared plans and subscriptions you pay for, then manage their balance and contact details in one place. The same friend might be in two of your shared plans and have you pay for a third subscription. **People** records them as one person: change something once and it applies everywhere. Open the **Shared plans** page and switch to the **People** tab. Use **New person** at the top right to add a name, contact, avatar, note and color without joining a plan or paid-for subscription. 1. Open **People** within **Shared plans** and click a person’s row. 2. Click **Edit** in the detail header, change the name or contact under **Profile**, then save. 3. Open one of their plans to confirm the updated details. ## Summary At the top: - **Owed to me**: what everyone still owes across all shared plans and paid-for subscriptions, and how many people owe; - **Collected so far**: shared plan payments and paid-for repayments combined; - **People**: how many appear in shared plans and in paid-for subscriptions. Each compact row shows one person’s avatar, name/contact, plan icons and accounts, amount owed with collection status, and last receipt. Filter All / Owing / Settled; click the name, owed amount or last-payment heading to sort. Summary cards still describe the full roster. Unknown balances show a dash and remain in All. ## Editing a person People and plan seats are edited separately. A seat selects the person and stores the plan account and billing settings. Change names, contacts and avatars here; updates apply across linked plans. Click a row to open it: - **Profile**: name, contact, note, avatar image and fallback color (eight presets or a custom color picker, stored as `#rrggbb`). Changing the name or contact updates every shared plan and paid-for subscription they appear in. - **Owed**, **Paid so far**, **Last payment**. - **In _n_ plans**: one row per plan, with status and collected amount on the right; click a shared-plan membership to open its member sheet. ## Avatars and member accounts Upload a PNG, JPEG or WebP avatar (up to 8 MB and 40 megapixels). The browser crops and re-encodes it as a 128×128 PNG/WebP thumbnail without metadata. Avatars stay in your private ledger and backups; failed images use initials and the fallback color. Each shared-plan membership has its own **Member account**, edited within that plan or in the person’s linked plans. Use different accounts for different plans. Name/contact changes synchronize across memberships, while these accounts stay separate. Save profile and account drafts with the footer action; paid-for recipients have no separate member-account field. People, avatar images and member accounts are excluded from public responses. ## Merging If the same person was recorded twice, open one of them and choose **Merge into** the other. Afterwards, the first person's shared plans and paid-for subscriptions move to the second, keeping the second person's name and contact. ## Deleting People who aren't in any shared plan or paid-for subscription can be deleted. ## Where people come from Choosing **New person** when adding a shared plan member or setting who a paid-for subscription is for creates a person. Data from early versions, where members only had a name, is matched up into people automatically by name. The people list is used only in the app and is never sent to the public page. --- # Calendar URL: https://docs.calends.date/en/calendar/calendar/ Markdown: https://docs.calends.date/en/calendar/calendar.md Description: Reading the month and year views, and subscribing to your billing dates in Apple Calendar, Google Calendar or Outlook. View charges by month or year, or subscribe to the private ICS feed for reminders in your calendar app. **Calendar** lays out every charge — past and expected — by date. Subscriptions you pay for others aren't included. Refunds and adjustments are labeled in day details; failed charges are not shown as bills. Refunds are excluded from upcoming-charge counts. ## Month and year views Switch between **Month** and **Year** in the toolbar. - **Month**: each day shows subscription icons, with "+N" when they do not fit. Today is selected initially, with its charge details below the calendar, or an empty state when there are no charges. Click a day to select it and click again to clear it. The list alongside covers the whole month, split into charged and upcoming. - **Year**: a full year of charge dates, with the year's count and total. It has no monthly report. Use the toolbar or `←` `→` to page (a month in month view, a year in year view). Paging clears the selection; **Today** or `T` returns to and selects today. The red today marker is independent of selection. Set the first weekday under **Settings → General → Week starts on**. ### Monthly report By default, a mini report at the upper right, above the monthly charge list, shows net cash for the month, month-over-month and available year-over-year comparisons, and a six-month bar chart ending at the viewed month. Upcoming cash uses dashed bars. Percentages are omitted when comparison net cash is zero or negative. **Expand full report** hides the mini card and replaces day details with the complete report. Charged and upcoming cash, changes, composition, top charges, events, losses, refunds and collections appear when they have data; future months have no changes breakdown. **Collapse report** inside the first section returns to the mini report and day details, with no collapsed title-only state. The mini/full preference syncs across devices. **Copy as image** copies the complete report and preserves the current mode. Animations respect reduced motion. Both modes use the same net-cash and my-share figures, so shared plans can make their totals differ from full monthly charges. See [Selection and monthly reports](https://docs.calends.date/en/money/report.md#selection-and-monthly-reports). ## Subscribe in your calendar Click **Subscribe in Calendar**, or go to **Settings → Sharing & access → Subscribe in system calendar**: 1. Click **Create private calendar link** to get a link like `https://calends.example.com/cal/.ics`; 2. Click **Subscribe** to open it in your system calendar, or **Copy link** and paste it into "subscribe from URL" in Apple Calendar, Google Calendar or Outlook. What the feed contains: | Item | Details | | --- | --- | | Range | Charges from 3 months back to 13 months ahead, one all-day event each. | | Title | Subscription name and amount (original currency); refunds and adjustments are labeled, with the refunded amount shown. | | Description | Payment method, category and a link to the app. | | Alerts | Refunds have no alarm. Future regular charges get an alarm based on the subscription's reminder setting: 9 AM _n_ days before; 9 AM on the day for "on the due date"; none for "never". | | Refresh | Calendar apps are asked to refresh every 6 hours. | The feed declares your ledger’s time zone and uses all-day events. Alarms are relative to the event start; the calendar client determines the actual notification time. Unlike the in-app calendar, subscriptions you pay for others are included. > **CAUTION**: The link contains a private token: anyone with it can see your billing schedule. If it leaks, click **Reset link** — the old link stops working immediately and you'll need to subscribe to the new one in your calendar app. Links inside events use your site address: `SITE_URL` if configured, otherwise the address you use to open the app. See [Configuration](https://docs.calends.date/en/self-host/config.md). ## Separate bills and cancellation deadlines For [separate settlement](https://docs.calends.date/en/tracking/settlement.md), Calendar follows bill dates; a late combined payment does not move old bills to its payment day. The ICS feed keeps one event per bill, without renewal alarms for overdue bills. Configured cancellation deadlines also get reminders according to the subscription’s reminder setting. Contract renewals and expiries are marked in Calendar and exported as separate all-day ICS events. Their alarms follow contract notice days independently of charge reminders. --- # Reminder rules URL: https://docs.calends.date/en/calendar/reminders/ Markdown: https://docs.calends.date/en/calendar/reminders.md Description: 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. Set a reminder time and check when billing, shared-plan, paid-for and low-balance reminders are sent. Calends sends a daily reminder on days that need one, and a bill preview on the 1st of each month. Reminders go to every enabled [notification channel](https://docs.calends.date/en/calendar/channels.md). 1. Choose your time zone under **Settings → General**. 2. Set **Remind me** and **Send at** under **Settings → Reminders**. 3. Add and enable at least one [notification channel](https://docs.calends.date/en/calendar/channels.md), then click **Send a test reminder to all channels**. 4. Check the result and the log under **Today**, and confirm the message reached the channel. The default reminder can also be disabled; individual subscriptions can override it. ## Settings Under **Settings → Reminders**: | Setting | What it does | | --- | --- | | Remind me | How many days before a charge: on the day, 1, 2, 3, 5, 7, 14 or 30 days, or Never; 3 days by default. Each subscription can override this under **More options → Reminder** in the editor, including **Never**. | | Send at | The time of day to send, in the time zone from **Settings → General**; 09:00 by default. | | Monthly preview on the 1st | On by default. | | Send a test reminder to all channels | Sends a test right away, using the first daily reminder that would trigger in the next 30 days, or a sample if there isn't one. | | Preview today's reminders | Opens the email version of today's reminder in a new tab. | Below, **Today** lists the reminders going out today and the most recent sends. ## When they're sent Cloudflare and self-hosted deployments check every 15 minutes. The first run at or after your configured local hour sends the reminder; delayed runs can catch up later that day. The default is 09:00 in the ledger timezone, not the browser or server timezone. Scheduling delays mean this is not an exact-minute guarantee. - Each daily reminder and monthly preview has a deduplication key. A successful send is not repeated. - Any successful channel completes the send; failed channels are not retried separately. If all channels fail, the original reminder is retained and retried up to three more times after subsequent UTC hour boundaries. - No daily reminder is generated when there are no relevant items. Manual tests send a real message and are separate from automatic delivery. > **TIP**: The time zone defaults to UTC. If you live in New York, set it to `America/New_York`, or a 09:00 reminder will reach you at 4:00 AM (5:00 AM in summer). ## What's in the daily reminder The daily reminder is grouped as follows, listing only what triggers today: | Section | When an item appears | | --- | --- | | Upcoming charges | Active or not-renewing subscriptions whose next charge is exactly _n_ days away (_n_ being that subscription's lead days); when _n_ is more than 1, again the day before; when _n_ is 0, only on the day. A charge right after an intro offer ends is noted as back to regular price. | | Cancellation deadline | N days before, one day before when N > 1, and on the deadline, using the subscription reminder setting. | | Trials ending | The trial ends in _n_ days, tomorrow or today. | | Contract renewal | Uses the contract’s own notice days for renewal or expiry; independent of charge reminders. At N days, and again one day before when N > 1; unset notice days disable it. | | Low balance | A payment method won't cover a charge in _n_ days, where _n_ is its low balance alert (30 by default), and at 14, 7, 3, 1 and 0 days. | | Shared plan payments | For plans you host, a member's next period is due in 7 days, 3 days or today; when overdue, on day 7 and 14, then every 30 days. | | Owed for paying on behalf | The day of a charge you paid for someone; if not paid back, 3, 7, 14 and 30 days after. | | Ending soon | Not-renewing subscriptions with an end date, _n_ days before it (_n_ being that subscription's lead days); when _n_ is more than 1, again the day before. | Each item carries the amount (with the base currency equivalent for foreign currencies), the date and the payment method. Shared plan and paid-for items include the other person's contact so you can go and collect. The reminder opens with your current monthly subscription spend and the number of active subscriptions. Subscriptions using [separate settlement](https://docs.calends.date/en/tracking/settlement.md) skip already prepaid bills; overdue bills stay visible as arrears rather than triggering repeated upcoming-renewal reminders. ### Turning off one subscription's reminders With a subscription's reminder set to **Never**, its upcoming charge, cancellation-deadline, trial ending and ending soon reminders stop. Shared plan payments, paid-for and low balance reminders aren't affected by this setting. ### When shared plan reminders stop Reminders follow the earliest unsettled period, including debt left by skipping periods. Paid-through alone does not determine the next collection date. Departed or exempt members are excluded, as are inactive subscriptions and periods beyond the subscription end. ## Monthly bill preview On the 1st of each month, at your send time, it lists every charge of your own for the month (excluding paid-for-others): date, amount and payment method, plus the expected monthly total, number of charges, current monthly cost and roughly what that adds up to per year. Preview totals use today’s rates and full charges, before shared-plan contributions. ## Language and links Reminders use the language from **Settings → General → Language**; with **System default**, the language the app was last used in. The **Open Calends** link in messages points to your site address: `SITE_URL` if configured; otherwise the address recorded the last time you opened the app from a non-local address. So after deploying, open the app at least once to get the links right. --- # Notification channels URL: https://docs.calends.date/en/calendar/channels/ Markdown: https://docs.calends.date/en/calendar/channels.md Description: What to fill in for each of the 11 channels — email, Telegram, Lark (Feishu), DingTalk, WeCom, Bark, ntfy, ServerChan, Discord, Slack and custom webhooks. Add an email, bot or webhook channel so Calends has somewhere to send automatic reminders. The same reminder goes to every enabled channel. Under **Settings → Notification channels**, click **Add channel**, pick a type, fill in the fields and save. Each channel has its own name and **Enabled** toggle; its **Test** button sends a test message to that channel only, and works before you've saved. Channel URLs and tokens are stored on the server and available to the signed-in app, but never sent to the public page. Full backups include them. A ledger that has never set up channels but has a "notification email" from older versions uses that address as its only email channel. 1. Under **Settings → Notification channels**, click **Add channel**. 2. Choose a type, complete its fields below and click **Test**. This sends a real message. 3. Save after a successful test and leave the channel enabled. ## Email | Field | Details | | --- | --- | | Email address | Where to send. | Email goes through [Cloudflare Email Sending](https://developers.cloudflare.com/email-routing/email-workers/send-email-workers/), which needs the `EMAIL` binding and a `MAIL_FROM` sender address at deploy time, on a domain verified in Cloudflare. If the server isn't set up for it, sending fails with an error saying email isn't configured; use another channel instead. Setup is in [Cloudflare Workers + D1](https://docs.calends.date/en/self-host/cloudflare.md#email-reminders). Docker and Linux (systemd) self-hosted deployments do not have Cloudflare Email Sending and cannot send email directly. To route email through an external SMTP relay or automation service, use the **Custom webhook** channel below, which includes both `html` and private/LAN-friendly `inlineHtml` + `attachments` (CID inline images). ## Telegram | Field | Details | | --- | --- | | Bot Token | Create a bot with [@BotFather](https://t.me/BotFather) to get a token like `123456:ABC…`. | | Chat ID | Your user ID or a group ID. Send your bot a message first, then use @userinfobot to find your ID. | Messages use Telegram's HTML formatting, up to 4000 characters. ## Lark (Feishu) | Field | Details | | --- | --- | | Webhook URL | Group settings → Bots → Add custom bot; copy the `https://open.feishu.cn/open-apis/bot/v2/hook/…` address. | | Signing secret | Optional. Required if the bot has signature verification on. | Sent as a message card with a button that opens the app. ## DingTalk | Field | Details | | --- | --- | | Webhook URL | Group settings → Bots → Custom bot; copy the `https://oapi.dingtalk.com/robot/send?access_token=…` address. | | Signing secret | Optional. Required if the bot's security setting uses signing; starts with `SEC`. | If the bot's security setting uses custom keywords instead, choose a word that always appears in reminders. ## WeCom | Field | Details | | --- | --- | | Webhook URL | Group chat → Add group bot; copy the `https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=…` address. | Sent as a Markdown message, up to 4000 characters. ## Bark | Field | Details | | --- | --- | | Device Key | Install Bark on your iPhone and copy the key from the app. | | Server | Optional, for a self-hosted Bark server; `https://api.day.app` by default. | ## ntfy | Field | Details | | --- | --- | | Topic | Pick a name that's hard to guess, and subscribe to the same topic in the ntfy app. | | Server | Optional; `https://ntfy.sh` by default. | | Access token | Optional, for self-hosted or protected servers; sent as `Authorization: Bearer`. | ## ServerChan | Field | Details | | --- | --- | | SendKey | `SCT…` for ServerChan Turbo, or `sctp…` for ServerChan³. Calends picks the right endpoint from the prefix. | Pushes to WeChat. ## Discord | Field | Details | | --- | --- | | Webhook URL | Channel settings → Integrations → Webhooks; copy the `https://discord.com/api/webhooks/…` address. | Sent as an embed. ## Slack | Field | Details | | --- | --- | | Webhook URL | Turn on Incoming Webhooks in a Slack app and copy the `https://hooks.slack.com/services/…` address. | ## Custom webhook | Field | Details | | --- | --- | | URL | Where reminders are sent. | | Extra header | Optional, a single header as `Name: value`, e.g. `Authorization: Bearer …`. | Calends sends a `POST` with JSON: ```json { "subject": "Subscription reminder: …", "intro": "You're spending … a month on subscriptions, with N active.", "kind": "daily", "sections": [ { "heading": "Upcoming charges", "rows": [{ "title": "…", "amount": "…", "sub": "…" }] } ], "text": "plain-text version", "markdown": "Markdown version", "html": "responsive HTML email body", "inlineHtml": "HTML email body using cid: icon references", "attachments": [ { "cid": "logo@calends", "filename": "logo.png", "contentType": "image/png", "encoding": "base64", "content": "…" } ], "url": "https://calends.example.com" } ``` `kind` is `daily` (daily reminder), `monthly` (monthly bill preview) or `test`. `text`, `markdown`, and `html` are fully formatted and ready to forward elsewhere — `html` contains Calends' built-in responsive reminder email body (if using `html` without inline attachments, set `SITE_URL` to a reachable external URL). For private or local-only installs whose mail provider proxies remote images, the payload also provides `inlineHtml` (rewriting bundled site icons to `cid:` references) and `attachments` (base64 `{ cid, filename, contentType, encoding, content }` entries for the Calends logo and bundled subscription/payment icons) so relays can send inline CID images without exposing Calends publicly; `sections` is the structured data if you'd rather format it yourself. ## When sending fails - Click **Test** next to the channel; on failure you'll see the error the service returned. - Many bot APIs return HTTP 200 even on errors, so Calends checks the error code in the response body (`errcode` for DingTalk and WeCom, `code` for Lark and ServerChan, `ok` for Telegram) and shows the reason. - If a required field is empty, you're told which field the channel is missing. --- # Built-in assistant URL: https://docs.calends.date/en/ai/assistant/ Markdown: https://docs.calends.date/en/ai/assistant.md Description: 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. Paste text or screenshots into the built-in assistant to query your ledger or prepare changes for your confirmation. **Assistant** in the sidebar is a built-in AI assistant. Give it an App Store receipt, a payment text message, a screenshot of a subscription page or any text, and it turns it into subscription drafts that are only saved once you confirm. You can also simply ask "Which subscriptions are still due this month, and how much in total?" From the new-subscription form, **Open Assistant ↗** carries the name you entered to the assistant; its toolbar back button returns to the original page and reopens the form with your draft. Without an API key, the form shows a compact setup prompt. ## Setup The assistant uses your selected provider and API key, with usage billed by that provider; local Ollama does not require a paid provider account. Presets include DeepSeek, OpenAI, Anthropic, Gemini, OpenRouter, xAI, Groq, Mistral, Zhipu, Volcengine, Qwen, Moonshot, MiniMax, SiliconFlow and Ollama, plus custom OpenAI- and Anthropic-compatible endpoints. Existing configurations infer the provider from the saved Base URL. On the Assistant page, click **AI settings**: | Setting | Details | | --- | --- | | Provider | Select a preset or a custom compatible endpoint; Ollama can run without an API key. | | API key | Stored only on your server — never sent to the browser or included in backups. Once saved only the last four characters are shown; leave it empty to keep it unchanged. **Remove key** deletes it. | | Base URL | The preset fills the address. For a proxy or custom endpoint, use the matching OpenAI or Anthropic protocol and preserve any required version path. | | Model | `deepseek-flash` (V4.1 Flash) by default, which can read images. | | Thinking | Off (fastest, fine for simple receipts), Light (recommended, the default) or Deep (steadier on complex bills, slower). | **Test connection** lists the models available to the key. 1. Open **Assistant → AI settings** and enter your API key. 2. Check the Base URL and model, use **Test connection**, then save. 3. Send text or a screenshot in the chat. Review each draft before clicking **Add** or **Confirm**. ## Using it While a reply is streaming, scroll up to pause automatic scrolling; scroll back to the bottom or use “Back to bottom” to resume. Text replies can also be copied over local-network HTTP. Paste text into the input, or add or paste images (up to 8 per message). `Enter` sends, `Shift` `Enter` adds a new line. The assistant tries to: - reads amounts in the currency of the store or receipt (Turkish App Store means TRY and region TR), and picks up the cycle, start date, trials and intro offers; - keeps the service name as written in your source, including its plan or tier, without replacing it with a different provider; - picks the closest category from your list and matches the payment method to the card or store account mentioned; - fills in the icon and website from the App Store (the card says so when it does); - checks your existing subscriptions first, and proposes a price change, a charge or an update instead of a duplicate. If details are missing, it may ask a follow-up or use defaults flagged on the draft. Review the result before confirming. ### Monthly bill tables Paste a table with one month per row and one service per column. The assistant prepares one subscription per service column and records each month’s actual amount as historical payments, preserving the original service name. Each draft shows the count and total of historical payments. Check that every period is included, even when its amount matches the regular price; future charges continue at the subscription price. ## Drafts and confirming Confirmations use in-app dialogs. Every change is a draft. Each write shows up as a card with the fields to be saved and the next few charges: - **Add / Confirm**: save it to the ledger; - **Edit first**: open the draft in the editor and save from there; - **Dismiss**: don't save it. Drafts in one question build on each other. For example, "add this subscription, make it a shared plan, add three members and record what they've already paid" produces all four kinds of cards in one go, and the later cards already see the new subscription from the first. With several cards pending, **Confirm all** saves them in order. Required fields it couldn't read are filled with defaults, and the card says which ones to check. Always check amounts and dates before adding. A newer draft marks replaced, unapplied drafts for the same target as **Superseded**, so the old cards can no longer be confirmed. A status change can also update notes in the same operation, or explicitly clear them. ## What the assistant can do The assistant uses 39 of the 41 MCP tools: file listing and linking are available, while uploading and reading file content stay in the app. Every write becomes a `dry_run` draft before confirmation, including wallet, category, person and business-setting edits. Dependent drafts share an overlay; confirm them in order. The server revalidates current data when applying a draft. Security settings, secrets, backups and outbound sends are excluded. See the [MCP tool reference](https://docs.calends.date/en/ai/tools.md). A turn has up to 12 tool rounds, followed by a tool-free closing attempt if the limit is reached. Check existing drafts and unfinished steps before continuing after a partial or limit warning, to avoid duplicates. ## Chat history Chats are stored on the server, so every device sees the same history. **New chat** starts a conversation that fills the current screen, separated from older conversations by a dashed date-and-time divider, without deleting them. Empty chats show one of 20 rotating greetings. To delete everything, click **Clear all chats** in **AI settings**; this removes chats on the server and on this device, and can't be undone. Text history syncs between devices, while original uploaded images are not stored in server-side chat history (older turns retain only image counts/placeholders; keep source receipts separately if needed). Chats aren't included in full backups. ## Privacy When the assistant reads something, the text and images you send are forwarded through your server to your selected provider. What the assistant sees of your ledger is whatever its tools return: subscriptions, payment methods, shared plan members and so on. The **AI access (MCP)** switch in Settings only controls whether external AI assistants can reach `/mcp`; it doesn't affect the built-in assistant. --- # MCP access URL: https://docs.calends.date/en/ai/mcp/ Markdown: https://docs.calends.date/en/ai/mcp.md Description: 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. Connect your ledger to an external AI client: create a token, choose its permissions and copy the client configuration. Calends has a built-in [MCP](https://modelcontextprotocol.io) server. Once connected, AI assistants such as Claude Code, Codex and Cursor can query and update your ledger directly: "What renews next week?" "Netflix went up to $17.99 from today." ## Endpoint ```text https://calends.example.com/mcp ``` `/mcp` is only for MCP service requests. Opening it in a browser redirects to the AI access and MCP connection page at `/connect`. If signed out, you first go to `/login?next=...` and return to the connection page after signing in. - Transport: stateless Streamable HTTP. Each `POST` carries one JSON-RPC request (or a batch) and gets JSON back; there's no SSE stream and no session. - Auth: the header `Authorization: Bearer `. - Supported protocol versions: `2025-06-18`, `2025-03-26`, `2024-11-05`. ## Create a token 1. Open **AI access** (`/connect`) in the sidebar and click **New token**. 2. Give it a name (which AI it's for) and choose its scope: - **Read & write**: can query, and also add and change subscriptions, charges and payments; - **Read-only**: can only query, and can't change anything. 3. Click **Create**. The token starts with `sub_` and is only returned when created. The current page keeps it temporarily for snippets; after a refresh it cannot be retrieved. If lost, use **Revoke** and create another. Use a separate token for each assistant so you can revoke them individually. The token list shows name, scope, the first few characters, when it was created and when it was last used. The server only stores a SHA-256 hash of each token. With a read-only token, `tools/list` only shows read tools, and calling a write tool returns an error. ## Configure your client The **AI access** page provides eight setup options. A freshly created token is included in the current page’s snippets; it cannot be retrieved after a refresh. Use **Copy config only**, or send the generated prompt to the relevant assistant. Copied content may contain the token. Each client card identifies its setup method, such as a terminal command, config file or in-app settings. Select one and follow the two steps: Token, then Send to your AI assistant; the first step can create a token for that client. The MCP address sits in the toggle card footer. Disabling access prevents copying it and dims the cards below. ### Claude Code Run this in your terminal, replacing `` with the token you just created: ```bash claude mcp add --transport http calends https://calends.example.com/mcp \ --header "Authorization: Bearer " ``` ### Codex Set the token environment variable in your terminal, then register the server. The process starting Codex must also have access to this variable. ```bash export CALENDS_TOKEN='' codex mcp add calends --url https://calends.example.com/mcp --bearer-token-env-var CALENDS_TOKEN ``` ### Cursor Merge this into `~/.cursor/mcp.json`. Right after creating a token, **AI access** also offers **Add to Cursor**. ```json { "mcpServers": { "calends": { "url": "https://calends.example.com/mcp", "headers": { "Authorization": "Bearer " } } } } ``` ### Claude Desktop Merge this into `claude_desktop_config.json` to connect through `mcp-remote`. Your computer must be able to run `npx`. ```json { "mcpServers": { "calends": { "command": "npx", "args": ["-y", "mcp-remote", "https://calends.example.com/mcp", "--header", "Authorization: Bearer "] } } } ``` ### Gemini CLI Run this in your terminal: ```bash gemini mcp add --transport http calends https://calends.example.com/mcp \ --header "Authorization: Bearer " ``` ### Grok Bot 1. In Grok Bot, open **Settings → Plugins** and add an MCP server. 2. Enter the name, URL and header below: ```yaml name: calends url: https://calends.example.com/mcp headers: Authorization: Bearer ``` 3. Save it and ask Grok Bot to list your active subscriptions. > **CAUTION**: Grok Bot connects from the cloud, so your ledger must have a publicly reachable URL. It cannot reach `localhost` or a private network address. ### DeepSeek This setup is marked **Experimental**. Merge the following into `~/.dsh/profiles/web/cordis.patch.yml`: ```yaml - insert: - id: mcp-calends name: '@deepseek-ai/dsh-mcp-client' config: serverName: calends transport: streamable-http url: https://calends.example.com/mcp headers: Authorization: 'Bearer ' ``` This is an external MCP client, configured separately from Calends’ built-in DeepSeek assistant. ### HTTP This option is labeled **Other** in the interface. Any MCP client that supports Streamable HTTP can connect. Start by requesting the tool list: ```http POST https://calends.example.com/mcp Authorization: Bearer Content-Type: application/json {"jsonrpc":"2.0","id":1,"method":"tools/list"} ``` Once connected, ask the assistant to call `get_overview` and check today’s date, base currency and active subscription count. These snippets match those generated by Calends’ **AI access** page; after client upgrades, check which format the client accepts. ## Preview before writing Every write tool supports `dry_run`: pass `true` to get a preview without saving. MCP does not enforce a draft-confirmation step: a read-write token applies changes directly when `dry_run` is omitted or `false`. For irreversible operations such as deleting a subscription, the tool description tells the assistant to preview first and let you confirm. Each tool carries MCP annotations — read tools are marked read-only, delete tools destructive — so clients that support them can decide when to ask you. The full list is in the [MCP tool reference](https://docs.calends.date/en/ai/tools.md). ## Global switch **Settings → Sharing & access → AI access (MCP)**, or the toggle at the top of the AI access page. When it's off: - MCP tool POST requests to `/mcp` return HTTP 403, so all issued tokens stop working for now; - **AI access** disappears from the sidebar. Turn it back on and the existing tokens work again. This switch doesn't affect the [built-in assistant](https://docs.calends.date/en/ai/assistant.md). > **NOTE**: Text returned over MCP uses the language from **Settings → General → Language**; with **System default**, the language the app was last used in. Instances in demo mode don't accept MCP requests. --- # MCP tool reference URL: https://docs.calends.date/en/ai/tools/ Markdown: https://docs.calends.date/en/ai/tools.md Description: All 41 tools of the Calends MCP server — what they do, their main parameters, and dry_run previews. Look up MCP tools and their main parameters when writing calls or troubleshooting an assistant’s actions. The Calends MCP server provides 41 tools: 18 read tools and 23 write tools. Read-only tokens can only see and call the read tools. For setup, see [MCP access](https://docs.calends.date/en/ai/mcp.md). When creating a subscription with `icon` omitted, a unique match against a canonical name, translated name or safe alias in the built-in service catalog fills the icon and any omitted website and category (vendor names and generic terms such as Vercel, Apple and Copilot Pro remain suggestion-only; passing `icon: ""` or explicit `null` skips auto-fill). `dry_run` previews match the saved result. ## Conventions - **Dates** are always `YYYY-MM-DD` strings. - **`subscription`** is a subscription id or its name (fuzzy match); if several match, candidates are returned so the assistant can retry with an id. - **`method`** is a payment method id or name. - **`currency_out`** converts amounts into that currency; defaults to the base currency. - **`period`**: `today`, `next_3_days`, `next_7_days`, `next_30_days`, `this_month`, `next_month`, `last_30_days`, `this_year`, or `custom` (requires `from` and `to`). - **`cycle`** is a billing cycle such as `{"unit":"month","every":1}`; `unit` is `day`, `week`, `month`, `year` or `lifetime` (one-time purchase). - **`scope`**: `mine` excludes paid-for-others and counts only your share of shared plans; `gross` is the full card amount including paid-for-others; `proxy` is paid-for-others only. - **`dry_run`**: supported by every write tool. `true` returns a preview without saving; otherwise the change is saved and the saved result for that action is returned. - Problems such as bad arguments or an unknown subscription come back as a tool result (`isError`), so the assistant can see why and fix it. ## Read tools | Tool | Purpose | Main parameters | | --- | --- | --- | | `get_overview` | Ledger snapshot: today, base currency, monthly cost (excluding paid-for-others, only your share of shared plans), active count, payment methods (with ids), categories and regions in use, top checkup items. Call this first. | `currency_out` | | `list_categories` | Categories in display order: name, icon, color, built-in code, and how many subscriptions use each (total / live). | none | | `list_subscriptions` | Subscriptions with status, current price, monthly cost, next and last charge, payment method and region. | `query` (fuzzy on name, tags, notes, category and linked parent name), `status` (`active`, `trial`, `paused`, `ending`, `ended`, `upcoming`, `lifetime`, `live`, `all`; `live` = active + trial + ending + paused), `kind` (`mine`, `share_owner`, `share_member`, `proxy`, `all`), `category`, `method`, `region`, `sort` (`next_charge`, `monthly_cost`, `name`, `start`), `limit` (default 100) | | `get_subscription` | Everything about one subscription: every phase (region or plan switches, lapses, linked parent), price history, intro and free periods, recent and upcoming charges, transfers and net cost, shared plan member dues, paid-for repayments, total spent. | `subscription` (required), `months_back` (default 12), `months_forward` (default 6), `currency_out` | | `list_charges` | Charges (actual and projected) in a period. | `period` (default `next_30_days`), `from`, `to`, `scope` (default `mine`), `subscription`, `method`, `include_projected` (default `true`), `currency_out` | | `spending_stats` | Spending grouped by month, year, category, payment method, currency, region or subscription. Cash basis: each past charge at its own day's rate. | `period` (default `this_year`), `from`, `to`, `group_by` (default `category`), `scope`, `include_projected`, `top` (default 30), `currency_out` | | `get_trends` | Time series: monthly MRR history, cash vs. accrual by month, or MRR movement between two dates (new, expansion, contraction, churn, FX effect). | `metric` (`mrr`, `cash_vs_accrual`, `movement`), `months_back` (default 12), `months_forward` (default 3, `cash_vs_accrual` only), `from`, `to` (`movement` only) | | `list_payment_methods` | Payment methods with estimated balance, monthly drain, runway (how long it lasts, first shortfall) and a top-up suggestion. | `topup_months` (default 6) | | `list_people` | The people list: contact, which shared plans and paid-for subscriptions they're in, what they owe now, what they've paid so far, and their last payment. | `query`, `owing_only` | | `get_receivables` | Money owed to you: totals per person, shared plan members due or overdue, and paid-for charges not yet repaid. | `kind` (`share`, `proxy`, `all`), `currency_out` | | `get_insights` | Checkup and reports. | `section` (`insights`, `year_review`, `year_outlook`, `prepaid`, `cancel_savings`), `year` (`year_review` only) | | `list_events` | Changelog of spending decisions: started, ended, paused, resumed, price changes, plan and region switches, each with its effect on monthly cost. | `since`, `until`, `subscription`, `limit` (default 50) | | `search_services` | Search the common-service catalogue by name, returning localized names, icons, websites, mapped categories and preset lead days. | `query` (required), `limit` (default 8, maximum 20) | | `search_app_store` | Look up an app by name or App Store link: name, icon URL, store URL, seller and genre. Used to fill in icons and URLs for new subscriptions. | `query` (required), `country` (two-letter store region, default `us`) | | `get_carpool` | Shared plans: for each plan you host or joined, seats (taken / total / free), members' fees, paid-through dates and amounts owed; per year the cost, members' expected payments, and what you still pay or earn; since the start, paid, received and the result. | `subscription` (optional, just this plan) | | `get_settings` | Read whitelisted business settings, existing channel switches and UI preferences; no credentials. | none | | `list_files` | List private files and their links. | `subscription`, `status`, `query`, `limit` | | `get_file` | Read a file (up to 5 MB) or get a 15-minute download link. | `file`, `as` | ## Write tools | Tool | Purpose | Main parameters | | --- | --- | --- | | `create_subscription` | Create a subscription; `price` is per period. Refuses a duplicate (same name and start date) unless `force=true`. | `name`, `price`, `currency`, `cycle` (currency and cycle can be omitted when `bundle` links to a parent), `start` (default today), `category` (reuse a name from `list_categories`; unknown or ambiguous names fail; create explicitly with `create_category: true`), `tags`, `method` (`null` skips the default payment method), `region`, `url`, `icon`, `notes`, `account`, `bundle` (`{parent, follow?}`), `contract`, `chargeLeadDays`, `cancelLeadDays`, `status` (`active`, `trial`, `cancelled` or `terminated`), `trial_end`, `end`, `intro` (`{price, until}`), `payments` (supports `funding` split sources, exclusive with `method`; optional complete history: `{date, amount, note?}` per charge; include every period, with dates from `start` through today; future charges continue at `price`), `force` | | `save_subscription` | Create or fully replace a complete Subscription record, including phases, linked parent and payments. Omitted fields are removed; read `get_subscription.record` first when editing. | `subscription` (complete record, including `id` when replacing), `force`, `create_category`, `dry_run` | | `update_subscription` | Change descriptive fields and settings; only the keys you pass change. Use `change_price` for price changes and `change_plan` for plan or region switches. | `subscription`, `set`: `name`, `category`, `tags`, `url`, `manage_url`, `notes`, `account`, `method`, `region`, `bundle` (`null` unlinks), `contract`, `settlement` (`"separate"` / `null`), `settledBefore`, `remind_days` (`-1` = no reminder), `end` (`null` clears it), `next_due`, `trial_end`, `expires`, `chargeLeadDays`, `cancelLeadDays` | | `change_price` | Add, edit or remove a dated price point; actual payments stay unchanged. Initial price cannot be removed; previews report affected past estimates. | `subscription`, `action` (`add`, `edit`, `remove`; default add), `amount`, `from`, `phase`, `original_from` (edit/remove target) | | `change_plan` | Start a new phase of the same subscription. | `subscription`, `action`, `at`, `plan` (`price`, `currency`, `cycle` required; optional `method`, `region`, `bundle`, `contract`, `note`, `planned`), `keep_previous_until`, `earlier_until` | | `set_status` | Pause (stop projecting charges), cancel (no renewal from a date) or reactivate (clear pause and end date). | `subscription`, `action` (`pause`, `cancel`, `terminate`, `reactivate`, `trial`), `at` (cancel/terminate require an explicit date for subscriptions started or paid before today; `null` means the stop date is unknown) | | `record_payment` | Record an actual charge, refund (positive amount, stored negative), adjustment or failed charge in the subscription's currency. Same-day, same-amount duplicates are refused unless `allow_duplicate`. | `subscription`, `amount` (required), `date` (default today), `kind` (`charge`, `refund`, `adjust`, `failed`), `settled` (`{amount, currency}` actually charged to the card), `note`, `allow_duplicate`, `phase` (start date of the phase, when two overlap) | | `record_transfer` | Record actual takeover/resale cash; replace or delete an existing transfer. | `subscription`, `kind` (`buy` / `sell`), `amount`, `currency`, `date`, `note`, `replace` / `delete` (`{date,index}`), `dry_run` | | `delete_payment` | Delete one recorded charge by date. | `subscription`, `date`, `index` (0-based, when there are several that day), `phase` | | `set_meters` | Add, edit or remove a subscription’s custom usage meters. | `subscription`, `meters` (`id`, `name`, `unit`, optional `kind: reading`), `remove` | | `add_readings` | Add, edit or remove dated usage values or cumulative readings. | `subscription`, `readings`, `delete` | | `delete_subscription` | Delete a subscription and its whole history. Irreversible; refused if linked children exist (listed as `linked_children` in `dry_run`). | `subscription` | | `set_share` | Make a subscription shared or change its sharing. | `subscription`, `role` (`owner` = I host, `member` = I joined, `none` = stop sharing), `seats` (total, including you), `owner_name` (host, for `member`), `since` (start date), `collect_from` (common collection anchor), `rule` (`{bill_every, fee, fee_currency}`), `rule_from` (effective date, default today) | | `save_share_member` | Add a member to a plan you host, or update one (pass `member`). | `subscription`, `member`, `name`, `fee` (amount per payment), `fee_currency` (defaults to the shared plan currency), `bill_every` (integer months from 1 to 120), `fee_from`, `follow_rule`, `exempt` (doesn't pay), `paid_until`, `joined`, `left`, `contact_via`, `contact`, `account`, `note`, `first_period` (`prorate` by default, `full`, `free`), `first_amount` (override, `null` resets) | | `remove_share_member` | Remove a member completely, payment history included. To keep history, set `left` with `save_share_member` instead. | `subscription`, `member` | | `record_receivable` | Per-period shared-plan/proxy receipts, waivers, updates and deletion. | `subscription`, `person`, `kind`, `member`, `periods` / `count`, `action`, `id`, `amount`, `currency`, `date`, `note`; `charged` uses `charge`, `charged_amount`, `charged_currency` | | `update_payment_method` | Create/edit/delete a wallet, migrate references, calibrate balance, or revise stored top-ups. Top-up history edits preserve the calibrated balance unless explicitly changed. | `action` (`create`, `update`, `delete`), `method`, `set`, `migrate_to`, `balance`, `top_up`, `top_up_action` (`update`, `delete`), `top_up_index` | | `save_category` | Create, rename, delete or reorder categories. Referenced deletion requires a migration target. | `action` (`create`, `update`, `delete`, `reorder`), `category`, `set` (`name`, `icon`, `color`), `migrate_to`, `order` | | `save_person` | Create/update a person, delete or merge with reference migration; accounts belong to individual memberships. | `action` (`create`, `update`, `delete`), `person`, `set` (`name`, `contactVia`, `contact`, `note`, `color`), `migrate_to`, `avatar_base64` + `mime`, or `avatar: null` | | `set_proxy` | Set or remove a paid-for relationship, preserving subscription charges. | `subscription`, `action` (`save`, `remove`), `person`, `for_name`, `contact_via`, `contact`, `note` | | `update_settings` | Patch whitelisted business settings, existing channel enable switches and known UI preferences; unknown/security fields fail. | `set`, `channel_enabled` (`[{id, enabled}]`), `prefs` (string values, `null` clears) | | `upload_file` | Upload PDF/PNG/JPEG/WebP from base64 or a public HTTPS URL, or request a one-time upload link. | `content_base64`, `url`, `upload_link`, `name`, `subscription`, `kind`, `date`, `dry_run` | | `update_file` | Rename, link, relink or unlink a file; does not delete content. | `file`, `set` (`name`, `subscription`, `kind`, `date`), `dry_run` | ### Shared-plan collections `set_share.rule` stores the plan rule as `{bill_every, fee, fee_currency}`. `rule_from` dates the change, applies it to followers and preserves old coverage and receipts; omitted `rule` preserves a stored rule. `get_carpool.rule` returns `{fee, currency, every_months, stored}` with `stored=false` when inferred from old records. New members default to the rule. `save_share_member.follow_rule=true` follows it from `fee_from`; false keeps custom billing. Fee/currency/cycle edits without this flag mark the member custom unless they match the rule. Responses expose `follows_rule` and `overdue_days`; due today has zero overdue days. A coverage start selects the whole period’s rate from `fee_history`. `set_share` accepts `collect_from` and returns the effective anchor in previews and saves. Omit it to preserve an existing override or infer from the plan start, recorded coverage / paid-through, then subscription start. Only the joining period aligns to this anchor. Later periods follow the member’s effective cycle independently of receipt order. `save_share_member.paid_until` sets only the opening settlement before record-keeping, without recording cash. `save_share_member` accepts `first_period`: `prorate` (default, inclusive actual days rounded to cents), `full`, or `free`. Optional `first_amount` overrides a non-free first fee in `fee_currency`; `null` restores calculation. Later periods use the regular fee. New members default to joining today. See [Shared plans](https://docs.calends.date/en/people/carpool.md#common-collection-date-and-mid-period-joins). `record_receivable` selects `periods` or `count` (including skipped periods and prepayments), supports `waive`, updates/deletes by record `id`, and proxy `charged` overrides; legacy `index`, `entry`, `from`/`until` and `paid_until` arguments have been removed, so external clients must update. Amount defaults to total selected dues with receipt-date FX when changing currency; missing FX fails. `get_subscription` returns period statuses, dues, receipt/waiver ids and unmatched records. Member previews and saves return `collect_from`, `paid_until`, `first_collection` and `next_collection` (inclusive coverage and fee), `next_collection_date`, `is_first_period` and `pending_amount`. `record_receivable` also returns the receipt. `get_carpool` includes these summaries, fees and first-period settings. The next collection date can be overdue; pending amount includes arrears through today. All writes retain `dry_run`; built-in assistant writes require draft confirmation. ### `change_plan` actions | action | What it does | | --- | --- | | `switch` | Switch region, plan, currency or payment method from `at`. Seamless by default; with `keep_previous_until`, the previous phase keeps running until that date, overlapping and billing as usual (a new Turkish account while the prepaid US one runs out). `plan.planned=true` marks it as only planned. | | `resume` | Resubscribe at `at` after a gap; the gap is recorded as a lapse. | | `earlier` | Add history before the subscription's start (a one-time purchase before it became a subscription); `at` is when that phase began. It runs until the original first phase by default, or until `earlier_until`, leaving a lapse in between. | | `confirm` | Confirm a planned phase; `at` is its start date. | | `drop` | Drop a planned phase; the previous phase ends the day before the planned switch date. | Cancelling (`set_status` with `cancel`) also drops phases scheduled after the cancel date, including planned switches. ### Categories, avatars and edits Call `list_categories` before assigning a category. Unknown names require `save_category action=create` or top-level `create_category: true` on create/update subscription; ambiguous names always fail. Category creation and subscription writes are atomic, including a non-saving preview. Optional `category_icon` / `category_color` describe explicitly created categories. Avatar uploads use a metadata-free square PNG/WebP thumbnail up to 128×128 and 64 KiB. `list_people` returns `has_avatar` without image bytes. Use `save_share_member.account` for a plan-specific account, not `save_person`. `change_plan action=edit|remove` corrects history; `edit` can replace `set.priceHistory` while preserving its initial date. `set_status` also supports `trial` and `terminate`; use `cancel` with `immediate=false` for non-renewal or `immediate=true` for an early stop. `record_payment` supports replacement; `record_receivable action=update|delete` uses receipt or waiver `id`. Read original records before editing. Referenced wallets, categories and people require migration targets before deletion. Security settings, credentials, backups and outbound sends remain outside these tools. ## Report and settlement fields `get_insights.section` also accepts `stop_losses`, `month_report` (`month: "2026-11"`) and `scope_report` (`filter`). Use `month_report` to match Calendar’s report. `spending_stats.filter` narrows scope; `include_transfers: true` adds takeover/resale cash, excluded by default. `save_subscription.subscription` and `update_subscription.set` support `settlement: "separate"` and `settledBefore` (`settlement: null` switches back and clears payment-to-bill assignments); `record_payment.periods` names bill dates, and `get_subscription.unpaid_bills` returns unpaid bills. `record_payment` supports `method` or `funding` and `replace`; `settled` preserves actual card settlement. See [separate settlement](https://docs.calends.date/en/tracking/settlement.md). [Linked subscriptions](https://docs.calends.date/en/tracking/bundles.md) use `bundle`: `create_subscription` accepts `{parent, follow?}` and can inherit currency and cycle from the parent; `update_subscription.set.bundle` accepts `null` to unlink; `delete_subscription` refuses deletion while linked children exist. `update_subscription.set.start` keeps the billing anchor unless `shift_billing: true`; history editing through `change_plan` supports this too. `change_plan.upgrade` chooses reset/keep renewal dates for eligible credited upgrades; check `upgrade_quote` and actual cash first. `set_meters` / `add_readings` maintain private usage data. `set_status edit=true` corrects an existing dated stop. ## Example For "Netflix went up to $17.99 from today", the assistant calls something like: ```json { "name": "change_price", "arguments": { "subscription": "Netflix", "amount": 17.99, "dry_run": true } } ``` Once the preview looks right, it calls it again without `dry_run`. --- # Public page URL: https://docs.calends.date/en/sharing/public-page/ Markdown: https://docs.calends.date/en/sharing/public-page.md Description: Enable read-only sharing, select subscriptions, arrange widgets and metric cards, and check server-side masking and visitor access. The public page is off by default. Once enabled, anyone with its address can view the subscriptions you choose, without signing in. ## Enable 1. Set your name and avatar in Settings → General. 2. Enable Settings → Sharing & access → Public page and check each item under Shown subscriptions. 3. Open Edit public page, arrange the header and layout, save, then preview the page. 4. Visit `https://calends.example.com/public` while signed out. Check names, amounts, history and regions before sharing the link. Signed-out visits to `/` redirect to `/public` when enabled, or `/login` otherwise. Disabling the page stops the public API from serving the ledger; it cannot recall copies already saved by visitors. Use Show all, Hide all or individual selections to choose subscriptions. **New subscriptions are shown by default**: check again after adding a sensitive item. Paid-for-others entries are always excluded. ## Customize the layout Open `/settings/public` on desktop. Changes remain in a draft until Save. The editor can preview a page even while public sharing is off. 1. Edit the header title, bio and avatar on the canvas; set the browser title in its field. A page-specific avatar can override the general one. 2. Drag widgets from the library, or click to add them at the bottom. 3. Drag cards to move them and their edges to resize. Select a metric card to choose its template and data. 4. Check desktop and phone previews, save, then open the published public page to verify. - Desktop uses a 12-column grid. Auto-snap is on by default and compacts gaps after edits; turn it off to retain space. - Canvas editing is read-only on phones, touch devices and narrow windows. Use desktop. Visitors on smaller screens see top-to-bottom, left-to-right order; compact metric cards can remain side by side. - Card height is a minimum; extra content expands it. Empty widgets have editor placeholders but take no visitor space. - The footer and bottom icon pile can only be hidden. The theme button can be hidden; the visitor currency switch cannot. - Unsaved edits are not published. Closing or following an in-app link warns about edits; the browser back gesture is not intercepted. The browser title is set on the client. Link previews and some crawlers may still show `Calends`. ## Widgets and metric cards | Content | Purpose | | --- | --- | | Summary, charge timeline, monthly charges, composition, exchange rates | Current monthly cost, upcoming charges, historical spending and forecasts. | | Subscribed, canceled, lifetime | Items and their prices. Ended items retain their old monthly price, without a cancellation-savings total. | | Calendar, subscription years, tenure, spending map | Dates, history, duration and amount-sized areas. Not added by default. | | Changes, monthly waterfall, subscription-region globe | Changes and regions within the public selection. Not added by default. | | Metric cards | Number, trend, comparison, share and rows templates. Choices include monthly cost, annualized cost, active count, paid totals, next 30 days and largest subscription or category, depending on template. | The globe appears only with at least four current regions. It groups active, non-trial subscription phases by region, falling back to the payment method region, using current monthly cost. The [Reports region card](https://docs.calends.date/en/money/report.md#funds-flow-category-profile-and-regions) uses spending for a selected period instead. ## What visitors see Visitors see the subscriptions’ own prices, **without deducting shared-plan member contributions**. Member details, dues and collections stay private, so public totals may differ from your private Overview. Visible widgets determine the data needed from the server. When no remaining widget needs names, names, icons and links are removed; history and categories are also trimmed when unused. Hiding one widget does not remove data another visible widget still needs. Visitors can switch display currency and use the theme button if shown. Content follows the owner’s language setting; System uses the owner’s last used language. ## Server-side masking `/api/public` returns allow-listed fields only, never the private ledger. | Content | Handling | | --- | --- | | Paid-for-others and hidden subscriptions | Not sent. | | Shared-plan members, shares, collections and People | Not sent. | | Payment methods | Type, currency, needed region and color. Names become type plus region; no last digits, phone, balance, notes or custom icons. | | Subscriptions | No accounts, notes, tags, usage meters, contract terms or transfers. URLs keep scheme and domain only. Phases and payments retain billing fields, without refund records or free-text notes. For a linked subscription whose parent is hidden, parent ID and name are stripped, leaving only an `included` marker and sanitized availability spans. | | Domains | Masked name (`e••••••.com`), no URL or original icon, hashed id. Show domain on public page restores name, URL and id, keeping a generic domain icon. | | Settings | Only rendering settings such as base currency, timezone, name, avatar, language, public layout and used categories. No notification channels or calendar tokens. | | Private interface preferences | Not sent; a visitor’s theme choice is separate from the owner’s preferences. | See [domain detection](https://docs.calends.date/en/tracking/categories.md#the-domains-category). General name and avatar serve the private sidebar and public page; a public avatar can override them. Current share images do not use a custom avatar. > **CAUTION**: Public data can include amounts, currencies, cycles, service dates, regions and billing history. Hiding a card does not hide a subscription. Untick sensitive items under Shown subscriptions and check again while signed out. --- # Share images URL: https://docs.calends.date/en/sharing/share-images/ Markdown: https://docs.calends.date/en/sharing/share-images.md Description: The year-in-review image and per-subscription share images — styles, what's on them, and hiding amounts. Export a year in review or a single subscription as an image, choosing a style and hiding amounts before sharing. Calends can turn your numbers into images you copy straight into a chat or download as PNG. The year in review and single-subscription exports offer several styles; Overview, Reports and shared-plan details also support direct image copying. Both have a **Show amounts** switch. Turn it off and the image shows no amounts at all — it uses shares, durations and counts instead of simply blurring numbers. The name on the year-in-review image comes from **Settings → General → Name**, falling back to “Me” when empty. Share images currently do not use the custom avatar. 1. Open the year-in-review share action in Reports, or click **Share** on a subscription. 2. Choose a style, turn off **Show amounts** if needed, and review the preview. 3. Click **Copy image** to paste it into a chat, or **Download image** to save a PNG. ## Year in review Choose a year on Reports, then select **Share \{year\} in review**. Choose **All** for a cumulative review from the first charge through today. Next year cannot be shared. | Style | Content | | --- | --- | | Poster | The year's total, number of subscriptions and charges, new and cancelled, per day, and your top subscriptions. | | Receipt | A shop-style receipt: one line per subscription with share and amount, the total at the bottom, and how many currencies you used. | | Card | Total and per day, the longest-running subscription, the most expensive month, new / cancelled, currencies used, and your current monthly spend. | | Stars | One bubble per subscription; the bigger, the more it cost that year. | Each image picks a one-line takeaway, such as one subscription's share of the year, how many years a subscription has been with you, the busiest month, or the year’s new and ended subscriptions. The current year counts up to today; past years count in full. The review uses your-share net spending, including refunds and transfers and excluding paid-for-others. It does not show hypothetical cancellation savings. The formulas are in [Report metrics](https://docs.calends.date/en/money/report.md#year-in-review). ## A single subscription Click **Share** on a subscription's detail page. | Style | Content | | --- | --- | | Card | Total spent (or time together), how long you've subscribed, number of charges, actual monthly. | | Receipt | One line per charge, numbered, with refunds marked and a total. | | Timeline | Each phase's price and dates, how many lapses and region or plan switches. | | Poster | How long it's been with you, total spent, per day, and how much the price rose or fell. | | By year | How much you spent each year. | ## Copy cards and shared plans Supported Overview and Reports cards show **Copy as image** on hover or keyboard focus, with a faint action retained on touch screens. Copies use a single-column layout and omit selectors and navigation controls. Marked long lists keep up to five rows and show a count for the remainder. Selection reports still offer a full-report image. Shared-plan details have a header copy action. Enable privacy masking first to hide member identities and notes; the export retains the current timeline window. These direct copies do not use the year-in-review **Show amounts** switch. ## Copy and download - **Copy image**: copies it to the clipboard to paste anywhere. If the browser doesn't allow it, you'll be asked to download instead. - **Download image**: saves a PNG. Subscription icons are fetched once through your own server before being drawn (https images only, up to 1 MB), so cross-origin images don't break the picture. --- # Backup and restore URL: https://docs.calends.date/en/data/backup/ Markdown: https://docs.calends.date/en/data/backup.md Description: What a full JSON backup contains and leaves out, and what happens when you restore one. Export your ledger before moving deployments or making major changes, and review what restoration replaces. A full backup contains JSON metadata; choose the option to include files to export a ZIP with the JSON and file content. JSON alone does not contain file bytes. Import it into a brand-new deployment and subscriptions, payment methods, people, settings and exchange rates can be restored. Moving between deployment types (Docker to Cloudflare, say) or servers relies on it. ## Export 1. Open **Settings → Data** and click **Export full backup**. 2. Keep the downloaded `calends-backup-YYYY-MM-DD.json` and check that it exists. Store it securely. | Included | Not included | | --- | --- | | All subscriptions, with phases, price history, linked subscriptions, charges, shared plan members and payments, and paid-for records | Your password and passkeys | | Payment methods, with balances and top-ups | Sign-in sessions | | The people list | MCP tokens (they're credentials; create new ones on a new deployment) | | Settings, including notification channels, the calendar feed token, categories and avatar | The built-in assistant's provider API key and chat history; automatic-backup configuration and status | | Current and all historical exchange rates | Reminder send log and interface preferences (views, sorting, theme and similar choices) | > **CAUTION**: Backups contain webhook URLs and tokens for your notification channels, the calendar feed token and shared plan members' contacts. Keep the file as safe as a password. ## Restore 1. Export a full backup of your current ledger first. 2. Under **Settings → Data**, choose **Restore from backup** and select the JSON or files ZIP. 3. Review its date, format, subscription count and payment method count, then click **Replace current ledger**. 4. Check subscriptions, wallet, people and notification settings. On a new deployment, create new MCP tokens. Restoring **replaces everything**: - subscriptions, payment methods, people and settings are replaced with the backup's; when the backup has a nonempty settings object, missing settings return to defaults. Older backups with no settings leave current settings unchanged; - historical exchange rates are merged by date, with the backup winning on the same day; - your password, passkeys, signed-in devices and MCP tokens stay as they are. Restoring can't be undone. Export a backup of the current ledger first. ### Older backups Backups from early versions can still be imported; they're labeled "Legacy backup: subscriptions and payment methods only". For backups without a people list, people are rebuilt from shared plan members' and paid-for names. Backups in a newer format than your version are refused — upgrade Calends first. File metadata is restored with current-format backups; the ZIP also restores file content. Older backups without file metadata retain current files. Automatic backups contain JSON metadata only, so back up object storage or the full data volume separately. ## Automatic backups Open **Settings → Data → Automatic backup**, choose S3 or WebDAV, enter the destination credentials and an encryption passphrase, then set how many backups to keep (1–365). S3-compatible services include AWS S3, Cloudflare R2, B2, MinIO and RustFS; WebDAV works with services such as Nextcloud and Synology. The browser derives a key from your passphrase; backups are compressed and encrypted with AES-256-GCM before upload. Keep the passphrase separately: select an encrypted file through **Restore from backup** and enter the passphrase to decrypt it in your browser. Ordinary JSON backups still follow the same restore flow. Automatic-backup configuration and status are excluded from full backups and unavailable to AI/MCP. The scheduler checks every 15 minutes. After a successful backup, changes become eligible after one hour, or the ledger is checked again after one day; identical content is not uploaded again. Old automatic files beyond your retention count are removed. While automatic backup is enabled, restoring or replacing a ledger first backs up the current one; if that backup fails, replacement is refused. ## Database backups On Cloudflare you can use D1's built-in [Time Travel](https://developers.cloudflare.com/d1/reference/time-travel/) to restore the database to a point in time; on Docker, back up the data volume regularly, and on Linux (systemd) back up `/var/lib/calends` — see [Docker and systemd](https://docs.calends.date/en/self-host/docker.md#data-and-backups). ## Move to another deployment 1. Export the old deployment’s full backup and initialize the new deployment with a password. 2. Restore the backup on the new deployment; compare subscription, payment-method and People counts, then spot-check older phases and payments. 3. Set the new deployment’s `SITE_URL` and review public-page visibility and notification destinations. 4. Add Passkeys for the new domain, create new MCP tokens, and replace the calendar subscription URL in clients. Test reminders only after checking recipients. 5. Keep the original deployment and backup until the new one is verified. Avoid entering new records in both ledgers while moving. The backup includes public-page layout, linked subscriptions and separate-settlement links, while CSV does not. A restore preview validates the format and counts; it is not a field-by-field accounting reconciliation. --- # Import data and export CSV URL: https://docs.calends.date/en/data/csv/ Markdown: https://docs.calends.date/en/data/csv.md Description: Move over from another subscription app, or export your subscriptions to a spreadsheet. Import subscriptions from Wallos or another ledger, or export basic fields to a spreadsheet; use JSON backups for a full Calends migration. CSV is good for migrating and for spreadsheets, but it only holds the basics of each subscription. To keep the full ledger, use a [full backup](https://docs.calends.date/en/data/backup.md). 1. [Export a full backup](https://docs.calends.date/en/data/backup.md), then open **Settings → Data → Import data**. 2. Choose a CSV, ZIP backup or SQLite database. Review subscriptions and new payment methods; exclude individual rows or correct amounts, currencies, cycles and start dates. 3. Choose **Add to existing** or **Replace all**. Appending the same file again creates duplicates. 4. Open imported subscriptions and check currencies, cycles, dates and payment methods. ## Export **Settings → Data → Export CSV** downloads `subscriptions-YYYY-MM-DD.csv` (UTF-8 with BOM, so Excel opens it correctly). The columns are: ```text Name,Currency,Price,Category,Cycle,Starts,Ends,Tags,Payment Account,URL,Notes,Contract Start,Contract Term,Contract Renews,Contract Notice Days ``` | Column | Content | | --- | --- | | Cycle | `Daily`, `Weekly`, `Monthly`, `Yearly`, `Lifetime`, or e.g. `Every 3 months` | | Starts, Ends | `YYYY-MM-DD` | | Tags | Space-separated | | Payment Account | Payment method name | The four optional Contract columns preserve the last plan phase’s contract start, term, renewal flag and notice days; files without them remain supported. Price is the current price. Phases, price history, linked subscriptions, charges, shared plans and paid-for records aren't exported. ## Minimal CSV example ```csv Name,Currency,Price,Category,Cycle,Starts,Ends,Tags,Payment Account,URL,Notes Cloud Storage,USD,9,Tools,Monthly,2026-11-08,,,App Store USD,, ``` Use decimal numbers without thousands separators. Keep commas inside quoted fields. After import, check the next charge; CSV does not preserve phase or payment history. ## Import **Settings → Data → Import data**. It accepts CSVs exported by the Subscriptions app for iOS / macOS as well as Calends' own export — both use the same header. Column names are case-insensitive and can be in any order; `Start` and `End` work for `Starts` and `Ends`, and `Payment Method` for `Payment Account`. How columns are read: | Column | Rule | | --- | --- | | Name | Required. Rows without a name (blank lines, totals) are skipped. | | Currency | Missing or unsupported currency must be fixed in the preview; it does not default to CNY. | | Price | Currency symbols and other non-numeric characters are stripped. | | Category | Defaults to "Other". New category names are added to your categories. | | Cycle | Understands `Daily`, `Weekly`, `Monthly`, `Quarterly`, `Yearly`, `Annually`, `Lifetime`, `One time`, `Once` and `Every N days / weeks / months / years`; unrecognized cycles must be corrected in the preview, rather than defaulting to monthly. | | Starts, Ends | `M/D/YYYY` or `YYYY-MM-DD`; a missing start date becomes today. End dates in the past import as cancelled. | | Tags | Space- or comma-separated. | | Payment Account | Matched to an existing payment method by name; otherwise a new one is created, with its type guessed from the name (Alipay, WeChat, PayPal, phone credit, App Store, credit card, bank card). Foreign-currency subscriptions with no account (TRY, NGN, PHP, INR, PKR, EGP) go to that region's App Store balance, e.g. "App Store TR balance". | You get a preview first — how many subscriptions, and which payment methods will be created. Then choose: - **Add to existing**: appended to your current subscriptions. Every import creates new subscriptions, so importing the same file twice gives you duplicates; - **Replace all**: erases your current subscriptions and payment methods and replaces them with the CSV. Imported subscriptions only have the basics. Add price changes, plan switches and charges in the editor afterwards if you need them. ## External ledgers and the history boundary **Import data** also accepts CSV files, ZIP backups and SQLite databases from Wallos and other external sources. Files are parsed in your browser and saved only after confirmation. Choose the source owner when the file contains multiple users. Correct incomplete amounts, currencies or cycles before importing; supported small embedded logos are retained as subscription images. External sources often lack a complete payment history. An imported subscription retains its original start date, but Calends infers charges only from the import date onward. It does not reconstruct earlier spending from the start date. Details explain the incomplete history; totals cover available records and the monthly figure uses projected cost when a lifetime average cannot be established. Add older charges separately when you have evidence for them. Calends and iOS / macOS Subscriptions CSV exports retain their existing historical estimates. External imports do not merge same-name subscriptions; different accounts, regions and payment methods remain independent. Appending keeps the existing ledger; **Replace all** requires confirmation, so keep a full backup first. --- # Sign-in and devices URL: https://docs.calends.date/en/data/sign-in/ Markdown: https://docs.calends.date/en/data/sign-in.md Description: Password, passkeys, the list of signed-in devices, the device limit, remote sign-out, and sign-in rate limiting. Manage passwords, passkeys and signed-in devices, or follow this guide to revoke a session or recover access. Calends has a single owner: one password, and as many passkeys as you like. Everything here is under **Settings → Security**. The sign-in page is at `/login`. Signed-out visits to app pages redirect to `/login?next=...`, and signing in returns you to the requested page. For example, opening `/wallet` redirects to `/login?next=%2Fwallet`, then returns you to Wallet after sign-in. Signed-out visitors opening `/` go to `/public` if the public page is enabled, or to `/login` otherwise. The public page is accessible only when enabled in Settings. Password sign-in shows only the password field. Password managers use a fixed site account to save and fill credentials; you do not need to enter a username. ## Password - At least 8 characters, stored as a salted PBKDF2-SHA256 hash; the server never keeps it in plain text. - **Change password** asks for the current one first. Afterwards, every device except the current one is signed out. - The first password needs the setup token; see [First-time setup](https://docs.calends.date/en/start/first-setup.md). ### Forgot your password There is no email reset link. **Change password** requires your current password even on a signed-in device. A working passkey can still sign you in so you can export a backup first. To reset the password, delete its record in the database you control, then initialize it again with `SETUP_TOKEN`. This deletes the password hash, keeps your ledger, and does not itself revoke existing sessions or passkeys. 1. Make sure you can retrieve or reconfigure `SETUP_TOKEN`, and back up the database. 2. For Cloudflare, run the command below from your deployment directory; Docker uses the Node command in the next section: ```bash # Cloudflare npx wrangler d1 execute DB --remote --command "DELETE FROM kv WHERE key = 'auth'" ``` 3. Open `/login`, enter the setup token and set a new password. 4. Review **Signed-in devices** and your passkeys, and remove access you no longer need. ### Docker password reset Current images use Node 24 and do not include the Wrangler CLI. After backing up the database and confirming access to `SETUP_TOKEN`, use the existing container’s Node runtime to delete only the password row. Replace `calends` with your container name: ```bash docker exec -i calends node --input-type=module <<'NODE' const file = join(process.env.DATA_DIR || '/data', 'v3/d1/miniflare-D1DatabaseObject', '9ba2b04bf514d9facfd57ed57d849e77241a7adc99d1c1545d06688b43d84248.sqlite'); if (!existsSync(file)) throw new Error('Expected database not found; check DATA_DIR and volume'); const db = new DatabaseSync(file); const result = db.prepare("DELETE FROM kv WHERE key = 'auth'").run(); console.log('Password records removed:', result.changes); db.close(); NODE ``` Open `/login`, initialize the password with `SETUP_TOKEN`, and review devices and Passkeys. This does not delete subscriptions or revoke existing sessions. It intentionally refuses a missing database instead of creating a new one. On Linux (systemd), stop the service and run the same Node snippet with `DATA_DIR=/var/lib/calends` using system Node 24 (or the bundled Node under `/opt/calends`), then start the service again. ## Passkeys After **Add passkey**, choose **Sign in with passkey** on the sign-in page to use Face ID, Touch ID or your device passcode. The list shows when each passkey was added and last used. Rename them to make them easier to recognize, and remove the ones you don't need. Passkeys are tied to your site's domain and need HTTPS. After moving to a new domain, old passkeys won't work there: sign in with your password and add new ones on the new domain. Behind an HTTPS Docker reverse proxy, set `SITE_URL` to the browser-facing HTTPS URL: Passkey RP ID and verification origin prefer it. If a credential chosen through autofill is rejected, the login page shows the reason and re-arms autofill. For an unknown credential, supported browsers also notify the password manager to remove it. ## Signed-in devices **Signed-in devices** lists every active session: browser and OS, how it signed in (password or passkey), when, when it was last active, and an approximate location from the IP (not always accurate). The current one is marked **This device**. You can rename devices to distinguish your sessions. - **Sign out** on a device ends that session immediately. You can't remove the current device this way — use **Sign out** from the app menu instead. - **Sign out all other devices** keeps only the current one. - **Max signed-in devices**: 1, 2, 3, 5, 10 or 20; 10 by default. Past the limit, the device inactive the longest is signed out automatically; lowering the limit applies immediately. Each session lasts 180 days. The session token lives in an HttpOnly, SameSite=Lax cookie (Secure over HTTPS), and the server only stores its hash. ## Rate limiting After 6 failed attempts from the same IP within 15 minutes, that IP is locked out for a while ("Too many attempts. Try again in 15 minutes."). Password sign-in, passkey sign-in and first-time setup share this limit. On Cloudflare, Calends uses Cloudflare’s visitor IP headers. Self-hosted deployments automatically read `X-Forwarded-For` only for local, private or Cloudflare connections, choosing the first untrusted address from the right; public direct connections ignore it. Usually leave `TRUST_PROXY` unset. `off` disables the header, and an IP/CIDR list adds trusted proxies. Nginx must append `proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;`. Restrict the port to the proxy; if untrusted visitors can connect directly on the same private network, use `off`. See [Custom domain and HTTPS](https://docs.calends.date/en/self-host/custom-domain.md). --- # Privacy URL: https://docs.calends.date/en/data/privacy/ Markdown: https://docs.calends.date/en/data/privacy.md Description: Where your data lives, which requests leave your server, and what ends up on the public page and in backups. Review storage, external requests and public data before enabling sharing or AI features. Calends is self-hosted: the ledger is stored in your Cloudflare account or on your machine, without relying on a centralized ledger service. ## Where data lives | Deployment | Location | | --- | --- | | Cloudflare | A D1 database in your account. | | Docker | A SQLite file in the data volume (`/data` by default). | | Linux (systemd) | A SQLite file in the local state directory (`/var/lib/calends` by default). | Passwords are stored only as PBKDF2 hashes; sessions and MCP tokens only as SHA-256 hashes. The AI provider API key and automatic backup credentials and derived keys stay on the server: they are never returned to the browser, never included in full backups, and inaccessible to AI and MCP. Channel configuration is available to the signed-in app and included in full backups; it is not sent to the public page. ## Requests that leave your server The main external requests made by ledger features are: | Purpose | Service | What's sent | | --- | --- | --- | | Current exchange rates | open.er-api.com | Nothing; it just fetches the USD rate table | | Historical exchange rates | jsDelivr / currency-api.pages.dev, Frankfurter | Nothing; it just fetches one day's rate table | | Reminders | The notification channels you configured (Telegram, Lark, webhooks…) | The reminder content | | Email reminders | Cloudflare Email Sending | The reminder content and recipient address | | Automatic backup | Your configured S3-compatible storage or WebDAV | A gzip-compressed, AES-256-GCM encrypted backup file (passphrase stays in your browser) | | Built-in assistant | Your selected AI provider | Your text and images, the conversation, and results of the tools it calls | | Anonymous usage stats | telemetry.calends.date (on by default; optional) | A random install ID, version, runtime, UI language, and daily open/feature counts (see below) | | Update check | api.github.com (from browser, without credentials) | Nothing; reads the latest stable release version and notes excerpt | | Looking up app icons & plans | The App Store search API (falls back to direct browser lookup if server is rate-limited) | The app name or link being searched | | Icons in share images | The site hosting the subscription's icon | Nothing; fetched once through your server | Also, when a subscription has no icon of its own, the browser loads the website's icon from Google's favicon service, and reminder emails reference icon URLs of that kind. ## Anonymous usage stats When enabled, your server sends one summary per completed UTC day to `telemetry.calends.date`, containing: - a randomly generated 16-byte install ID, the Calends version, runtime (`cloudflare`, `node` or `installer`), and UI language; - daily counts of app opens, opens of the 10 top-level pages, built-in assistant messages, and MCP tool calls. It **never** sends subscription names, prices, currencies, payment methods, people, notes, URLs, credentials, or any ledger data. Counters are stored separately from ledger state, excluded from backups, and invisible to AI and the public page. You can turn this off anytime under **Settings → Anonymous usage stats**; disabling immediately deletes the install ID (re-enabling creates a new one). Setting `CALENDS_TELEMETRY=0` or `DO_NOT_TRACK=1` in your deployment forces it off and locks the Settings toggle. Development mode never sends telemetry. ## Public page The public page is off by default. When it's on, the server sends only allow-listed fields: paid-for subscriptions, the people list, contacts, accounts, notes, payment method names and balances, notification channels and so on never appear, and domain subscriptions are masked. See [Public page](https://docs.calends.date/en/sharing/public-page.md#server-side-masking). ## Backup files A full backup contains your notification channels' URLs and tokens, the calendar feed token and shared plan members' contacts. Keep it safe. See [Backup and restore](https://docs.calends.date/en/data/backup.md). ## Calendar feed link The ICS link contains a private token; anyone with it can see your billing schedule. If it leaks, click **Reset link** under **Subscribe in system calendar**. See [Calendar](https://docs.calends.date/en/calendar/calendar.md#subscribe-in-your-calendar). ## AI assistants - An AI assistant connected over MCP sees everything the tools it calls return. Give assistants that only need to read a read-only token, and turn off **AI access (MCP)** in Settings when you're not using it. - The built-in assistant forwards what you send to your selected provider. See [Built-in assistant](https://docs.calends.date/en/ai/assistant.md#privacy). --- # Cloudflare Workers + D1 URL: https://docs.calends.date/en/self-host/cloudflare/ Markdown: https://docs.calends.date/en/self-host/cloudflare.md Description: 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. Deploy Calends to your Cloudflare account with D1, scheduled jobs and optional email reminders. Calends is a Cloudflare Worker: the front end is served as the Worker's static assets, data lives in D1 (SQLite), and reminders and exchange rates run on a cron trigger. Usage and cost depend on your Cloudflare account’s current plan and quotas. ## Requirements - A Cloudflare account; - for command-line deploys, Node.js 24 and git. ## One-click deploy Open [Deploy to Cloudflare](https://deploy.workers.cloudflare.com/?url=https://github.com/imetn/calends) and follow the steps to copy the repository into your GitHub account and deploy it. Then, in the Cloudflare dashboard, open the Worker's **Settings → Variables and Secrets** and add a secret named `SETUP_TOKEN` with a long random value. Without it you can't set a password. ## Command-line deploy 1. Clone and install: ```bash git clone https://github.com/imetn/calends && cd calends npm ci ``` 2. Sign in to Cloudflare and check that `npx wrangler whoami` shows your account: ```bash npx wrangler login ``` 3. Set the setup token: ```bash npx wrangler secret put SETUP_TOKEN ``` `openssl rand -base64 24` is one way to generate a random value. 4. Deploy: ```bash npm run deploy ``` 5. Open `https://calends..workers.dev`, enter the setup token and choose your password. `npm run deploy` does the following: 1. generates the migration and translation files, type-checks, and builds the front end with Vite; 2. deploys the Worker with `wrangler deploy`. On the first deploy, a D1 database named `calends` is created automatically — no `database_id` to fill in; 3. applies all migrations to the remote database. The Worker also checks for and applies missing migrations the first time each instance handles a request, so one-click deployments work too. ## wrangler.jsonc The `wrangler.jsonc` in the repository is ready to go: | Setting | What it does | | --- | --- | | `assets` | Front-end assets. `/api/*`, `/cal/*` and `/mcp` go to the Worker first; other paths fall back to the single-page app. | | `d1_databases` | Binding `DB`, database `calends`. | | `triggers.crons` | `*/15 * * * *`: checks reminders and retries every 15 minutes. FX maintenance runs at UTC hour boundaries and refreshes rates older than 20 hours. | | `observability` | Workers logs on, so reminder results and migrations show up in the dashboard. | ## Email reminders Email reminders use [Cloudflare Email Sending](https://developers.cloudflare.com/email-routing/email-workers/send-email-workers/). Skip this section if you don't need email; no other channel needs server-side configuration. 1. Enable email sending for your domain in Cloudflare and verify a sender address, such as `calends@example.com`. 2. In `wrangler.jsonc`, uncomment and edit these two entries: ```jsonc "send_email": [{ "name": "EMAIL", "allowed_sender_addresses": ["calends@example.com"] }], "vars": { "SITE_URL": "https://calends.example.com", "MAIL_FROM": "calends@example.com", "MAIL_FROM_NAME": "Calends" }, ``` 3. Deploy again: `npm run deploy`. 4. Under **Settings → Notification channels**, add an email channel with your address and click **Test**. > **NOTE**: `MAIL_FROM_NAME` is optional and defaults to the app name in your interface language. `SITE_URL` is optional too; it sets the address used in reminder and calendar links. See [Configuration](https://docs.calends.date/en/self-host/config.md). ## Custom domain See [Custom domain and HTTPS](https://docs.calends.date/en/self-host/custom-domain.md). ## Cost Usage includes Workers requests, D1 reads, writes and storage, Cron, optional R2 storage/operations, and email sending. Check actual usage and current quotas in your Cloudflare dashboard. The built-in assistant uses your selected provider, billed separately from Cloudflare. ## File storage File uploads require a private R2 bucket bound as `FILES`; without it uploads are disabled and other ledger features continue to work. Create it with `npx wrangler r2 bucket create calends-files`, add `"r2_buckets": [{ "binding": "FILES", "bucket_name": "calends-files" }]` to your Wrangler configuration, keep public access disabled, and redeploy. `FILES_LIMIT_MB` sets total capacity in MB (default 300); each file is limited to 10 MB. --- # Docker URL: https://docs.calends.date/en/self-host/docker/ Markdown: https://docs.calends.date/en/self-host/docker.md Description: Run Calends anywhere with the official image — docker run and compose, the setup token, data directory, scheduled jobs, HTTPS and backups. Run Calends on your own machine with Docker, including persistent storage, HTTPS and backups. Since v1.1.0, prebuilt images are available on Docker Hub as `xizozhe/calends` and on GHCR as `ghcr.io/imetn/calends`. Both allow anonymous pulls and support `linux/amd64` and `linux/arm64`. Since 1.25.0, esbuild bundles the same Worker to run in a single Node 24 process, with `node:sqlite` providing the D1 interface. The image no longer starts `wrangler dev`, workerd or Miniflare. The SQLite data path is unchanged. 1. Start the container using either method below, always mounting `/data`. 2. Read the setup token from the logs and set a password at `/login`. 3. Configure [HTTPS](https://docs.calends.date/en/self-host/custom-domain.md) and `SITE_URL` before public use. 4. Add a subscription and notification channel, test reminders and arrange [backups](https://docs.calends.date/en/data/backup.md). ## Run a prebuilt image ### docker run ```bash docker run -d --name calends -p 127.0.0.1:8787:8787 -v calends-data:/data xizozhe/calends:latest docker logs calends ``` ### docker compose Create `compose.yaml` in a deployment directory of your choice (the repository’s `docker/docker-compose.yml` builds from source by default): ```yaml name: calends services: calends: image: xizozhe/calends:latest restart: unless-stopped mem_limit: 512m ports: - '127.0.0.1:8787:8787' volumes: - calends-data:/data environment: # Public address used in reminder and calendar links (optional) # SITE_URL: https://calends.example.com # Usually leave TRUST_PROXY unset (automatic visitor IP detection) TZ: UTC volumes: calends-data: name: calends-data ``` ```bash docker compose up -d docker compose logs calends ``` Open `http://localhost:8787` and set your password with the setup token from `docker logs calends` (or `docker compose logs calends`). To use GHCR instead, replace `xizozhe/calends:latest` with `ghcr.io/imetn/calends:latest` in the examples. ## What happens on start 1. Migrations are applied to the database in the data directory (idempotent; checked on every start). 2. The setup token is prepared: `SETUP_TOKEN` from the environment if set; otherwise a random one is generated on first start, saved as `setup-token` in the data directory and reused after that. 3. The Worker starts and listens on `PORT` (8787 by default). 4. If no password has been set yet, the setup token is printed to the logs: ```text [calends] first run: create your password at / with this setup token: [calends] ``` 5. Scheduled work runs in-process every 15 minutes, matching the Cloudflare cron: each run checks reminders, and the top of each UTC hour also handles exchange-rate maintenance. The container health check requests `/healthz`, checking the database directly without entering the Worker. A typical ledger uses about 100–150 MB of memory with near-zero idle CPU. These are test-environment observations, not guarantees for every workload; sustained operation on a real 1 CPU / 1 GB server has not been verified. Compose defaults to a 512 MB memory limit, and the image caps the JavaScript heap at 192 MB. Use prebuilt images on small servers; building needs more memory. Request bodies are limited to 64 KB for login and authentication routes, 20 MB for backups, imports and assistant chat, and 4 MB otherwise. Declared oversized requests return 413; chunked uploads stop at the limit and fail as unreadable bodies. If the expected database is missing while other ledger databases or `setup-token` remain in the data directory, the container refuses to start and logs the reason instead of silently creating an empty ledger. Check the original volume and `DATA_DIR`; do not delete real data to bypass this check. ## Environment variables | Variable | Default | Details | | --- | --- | --- | | `SETUP_TOKEN` | generated | Setup token for setting the first password. | | `SITE_URL` | the address you open the app from | Links in reminders and the calendar feed. Passkey RP ID and origin also use this URL; set the public HTTPS URL behind a reverse proxy. | | `TRUST_PROXY` | unset | Usually leave unset. `off` ignores `X-Forwarded-For`; a comma-separated IP/CIDR list adds trusted proxies. [Custom domain and HTTPS](https://docs.calends.date/en/self-host/custom-domain.md). Not used on Cloudflare. | | `DATA_DIR` | `/data` | Data directory. | | `PORT` | `8787` | Listening port. | | `NODE_OPTIONS` | `--max-old-space-size=192 --disable-warning=ExperimentalWarning` | JavaScript heap cap and warning settings; retain the warning flag when changing the cap. | | `BASE_PATH` | empty | Subpath such as `/calends`; use the same build argument and runtime variable. | Only `SETUP_TOKEN`, `SITE_URL`, `BASE_PATH` and `RUNTIME` (from `CALENDS_RUNTIME`, default `node`, used by upgrade guidance) (plus the legacy `OWNER_PASSCODE`) are passed to the Worker. `TRUST_PROXY` is handled by the Node HTTP entrypoint, not passed to the Worker. The former `INTERNAL_PORT` setting is removed; `PORT` is the only listening port. The container's `TZ` doesn't affect reminders; they follow **Settings → General → Time zone**. > **CAUTION**: Docker deployments don't have Cloudflare Email Sending, so the email channel isn't available. Use Telegram, Lark, Bark, ntfy or another [notification channel](https://docs.calends.date/en/calendar/channels.md). ## HTTPS On the public internet, put Calends behind a reverse proxy for HTTPS and follow [the proxy header and port rules](https://docs.calends.date/en/self-host/custom-domain.md). Passkeys only work over HTTPS. With Caddy: ```text calends.example.com { reverse_proxy 127.0.0.1:8787 } ``` More in [Custom domain and HTTPS](https://docs.calends.date/en/self-host/custom-domain.md). ## Data and backups Everything lives in the `calends-data` volume (`/data` in the container), including the SQLite database and the `setup-token` file. Removing the container keeps your data; removing the volume doesn't. Two ways to back up: - **Settings → Data → Export full backup** gives you a JSON file you can restore on any deployment; see [Backup and restore](https://docs.calends.date/en/data/backup.md); - or archive the volume with the container stopped: ```bash docker stop calends docker run --rm -v calends-data:/data -v "$PWD":/backup alpine tar czf /backup/calends-data.tgz -C /data . docker start calends ``` ## Build from source The Dockerfile is at `docker/Dockerfile`, and the repository’s Compose file is at `docker/docker-compose.yml`. To build and start with Compose: ```bash git clone https://github.com/imetn/calends && cd calends cd docker && docker compose up -d --build docker compose logs calends ``` The Compose project name is `calends`, and its data volume is `calends_calends-data`. Use that name when backing up or upgrading this deployment; it is separate from the `calends-data` volume used in the prebuilt-image examples above. Alternatively, build from the repository root and start the image directly: ```bash docker build -f docker/Dockerfile -t calends:local . docker run -d --name calends -p 127.0.0.1:8787:8787 -v calends-data:/data calends:local docker logs calends ``` ## Without Docker (systemd) On Debian or Ubuntu, install Calends with its own copy of Node and start it on `127.0.0.1:8787`: ```bash curl -fsSL https://calends.date/install.sh | sudo bash ``` Run the same command to upgrade: it backs up data, keeps settings, and restores the previous program and data if startup fails or the upgrade is interrupted. Use `--version 1.84.0` for a specific release. The script does not configure domains or web servers; point your own reverse proxy at the local port, set `SITE_URL` and follow [Custom domain and HTTPS](https://docs.calends.date/en/self-host/custom-domain.md). It has been tested in Debian 12 and Ubuntu 24.04 VMs; sustained operation on a real small-memory VPS has not been verified. The manual steps below are also available. A small VPS doesn't need Docker. Since 1.26.0, each [release](https://github.com/imetn/calends/releases) includes a tarball that runs the same code as the image, needs no npm install, and works on x86 and ARM. It requires Linux, systemd and a system-wide Node 24 (check with `node -v`); the service can't read a Node installed under a home directory, such as with nvm. ```bash VERSION=1.84.0 curl -fLO https://github.com/imetn/calends/releases/download/v$VERSION/calends-$VERSION.tar.gz curl -fLO https://github.com/imetn/calends/releases/download/v$VERSION/calends-$VERSION.tar.gz.sha256 sha256sum -c calends-$VERSION.tar.gz.sha256 sudo mkdir -p /opt/calends sudo tar -xzf calends-$VERSION.tar.gz -C /opt/calends --strip-components=1 --no-same-owner sudo cp /opt/calends/calends.service /etc/systemd/system/ sudo systemctl daemon-reload ``` If you're moving from Docker, copy the data now (replace `calends` with your container name) and put the container's environment variables in `/etc/calends.env`, described below. Don't copy over a service that has already started, and don't move a subpath deployment this way. Skip this step on a fresh install: ```bash sudo docker stop calends sudo mkdir -p -m 700 /var/lib/private sudo docker cp calends:/data/. /var/lib/private/calends/ ``` Then start the service: ```bash sudo systemctl enable --now calends sudo journalctl -u calends -n 20 ``` Don't send the setup token and password over the public internet in plain text. Forward the port first with `ssh -L 8787:localhost:8787 user@your-server`, open `http://localhost:8787/` and set your password with the setup token from the log. Data lives in `/var/lib/calends`, memory is capped at 512 MB, and the service restarts if the process exits unexpectedly. Put settings from [Configuration](https://docs.calends.date/en/self-host/config.md) in `/etc/calends.env`, one `NAME=value` per line and protected with `sudo chmod 600`, then run `sudo systemctl restart calends`. Behind a reverse proxy, set `HOST=127.0.0.1`; usually leave `TRUST_PROXY` unset. Leave `DATA_DIR` unchanged and keep `PORT` above 1024. The tarball is built for the root path; use Docker to deploy under a subpath. To upgrade or roll back, replace the code and leave the data alone. You can only roll back to a version whose database schema is no older than your data, so export a backup in Settings first. Set `VERSION` to the version you want, download and verify its tarball, then run: ```bash sudo systemctl stop calends sudo rm -rf /opt/calends sudo mkdir -p /opt/calends sudo tar -xzf calends-$VERSION.tar.gz -C /opt/calends --strip-components=1 --no-same-owner sudo cp /opt/calends/calends.service /etc/systemd/system/ sudo systemctl daemon-reload sudo systemctl start calends ``` ## Image tags | Tag | Meaning | | --- | --- | | `latest` | Tracks image updates. | | `1.84.0` | A specific release; recommended for controlled upgrades. | | `1.84` | Tracks patch releases in the 1.84 series. | Both registries provide these tags. For production, pin an exact version such as `xizozhe/calends:1.84.0`; use `ghcr.io/imetn/calends:1.84.0` as an alternative. ## Upgrade the image Pull the new image, then recreate the container using the same data volume: ```bash docker pull xizozhe/calends:latest docker stop calends docker rm calends docker run -d --name calends -p 127.0.0.1:8787:8787 -v calends-data:/data xizozhe/calends:latest ``` Keep the original ports, environment variables and restart policy when recreating the container. Removing the container preserves the named volume; do not delete the volume. For a pinned deployment, replace `latest` in both commands with your chosen version. With the prebuilt-image `compose.yaml` above, run `docker compose pull` followed by `docker compose up -d` in its directory; keep the same Compose project and volume settings. Keep the same volume, ports and environment settings when upgrading. Numeric `TRUST_PROXY` values mean automatic detection; review [Custom domain and HTTPS](https://docs.calends.date/en/self-host/custom-domain.md). For source-build upgrades and verification, see [Upgrading](https://docs.calends.date/en/self-host/upgrade.md). When running on a remote host, keep the published port on loopback. Use `ssh -L 8787:localhost:8787 user@server` for the initial `http://localhost:8787` login, or configure HTTPS first. If the proxy runs in another container, use a shared private Docker network instead of publishing the port to the Internet. File content is stored under `/data/files`. Persist and back up the entire `/data` volume along with the database. --- # Configuration URL: https://docs.calends.date/en/self-host/config/ Markdown: https://docs.calends.date/en/self-host/config.md Description: Every environment variable, secret and binding — SETUP_TOKEN, SITE_URL, EMAIL, MAIL_FROM, TRUST_PROXY, DATA_DIR, PORT and more. Look up environment variables, secrets, bindings and app defaults when deploying or troubleshooting configuration. Most of Calends is configured in the app and stored in the database. These are the only deployment-level settings. ## Environment variables and bindings | Name | Kind | Applies to | Details | | --- | --- | --- | --- | | `SETUP_TOKEN` | secret / env | all | Required to set the first password on a fresh deployment. On Cloudflare, set it with `wrangler secret put SETUP_TOKEN`; on Docker it's generated if unset. Not needed once the password is set. | | `SITE_URL` | var / env | all | Your site address, e.g. `https://calends.example.com`, used in reminder messages and calendar feed links. If unset: requests use the address being visited; scheduled jobs use the address recorded the last time you opened the app. Passkey RP ID and origin also use this URL; set the public HTTPS URL behind a reverse proxy. | | `OLD_HOSTS` | Variable | Cloudflare | Comma-separated old hostnames. With `SITE_URL`, redirects old page URLs with HTTP 301, leaving API, MCP and ICS endpoints available. Not forwarded by the Docker entrypoint. | | `EMAIL` | binding | Cloudflare | The Cloudflare Email Sending `send_email` binding, needed for email reminders. | | `MAIL_FROM` | var | Cloudflare | Sender address; must be allowed by the `EMAIL` binding. Email works once both are set. | | `MAIL_FROM_NAME` | var | Cloudflare | Sender name, optional. | | `TRUST_PROXY` | env | self-hosted | Usually leave unset. `off` ignores `X-Forwarded-For`; a comma-separated IP/CIDR list adds trusted proxies. [Custom domain and HTTPS](https://docs.calends.date/en/self-host/custom-domain.md). Not used on Cloudflare. | | `DATA_DIR` | env | self-hosted | Data directory: `/data` in Docker, `/var/lib/calends` in the systemd unit. | | `HOST` | env | self-hosted | Listening address; default `0.0.0.0`. For systemd behind a proxy use `127.0.0.1`; for Docker keep the default and restrict the published port. | | `PORT` | env | self-hosted | Listening port, `8787` by default. | | `OWNER_PASSCODE` | secret | legacy | Early versions kept the passcode directly in a secret. After the first successful sign-in it's converted to a hash and can be deleted. Not needed for new deployments. | | `CALENDS_TELEMETRY`, `DO_NOT_TRACK` | var / env | all | `CALENDS_TELEMETRY=0` or `DO_NOT_TRACK=1` turns off anonymous usage statistics and locks the setting off. The statistics contain only a random install ID, version, runtime, interface language and daily usage counts — never subscriptions, amounts or ledger data. | | `CALENDS_RUNTIME` | env | self-hosted | Runtime label (`node` or `installer`, default `node`), used by the upgrade panel and telemetry. | | `CALENDS_LOCAL` | env | source deploy | External personal config directory (replaces `local/` for personal `wrangler.jsonc` and `public/` overrides). | | `DEV_BYPASS_AUTH` | `.dev.vars` | local dev | `1` skips sign-in and telemetry. Local use only — never set it in production. | On Cloudflare, variables go in `vars` in `wrangler.jsonc` or in the Worker's settings in the dashboard, and secrets via `wrangler secret put`. On Docker, everything is an environment variable. ## Settings in the app These aren't environment variables; change them in the app: | Setting | Where | Default | | --- | --- | --- | | Base currency | Settings → General | USD | | Time zone | Settings → General | UTC | | Language | Settings → General | System default | | Remind me | Settings → Reminders | 3 days | | Send at | Settings → Reminders | 09:00 | | Monthly preview on the 1st | Settings → Reminders | On | | Public page | Settings → Sharing & access | Off | | AI access (MCP) | Settings → Sharing & access | On | | Max signed-in devices | Settings → Security | 10 | | Anonymous usage stats | Settings → Anonymous usage stats | On | ## Self-hosted build and memory `NODE_OPTIONS` defaults to `--max-old-space-size=192 --disable-warning=ExperimentalWarning` in the image. Keep the warning option when changing the heap limit. `BASE_PATH` must match the Docker build argument and runtime value (for example `/calends`); prebuilt images and release tarballs use the root path. ## Routes | Path | What | | --- | --- | | `/` | Redirects to the configured start page when signed in | | `/overview` | Overview | | `/list` | Subscriptions | | `/calendar` | Calendar | | `/report` | Reports | | `/wallet` | Wallet | | `/family` | Shared plans and people | | `/behalf` | Paid for others | | `/assistant` | Built-in AI assistant | | `/connect` | AI access and MCP connection page | | `/settings` | Settings | | `/settings/public` | Public page layout editor | | `/login` | Sign-in and first-time password setup | | `/public` | Read-only public page, accessible only when enabled in Settings | | `/api/*` | API for the app and public page | | `/mcp` | MCP service endpoint; browser visits redirect to `/connect` | | `/cal/.ics` | Calendar feed | | `/healthz` | Self-hosted health check (checks SQLite directly without entering the Worker) | Signed-out visits to app pages redirect to `/login?next=...`. Signing in returns you to the requested page. For example, opening `/wallet` redirects to `/login?next=%2Fwallet`, then returns to `/wallet` after sign-in. Signed-out visitors opening `/` are redirected to `/public` if the public page is enabled, or to `/login` otherwise. --- # Custom domain and HTTPS URL: https://docs.calends.date/en/self-host/custom-domain/ Markdown: https://docs.calends.date/en/self-host/custom-domain.md Description: 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. Set up HTTPS on your own domain and update calendar links, MCP clients and sign-in credentials after moving. 1. Choose a domain and configure the route or reverse proxy below for your deployment. 2. Set `SITE_URL` to `https://calends.example.com` and redeploy or recreate the container. 3. Sign in through the new domain and check HTTPS, passkeys, calendar links and MCP access. ## Cloudflare Add `routes` to `wrangler.jsonc` to attach the domain to the Worker as a `custom_domain`. The domain must already be on your Cloudflare account: ```jsonc "routes": [{ "pattern": "calends.example.com", "custom_domain": true }], ``` Then deploy again: ```bash npm run deploy ``` Cloudflare creates the DNS record and certificate for you. Adding a custom domain in the Worker's dashboard settings does the same. Also set `SITE_URL` in `vars` to the new domain; see [Configuration](https://docs.calends.date/en/self-host/config.md). ## Docker Calends itself only speaks HTTP. Put it behind a reverse proxy for HTTPS. The installer starts only the local service; it does not configure domains or web servers. Calends detects the visitor IP automatically: it reads `X-Forwarded-For` only for local, private or Cloudflare connections, choosing the first untrusted address from the right. Usually leave `TRUST_PROXY` unset. Caddy, Traefik and Cloudflare Tunnel work as they are. Nginx must append `proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;`, or a visitor can forge the IP used for login rate limiting. Publish the port only to the proxy (`-p 127.0.0.1:8787:8787`); for systemd use `HOST=127.0.0.1`. If Calends is also reachable directly, use `TRUST_PROXY=off`: visitors on the same private network can forge this header, as can internet visitors when Docker presents connections as its gateway (Docker Desktop, rootless Docker and some IPv6 port mappings). For a CDN other than Cloudflare, add its address ranges with a comma-separated IP/CIDR list, for example `TRUST_PROXY=192.0.2.0/24,198.51.100.7`; otherwise all visitors share the CDN address. Old numeric values such as `1` and `2` now mean automatic detection, not a hop count. Cloudflare deployments do not use this variable. Login rate limiting does not affect existing signed-in sessions. **Caddy** (gets certificates automatically): ```text calends.example.com { reverse_proxy 127.0.0.1:8787 } ``` **Nginx**: ```nginx server { listen 443 ssl; server_name calends.example.com; # ssl_certificate / ssl_certificate_key ... location / { proxy_pass http://127.0.0.1:8787; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } } ``` The built-in assistant's streaming responses carry an `X-Accel-Buffering: no` header, so Nginx doesn't buffer them and replies appear as they're written. For use on your own machine or LAN only, you can open `http://:8787` directly. Browsers only allow passkeys over HTTPS or on `localhost`, so via an IP you'll sign in with your password. ## When changing domains - **Passkeys** are tied to the domain and won't work on the new one. Sign in with your password, then add new ones under **Settings → Security**. - **Calendar feed and reminder links** use your site address. If you set `SITE_URL`, change it; if not, open the app once on the new domain. Calendars you've already subscribed need the new link. - **MCP clients** need the new address; tokens stay the same. - Your data isn't affected. For Cloudflare deployments, `OLD_HOSTS` can list old hostnames (comma separated). Keep their Worker routes and set `SITE_URL` to the new address: old page requests redirect with HTTP 301, while API, MCP and ICS endpoints stay available. This variable is not forwarded by the Docker runtime. --- # Upgrading URL: https://docs.calends.date/en/self-host/upgrade/ Markdown: https://docs.calends.date/en/self-host/upgrade.md Description: Back up, update Cloudflare, Docker or systemd, check the result, and prepare a compatible rollback. Keep your existing database, volumes, domain and environment settings. Current deployment examples use **1.84.0**; check the target release notes before upgrading across versions. 1. Export a full JSON backup and record the current version, data volume and environment settings. Keep a database/volume copy for rollback too. 2. Update using the same deployment method below. Source builds require Node.js 24. 3. Refresh existing tabs and check subscriptions, Wallet, Calendar and Reports. Test an enabled notification channel; verify MCP and ICS if you use them. 4. Keep the old backup until those checks pass. A successful image pull or build alone does not establish a working upgrade. Settings → General shows the running version and latest stable release. Automatic checks run at most hourly, including when the page returns to the foreground; opening Settings refreshes results older than five minutes. Tabs in the same browser share the cache. A dot marks a newer release, manual checks bypass the interval, and nothing upgrades automatically. Click the available-version badge to open upgrade instructions for your installation, a copyable command for the one-line installer, and a release-note excerpt with links to the full notes. Older cached checks show links until the next successful check. ## Compatibility to check - Separate settlement is optional; existing subscriptions retain their original mode. After enabling it, check the tracking start, arrears and bill/payment date differences. - Public layouts and metric cards are optional. Check both editor preview and the signed-out public page after changes. - Pause history, receipt periods and historical plan fields must remain intact. Old receipt formats can be converted on read; downgrading code does not undo that conversion. - Since the Node-based self-hosting runtime, `INTERNAL_PORT` is removed. Keep `PORT` and the data volume. Numeric `TRUST_PROXY` values use automatic detection; review [proxy settings](https://docs.calends.date/en/self-host/custom-domain.md). - Database migrations run during deployment/startup. Version 1.63.0 adds `0009_files.sql`, creating the files table. Cloudflare uploads also need the optional `FILES` R2 binding; Docker stores files under `/data/files`. Never assume rollback compatibility from the version number alone. ## One-line install and upgrade (Debian/Ubuntu) ```bash curl -fsSL https://calends.date/install.sh | sudo bash ``` The same command installs or upgrades with a private Node runtime, backs up existing data and preserves settings. Failed or interrupted upgrades restore the previous program and data. It starts the service on `127.0.0.1:8787` and does not configure a domain or web server; manage your reverse proxy and `SITE_URL` yourself. See [Docker and systemd](https://docs.calends.date/en/self-host/docker.md). ## Cloudflare If you deployed from the command line: ```bash cd calends git pull npm ci npm run deploy ``` `npm run deploy` applies new migrations to the remote database after deploying. Even if that step were skipped, the Worker fills in missing migrations on its first request. If you used one-click deploy, the repository lives in your own GitHub account. Sync it with upstream `imetn/calends` (Sync fork on GitHub, or merge manually) and Cloudflare rebuilds and deploys from your repository. If you've edited `wrangler.jsonc` (custom domain, email binding), keep those changes when you pull. ## Docker ```bash docker pull xizozhe/calends:latest docker stop calends docker rm calends docker run -d --name calends --restart unless-stopped \ -p 127.0.0.1:8787:8787 -v calends-data:/data \ xizozhe/calends:latest ``` With the prebuilt-image `compose.yaml` from the [Docker guide](https://docs.calends.date/en/self-host/docker.md), run these commands in its deployment directory: ```bash docker compose pull docker compose up -d ``` The `docker run` above is a minimal example. Reapply your original `SITE_URL`, `TRUST_PROXY`, `SETUP_TOKEN`, ports and other environment variables, and use the same data volume name. Data lives in the volume, so removing the container loses nothing. The new container applies migrations before starting. To pin a version and upgrade on your own schedule, use a version tag instead of `latest`, such as `xizozhe/calends:1.84.0`. GHCR is an anonymous-pull alternative: replace `xizozhe/calends` with `ghcr.io/imetn/calends`, keeping the same tag in both the pull and run commands. Both registries provide `latest`, `1.84.0` and `1.84`; pin an exact release such as `1.84.0` for controlled upgrades. ### Source builds with Compose For the repository’s `docker/docker-compose.yml`, rebuild from the updated source instead of pulling a prebuilt image. From the repository root: ```bash git pull cd docker && docker compose up -d --build docker compose logs calends ``` Keep the Compose project name `calends` and its existing `calends_calends-data` volume. This is separate from `calends-data` in the prebuilt-image examples; use the volume belonging to your deployment and do not run `docker compose down -v`. ## Rolling back Switching back to old code does not undo database migrations. Check that the old version can read the current schema before rolling back; a successful start alone does not prove compatibility. If you need to restore data, keep a copy of the current database and [restore the pre-upgrade backup](https://docs.calends.date/en/data/backup.md#restore) on a compatible version. Do not give your only migrated database to an older version whose compatibility is unknown. --- # Local development URL: https://docs.calends.date/en/self-host/development/ Markdown: https://docs.calends.date/en/self-host/development.md Description: Run a development copy of Calends, the common commands, how the code is laid out, and what to check before a pull request. Use this guide to start a development environment and run checks before changing Calends source code. 1. Install Node.js 24, clone the repository and run the setup commands below. 2. Open the local app; follow the instructions for `.dev.vars` if you need to bypass sign-in. 3. Run checks relevant to your changes, then review the full checklist before submitting. ## Start You'll need Node.js 24. ```bash git clone https://github.com/imetn/calends && cd calends npm ci npm run db:migrate:local npm run dev ``` To bypass sign-in during development, add `DEV_BYPASS_AUTH=1` to `.dev.vars`, preserving existing contents. `npm run dev` starts two processes: Vite (front end with hot reload, bound to `0.0.0.0:5173` with LAN and Tailscale `*.ts.net` access) and wrangler (the Worker and a local D1, `:8787`), with a watchdog that automatically restarts the Worker if its port stops responding without restarting Vite. Open `http://127.0.0.1:5173` locally. The local database is kept in `.wrangler/state` at the repository root. > **DANGER**: `DEV_BYPASS_AUTH=1` skips sign-in entirely. Only put it in your local `.dev.vars`; never configure it in production. ## Common commands | Command | What it does | | --- | --- | | `npm test` | Unit tests (billing, phases, metrics, shared plans, categories and more) | | `npm run typecheck` | TypeScript type check | | `npm run lint` | oxlint | | `npm run format` / `npm run format:check` | Prettier format / check | | `npm run i18n:check` | Checks every language has every string | | `npm run build` | Production build | | `npm run email:preview` | Renders every reminder email with sample data into `.preview/email/` as HTML; sends nothing | ## Code layout ```text app/src/ app and public page shared/ billing, phases, metrics, FX, masking, i18n — shared by browser and Worker worker/ API, auth (password + passkeys), MCP, reminders and channels, backup, ICS worker/migrations/ D1 / SQLite schema docker/ self-hosting image entrypoint ``` Stack: React 19, the React Compiler and Vite for the app, with HeroUI / React Aria for dialogs, menus and controls; shadcn/ui for the public page; Cloudflare Workers + D1 on the server. ## Before a pull request ```bash npm run typecheck && npm run lint && npm run format:check && npm run i18n:check && npm test && npm run build ``` A few ground rules (see `CONTRIBUTING.md` in the repository): - **Domain logic lives in `shared/`** and must run in both the browser and the Worker — no DOM or Node APIs. Add unit tests in `shared/*.test.ts` for billing, phase or metric changes. - **Every user-visible string goes through `t()`**, and never at module top level. Add new strings to `en` and `zh-CN` at least. - **Keep stored data compatible.** Old records must keep working; schema changes go in a new file under `worker/migrations/`; new data must round-trip through [backups](https://docs.calends.date/en/data/backup.md). - **Privacy**: anything that could identify a person or account stays off the public page; `shared/mask.ts` allow-lists what's shared. - Keep the UI consistent with existing components and check phone width (390px), desktop, light and dark. Use an isolated `.wrangler/state` and fictional data for import, restore and migration checks. The public demo is a dedicated deployment, not an `npm run demo` seed command. Read the repository’s `AGENTS.md`, `ARCHITECTURE.md` and `CONTRIBUTING.md` before changing a subsystem. --- # Translating URL: https://docs.calends.date/en/self-host/translate/ Markdown: https://docs.calends.date/en/self-host/translate.md Description: Where Calends' interface strings live, and how to improve a translation or add a new language. Improve a translation or add a language by updating locale files, preserving placeholders and running generation checks. The Calends interface is available in 14 languages: English, 简体中文, 繁體中文(台灣), 繁體中文(香港), 日本語, 한국어, Español, Français, Deutsch, Português (Brasil), Русский, Türkçe, Bahasa Indonesia and Tiếng Việt. An English (Australia) (`en-AU`) regional option reuses English strings while preserving Australian date and number formatting, without a separate message directory. English and Simplified Chinese are the source languages. ## Where the strings are ```text shared/locales//.json ``` One folder per language, split by module into nested JSON files (`settings.json`, `report.json`, `notify.json` and so on). The same strings are used for reminder messages and MCP responses. Rules: - Placeholders such as `{name}` and `{count}` must be kept as they are. - Plurals use CLDR categories: `{ "one": "...", "other": "..." }`. Russian also has `few` and `many`; Chinese, Japanese, Korean, Indonesian and Vietnamese use only `other`. ## Improving a translation 1. Edit the JSON files in that language's folder; 2. run `npm run i18n:check` to make sure nothing is missing or extra; 3. open a pull request. Machine-drafted translations are welcome; a review by a native speaker is even better. ## Adding a language 1. Copy `shared/locales/en` to a new locale folder and translate it; 2. add it to `LOCALES` in `shared/i18n.ts`; 3. copy an existing `app/src/locales/.ts` and change its JSON import path to the new locale directory; 4. run `npm run i18n` to generate files, then `npm run i18n:check`. ## These docs The documentation site (`docs.calends.date`) is available in all 14 languages matching the website, with Simplified Chinese at the root and other languages under their locale paths (such as `/en/`, `/zh-tw/`, `/ja/`). Switch languages from the picker in the top bar.