FluxyChat

How-to Guides

create-fluxy-chat CLI

Scaffold a chat app or a bot worker. Use the scoped npm package.

Always:

npx @fluxy-chat/create-fluxy-chat@latest

Unscoped npx create-fluxy-chat is not our package.

Chat app (what most people want)

# Hosted — Clerk, no wrangler
npx @fluxy-chat/create-fluxy-chat@latest my-app --mode hosted -y

# Your Worker
npx @fluxy-chat/create-fluxy-chat@latest my-app --full --mode self-host

Then cd my-app && pnpm install.

  • Hosted: pnpm setup:hosted && pnpm dev
  • Self-host: start the Worker, then pnpm setup:local && pnpm dev

The interactive CLI asks for Worker URL and optional Groq key when you pick self-host. It writes .fluxy/worker.dev.vars so you can paste secrets into apps/worker/.dev.vars after you clone the FluxyChat repo.

Details: Choose your path.

Smaller templates

npx @fluxy-chat/create-fluxy-chat@latest my-chat --template react
npx @fluxy-chat/create-fluxy-chat@latest my-chat --minimal
npx @fluxy-chat/create-fluxy-chat@latest my-hr --template hr-feedback

React/minimal: copy .env.example and set Worker URL + JWT. Auth JWT.

Bot workers (Slack / Telegram / Discord)

npx @fluxy-chat/create-fluxy-chat@latest my-bot --adapter slack --pm pnpm
npx @fluxy-chat/create-fluxy-chat@latest my-bot --adapter telegram --skip-install
npx @fluxy-chat/create-fluxy-chat@latest my-bot -y --adapter discord
npx @fluxy-chat/create-fluxy-chat@latest my-bot --adapter basic

These generate a small Cloudflare Worker (src/index.ts, src/bot.ts, wrangler.toml, .dev.vars). Fill FLUXY_BASE_URL and FLUXY_API_KEY, then pnpm dev / pnpm deploy.

FlagMeaning
--mode hosted | local | self-hostself-host is the same as local (your Worker)
--fullVite app + setup scripts
--adapter / --templatefull, react, minimal, hr-feedback, basic, slack, telegram, discord, web
-ySkip prompts

See also: Unified chat API, SDK.

On this page