Guardrails & security
Keep the agent on topic, abuse-resistant and inside budget.
What is checked where
Domain checks look at the Origin/Referer of browser requests. They protect the widget, not the REST API — the API is protected by your secret key.