Embed in minutes
One SRI-signed <script> tag. CSP-friendly. Loads
under 20 KB. Works in vanilla HTML, React, Next, anywhere.
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.
One SRI-signed <script> tag. CSP-friendly. Loads
under 20 KB. Works in vanilla HTML, React, Next, anywhere.
Upload a PDF, expose a webhook tool, attach a knowledge base. Responses cite what they used. Hallucinations cut by design.
Tiered + metered usage from day one. Reconciled daily against your AI spend. No glue code, no surprise drift.
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.
Free tier covers your first agent and a few hundred conversations. Upgrade only when you ship.