# Instalação Cal.dyi nova versão Cal

Link: [https://github.com/calcom/cal.diy/tree/main](https://github.com/calcom/cal.diy/tree/main) git clone [https://github.com/calcom/cal.diy.git](https://github.com/calcom/cal.diy.git)  
Em 24/08/2026  
  
<span style="color: rgb(224, 62, 45);">**A ÚLTIMA VERSÃO CAL.COM FOI LANÇADA EM OUTUBRO/2025 COM A VERSÃO 5.8.7 DEPOIS PASSOU A SER CAL.DIY SEM RECURSOS ENTERPRISE.**</span>

<svg aria-hidden="true" class="octicon octicon-alert mr-2" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>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.

<svg aria-hidden="true" class="octicon octicon-light-bulb mr-2" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>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](https://cal.com/sales)

[ ![Logo](https://user-images.githubusercontent.com/8019099/210054112-5955e812-a76e-4160-9ddd-58f2c72f1cce.png) ](https://github.com/calcom/cal.diy)

### Cal.diy

<div class="markdown-heading" dir="auto" id="bkmrk--1">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#caldiy)</div>The community-driven, open-source scheduling platform.   
[**GitHub**](https://github.com/calcom/cal.diy)   
[Issues](https://github.com/calcom/cal.diy/issues) · [Contributing](https://github.com/calcom/cal.diy/blob/main/CONTRIBUTING.md)

[![License](https://camo.githubusercontent.com/561941899c1e984cb7a9a4c924b0040d6e88e275ff6f4bfdd81d21a43ed5b69e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d707572706c65)](https://github.com/calcom/cal.diy/blob/main/LICENSE) [![Github Stars](https://camo.githubusercontent.com/330507937ffa6afc9e639820b2277607c580f50da1d98b4c2097c2ee14c8f433/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f63616c636f6d2f63616c2e646979)](https://github.com/calcom/cal.diy/stargazers) [![Commits-per-month](https://camo.githubusercontent.com/d9ff842205fcedc3eea2e4689fe273808c6d69b1e3b6f087a93d40d6e72b9a2a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d69742d61637469766974792f6d2f63616c636f6d2f63616c2e646979)](https://github.com/calcom/cal.diy/pulse) [![Docker Pulls](https://camo.githubusercontent.com/9cb2e17f78ce2f70d0d85b9cfddf0206111fedabf68972deb5713529b2d07462/68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f70756c6c732f63616c636f6d2f63616c2e646979)](https://hub.docker.com/r/calcom/cal.diy) [![](https://camo.githubusercontent.com/31a98e2f6168c80a1341bf98ceb889c7a2dab7dce5ada2013b2cca51e3a79a23/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f48656c7025323057616e7465642d436f6e747269627574652d626c7565)](https://github.com/calcom/cal.diy/issues?q=is:issue+is:open+label:%22%F0%9F%99%8B%F0%9F%8F%BB%E2%80%8D%E2%99%82%EF%B8%8Fhelp+wanted%22) [![](https://camo.githubusercontent.com/127f26818af61d3b4b9e5a0333cec3d4fad20e7dcf3dddf9b7cd12ee418bd1ca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f6e7472696275746f72253230436f76656e616e742d312e342d707572706c65)](https://contributor-covenant.org/version/1/4/code-of-conduct/)

## About Cal.diy  
  


[![image.png](https://capacita.multiautomacoes.com.br/uploads/images/gallery/2026-08/scaled-1680-/sqkimage.png)](https://capacita.multiautomacoes.com.br/uploads/images/gallery/2026-08/sqkimage.png)

<div class="markdown-heading" dir="auto" id="bkmrk--5">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#about-caldiy)</div>[![booking-screen](https://private-user-images.githubusercontent.com/8019099/250881880-407e727e-ff19-4ca4-bcae-049dca05cf02.gif?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODc1NjY5NjcsIm5iZiI6MTc4NzU2NjY2NywicGF0aCI6Ii84MDE5MDk5LzI1MDg4MTg4MC00MDdlNzI3ZS1mZjE5LTRjYTQtYmNhZS0wNDlkY2EwNWNmMDIuZ2lmP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDgyNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA4MjRUMTAxNzQ3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDIzMjQyNjFkNWQxOTkyZGE5ZTVhNDM3NzI4OTUwZjk5MTJhY2IzYWE1ODBhNjVmMTI3YThjMWIwNzZhZTE1NiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGZ2lmIn0.f48zLAzOSicalr8VwYFxq3JMxta96abVd0ujmgGy5h8)](https://private-user-images.githubusercontent.com/8019099/250881880-407e727e-ff19-4ca4-bcae-049dca05cf02.gif?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODc1NjY5NjcsIm5iZiI6MTc4NzU2NjY2NywicGF0aCI6Ii84MDE5MDk5LzI1MDg4MTg4MC00MDdlNzI3ZS1mZjE5LTRjYTQtYmNhZS0wNDlkY2EwNWNmMDIuZ2lmP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDgyNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA4MjRUMTAxNzQ3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDIzMjQyNjFkNWQxOTkyZGE5ZTVhNDM3NzI4OTUwZjk5MTJhY2IzYWE1ODBhNjVmMTI3YThjMWIwNzZhZTE1NiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGZ2lmIn0.f48zLAzOSicalr8VwYFxq3JMxta96abVd0ujmgGy5h8)

**Cal.diy** is the community-driven, fully open-source scheduling platform — a fork of [Cal.com](https://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.

### What's different from Cal.com?

<div class="markdown-heading" dir="auto" id="bkmrk--8">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#whats-different-from-calcom)</div>- **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](https://github.com/calcom/cal.diy/blob/main/CONTRIBUTING.md))

> **Note:** Cal.diy is a self-hosted project. There is no hosted/managed version. You run it on your own infrastructure.

### Built With

<div class="markdown-heading" dir="auto" id="bkmrk--10">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#built-with)</div>- [Next.js](https://nextjs.org/)
- [tRPC](https://trpc.io/)
- [React.js](https://reactjs.org/)
- [Tailwind CSS](https://tailwindcss.com/)
- [Prisma.io](https://prisma.io/)
- [Daily.co](https://daily.co/)

## Getting Started

<div class="markdown-heading" dir="auto" id="bkmrk--12">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#getting-started)</div>To get a local copy up and running, please follow these simple steps.

### Prerequisites

<div class="markdown-heading" dir="auto" id="bkmrk--14">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#prerequisites)</div>Here’s what you need to run Cal.diy.

- Node.js (Version: &gt;=18.x)
- PostgreSQL (Version: &gt;=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](https://github.com/calcom/cal.diy/tree/main#integrations).

## Development

<div class="markdown-heading" dir="auto" id="bkmrk--16">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#development)</div>### Setup

<div class="markdown-heading" dir="auto" id="bkmrk--18">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#setup)</div>1. Clone the repo (or fork [https://github.com/calcom/cal.diy/fork](https://github.com/calcom/cal.diy/fork))
    
    ```
    git clone https://github.com/calcom/cal.diy.git
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>> 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`
2. Go to the project folder
    
    ```
    cd cal.diy
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>
3. Install packages with yarn
    
    ```
    yarn
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>
4. Set up your `.env` file
    
    
    - Duplicate `.env.example` to `.env`
    - Use `openssl rand -base64 32` to generate a key and add it under `NEXTAUTH_SECRET` in the `.env` file.
    - Use `openssl rand -base64 24` to generate a key and add it under `CALENDSO_ENCRYPTION_KEY` in the `.env` file.

> **Windows users:** Replace the `packages/prisma/.env` symlink 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
> ```
> 
> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
> </div></div>

5. 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
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>You first might need to install the specific version and then use it:
    
    ```
    nvm install && nvm use
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>You can install nvm from [here](https://github.com/nvm-sh/nvm).

#### Quick start with `yarn dx`

<div class="markdown-heading" dir="auto" id="bkmrk--20">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#quick-start-with-yarn-dx)</div>> - **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 dx
```

<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" id="bkmrk--22"><div class="zeroclipboard-container">  
</div></div>**Default credentials created:**

<table id="bkmrk-email-password-role-"><thead><tr><th>Email</th><th>Password</th><th>Role</th></tr></thead><tbody><tr><td>`free@example.com`</td><td>`free`</td><td>Free user</td></tr><tr><td>`pro@example.com`</td><td>`pro`</td><td>Pro user</td></tr><tr><td>`trial@example.com`</td><td>`trial`</td><td>Trial user</td></tr><tr><td>`admin@example.com`</td><td>`ADMINadmin2022!`</td><td>Admin user</td></tr><tr><td>`onboarding@example.com`</td><td>`onboarding`</td><td>Onboarding incomplete</td></tr></tbody></table>

You can use any of these credentials to sign in at [http://localhost:3000](http://localhost:3000)

> **Tip**: To view the full list of seeded users and their details, run `yarn db-studio` and visit [http://localhost:5555](http://localhost:5555)

#### Development tip

<div class="markdown-heading" dir="auto" id="bkmrk--23">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#development-tip)</div>1. 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.
2. 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:
    
    `0` for silly   
    `1` for trace   
    `2` for debug   
    `3` for info   
    `4` for warn   
    `5` for error   
    `6` for fatal
    
    When 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. \\

```
echo 'NEXT_PUBLIC_LOGGER_LEVEL=3' >> .env
```

<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" id="bkmrk--25"><div class="zeroclipboard-container">  
</div></div>for Logger level to be set at info, for example.

#### Gitpod Setup

<div class="markdown-heading" dir="auto" id="bkmrk--26">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#gitpod-setup)</div>1. Click the button below to open this project in Gitpod.
2. This will open a fully configured workspace in your browser with all the necessary dependencies already installed.

[![Open in Gitpod](https://camo.githubusercontent.com/6a4edb76a7e92e0faad09a11e42cba7c39803ee6723f8cb1b801f91113d59695/68747470733a2f2f676974706f642e696f2f627574746f6e2f6f70656e2d696e2d676974706f642e737667)](https://gitpod.io/#https://github.com/calcom/cal.diy)

#### Manual setup

<div class="markdown-heading" dir="auto" id="bkmrk--29">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#manual-setup)</div>1. Configure environment variables in the `.env` file. Replace `<user>`, `<pass>`, `<db-host>`, and `<db-port>` with their applicable values
    
    ```
    DATABASE_URL='postgresql://<user>:<pass>@<db-host>:<db-port>'
    
    ```
    
    <div class="snippet-clipboard-content notranslate position-relative overflow-auto"><div class="zeroclipboard-container">  
    </div></div>

<details id="bkmrk-if-you-don%27t-know-ho"><summary>If you don't know how to configure the DATABASE\_URL, then follow the steps here to create a quick local DB</summary>

1. 
2. 
3. 
4. [![image](https://user-images.githubusercontent.com/39329182/236612291-51d87f69-6dc1-4a23-bf4d-1ca1754e0a35.png)](https://user-images.githubusercontent.com/39329182/236612291-51d87f69-6dc1-4a23-bf4d-1ca1754e0a35.png)
5. 

</details>1. If you don't want to create a local DB. Then you can also consider using services like railway.app, Northflank or render.
    
    
    - [Setup postgres DB with railway.app](https://docs.railway.app/guides/postgresql)
    - [Setup postgres DB with Northflank](https://northflank.com/guides/deploy-postgres-database-on-northflank)
    - [Setup postgres DB with render](https://render.com/docs/databases)
2. Copy and paste your `DATABASE_URL` from `.env` to `.env.appStore`.
3. 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
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>In a production environment, run:
    
    ```
    yarn workspace @calcom/prisma db-deploy
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>

**Note for Windows/PowerShell users:** If running the database deployment scripts fails with an error stating `Environment variable not found: DATABASE_DIRECT_URL`, Turbo might be failing to inject the root `.env` variables. You can bypass this by executing the commands directly from the prisma package directory in PowerShell:

```
cd packages/prisma
$env:DATABASE_URL="postgresql://postgres:YOUR_PASSWORD@localhost:5432/postgres"; $env:DATABASE_DIRECT_URL="postgresql://postgres:YOUR_PASSWORD@localhost:5432/postgres"
npx prisma db push
cd ../..
```

<div class="highlight highlight-source-powershell notranslate position-relative overflow-auto" dir="auto" id="bkmrk--31"><div class="zeroclipboard-container">  
</div></div>4. Run [mailhog](https://github.com/mailhog/MailHog) to view emails sent during development
    
    > ***NOTE:*** Required when `E2E_TEST_MAILHOG_ENABLED` is "1"
    
    ```
    docker pull mailhog/mailhog
    docker run -d -p 8025:8025 -p 1025:1025 mailhog/mailhog
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>
5. Run (in development mode)
    
    ```
    yarn dev
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>

#### Setting up your first user

<div class="markdown-heading" dir="auto" id="bkmrk--32">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#setting-up-your-first-user)</div>##### Approach 1

<div class="markdown-heading" dir="auto" id="bkmrk--34">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#approach-1)</div>1. Open [Prisma Studio](https://prisma.io/studio) to look at or modify the database content:
    
    ```
    yarn db-studio
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>
2. Click on the `User` model to add a new user record.
3. Fill out the fields `email`, `username`, `password`, and set `metadata` to empty `{}` (remembering to encrypt your password with [BCrypt](https://bcrypt-generator.com/)) and click `Save 1 Record` to create your first user.
    
    > New users are set on a `TRIAL` plan by default. You might want to adjust this behavior to your needs in the `packages/prisma/schema.prisma` file.
4. Open a browser to [http://localhost:3000](http://localhost:3000) and login with your just created, first user.

##### Approach 2

<div class="markdown-heading" dir="auto" id="bkmrk--36">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#approach-2)</div>Seed the local db by running

```
cd packages/prisma
yarn db-seed
```

<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" id="bkmrk--38"><div class="zeroclipboard-container">  
</div></div>The above command will populate the local db with dummy users.

### E2E-Testing

<div class="markdown-heading" dir="auto" id="bkmrk--39">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#e2e-testing)</div>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-report
```

<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" id="bkmrk--41"><div class="zeroclipboard-container">  
</div></div>#### Resolving issues

<div class="markdown-heading" dir="auto" id="bkmrk--42">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#resolving-issues)</div>##### E2E test browsers not installed

<div class="markdown-heading" dir="auto" id="bkmrk--44">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#e2e-test-browsers-not-installed)</div>Run `npx playwright install` to download test browsers and resolve the error below when running `yarn test-e2e`:

```
Executable doesn't exist at /Users/alice/Library/Caches/ms-playwright/chromium-1048/chrome-mac/Chromium.app/Contents/MacOS/Chromium

```

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" id="bkmrk--46"><div class="zeroclipboard-container">  
</div></div>### Upgrading from earlier versions

<div class="markdown-heading" dir="auto" id="bkmrk--47">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#upgrading-from-earlier-versions)</div>1. Pull the current version:
    
    ```
    git pull
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>
2. Check if dependencies got added/updated/removed
    
    ```
    yarn
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>
3. Apply database migrations by running **one of** the following commands:
    
    In a development environment, run:
    
    ```
    yarn workspace @calcom/prisma db-migrate
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>(This can clear your development database in some cases)
    
    In a production environment, run:
    
    ```
    yarn workspace @calcom/prisma db-deploy
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>
4. Check for `.env` variables changes
    
    ```
    yarn predev
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>
5. Start the server. In a development environment, just do:
    
    ```
    yarn dev
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>For a production build, run for example:
    
    ```
    yarn build
    yarn start
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>
6. Enjoy the new version.

## Deployment

<div class="markdown-heading" dir="auto" id="bkmrk--49">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#deployment)</div>### Docker

<div class="markdown-heading" dir="auto" id="bkmrk--51">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#docker)</div>The Docker image can be found on DockerHub at [https://hub.docker.com/r/calcom/cal.diy](https://hub.docker.com/r/calcom/cal.diy).

**Note for ARM Users**: Use the {version}-arm suffix for pulling images. Example: `docker pull calcom/cal.diy:v5.6.19-arm`.

#### Requirements

<div class="markdown-heading" dir="auto" id="bkmrk--53">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#requirements)</div>Make sure you have `docker` &amp; `docker compose` installed on the server / system. Both are installed by most docker utilities, including Docker Desktop and Rancher Desktop.

Note: `docker compose` without the hyphen is now the primary method of using docker-compose, per the Docker documentation.

#### Running Cal.diy with Docker Compose

<div class="markdown-heading" dir="auto" id="bkmrk--55">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#running-caldiy-with-docker-compose)</div>1. Clone the repository
    
    ```
    git clone --recursive https://github.com/calcom/cal.diy.git
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>
2. Change into the directory
    
    ```
    cd cal.diy
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>
3. Prepare your configuration: Rename `.env.example` to `.env` and then update `.env`
    
    ```
    cp .env.example .env
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>Most configurations can be left as-is, but for configuration options see [Important Run-time variables](https://github.com/calcom/cal.diy/tree/main#important-run-time-variables) below.
    
    **Required Secret Keys**
    
    Before starting, you must generate secure values for `NEXTAUTH_SECRET` and `CALENDSO_ENCRYPTION_KEY`. Using the default `secret` placeholder in production is a security risk.
    
    Generate `NEXTAUTH_SECRET` (cookie encryption key):
    
    ```
    openssl rand -base64 32
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>Generate `CALENDSO_ENCRYPTION_KEY` (must be 32 bytes for AES256):
    
    ```
    openssl rand -base64 24
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>Update your `.env` file with these values:
    
    ```
    NEXTAUTH_SECRET=<your_generated_secret>
    CALENDSO_ENCRYPTION_KEY=<your_generated_key>
    ```
    
    <div class="highlight highlight-source-dotenv notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>**Push Notifications (VAPID Keys)** If you see an error like:
    
    ```
    Error: No key set vapidDetails.publicKey
    
    ```
    
    <div class="snippet-clipboard-content notranslate position-relative overflow-auto"><div class="zeroclipboard-container">  
    </div></div>This means your environment variables for Web Push are missing. You must generate and set `NEXT_PUBLIC_VAPID_PUBLIC_KEY` and `VAPID_PRIVATE_KEY`.
    
    Generate them with:
    
    ```
    npx web-push generate-vapid-keys
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>Then update your `.env` file:
    
    ```
    NEXT_PUBLIC_VAPID_PUBLIC_KEY=your_public_key_here
    VAPID_PRIVATE_KEY=your_private_key_here
    ```
    
    <div class="highlight highlight-source-dotenv notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>Do **not** commit real keys to `.env.example` — only placeholders.
    
    Update the appropriate values in your .env file, then proceed.
4. (optional) Pre-Pull the images by running the following command:
    
    ```
    docker compose pull
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>
5. Start Cal.diy via docker compose
    
    To run the complete stack, which includes a local Postgres database, Cal.diy web app, and Prisma Studio:
    
    ```
    docker compose up -d
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>To run Cal.diy web app and Prisma Studio against a remote database, ensure that DATABASE\_URL is configured for an available database and run:
    
    ```
    docker compose up -d calcom studio
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>To run only the Cal.diy web app, ensure that DATABASE\_URL is configured for an available database and run:
    
    ```
    docker compose up -d calcom
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>**Note: to run in attached mode for debugging, remove `-d` from your desired run command.**
6. Open a browser to [http://localhost:3000](http://localhost:3000), or your defined NEXT\_PUBLIC\_WEBAPP\_URL. The first time you run Cal.diy, a setup wizard will initialize. Define your first user, and you're ready to go!
    
    **Note for first-time setup (Calendar integration)**: During the setup wizard, you may encounter a "Connect your Calendar" step that appears to be required. If you do not wish to connect a calendar at this time, you can skip this step by navigating directly to the dashboard at `<NEXT_PUBLIC_WEBAPP_URL>/event-types`. Calendar integrations can be added later from the Settings &gt; Integrations page.

#### Updating Cal.diy

<div class="markdown-heading" dir="auto" id="bkmrk--57">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#updating-caldiy)</div>1. Stop the Cal.diy stack
    
    ```
    docker compose down
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>
2. Pull the latest changes
    
    ```
    docker compose pull
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>
3. Update env vars as necessary.
4. Re-start the Cal.diy stack
    
    ```
    docker compose up -d
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>

#### Building from source with Docker

<div class="markdown-heading" dir="auto" id="bkmrk--59">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#building-from-source-with-docker)</div>1. Clone the repository
    
    ```
    git clone https://github.com/calcom/cal.diy.git
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>
2. Change into the directory
    
    ```
    cd cal.diy
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>
3. Rename `.env.example` to `.env` and then update `.env`
    
    For configuration options see [Build-time variables](https://github.com/calcom/cal.diy/tree/main#build-time-variables) below. Update the appropriate values in your .env file, then proceed.
4. Build the Cal.diy docker image:
    
    Note: Due to application configuration requirements, an available database is currently required during the build process.
    
    a) If hosting elsewhere, configure the `DATABASE_URL` in the .env file, and skip the next step
    
    b) If a local or temporary database is required, start a local database via docker compose.
    
    ```
    docker compose up -d database
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>
5. Build Cal.diy via docker compose (DOCKER\_BUILDKIT=0 must be provided to allow a network bridge to be used at build time. This requirement will be removed in the future)
    
    ```
    DOCKER_BUILDKIT=0 docker compose build calcom
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>
6. Start Cal.diy via docker compose
    
    To run the complete stack, which includes a local Postgres database, Cal.diy web app, and Prisma Studio:
    
    ```
    docker compose up -d
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>To run Cal.diy web app and Prisma Studio against a remote database, ensure that DATABASE\_URL is configured for an available database and run:
    
    ```
    docker compose up -d calcom studio
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>To run only the Cal.diy web app, ensure that DATABASE\_URL is configured for an available database and run:
    
    ```
    docker compose up -d calcom
    ```
    
    <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>**Note: to run in attached mode for debugging, remove `-d` from your desired run command.**
7. Open a browser to [http://localhost:3000](http://localhost:3000), or your defined NEXT\_PUBLIC\_WEBAPP\_URL. The first time you run Cal.diy, a setup wizard will initialize. Define your first user, and you're ready to go!

#### Configuration

<div class="markdown-heading" dir="auto" id="bkmrk--61">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#configuration)</div>##### Important Run-time variables

<div class="markdown-heading" dir="auto" id="bkmrk--63">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#important-run-time-variables)</div>These variables must also be provided at runtime

<table id="bkmrk-variable-description"><thead><tr><th>Variable</th><th>Description</th><th>Required</th><th>Default</th></tr></thead><tbody><tr><td>DATABASE\_URL</td><td>database url with credentials - if using a connection pooler, this setting should point there</td><td>required</td><td>`postgresql://unicorn_user:magical_password@database:5432/calendso`</td></tr><tr><td>NEXT\_PUBLIC\_WEBAPP\_URL</td><td>Base URL of the site. NOTE: if this value differs from the value used at build-time, there will be a slight delay during container start (to update the statically built files).</td><td>optional</td><td>`http://localhost:3000`</td></tr><tr><td>NEXTAUTH\_URL</td><td>Location of the auth server. By default, this is the Cal.diy docker instance itself.</td><td>optional</td><td>`{NEXT_PUBLIC_WEBAPP_URL}/api/auth`</td></tr><tr><td>NEXTAUTH\_SECRET</td><td>Cookie encryption key. Must match build variable. Generate with: `openssl rand -base64 32`</td><td>required</td><td>`secret`</td></tr><tr><td>CALENDSO\_ENCRYPTION\_KEY</td><td>Authentication encryption key (32 bytes for AES256). Must match build variable. Generate with: `openssl rand -base64 24`</td><td>required</td><td>`secret`</td></tr></tbody></table>

##### Build-time variables

<div class="markdown-heading" dir="auto" id="bkmrk--65">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#build-time-variables)</div>If building the image yourself, these variables must be provided at the time of the docker build, and can be provided by updating the .env file. Currently, if you require changes to these variables, you must follow the instructions to build and publish your own image.

<table id="bkmrk-variable-description-1" tabindex="0"><thead><tr><th>Variable</th><th>Description</th><th>Required</th><th>Default</th></tr></thead><tbody><tr><td>DATABASE\_URL</td><td>database url with credentials - if using a connection pooler, this setting should point there</td><td>required</td><td>`postgresql://unicorn_user:magical_password@database:5432/calendso`</td></tr><tr><td>MAX\_OLD\_SPACE\_SIZE</td><td>Needed for Nodejs/NPM build options</td><td>required</td><td>4096</td></tr><tr><td>NEXTAUTH\_SECRET</td><td>Cookie encryption key</td><td>required</td><td>`secret`</td></tr><tr><td>CALENDSO\_ENCRYPTION\_KEY</td><td>Authentication encryption key</td><td>required</td><td>`secret`</td></tr><tr><td>NEXT\_PUBLIC\_WEBAPP\_URL</td><td>Base URL injected into static files</td><td>optional</td><td>`http://localhost:3000`</td></tr><tr><td>NEXT\_PUBLIC\_WEBSITE\_TERMS\_URL</td><td>custom URL for terms and conditions website</td><td>optional</td><td> </td></tr><tr><td>NEXT\_PUBLIC\_WEBSITE\_PRIVACY\_POLICY\_URL</td><td>custom URL for privacy policy website</td><td>optional</td><td> </td></tr><tr><td>CALCOM\_TELEMETRY\_DISABLED</td><td>Allow Cal.diy to collect anonymous usage data (set to `1` to disable)</td><td>optional</td><td> </td></tr></tbody></table>

#### Troubleshooting

<div class="markdown-heading" dir="auto" id="bkmrk--67">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#troubleshooting)</div>##### SSL edge termination

<div class="markdown-heading" dir="auto" id="bkmrk--69">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#ssl-edge-termination)</div>If running behind a load balancer which handles SSL certificates, you will need to add the environmental variable `NODE_TLS_REJECT_UNAUTHORIZED=0` to prevent requests from being rejected. Only do this if you know what you are doing and trust the services/load-balancers directing traffic to your service.

##### Failed to commit changes: Invalid 'prisma.user.create()'

<div class="markdown-heading" dir="auto" id="bkmrk--71">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#failed-to-commit-changes-invalid-prismausercreate)</div>Certain versions may have trouble creating a user if the field `metadata` is empty. Using an empty json object `{}` as the field value should resolve this issue. Also, the `id` field will autoincrement, so you may also try leaving the value of `id` as empty.

##### CLIENT\_FETCH\_ERROR

<div class="markdown-heading" dir="auto" id="bkmrk--73">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#client_fetch_error)</div>If you experience this error, it may be the way the default Auth callback in the server is using the WEBAPP\_URL as a base url. The container does not necessarily have access to the same DNS as your local machine, and therefore needs to be configured to resolve to itself. You may be able to correct this by configuring `NEXTAUTH_URL=http://localhost:3000/api/auth`, to help the backend loop back to itself.

```
docker-calcom-1  | @calcom/web:start: [next-auth][error][CLIENT_FETCH_ERROR]
docker-calcom-1  | @calcom/web:start: https://next-auth.js.org/errors#client_fetch_error request to http://testing.localhost:3000/api/auth/session failed, reason: getaddrinfo ENOTFOUND testing.localhost {
docker-calcom-1  | @calcom/web:start:   error: {
docker-calcom-1  | @calcom/web:start:     message: 'request to http://testing.localhost:3000/api/auth/session failed, reason: getaddrinfo ENOTFOUND testing.localhost',
docker-calcom-1  | @calcom/web:start:     stack: 'FetchError: request to http://testing.localhost:3000/api/auth/session failed, reason: getaddrinfo ENOTFOUND testing.localhost\n' +
docker-calcom-1  | @calcom/web:start:       '    at ClientRequest.<anonymous> (/calcom/node_modules/next/dist/compiled/node-fetch/index.js:1:65756)\n' +
docker-calcom-1  | @calcom/web:start:       '    at ClientRequest.emit (node:events:513:28)\n' +
docker-calcom-1  | @calcom/web:start:       '    at ClientRequest.emit (node:domain:489:12)\n' +
docker-calcom-1  | @calcom/web:start:       '    at Socket.socketErrorListener (node:_http_client:494:9)\n' +
docker-calcom-1  | @calcom/web:start:       '    at Socket.emit (node:events:513:28)\n' +
docker-calcom-1  | @calcom/web:start:       '    at Socket.emit (node:domain:489:12)\n' +
docker-calcom-1  | @calcom/web:start:       '    at emitErrorNT (node:internal/streams/destroy:157:8)\n' +
docker-calcom-1  | @calcom/web:start:       '    at emitErrorCloseNT (node:internal/streams/destroy:122:3)\n' +
docker-calcom-1  | @calcom/web:start:       '    at processTicksAndRejections (node:internal/process/task_queues:83:21)',
docker-calcom-1  | @calcom/web:start:     name: 'FetchError'
docker-calcom-1  | @calcom/web:start:   },
docker-calcom-1  | @calcom/web:start:   url: 'http://testing.localhost:3000/api/auth/session',
docker-calcom-1  | @calcom/web:start:   message: 'request to http://testing.localhost:3000/api/auth/session failed, reason: getaddrinfo ENOTFOUND testing.localhost'
docker-calcom-1  | @calcom/web:start: }

```

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" id="bkmrk--75"><div class="zeroclipboard-container">  
</div></div>### Railway

<div class="markdown-heading" dir="auto" id="bkmrk--76">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#railway)</div>[![Deploy on Railway](https://camo.githubusercontent.com/4976251d89450afd636b68329bdfa574e8ab8801835452f7d639bba48e46a5e6/68747470733a2f2f7261696c7761792e6170702f627574746f6e2e737667)](https://railway.app/new/template/cal)

You can deploy Cal.diy on [Railway](https://railway.app). The team at Railway also have a [detailed blog post](https://blog.railway.app/p/calendso) on deploying on their platform.

### Northflank

<div class="markdown-heading" dir="auto" id="bkmrk--79">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#northflank)</div>[![Deploy on Northflank](https://camo.githubusercontent.com/e0f1dc8fc28737b6849b848376940d9f667e5ee56f34caa59947ea0d33193767/68747470733a2f2f6173736574732e6e6f727468666c616e6b2e636f6d2f6465706c6f795f746f5f6e6f727468666c616e6b5f736d6d5f333637303066623035302e737667)](https://northflank.com/stacks/deploy-calcom)

You can deploy Cal.diy on [Northflank](https://northflank.com). The team at Northflank also have a [detailed blog post](https://northflank.com/guides/deploy-calcom-with-northflank) on deploying on their platform.

### Vercel

<div class="markdown-heading" dir="auto" id="bkmrk--82">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#vercel)</div>Currently Vercel Pro Plan is required to be able to Deploy this application with Vercel, due to limitations on the number of serverless functions on the free plan.

[![Deploy with Vercel](https://camo.githubusercontent.com/7015516519ae874ab75537283bc75f86b3d46386ed994093a3790a1180913164/68747470733a2f2f76657263656c2e636f6d2f627574746f6e)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fcalcom%2Fcal.diy&env=DATABASE_URL,NEXT_PUBLIC_WEBAPP_URL,NEXTAUTH_URL,NEXTAUTH_SECRET,CRON_API_KEY,CALENDSO_ENCRYPTION_KEY&envDescription=See%20all%20available%20env%20vars&envLink=https%3A%2F%2Fgithub.com%2Fcalcom%2Fcal.diy%2Fblob%2Fmain%2F.env.example&project-name=cal&repo-name=cal.diy&build-command=cd%20../..%20%26%26%20yarn%20build&root-directory=apps%2Fweb%2F)

### Render

<div class="markdown-heading" dir="auto" id="bkmrk--85">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#render)</div>[![Deploy to Render](https://camo.githubusercontent.com/c3053e93bc9f0a2cd84050a5ff9f07cc5e639621a72e50dce48781f4a38f10e2/68747470733a2f2f72656e6465722e636f6d2f696d616765732f6465706c6f792d746f2d72656e6465722d627574746f6e2e737667)](https://render.com/deploy?repo=https://github.com/calcom/docker)

### Elestio

<div class="markdown-heading" dir="auto" id="bkmrk--88">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#elestio)</div>[![Deploy on Elestio](https://camo.githubusercontent.com/f97332fa3b54ed22701af0ccda75c4d7580e27480371889a0b66293ecdba083b/68747470733a2f2f656c6573742e696f2f696d616765732f6c6f676f732f6465706c6f792d746f2d656c657374696f2d62746e2e706e67)](https://elest.io/open-source/cal.com)

## License

<div class="markdown-heading" dir="auto" id="bkmrk--91">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#license)</div>Cal.diy is fully open source, licensed under the [MIT License](https://opensource.org/license/mit).

Unlike Cal.com's "Open Core" model, Cal.diy has **no commercial/enterprise code**. The entire codebase is available under the same open-source license.

## Enabling Content Security Policy

<div class="markdown-heading" dir="auto" id="bkmrk--93">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#enabling-content-security-policy)</div>- Set CSP\_POLICY="non-strict" env variable, which enables [Strict CSP](https://web.dev/strict-csp/) except for `unsafe-inline` in `style-src`. If you have custom changes in your instance, you may need to modify your code to make it CSP-compatible. Currently, strict CSP is enabled only on the login page. On other SSR pages, it is enabled in report-only mode to detect potential issues. It is not yet supported on SSG pages.

## Integrations

<div class="markdown-heading" dir="auto" id="bkmrk--95">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#integrations)</div>### Obtaining the Google API Credentials

<div class="markdown-heading" dir="auto" id="bkmrk--97">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#obtaining-the-google-api-credentials)</div>1. Open [Google API Console](https://console.cloud.google.com/apis/dashboard). If you don't have a project in your Google Cloud subscription, you'll need to create one before proceeding further. Under Dashboard pane, select Enable APIS and Services.
2. In the search box, type calendar and select the Google Calendar API search result.
3. Enable the selected API.
4. Next, go to the [OAuth consent screen](https://console.cloud.google.com/apis/credentials/consent) from the side pane. Select the app type (Internal or External) and enter the basic app details on the first page.
5. In the second page on Scopes, select Add or Remove Scopes. Search for Calendar.event and select the scope with scope value `.../auth/calendar.events`, `.../auth/calendar.readonly` and select Update.
6. In the third page (Test Users), add the Google account(s) you'll be using. Make sure the details are correct on the last page of the wizard and your consent screen will be configured.
7. Now select [Credentials](https://console.cloud.google.com/apis/credentials) from the side pane and then select Create Credentials. Select the OAuth Client ID option.
8. Select Web Application as the Application Type.
9. Under Authorized redirect URI's, select Add URI and then add the URI `<Cal.diy URL>/api/integrations/googlecalendar/callback` and `<Cal.diy URL>/api/auth/callback/google` replacing Cal.diy URL with the URI at which your application runs.
10. The key will be created and you will be redirected back to the Credentials page. Select the newly generated client ID under OAuth 2.0 Client IDs.
11. Select Download JSON. Copy the contents of this file and paste the entire JSON string in the `.env` file as the value for `GOOGLE_API_CREDENTIALS` key.

#### *Adding google calendar to Cal.diy App Store*

<div class="markdown-heading" dir="auto" id="bkmrk--99">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#adding-google-calendar-to-caldiy-app-store)</div>After adding Google credentials, you can now add the Google Calendar app to the App Store. You can repopulate the App Store by running

```
cd packages/prisma
yarn seed-app-store

```

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" id="bkmrk--101"><div class="zeroclipboard-container">  
</div></div>You will need to complete a few more steps to activate Google Calendar App. Make sure to complete section "Obtaining the Google API Credentials". After that do the following

1. Add extra redirect URL `<Cal.diy URL>/api/auth/callback/google`
2. Under 'OAuth consent screen', click "PUBLISH APP"

### Obtaining Microsoft Graph Client ID and Secret

<div class="markdown-heading" dir="auto" id="bkmrk--102">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#obtaining-microsoft-graph-client-id-and-secret)</div>1. Open [Azure App Registration](https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps) and select New registration
2. Name your application
3. Set **Who can use this application or access this API?** to **Accounts in any organizational directory (Any Azure AD directory - Multitenant)**
4. Set the **Web** redirect URI to `<Cal.diy URL>/api/integrations/office365calendar/callback` replacing Cal.diy URL with the URI at which your application runs.
5. Use **Application (client) ID** as the **MS\_GRAPH\_CLIENT\_ID** attribute value in .env
6. Click **Certificates &amp; secrets** create a new client secret and use the value as the **MS\_GRAPH\_CLIENT\_SECRET** attribute

### Obtaining Zoom Client ID and Secret

<div class="markdown-heading" dir="auto" id="bkmrk--104">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#obtaining-zoom-client-id-and-secret)</div>1. Open [Zoom Marketplace](https://marketplace.zoom.us/) and sign in with your Zoom account.
2. On the upper right, click "Develop" =&gt; "Build App".
3. Select "General App" , click "Create".
4. Name your App.
5. Choose "User-managed app" for "Select how the app is managed".
6. De-select the option to publish the app on the Zoom App Marketplace, if asked.
7. Now copy the Client ID and Client Secret to your `.env` file into the `ZOOM_CLIENT_ID` and `ZOOM_CLIENT_SECRET` fields.
8. Set the "OAuth Redirect URL" under "OAuth Information" as `<Cal.diy URL>/api/integrations/zoomvideo/callback` replacing Cal.diy URL with the URI at which your application runs.
9. Also add the redirect URL given above as an allow list URL and enable "Subdomain check". Make sure, it says "saved" below the form.
10. You don't need to provide basic information about your app. Instead click on "Scopes" and then on "+ Add Scopes". On the left, 
    1. click the category "Meeting" and check the scope `meeting:write:meeting`.
    2. click the category "User" and check the scope `user:read:settings`.
11. Click "Done".
12. You're good to go. Now you can easily add your Zoom integration in the Cal.diy settings.

### Obtaining Daily API Credentials

<div class="markdown-heading" dir="auto" id="bkmrk--106">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#obtaining-daily-api-credentials)</div>1. Open [Daily.co](https://daily.co/) and create an account.
2. From within your dashboard, go to the [developers](https://dashboard.daily.co/developers) tab.
3. Copy your API key.
4. Now paste the API key to your `.env` file into the `DAILY_API_KEY` field in your `.env` file.
5. If you have the [Daily Scale Plan](https://daily.co/pricing) set the `DAILY_SCALE_PLAN` variable to `true` in order to use features like video recording.

### Obtaining Basecamp Client ID and Secret

<div class="markdown-heading" dir="auto" id="bkmrk--108">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#obtaining-basecamp-client-id-and-secret)</div>1. Visit the [37 Signals Integrations Dashboard](https://github.com/calcom/cal.diy/blob/main/launchpad.37signals.com/integrations) and sign in.
2. Register a new application by clicking the Register one now link.
3. Fill in your company details.
4. Select Basecamp 4 as the product to integrate with.
5. Set the Redirect URL for OAuth `<Cal.diy URL>/api/integrations/basecamp3/callback` replacing Cal.diy URL with the URI at which your application runs.
6. Click on done and copy the Client ID and secret into the `BASECAMP3_CLIENT_ID` and `BASECAMP3_CLIENT_SECRET` fields.
7. Set the `BASECAMP3_CLIENT_SECRET` env variable to `{your_domain} ({support_email})`.

### Obtaining HubSpot Client ID and Secret

<div class="markdown-heading" dir="auto" id="bkmrk--110">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#obtaining-hubspot-client-id-and-secret)</div>1. Open [HubSpot Developer](https://developer.hubspot.com/) and sign into your account, or create a new one.
2. From within the home of the Developer account page, go to "Manage apps".
3. Click "Create legacy app" button top right and select public app.
4. Fill in any information you want in the "App info" tab
5. Go to tab "Auth"
6. Now copy the Client ID and Client Secret to your `.env` file into the `HUBSPOT_CLIENT_ID` and `HUBSPOT_CLIENT_SECRET` fields.
7. Set the Redirect URL for OAuth `<Cal.diy URL>/api/integrations/hubspot/callback` replacing Cal.diy URL with the URI at which your application runs.
8. In the "Scopes" section at the bottom of the page, make sure you select "Read" and "Write" for scopes called `crm.objects.contacts` and `crm.lists`.
9. Click the "Save" button at the bottom footer.
10. You're good to go. Now you can see any booking in Cal.diy created as a meeting in HubSpot for your contacts.

### Obtaining Webex Client ID and Secret

<div class="markdown-heading" dir="auto" id="bkmrk--112">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#obtaining-webex-client-id-and-secret)</div>[See Webex Readme](https://github.com/calcom/cal.diy/blob/main/packages/app-store/webex)

### Obtaining ZohoCRM Client ID and Secret

<div class="markdown-heading" dir="auto" id="bkmrk--114">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#obtaining-zohocrm-client-id-and-secret)</div>1. Open [Zoho API Console](https://api-console.zoho.com/) and sign into your account, or create a new one.
2. From within the API console page, go to "Applications".
3. Click "ADD CLIENT" button top right and select "Server-based Applications".
4. Fill in any information you want in the "Client Details" tab
5. Go to tab "Client Secret" tab.
6. Now copy the Client ID and Client Secret to your `.env` file into the `ZOHOCRM_CLIENT_ID` and `ZOHOCRM_CLIENT_SECRET` fields.
7. Set the Redirect URL for OAuth `<Cal.diy URL>/api/integrations/zohocrm/callback` replacing Cal.diy URL with the URI at which your application runs.
8. In the "Settings" section check the "Multi-DC" option if you wish to use the same OAuth credentials for all data centers.
9. Click the "Save"/ "UPDATE" button at the bottom footer.
10. You're good to go. Now you can easily add your ZohoCRM integration in the Cal.diy settings.

### Obtaining Zoho Calendar Client ID and Secret

<div class="markdown-heading" dir="auto" id="bkmrk--116">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#obtaining-zoho-calendar-client-id-and-secret)</div>[Follow these steps](https://github.com/calcom/cal.diy/blob/main/packages/app-store/zohocalendar)

### Obtaining Zoho Bigin Client ID and Secret

<div class="markdown-heading" dir="auto" id="bkmrk--118">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#obtaining-zoho-bigin-client-id-and-secret)</div>[Follow these steps](https://github.com/calcom/cal.diy/blob/main/packages/app-store/zoho-bigin)

### Obtaining Pipedrive Client ID and Secret

<div class="markdown-heading" dir="auto" id="bkmrk--120">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#obtaining-pipedrive-client-id-and-secret)</div>[Follow these steps](https://github.com/calcom/cal.diy/blob/main/packages/app-store/pipedrive-crm)

### Rate Limiting with Unkey

<div class="markdown-heading" dir="auto" id="bkmrk--122">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#rate-limiting-with-unkey)</div>Cal.diy uses [Unkey](https://unkey.com) for rate limiting. This is an optional feature and is not required for self-hosting.

If you want to enable rate limiting:

1. Sign up for an account at [unkey.com](https://unkey.com)
2. Create a Root key with permissions for `ratelimit.create_namespace` and `ratelimit.limit`
3. Copy the root key to your `.env` file into the `UNKEY_ROOT_KEY` field

Note: If you don't configure Unkey, Cal.diy will work normally without rate limiting enabled.

## Contributing

<div class="markdown-heading" dir="auto" id="bkmrk--124">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#contributing)</div>We welcome contributions! Whether it's fixing a typo, improving documentation, or building new features, your help makes Cal.diy better.

> **Important:** Cal.diy is a community fork. Contributions to this repo do **not** flow to Cal.com's production platform. See [CONTRIBUTING.md](https://github.com/calcom/cal.diy/blob/main/CONTRIBUTING.md) for details.

- Check out our [Contributing Guide](https://github.com/calcom/cal.diy/blob/main/CONTRIBUTING.md) for detailed steps.
- Please follow our coding standards and commit message conventions to keep the project consistent.

Even small improvements matter — thank you for helping us grow!

### Good First Issues

<div class="markdown-heading" dir="auto" id="bkmrk--126">[<svg aria-hidden="true" class="octicon octicon-link" data-component="Octicon" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/calcom/cal.diy/tree/main#good-first-issues)</div>We have a list of [help wanted](https://github.com/calcom/cal.diy/issues?q=is:issue+is:open+label:%22%F0%9F%99%8B%F0%9F%8F%BB%E2%80%8D%E2%99%82%EF%B8%8Fhelp+wanted%22) that contain small features and bugs which have a relatively limited scope. This is a great place to get started, gain experience, and get familiar with our contribution process.