---
title: "Quick start"
description: "Deploy with Cloudflare Workers, Docker or systemd, or hand a prompt to an AI agent."
lang: "en"
version: "1.84.0"
url: "https://docs.calends.date/en/start/quick-start/"
markdown_url: "https://docs.calends.date/en/start/quick-start.md"
section: "Getting started"
llms_index: "https://docs.calends.date/llms.txt"
llms_full: "https://docs.calends.date/llms-full.txt"
agents_guide: "https://calends.date/AGENTS.md"
---

# Quick start

> Deploy with Cloudflare Workers, Docker or systemd, or hand a prompt to an AI agent.

- Canonical page: https://docs.calends.date/en/start/quick-start/
- Markdown source: https://docs.calends.date/en/start/quick-start.md
- Calends version: v1.84.0

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://<your-worker>.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).

---

## Related Pages & Global AI Discovery

To explore broader context beyond this page, fetch any of the Markdown or plain-text resources below directly:

### Same Section (Getting started)
- [Introduction](https://docs.calends.date/en/start/introduction.md)
- [Quick start](https://docs.calends.date/en/start/quick-start.md) *(current)*
- [First-time setup](https://docs.calends.date/en/start/first-setup.md)
- [A tour of the app](https://docs.calends.date/en/start/tour.md)
- [Keyboard shortcuts](https://docs.calends.date/en/start/shortcuts.md)

### Reading Order
- Previous: [Introduction](https://docs.calends.date/en/start/introduction.md)
- Next: [First-time setup](https://docs.calends.date/en/start/first-setup.md)

### Global Calends Resources
- Read-only Docs MCP Server (zero auth Streamable HTTP): https://docs.calends.date/mcp
- Complete Docs Index (all 37 topics with `.md` links): https://docs.calends.date/llms.txt
- Complete English Docs Bundle (single file): https://docs.calends.date/llms-full.txt
- Complete Simplified Chinese Docs Bundle: https://docs.calends.date/llms-zh.txt
- Docs AI Agent Guide: https://docs.calends.date/AGENTS.md
- Product Website Overview (Markdown): https://calends.date/en/index.md
- Product LLMs Index & Full Reference: https://calends.date/llms.txt | https://calends.date/llms-full.txt
- Deployment & MCP Agent Guide (AGENTS.md): https://calends.date/AGENTS.md
- FAQ & Calends vs Wallos Comparison (Markdown): https://calends.date/en/faq.md | https://calends.date/en/compare.md
- Complete Changelog (Markdown): https://calends.date/en/releases.md
