Skip to main content
Choose profile boundaries based on who owns the browser identity and which process can write durable state. Don’t use one shared writable profile for unrelated users, accounts, or concurrent agents.

Choose a profile topology

Resume a workflow across runs

Use one profile for a recurring workflow when the next run needs cookies, site data, tabs, or preferences created by the previous run.
  1. Start the active run with save_changes: true.
  2. Complete the browser work.
  3. Delete the Kernel browser to save its complete state.
  4. Load the profile when the next run starts.
Only one run can safely write at a time. If runs can overlap, serialize them or use a separate profile for each run. See Sharing and concurrency.

Map users or accounts to profiles

When your product acts for many users, give each user or connected account its own profile. This keeps identities isolated and makes ownership explicit. Use one profile per user when all of that user’s accounts are intentionally available in the same browser. Use one profile per connected account when accounts need separate cookies, proxies, permissions, or lifecycles. For concurrent tasks acting as one user, keep that user’s browser running and open one tab per task. The tabs share a live cookie jar and persistent origin storage, which avoids creating several browser sessions from stale copies of the same profile. Create another browser only when the task needs its own browser-level configuration or isolation boundary.

Reuse one identity across sites

A profile can contain Managed Auth connections for several domains. Use this when one agent workflow needs the same end user’s authenticated state across multiple sites.
Managed Auth changes the saved tab state when it logs in or reauthenticates. Set start_url when your agent must begin on a specific page. See Control the starting tab.

Seed parallel workers

Use a shared read-only profile when many agents need the same starting environment but shouldn’t contribute changes back to it.
  • Prepare the baseline with one designated writer.
  • Start workers without save_changes.
  • Give a worker its own profile if it needs durable output.
  • Use a consistent proxy with the profile when maintaining a stable site identity matters.
This model works well for repeatable test fixtures, preconfigured preferences, and authenticated read-only jobs.

Refresh authentication safely

A browser doesn’t receive authentication state saved after it starts. When Managed Auth refreshes a profile, new browsers load the refreshed state, but active browsers keep their original snapshot. For an active workflow, choose one of these approaches:
  • When concurrent work can share the active browser, open another tab instead of another browser session.
  • Finish the current task, delete the browser, and start another browser with the refreshed profile.
  • If the browser started without a profile, load the profile into it and reconnect after Chromium restarts.
  • Give the agent access to a vault so it can navigate reauthentication itself.
Don’t expect one browser’s refreshed cookies to merge automatically into other running browsers.