Skip to main content

Console Auth Flow

The console supports several auth modes and issues a signed session cookie for protected routes.

Modes

Dev login exists to skip authentication during development. Confirm it is disabled in any environment reachable from outside your machine โ€” it is the one mode that bypasses credential checks entirely.

Cookies

Three cookies, with different scopes โ€” worth understanding separately because they fail differently:
session and sandbox_session can expire independently. A user with a valid session but a stale sandbox_session reaches the console fine and then fails on anything that executes โ€” which presents as an agent error rather than an auth error. Check both when diagnosing.

The flow

Routes

Org scoping

The session JWT carries orgId, and downstream handlers check ownership against it โ€” see verify chat ownership in the agent pipeline. Authentication establishes who; the orgId check establishes whose data.