Skip to content
Docs

Setup

Local dev environment, pnpm install, dev servers.

Get a local dev environment running.

Requirements

  • Node.js ≥ 18 (Node 20 recommended)
  • pnpm ≥ 8
npm install -g pnpm

Two ways to start

A — Use the CLI (fastest)

npx conversokit create my-app --template commerce   # or booking | saas-onboarding | travel | dashboard
cd my-app
pnpm install
pnpm dev

B — Clone the repo (contributor / boilerplate fork)

git clone https://github.com/Xyborg/ConversoKit
cd ConversoKit
pnpm install
pnpm dev

pnpm dev runs the MCP server (:3000) and widget UI (:5173) in parallel via Turborepo.

Environment

Copy .env.example to .env. The defaults work for the local demo:

  • PORT=3000 — MCP server port.
  • Auth and integrations are commented out — uncomment and fill the keys you actually use.

Common scripts

CommandWhat it does
pnpm devRun all apps in parallel
pnpm buildBuild every package + app
pnpm typecheckTS check across the workspace
pnpm testVitest smoke tests
pnpm lintESLint over every package
pnpm --filter mcp-server devJust the server
pnpm --filter widget-ui devJust the UI

Troubleshooting

  • Corepack signature error on first pnpm install — known Node 24+/Corepack issue. Set COREPACK_INTEGRITY_KEYS=0 and rerun, or install pnpm via npm install -g pnpm@9.
  • @conversokit/* modules not found — run pnpm install at the repo root, not inside one app.
  • MCP tool call returns 401CONVERSOKIT_API_KEYS is set; either unset it for dev or send Authorization: Bearer <key> from your bridge.
  • MCP tool call returns 412 — the tool requires consent. Send the x-conversokit-consent header (the bridge does this automatically when configured).