Adding an AI support or documentation assistant to your website usually means signing up for a third-party chatbot SaaS—paying $29 to $99 a month, exposing your knowledge base to an external vendor, and embedding bloated third-party scripts with someone else's branding.
Today, we are launching Claude Bots — Self-Hosted Claude AI Chat Widget & PHP Relay v1.0 ($39) in the node-flux.cloud store. It pairs a zero-dependency JavaScript chat widget with a lightweight PHP 8 server relay that keeps your Anthropic API key, system prompts, and knowledge base securely on your own server.
How Claude Bots Works
Instead of exposing API keys in browser JavaScript or routing customer conversations through an intermediary platform, Claude Bots splits into two clean pieces:
Drop-In Shadow DOM Chat Widget (claude-widget.js): Add a floating chat bubble and slide-out panel to any webpage with a single <script> tag. Because its styles live inside a Shadow DOM, the widget never clashes with your site's existing CSS. Visitors get live streaming replies, clickable source citations, starter suggestion chips, full-screen mobile support, and per-tab conversation memory—with zero external dependencies.
Multi-Bot PHP 8 Relay (claude-bot-relay.php): A single PHP script on your web host holds your ANTHROPIC_API_KEY, system instructions, model settings, and knowledge bases. One relay file can power multiple distinct assistants across your domains—such as a storefront sales bot and a technical developer docs bot.
JSON Knowledge Base Grounding & Built-In Cost Controls
Claude Bots is built for practical production hosting where reliability, privacy, and predictable token usage matter:
Automatic Chunk Retrieval & Source Citations: Store your product details, policies, or documentation in simple { title, text, url } JSON files. The relay splits entries at blank lines, scores and retrieves only the best-matching chunks for each visitor's question, and attaches clickable "Sources" links directly beneath the assistant's reply.
Server-Side Security & Abuse Protections: Visitors never see your API key, system prompt, or full knowledge base. An origin allowlist blocks unauthorized domains from calling your relay, built-in IP rate limiting caps visitors at 30 messages per 10 minutes, conversation history is bounded to the latest 20 messages (up to 4,000 characters per message), and Anthropic prompt caching cuts token costs on repeated questions.
Offline Demo Mode & 4-Step Setup: Includes demo-store.html, demo-developer.html, and sample knowledge bases (kb-store.json and kb-developer.json) so you can preview and test the widget locally in your browser before connecting a live API key. Going live takes four steps: upload claude-bot-relay.php and your JSON files to any PHP 8+ host with cURL, add your ANTHROPIC_API_KEY, configure $BOTS, and paste one <script> tag onto your pages.
Pricing & Licensing
Claude Bots — Self-Hosted Claude AI Chat Widget & PHP Relay v1.0 is available now as a one-time $39 download—with no recurring chatbot platform subscriptions and a single-site license (plus unlimited local offline testing on your own computers). (Requires PHP 8+ with cURL and your own Anthropic API key, with API usage billed directly by Anthropic.)
Pick up Claude Bots v1.0 today in the Store at node-flux.cloud.