You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: browsers/persistence.mdx
+4-10Lines changed: 4 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,11 @@
2
2
title: "Persistence"
3
3
---
4
4
5
-
Persistence allows you to reuse a browser's state, including cookies, session auth, cache, and any other state that lives on a browser. This can be used to minimize CAPTCHAs and login flows.
6
-
7
-
Kernel's platform provides multiple ways to persist and reuse state and browser sessions.
8
-
9
-
## 1. Persisting a browser
10
-
11
-
With Kernel, you can specify a browser to be persisted and then reuse that exact browser instance again. Using [standby mode](/browsers/standby), we put the browser to sleep in between connections, so you don't pay for idle clock time.
5
+
With Kernel, you can specify a browser to be persisted and then reuse that exact browser instance again over hours or days. Using [standby mode](/browsers/standby), we put the browser to sleep in between connections, so you don't pay for idle clock time.
12
6
13
7
Since we return the exact same browser instance upon subsequent connections, all browser state is preserved: web page, cookies, session auth, even the exact zoom settings on the page.
14
8
15
-
Persisted browsers exist indefinitely until you [delete them](/browsers/termination). See [here](/info/pricing) for plan limits on persistence.
9
+
Persistence is especially useful for human-in-the-loop workflows, where automated steps and human actions may be separated by hours or days. The browser can be paused and reconnected without losing state, enabling multi-step processes that combine automation and manual intervention.
16
10
17
11
To specify a browser for persistence, specify its `persistence` settings in the `browsers.create()` method:
18
12
@@ -39,8 +33,8 @@ During runtime, Kernel will search for a browser with the specified `id`:
39
33
40
34
The browser's `persistence id` can be any string. You can set it to an identifier in your system to match it to a user, environment, website, or something else.
41
35
42
-
## 2. Persisting browser cookies
36
+
Persisted browsers exist indefinitely until you [delete them](/browsers/termination). See [here](/info/pricing) for plan limits on persistence.
43
37
44
38
<Info>
45
-
This feature is coming soon
39
+
Use [Profiles](/browsers/profiles) if your goal is to reuse authentication state (cookies, local storage) — especially across concurrent browsers. Persistence is best for human-in-the-loop workflows where the same browser instance needs to be resumed later.
Copy file name to clipboardExpand all lines: browsers/profiles.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: "Profiles"
3
3
description: "Persist and reuse browser session state (cookies, local storage) across sessions"
4
4
---
5
5
6
-
Kernel Profiles let you capture browser state created during a session — cookies and local storage — and reuse it in later sessions. This is useful for persisting login state or other site preferences across runs.
6
+
Profiles let you capture browser state created during a session — cookies and local storage — and reuse it in later sessions. This is useful for persisting login state or other site preferences across browser sessions.
7
7
8
8
## 1. Create a profile
9
9
@@ -42,7 +42,7 @@ except ConflictError:
42
42
43
43
## 2. Start a browser session using the profile and save changes
44
44
45
-
After creating the profile, you can reference it by its `name` or `id` when creating a browser.
45
+
After creating the profile, reference it by its `name` or `id` when creating a browser.
46
46
Set `save_changes` to true to persist any state created during this session back into the profile when the browser is closed.
The API and SDKs support listing, deleting, and downloading profile data as JSON. See the [API reference](/api-reference/profiles/list-profiles) for more details.
119
119
120
-
###Notes
120
+
## Notes
121
121
122
122
- A profile's `name` must be unique within your organization.
123
123
- Profiles store cookies and local storage. Start the session with `save_changes: true` to write changes back when the browser is closed.
Copy file name to clipboardExpand all lines: introduction.mdx
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,14 +7,12 @@ Kernel is a developer platform that provides Crazy Fast Browser Infrastructure f
7
7
8
8
## kernel.browsers.create()
9
9
10
+
If you are already familiar with browser vendors, you can immediately start using our browsers with `kernel.browsers.create()`. We return a CDP url that you can connect any Playwright or Puppeteer automation to.
Install the Kernel SDK with `npm install @onkernel/sdk` or `uv pip install kernel`
14
14
</Info>
15
15
16
-
If you are already familiar with browser vendors, you can immediately start using our browsers with `kernel.browsers.create()`. We return a CDP url that you can connect any Playwright or Puppeteer automation to.
0 commit comments