---
title: "クイックスタート"
description: "Cloudflare Workers、Docker、systemd でデプロイするか、AI エージェントにプロンプトを渡してセットアップします。"
lang: "ja"
version: "1.84.0"
url: "https://docs.calends.date/ja/start/quick-start/"
markdown_url: "https://docs.calends.date/ja/start/quick-start.md"
section: "はじめに"
llms_index: "https://docs.calends.date/llms.txt"
llms_full: "https://docs.calends.date/llms-full.txt"
agents_guide: "https://calends.date/AGENTS.md"
---

# クイックスタート

> Cloudflare Workers、Docker、systemd でデプロイするか、AI エージェントにプロンプトを渡してセットアップします。

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

デプロイ方法を選び、このガイドに沿って Calends を起動し初回ログインを行いましょう。

Calends は Cloudflare Workers、Docker、Linux の systemd のいずれでも同じ機能で動作します。また、ターミナル操作が可能な AI エージェントに下のプロンプトを貼り付けて任せることもできます。

### Cloudflare

**ワンクリックデプロイ**：GitHub README の「Deploy to Cloudflare」ボタンを使うか、
[deploy.workers.cloudflare.com](https://deploy.workers.cloudflare.com/?url=https://github.com/imetn/calends) を開きます。
デプロイ後、Worker の設定で `SETUP_TOKEN` という名前のシークレットを追加してください。これがないとパスワードを設定できません。

**コマンドラインからデプロイ**：

1. リポジトリをクローンし、依存関係をインストールします：

   ```bash
   git clone https://github.com/imetn/calends && cd calends
   npm ci
   ```

2. Cloudflare にログインします：

   ```bash
   npx wrangler login
   ```

3. セットアップトークンを設定します。任意の長いランダム文字列を指定してください。初回パスワード設定時に一度だけ入力します：

   ```bash
   npx wrangler secret put SETUP_TOKEN
   ```

4. デプロイを実行します。フロントエンドのビルド、D1 データベースの自動作成、Worker のデプロイ、マイグレーションの適用をまとめて行います：

   ```bash
   npm run deploy
   ```

5. `https://<your-worker>.workers.dev` を開き、セットアップトークンを入力してパスワードを設定します。

メールリマインダー、Cron トリガー、カスタムドメインの設定については、[Cloudflare Workers + D1](https://docs.calends.date/ja/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   # 初回起動時にワンタイムのセットアップトークンが表示されます
```

`http://localhost:8787` を開き、ログに表示されたセットアップトークンを入力してパスワードを設定します。データは `calends-data` ボリューム内に SQLite として保存されます。

> **CAUTION**: インターネット上に公開する場合は、HTTPS 対応のために Caddy、Nginx、Traefik などのリバースプロキシの背後に配置してください（パスキーは HTTPS が必須です）。リモートホストではポートをループバックにバインドしたままにし、初回ログイン時は `ssh -L 8787:localhost:8787 user@server` を使うか、セットアップトークンを送る前に HTTPS を構成してください。通常は `TRUST_PROXY` を未設定のままにし、[プロキシのルール](https://docs.calends.date/ja/self-host/custom-domain.md)に従ってください。

イメージは `linux/amd64` と `linux/arm64` に対応しており、匿名プルが可能です。GHCR の代替イメージは `ghcr.io/imetn/calends:latest` です。本番環境では `xizozhe/calends:1.84.0` のようにバージョンを固定することを推奨します。Compose、アップグレード、データディレクトリ、スケジュールジョブについては [Docker](https://docs.calends.date/ja/self-host/docker.md) を参照してください。

### AI エージェントに任せる

Claude Code、Codex、Cursor など、ターミナルアクセスを持つコーディングエージェントに以下を貼り付けてください：

```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).
```

## ワンラインインストール（Debian / Ubuntu）

```bash
curl -fsSL https://calends.date/install.sh | sudo bash
```

専用の Node を同梱してインストールし、`127.0.0.1:8787` で Calends を起動します。同じコマンドを再実行すると、データのバックアップと失敗・中断時のロールバック付きでアップグレードできます。ドメインや Web サーバーは自動設定されないため、リバースプロキシと `SITE_URL` は手動で構成してください。詳しくは [systemd での直接実行](https://docs.calends.date/ja/self-host/docker.md#systemd-での直接実行)を参照してください。

## デプロイ後の手順

1. `/login` でセットアップトークンを入力し、8 文字以上のパスワードを設定します。詳しくは[初回セットアップ](https://docs.calends.date/ja/start/first-setup.md)をご覧ください。
2. **設定 → 一般** で、基準通貨・タイムゾーン・言語を選択します。
3. **設定 → セキュリティ** でパスキーを追加すると、Face ID、Touch ID、デバイスのパスコードでログインできます。
4. 最初のサブスクを追加しましょう。`N` を押すか、**アシスタント** にレシートを貼り付けます。
5. リマインダーを受け取るには、設定の **通知チャネル** で少なくとも 1 つの[チャネル](https://docs.calends.date/ja/calendar/channels.md)を追加します。

> **NOTE**: アプリの概要ページは `/overview`、ログインページは `/login` にあります。ログイン状態で `/` を開くと、設定で指定した開始ページ（デフォルトは概要）にリダイレクトされます。未ログイン状態で他のアプリページを開くと `/login?next=...` にリダイレクトされ、ログイン後に元のページへ戻ります。未ログインの訪問者が `/` を開いた場合、公開ページがオンなら `/public` へ、オフなら `/login` へ遷移します。公開ページはデフォルトでオフです。詳しくは[公開ページ](https://docs.calends.date/ja/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 (はじめに)
- [はじめに](https://docs.calends.date/ja/start/introduction.md)
- [クイックスタート](https://docs.calends.date/ja/start/quick-start.md) *(current)*
- [初回セットアップ](https://docs.calends.date/ja/start/first-setup.md)
- [アプリの見方](https://docs.calends.date/ja/start/tour.md)
- [キーボードショートカット](https://docs.calends.date/ja/start/shortcuts.md)

### Reading Order
- Previous: [はじめに](https://docs.calends.date/ja/start/introduction.md)
- Next: [初回セットアップ](https://docs.calends.date/ja/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/ja/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
