Choose your auth
Last updated
Three auth surfaces; pick by caller type.
Backend pipeline ingesting documents into a single instance
instance-id + api-key headers
Instance API — Orchestrator (first ingestion call)
MCP client (Claude Desktop / Cursor / Le Chat) or custom user-level integration spanning multiple instances
OAuth 2.1 (Bearer JWT)
Quickstart — K-AI MCP (first MCP install)
Browser frontend on .kai-studio.ai (K-AI Audit web app, K-AI Studio portal, K-AI Retrieval admin console, PICSOU dashboard)
kai_auth HttpOnly cookie
K-AI Audit web app (sign in directly)
Use API keys when the caller is a backend process and the operation is scoped to one instance. No user identity, no group RBAC.
Use OAuth 2.1 when the caller acts on behalf of a human user, especially for MCP and cross-instance queries. Tokens are scoped to the user's access rights.
Use cookies only for browser frontends served from *.kai-studio.ai. Never read/write the cookie from JavaScript — it's HttpOnly by design.
Last updated