# Welcome to OvertCMS

> OvertCMS is a self-hosted, AI-native headless CMS built in pure Go—combining a clean editorial dashboard, fast public API, and safe MCP/Agent access in a single binary.

**OvertCMS** is a self-hosted headless CMS built for both **human editorial teams** and **AI agents** (Claude, Cursor, and custom workflows).

It consists of two clean, modular pieces:
- **OvertCMS Core** (`overt-cms-core`) — A single-binary Go server with zero runtime dependencies. Start immediately on embedded SQLite and local disk, or scale out with PostgreSQL, Cloudflare R2 / S3, Redis / Valkey, and SMTP.
- **OvertCMS Admin** (`overt-cms-admin`) — The official editorial dashboard with a visual Schema Studio, Google Docs-style real-time collaboration, rich text & `<cms-block>` editing, media library, live Delivery API Explorer, and team/RBAC controls.

---

## Choose Your Path

<CardGroup cols={2}>
  <Card title="Run Locally in 2 Minutes" icon="rocket" href="/quickstart">
    Start OvertCMS Core + Admin locally, create your owner account, define your first Content Model, and publish your first entry.
  </Card>
  <Card title="Fetch Content on Your Website" icon="globe" href="/delivery/fetching-content">
    Query published posts, expand references (`?expand=author`), render reading stats, and preview drafts from Next.js, Astro, or any client.
  </Card>
  <Card title="Connect an AI Agent (MCP & REST)" icon="bot" href="/agents/overview">
    Create a scoped AI Agent key, plug OvertCMS directly into Claude Desktop or Cursor via `/mcp`, and stay protected with drafts-only presets and an instant kill switch.
  </Card>
  <Card title="Self-Host in Production" icon="server" href="/configuration">
    Configure PostgreSQL, Cloudflare R2 / S3 storage, optional SMTP email, 2FA/Passkeys, SSO, Redis caching, and backups.
  </Card>
</CardGroup>

---

## How OvertCMS Separates Traffic (3 APIs + 1 Worker)

Instead of mixing public website reads, AI automation, and human admin logins on one messy endpoint, OvertCMS separates every audience into its own isolated **plane** backed by one shared engine:

| Plane | Route Prefix | Who Uses It | Auth & Trust Boundary |
| :--- | :--- | :--- | :--- |
| **Delivery** | `/delivery/v1/*` | Public websites, mobile apps, CDNs, clients | Read-only **published content** only. Public by default (or optional Client API key). |
| **Agent** | `/agent/v1/*`, `/mcp`, `/llms.txt` | Claude, Cursor, CI/CD, AI agents | **Scoped API keys only** (`ocms_...`). Human logins are rejected; zero access to users, auth, or secrets. |
| **Admin** | `/admin-api/v1/*` | Human editors, admins, Admin UI | **Human sessions only** (JWT/cookies + 5-role RBAC + 2FA/Passkeys/OIDC). API keys are rejected. |
| **Worker** | Background process | Scheduled jobs & deliveries | Runs scheduled publish/unpublish, CDN purges, and signed webhook retries automatically. |

---

## Key Capabilities

<CardGroup cols={2}>
  <Card title="19 Typed Field Types & Reusable Blocks" icon="shapes" href="/fields/overview">
    Build structured Collections, Singletons, and `<cms-block>` components with strict validation, safe schema changes, and visual version history.
  </Card>
  <Card title="Real-Time Collaboration" icon="users" href="/concepts/collaboration">
    Edit entries simultaneously like Google Docs with live avatars, named cursors, server-enforced Viewer read-only mode, and live AI agent sync.
  </Card>
  <Card title="Cloudflare R2 / S3 & Optional SMTP" icon="cloud" href="/self-hosting/storage-r2-s3">
    Store media on local disk or any S3/R2 bucket with configurable upload limits, and optionally enable pure-Go SMTP for invites and security alerts.
  </Card>
  <Card title="Zero-Trust Security & Audit Logs" icon="lock" href="/security/authentication-and-rbac">
    5-role RBAC, Argon2id passwords, rotating refresh sessions, TOTP & Passkeys, OIDC SSO, Step-Up MFA, and immutable NDJSON audit logs.
  </Card>
</CardGroup>
