FluxyChat

Getting Started

Choose your path

Hosted, self-host, or SDK-only — what each command actually gives you.

You are wiring chat (and maybe an agent) into an app. Pick one:

PathWhat you getYou run
Hosted npx @fluxy-chat/create-fluxy-chat@latest my-app --mode hosted -yVite chat app. Clerk. Project + room + @assistant after login.Nothing on Cloudflare.
Self-host npx @fluxy-chat/create-fluxy-chat@latest my-app --full --mode self-hostSame Vite app, pointed at your Worker. Setup asks for Worker URL and secrets.Worker on Cloudflare (or wrangler dev from a FluxyChat clone).
--template reactVite + useChat. You paste Worker URL and JWT.Your Worker or hosted API.
--minimalWidget only.Same.
fluxychat.comBrowser playground / console.Nothing.

Always use the scoped package: @fluxy-chat/create-fluxy-chat. Bare npx create-fluxy-chat 404s.

Hosted

npx @fluxy-chat/create-fluxy-chat@latest my-app --mode hosted -y
cd my-app
pnpm install
pnpm setup:hosted
pnpm dev

Localhost: 3-step tour, then Clerk, then chat. Second tab = realtime. Dashboard is a button, not the first screen.

Self-host (your Worker)

You need the FluxyChat Worker running. Companies usually clone the repo once, deploy apps/worker, then point many apps at that URL.

git clone https://github.com/AlessandroFare/fluxychat
cd fluxychat
pnpm install
pnpm run self-host
# paste Groq/OpenAI key when asked, or edit apps/worker/.dev.vars
pnpm --filter @fluxy-chat/worker dev

In another terminal:

npx @fluxy-chat/create-fluxy-chat@latest my-app --full --mode self-host
cd my-app
pnpm install
pnpm setup:local
pnpm dev

pnpm setup:local talks to POST /dev/provision on your Worker (ALLOW_DEV_PROVISION=true in .dev.vars). If the Worker is down, the script asks for the URL instead of dying silently.

SDK only

pnpm add @fluxy-chat/sdk @fluxy-chat/react

Then client setup. JWT: Auth JWT.

On this page