# Web widget

> Embed an agent in your website.

The widget is a dependency-free custom element in a Shadow DOM and serves the version deployed to production.

```html
<modeaix-agent agent-id="agent_xxx"></modeaix-agent>
<script src="https://<console-host>/widget.js" async></script>
```

It reads settings from the public, cookie-less `GET /api/public/widget/:publicId`, enforced by an origin allowlist and rate-limited to 120 requests per minute per IP.
