# Using Keystatic

> Keystatic is the default CMS client in this repo.

*Canonical: https://makerkit.dev/docs/nextjs-drizzle/content/keystatic*

---

Keystatic is the default CMS client for the repo.

```bash
CMS_CLIENT=keystatic
```

## Storage Kinds

Keystatic can use:

1. local storage
2. cloud storage
3. GitHub-backed storage

## Local Storage

```bash
NEXT_PUBLIC_KEYSTATIC_STORAGE_KIND=local
KEYSTATIC_PATH_PREFIX=apps/web
NEXT_PUBLIC_KEYSTATIC_CONTENT_PATH=./content
```

## GitHub Storage

```bash
NEXT_PUBLIC_KEYSTATIC_STORAGE_KIND=github
NEXT_PUBLIC_KEYSTATIC_STORAGE_REPO=<your-repo>
KEYSTATIC_PATH_PREFIX=apps/web
NEXT_PUBLIC_KEYSTATIC_CONTENT_PATH=./content
KEYSTATIC_GITHUB_TOKEN=github_**********************************************
```

## Important Repo Note

The repo ships reusable Keystatic package code, but it does not currently include an app route at `/keystatic`.

If you want a mounted Keystatic admin UI in `apps/web`, add the route yourself and wire it to the helpers in `packages/cms/keystatic`.
