Quick start
This content is for v1.x. Switch to the latest version for up-to-date documentation.
Two pieces: a Cloudflare Worker (your backend, holds the API key) and the widget embed (two tags on your site).
-
Deploy the worker. You need a Cloudflare account and an Anthropic API key.
Terminal window git clone https://github.com/PMDevSolutions/Claudius.gitcd Claudius/workerpnpm installnpx wrangler loginnpx wrangler kv namespace create RATE_LIMIT # paste the id into wrangler.tomlnpx wrangler secret put ANTHROPIC_API_KEYnpx wrangler deployNote the deployed URL, e.g.
https://claudius-chat-worker.<you>.workers.dev. See the worker deployment guide for KV, analytics, and CORS details. -
Allow your site’s origin. In the Cloudflare dashboard (Workers → Settings → Variables) set:
ALLOWED_ORIGIN = https://your-site.exampleMultiple sites? Use a comma-separated list.
-
Add the embed tags before
</body>on your site:<script>window.ClaudiusConfig = {apiUrl: "https://claudius-chat-worker.<you>.workers.dev",title: "Support",subtitle: "Ask me anything",theme: "auto",};</script><linkrel="stylesheet"href="https://cdn.jsdelivr.net/gh/PMDevSolutions/Claudius@1/cdn/claudius.css"/><script src="https://cdn.jsdelivr.net/gh/PMDevSolutions/Claudius@1/cdn/claudius.iife.js"></script>The
@1channel auto-updates to the latestv1.xrelease. If your site sets a Content-Security-Policy, allowcdn.jsdelivr.netinscript-srcandstyle-src. -
Open your site. The chat bubble appears bottom-right. Send a message to confirm the round trip to Claude works.
Next steps
Section titled “Next steps”- Make the bot yours: edit the system prompt
- Match your brand: theming and the full widget option reference
- Using React? See the React component guide