AI assistant for your docs & site,
in any mode you need

One script tag. Three view modes. Dark-mode sync included. Kelu’s Docs AI turns your documentation and guides into an always-available, citation-backed AI assistant — as an interactive chat, a Cmd+K search bar, or a reader sidebar.

Embed modes

Four ways to deliver Docs AI to your users

Give your visitors instant answers right where they are reading. Switch modes with a single data attribute.

Default modedata-view-mode="modal"

Chat Launcher

A floating button in the corner of your page opens a full chat panel. The most familiar experience for users — minimal footprint on your page, maximum conversational depth.

Configurable position: bottom-right, bottom-left, or custom CSS anchor
Custom launcher icon or text label
Smooth open/close animation with scroll-lock on mobile
Keyboard first
CmdK

Command Palette

Open the widget with Cmd+K (Mac) or Ctrl+K (Windows/Linux) in every mode, on by default. Developers and power users get instant AI answers without reaching for the mouse.

  • Activates globally on any page with a single script tag
  • Search your indexed docs as you type
  • Arrow-key navigation through suggested questions
  • Esc to dismiss; answer expands inline in the palette
In-page inputdata-view-mode="search"

Search Bar

Attach the widget to a search input already on your page — inside a navigation bar, a hero section, or a docs header. Clicking the box opens a panel near the top of the page; pressing Enter asks the question.

Set data-view-mode="search" and data-search-input on the script tag
Enter opens the panel and asks the question
Full answer with citations in the panel
Replaces or augments existing static search inputs
Docked readingdata-view-mode="sidebar"

Sidebar

A panel docked to the right edge of the window, so the assistant stays in view. Ideal for documentation sites where users want to ask questions while reading without losing their place.

460px panel over the page; set the width with data-sidebar-width
Collapse to icon to reclaim screen space
Keyboard shortcut to toggle open/closed
One script tag

Deploy Docs AI in under 60 seconds

Paste the snippet into your page’s <head> or integrate it into your application. Set data-view-mode to switch between the chat panel, a Cmd+K search bar, or a docked sidebar.

  • data-view-mode: modal | search | sidebar
  • data-color-scheme: light | dark | auto (default: light)
  • data-brand-color: any valid CSS color
  • data-position: bottom-right | bottom-left
  • data-knowledge-base-id: your Kelu knowledge base UUID
  • data-client-key: public client key (kl_pk_...)
1. CHAT LAUNCHER (DEFAULT)
<script
  src="https://widget.kelu.dev/kelu-widget.js"
  data-knowledge-base-id="kb_abc123"
  data-client-key="kl_pk_..."
  data-color-scheme="auto"
  data-position="bottom-right"
  async
></script>
2. SEARCH PANEL (COMMAND PALETTE)
<script
  src="https://widget.kelu.dev/kelu-widget.js"
  data-knowledge-base-id="kb_abc123"
  data-client-key="kl_pk_..."
  data-view-mode="search"
  data-color-scheme="auto"
  async
></script>
3. SIDEBAR (PERSISTENT DOCKED PANEL)
<script
  src="https://widget.kelu.dev/kelu-widget.js"
  data-knowledge-base-id="kb_abc123"
  data-client-key="kl_pk_..."
  data-view-mode="sidebar"
  data-color-scheme="auto"
  async
></script>
Theming

Dark-mode sync and full style control

The widget can follow your site’s color scheme. Override any detail with data attributes.

Dark-mode sync

Set data-color-scheme="auto" and the widget follows the reader's prefers-color-scheme setting, or point data-color-scheme-selector at your own theme toggle. The default is light.

Theme attributes

Override design tokens via data-* attributes on the script tag, such as data-brand-color and data-border-radius. Change color, font, radius, and size without writing custom CSS.

Font control

By default the widget uses the system font. Set data-font-family to any CSS font stack so text renders consistently with your brand.

Component styles

Style any part of the widget with data-{component}-{property} attributes, such as data-launcher-button-background-color. Your site's own styles do not change the widget.

Cmd/Ctrl+K

The keyboard shortcut developers expect

The widget registers a global Cmd+K (Mac) / Ctrl+K (Windows, Linux) listener by default, in every mode. One keystroke opens the palette, another dismisses it. No mouse required.

  • Global listener registered once — works from any page element
  • Custom trigger key configurable via data-hotkey attribute
  • Dismisses on Esc; does not interfere with browser or OS shortcuts
  • Renders above all page content with a backdrop overlay
  • Instant search across your indexed docs
  • Arrow keys navigate; Enter opens the selected result
COMMAND PALETTE — KEYBOARD FLOW
Cmd+K / Ctrl+KOpen command palette
Type queryEnter your question
↑ ↓Navigate suggested questions
EnterRun query / open result
EscDismiss palette
Cmd+K againClose if already open
Built to sit on your site

Loads quietly and stays out of your page's way

01

Doesn't block your page

The script tag loads with async, so your page renders first. The widget's styles live in a shadow root, so your CSS and its CSS don't clash.

02

Scoped by client keys

A public key (kl_pk_…) works for one knowledge base only, and you can lock it to your own sites.

03

Sources under every answer

Answers drawn from your content list their numbered sources, and each one links straight to the page.

04

No cookies of its own

A random reader id is kept in localStorage, not a cookie, and you can switch it off.

Got questions?

Frequently Asked Questions

Common questions about Kelu Docs AI and embed options

Add Docs AI to your site in one paste

Connect your docs, grab your client key, and embed Docs AI. Dark mode, Cmd+K search, and numbered citations — all included.

Free to start · No credit card required · Docs AI Guide →