The agent’s browser and your preview links share a single authentication session per task. Configure how that session is seeded at Settings → Repositories → [repository] → Preview Authentication. Four strategies:Documentation Index
Fetch the complete documentation index at: https://docs.niteshift.dev/llms.txt
Use this file to discover all available pages before exploring further.
- No auth: previews show the unauthenticated view. No credentials are stored or injected.
- Use static cookies across all tasks: record a session once (or paste cookies in by hand) and Niteshift injects them into every task’s browser and preview links. Best for hosted auth providers (AuthKit, Clerk, Okta) and persistent backing services (Neon, Supabase).
- Per-task login: your setup script writes cookies to
/tmp/agent-browser-state.json, and Niteshift syncs that file to the agent’s browser on launch and to preview links so you see the same authenticated session the agent does. Best for per-task seeded users or short-lived sessions. Use Edit with agent to have the setup agent draft the seeding code for you. - Manual login (username & password): add custom instructions
with test credentials (e.g.
user@example.com/test123) and the login flow. The agent drives the login itself each task, and you can also log in manually on previews.
Recording a session
The recording flow uses a real task to capture real cookies. There’s no separate “recording mode”.Pick the recorded-cookies strategy
Go to Settings → Repositories → [repository] → Preview Authentication, select Use static
cookies across all tasks, and click Save.
Click Record session
Niteshift starts a short-lived task that boots an environment and opens the browser at your app.
Log in via Control Browser
The task pauses and surfaces a Control Browser prompt. Take over the browser tab and log in
the way a user would: SSO, 2FA, anything. The agent waits.
Recordings are per-user. Each developer records once per repository they work on.