警告
自己の責任で使用してください。Cal.diy は Cal.com のオープンソースコミュニティエディションであり、独自の Cal.diy インスタンスをセルフホストしたいユーザー向けです。個人的で本番環境以外の使用を厳密に推奨しています。すべてのインストールおよび設定ステップを慎重に確認してください。セルフホスティングには、サーバー管理、データベース管理、および機密データの保護に関する高度な知識が必要です。これらの責任に対して気が進む場合のみ進めてください。
ヒント
商用および企業向けのスケジューリングインフラストラクチャについては、Cal.diy ではなく Cal.com を使用してください。当社がホストするか、ここからオンプレミスのエンタープライズアクセスにお招きします: https://cal.com/sales
コミュニティ主導のオープンソーススケジューリングプラットフォーム。
GitHub
ディスカッション
·
イシュー
·
貢献
Cal.diy は、コミュニティ主導の完全オープンソーススケジューリングプラットフォームです。すべてのエンタープライズ・商用コードを削除した Cal.com のフォークです。
Cal.diy は100% MIT ライセンスで、専有の「Enterprise Edition」機能はありません。スケジューリングインフラストラクチャを完全にコントロールしたい個人およびセルフホスター向けに設計されており、商用依存関係は一切ありません。
- エンタープライズ機能なし — Teams、Organizations、Insights、Workflows、SSO/SAML などの EE 限定機能が削除されています
- ライセンスキーが不要 — すべてがそのまま動作します。Cal.com アカウントやライセンスは不要です
- 100% オープンソース — コード全体が MIT ライセンスの下で公開されており、「Open Core」の分割はありません
- コミュニティ保守 — コントリビューションは大歓迎で、このプロジェクトに直接統合されます(CONTRIBUTING.md を参照)
注: Cal.diy はセルフホストプロジェクトです。ホステッド版またはマネージド版はありません。あなた自身のインフラストラクチャで実行します。
ローカル環境で実行するには、以下の簡単なステップに従ってください。
Cal.diy を実行するために必要なものは以下の通りです。
- Node.js (バージョン:>=18.x)
- PostgreSQL (バージョン:>=13.x)
- Yarn (推奨)
利用可能な統合のいずれかを有効にしたい場合は、それぞれの追加認証情報を取得したいかもしれません。詳細については、下の統合セクションを参照してください。
-
リポジトリをクローンします(またはフォーク)
git clone https://github.com/calcom/cal.diy.git
Windows を使用している場合は、以下のコマンドを Git Bash で管理者権限で実行してください:
git clone -c core.symlinks=true https://github.com/calcom/cal.diy.git -
プロジェクト フォルダに移動します
cd cal.diy -
yarn でパッケージをインストールします
yarn
-
.envファイルを設定します.env.exampleを.envにコピーしますopenssl rand -base64 32を使用してキーを生成し、.envファイルのNEXTAUTH_SECRETの下に追加します。openssl rand -base64 24を使用してキーを生成し、.envファイルのCALENDSO_ENCRYPTION_KEYの下に追加します。
Windows ユーザー向け: Prisma エラー(
unexpected character / in variable name)を回避するため、packages/prisma/.envシンボリックリンクを実ファイルのコピーに置き換えてください:# Git Bash / WSL rm packages/prisma/.env && cp .env packages/prisma/.env
-
Node を設定します ドキュメントの指示に従ってプロジェクトの要件を満たさない Node バージョンを使用している場合、「nvm」(Node Version Manager)を使用するとプロジェクトが必要とするバージョンで Node を使用できます:
nvm use
まず特定のバージョンをインストールしてから使用する必要があるかもしれません:
nvm install && nvm usenvm はこちらからインストールできます。
- Docker と Docker Compose のインストールが必要です
- いくつかのテストユーザーを含むローカル Postgres インスタンスを起動します - 認証情報はコンソールに出力されます
yarn dx作成されたデフォルト認証情報:
| メール | パスワード | ロール |
|---|---|---|
free@example.com |
free |
無料ユーザー |
pro@example.com |
pro |
プロユーザー |
trial@example.com |
trial |
トライアルユーザー |
admin@example.com |
ADMINadmin2022! |
管理者ユーザー |
onboarding@example.com |
onboarding |
オンボーディング未完了 |
これらの認証情報のいずれかを使用して http://localhost:3000 にサインインできます
ヒント:シード済みユーザーの完全なリストと詳細を表示するには、
yarn db-studioを実行して http://localhost:5555 にアクセスしてください
-
シェル スクリプトに
export NODE_OPTIONS="--max-old-space-size=16384"を追加して、Node プロセスのメモリ制限を増やすことができます。または、アプリケーションを実行する前にターミナルでこれを実行できます。16384 を Node プロセスに割り当てたい RAM の量に置き換えてください。 -
.env ファイルに
NEXT_PUBLIC_LOGGER_LEVEL={level}を追加して、すべての tRPC クエリとミューテーションのログ出力の詳細度を制御できます。
{level} は以下のいずれかです:0= silly
1= trace
2= debug
3= info
4= warn
5= error
6= fatal.env ファイルで
NEXT_PUBLIC_LOGGER_LEVEL={level}を設定すると、そのレベル以上のログが有効になります。仕組みは以下の通りです:ロガーは指定されたレベル以上のログをすべて含みます。例えば:\
NEXT_PUBLIC_LOGGER_LEVEL=2に設定した場合、レベル 2(debug)以上からログします。つまり、レベル 2(debug)、3(info)、4(warn)、5(error)、6(fatal)がログされます。\NEXT_PUBLIC_LOGGER_LEVEL=3に設定した場合、レベル 3(info)以上からログします。つまり、レベル 3(info)、4(warn)、5(error)、6(fatal)がログされますが、レベル 2(debug)とレベル 1(trace)は無視されます。\
echo 'NEXT_PUBLIC_LOGGER_LEVEL=3' >> .env例えば、ロガーのレベルを info に設定する場合です。
-
以下のボタンをクリックして、このプロジェクトを Gitpod で開きます。
-
これにより、必要な依存関係がすべてインストール済みの、ブラウザで完全に構成されたワークスペースが開きます。
-
.envファイル内の環境変数を設定してください。<user>、<pass>、<db-host>、<db-port>を適用可能な値に置き換えてください。DATABASE_URL='postgresql://<user>:<pass>@<db-host>:<db-port>'DATABASE_URL の設定方法が分からない場合は、こちらの手順に従ってクイックローカル DB を作成してください。
-
ダウンロードして PostgreSQL をローカルにインストールしてください(まだの場合)。
-
createDB <DB name>を実行して独自のローカル DB を作成してください。 -
作成した DB で psql シェルを開いてください:
psql -h localhost -U postgres -d <DB name> -
すべての情報を抽出して DATABASE_URL に追加してください。URL は以下のようになります:
postgresql://postgres:postgres@localhost:5432/Your-DB-Name。ポートは設定可能であり、5432 である必要はありません。
ローカル DB を作成したくない場合は、railway.app、Northflank、render などのサービスを使用することもできます。
-
-
.envからDATABASE_URLをコピーして.env.appStoreに貼り付けてください。 -
Prisma スキーマを使用してデータベースをセットアップしてください(
packages/prisma/schema.prismaに含まれています)。開発環境では以下を実行してください:
yarn workspace @calcom/prisma db-migrate
本番環境では以下を実行してください:
yarn workspace @calcom/prisma db-deploy
-
開発中に送信されたメールを表示するために mailhog を実行してください。
注:
E2E_TEST_MAILHOG_ENABLEDが「1」の場合は必須です。docker pull mailhog/mailhog docker run -d -p 8025:8025 -p 1025:1025 mailhog/mailhog
-
実行してください(開発モード)
yarn dev
-
Prisma Studio を開いてデータベースコンテンツを確認または変更してください:
yarn db-studio
-
Userモデルをクリックして新しいユーザーレコードを追加してください。 -
email、username、passwordフィールドを入力し、metadataを空の{}に設定してください(BCrypt でパスワードを暗号化することを忘れずに)。その後Save 1 Recordをクリックして最初のユーザーを作成してください。新しいユーザーはデフォルトで
TRIALプランに設定されています。packages/prisma/schema.prismaファイルでこの動作をニーズに合わせて調整することをお勧めします。 -
ブラウザを http://localhost:3000 で開き、作成したばかりの最初のユーザーでログインしてください。
以下を実行してローカル DB をシードしてください:
cd packages/prisma
yarn db-seed上記のコマンドはローカル DB をダミーユーザーで埋めます。
環境変数 NEXTAUTH_URL を正しい値に設定してください。ローカルで実行している場合は、.env.example のドキュメントに記載されているように、値は http://localhost:3000 である必要があります。
# In a terminal just run:
yarn test-e2e
# To open the last HTML report run:
yarn playwright show-report test-results/reports/playwright-html-reportnpx playwright install を実行してテストブラウザをダウンロードし、yarn test-e2e 実行時に以下のエラーを解決してください:
📖 GitHub README の原文を読む(English / 参考情報)
— GitHub から取得した原文。完全版は GitHub へ。
Warning
Use at your own risk. Cal.diy is the open source community edition of Cal.com and it is intended for users who want to self-host their own Cal.diy instance. It is strictly recommended for personal, non-production use. Please review all installation and configuration steps carefully. Self-hosting requires advanced knowledge of server administration, database management, and securing sensitive data. Proceed only if you are comfortable with these responsibilities.
Tip
For any commercial and enterprise-ready scheduling infrastructure, use Cal.com, not Cal.diy; hosted by us or get invited to on-prem enterprise access here: https://cal.com/sales
The community-driven, open-source scheduling platform.
GitHub
Discussions
·
Issues
·
Contributing
Cal.diy is the community-driven, fully open-source scheduling platform — a fork of Cal.com with all enterprise/commercial code removed.
Cal.diy is 100% MIT-licensed with no proprietary "Enterprise Edition" features. It's designed for individuals and self-hosters who want full control over their scheduling infrastructure without any commercial dependencies.
- No enterprise features — Teams, Organizations, Insights, Workflows, SSO/SAML, and other EE-only features have been removed
- No license key required — Everything works out of the box, no Cal.com account or license needed
- 100% open source — The entire codebase is licensed under MIT, no "Open Core" split
- Community-maintained — Contributions are welcome and go directly into this project (see CONTRIBUTING.md)
Note: Cal.diy is a self-hosted project. There is no hosted/managed version. You run it on your own infrastructure.
To get a local copy up and running, please follow these simple steps.
Here’s what you need to run Cal.diy.
- Node.js (Version: >=18.x)
- PostgreSQL (Version: >=13.x)
- Yarn (recommended)
If you want to enable any of the available integrations, you may want to obtain additional credentials for each one. More details on this can be found below under the integrations section.
-
Clone the repo (or fork https://github.com/calcom/cal.diy/fork)
git clone https://github.com/calcom/cal.diy.git
If you are on Windows, run the following command in Git Bash with admin privileges:
git clone -c core.symlinks=true https://github.com/calcom/cal.diy.git -
Go to the project folder
cd cal.diy -
Install packages with yarn
yarn
-
Set up your
.envfile- Duplicate
.env.exampleto.env - Use
openssl rand -base64 32to generate a key and add it underNEXTAUTH_SECRETin the.envfile. - Use
openssl rand -base64 24to generate a key and add it underCALENDSO_ENCRYPTION_KEYin the.envfile.
- Duplicate
Windows users: Replace the
packages/prisma/.envsymlink with a real copy to avoid a Prisma error (unexpected character / in variable name):# Git Bash / WSL rm packages/prisma/.env && cp .env packages/prisma/.env
-
Set up Node If your Node version does not meet the project's requirements as instructed by the docs, "nvm" (Node Version Manager) allows using Node at the version required by the project:
nvm use
You first might need to install the specific version and then use it:
nvm install && nvm useYou can install nvm from here.
- Requires Docker and Docker Compose to be installed
- Will start a local Postgres instance with a few test users - the credentials will be logged in the console
yarn dxDefault credentials created:
| Password | Role | |
|---|---|---|
free@example.com |
free |
Free user |
pro@example.com |
pro |
Pro user |
trial@example.com |
trial |
Trial user |
admin@example.com |
ADMINadmin2022! |
Admin user |
onboarding@example.com |
onboarding |
Onboarding incomplete |
You can use any of these credentials to sign in at http://localhost:3000
Tip: To view the full list of seeded users and their details, run
yarn db-studioand visit http://localhost:5555
-
Add
export NODE_OPTIONS="--max-old-space-size=16384"to your shell script to increase the memory limit for the node process. Alternatively, you can run this in your terminal before running the app. Replace 16384 with the amount of RAM you want to allocate to the node process. -
Add
NEXT_PUBLIC_LOGGER_LEVEL={level}to your .env file to control the logging verbosity for all tRPC queries and mutations.
Where {level} can be one of the following:0for silly
1for trace
2for debug
3for info
4for warn
5for error
6for fatalWhen you set
NEXT_PUBLIC_LOGGER_LEVEL={level}in your .env file, it enables logging at that level and higher. Here's how it works:The logger will include all logs that are at the specified level or higher. For example: \
- If you set
NEXT_PUBLIC_LOGGER_LEVEL=2, it will log from level 2 (debug) upwards, meaning levels 2 (debug), 3 (info), 4 (warn), 5 (error), and 6 (fatal) will be logged. \ - If you set
NEXT_PUBLIC_LOGGER_LEVEL=3, it will log from level 3 (info) upwards, meaning levels 3 (info), 4 (warn), 5 (error), and 6 (fatal) will be logged, but level 2 (debug) and level 1 (trace) will be ignored. \
- If you set
echo 'NEXT_PUBLIC_LOGGER_LEVEL=3' >> .envfor Logger level to be set at info, for example.
-
Click the button below to open this project in Gitpod.
-
This will open a fully configured workspace in your browser with all the necessary dependencies already installed.
-
Configure environment variables in the
.envfile. Replace<user>,<pass>,<db-host>, and<db-port>with their applicable valuesDATABASE_URL='postgresql://<user>:<pass>@<db-host>:<db-port>'If you don't know how to configure the DATABASE_URL, then follow the steps here to create a quick local DB
-
Download and install PostgreSQL locally (if you don't have it already).
-
Create your own local db by executing
createDB <DB name> -
Now open your psql shell with the DB you created:
psql -h localhost -U postgres -d <DB name> -
Inside the psql shell execute
\conninfo. And you will get the following info.
-
Now extract all the info and add it to your DATABASE_URL. The url would look something like this
postgresql://postgres:postgres@localhost:5432/Your-DB-Name. The port is configurable and does not have to be 5432.
If you don't want to create a local DB. Then you can also consider using services like railway.app, Northflank or render.
-
-
Copy and paste your
DATABASE_URLfrom.envto.env.appStore. -
Set up the database using the Prisma schema (found in
packages/prisma/schema.prisma)In a development environment, run:
yarn workspace @calcom/prisma db-migrate
In a production environment, run:
yarn workspace @calcom/prisma db-deploy
-
Run mailhog to view emails sent during development
NOTE: Required when
E2E_TEST_MAILHOG_ENABLEDis "1"docker pull mailhog/mailhog docker run -d -p 8025:8025 -p 1025:1025 mailhog/mailhog
-
Run (in development mode)
yarn dev
-
Open Prisma Studio to look at or modify the database content:
yarn db-studio
-
Click on the
Usermodel to add a new user record. -
Fill out the fields
email,username,password, and setmetadatato empty{}(remembering to encrypt your password with BCrypt) and clickSave 1 Recordto create your first user.New users are set on a
TRIALplan by default. You might want to adjust this behavior to your needs in thepackages/prisma/schema.prismafile. -
Open a browser to http://localhost:3000 and login with your just created, first user.
Seed the local db by running
cd packages/prisma
yarn db-seedThe above command will populate the local db with dummy users.
Be sure to set the environment variable NEXTAUTH_URL to the correct value. If you are running locally, as the documentation within .env.example mentions, the value should be http://localhost:3000.
# In a terminal just run:
yarn test-e2e
# To open the last HTML report run:
yarn playwright show-report test-results/reports/playwright-html-reportRun npx playwright install to download test browsers and resolve the error below when running yarn test-e2e: