Embeddable AI assistants.
Drop in a script tag, ship.

CortexLayer is the developer-first way to put a grounded, tool-using AI assistant on any page — multi-tenant, billed through Stripe, integrated in five minutes.

Features

Embed in minutes

One SRI-signed <script> tag. CSP-friendly. Loads under 20 KB. Works in vanilla HTML, React, Next, anywhere.

Grounded by your data

Upload a PDF, expose a webhook tool, attach a knowledge base. Responses cite what they used. Hallucinations cut by design.

Stripe billing built-in

Tiered + metered usage from day one. Reconciled daily against your AI spend. No glue code, no surprise drift.

This is the entire integration.

Paste into your <head>. The widget mounts itself and talks to your agent over a session-scoped, rate-limited token.

<script
  src="https://staging.cdn.cortexlayer.dev/widget.v1.js"
  integrity="sha384-PLACEHOLDER_HASH_RUN_PNPM_BUILD_FIRST"
  crossorigin="anonymous"
  data-cortex-widget
  data-api-base="https://staging.api.cortexlayer.dev"
  data-agent-id="agt_REPLACE_ME"
  data-session-token="cs_REPLACE_ME"
></script>

The integrity hash is rebuilt on every CDN publish. The dashboard install card always shows the live one.

Ready when you are.

Free tier covers your first agent and a few hundred conversations. Upgrade only when you ship.