Skip to content

Commit ece1159

Browse files
authored
Merge branch 'main' into danny/kernel-297-docs-mention-timeouts-for-async-invocation
2 parents 6713198 + 6561597 commit ece1159

File tree

6 files changed

+15
-22
lines changed

6 files changed

+15
-22
lines changed

browsers/persistence.mdx

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,11 @@
22
title: "Persistence"
33
---
44

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.
126

137
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.
148

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.
1610

1711
To specify a browser for persistence, specify its `persistence` settings in the `browsers.create()` method:
1812

@@ -39,8 +33,8 @@ During runtime, Kernel will search for a browser with the specified `id`:
3933

4034
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.
4135

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.
4337

4438
<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.
4640
</Info>

browsers/profiles.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Profiles"
33
description: "Persist and reuse browser session state (cookies, local storage) across sessions"
44
---
55

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.
77

88
## 1. Create a profile
99

@@ -42,7 +42,7 @@ except ConflictError:
4242

4343
## 2. Start a browser session using the profile and save changes
4444

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.
4646
Set `save_changes` to true to persist any state created during this session back into the profile when the browser is closed.
4747

4848
<CodeGroup>
@@ -113,11 +113,11 @@ print("Live view:", kernel_browser2.browser_live_view_url)
113113

114114
</CodeGroup>
115115

116-
### Other ways to use profiles
116+
## Other ways to use profiles
117117

118118
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.
119119

120-
### Notes
120+
## Notes
121121

122122
- A profile's `name` must be unique within your organization.
123123
- Profiles store cookies and local storage. Start the session with `save_changes: true` to write changes back when the browser is closed.

docs.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@
5959
"browsers/stealth",
6060
"browsers/standby",
6161
"browsers/persistence",
62+
"browsers/profiles",
6263
"browsers/termination",
6364
"browsers/file-io",
6465
"browsers/live-view",
65-
"browsers/replays",
66-
"browsers/profiles"
66+
"browsers/replays"
6767
]
6868
},
6969
{

info/pricing.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ With Kernel, you only pay for what you use and nothing more. Our goal is to be c
1616
| Browser live view & logs ||||
1717
| Browser replays ||||
1818
| File uploads & downloads ||||
19+
| Browser profiles ||||
1920
| Configurable browser extensions || Coming soon | Coming soon |
2021
| BYO images & storage mounts ||| Coming soon |
2122
| SOC2 compliance ||||

introduction.mdx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ Kernel is a developer platform that provides Crazy Fast Browser Infrastructure f
77

88
## kernel.browsers.create()
99

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.
11+
1012
<Info>
11-
To use the Kernel SDK, install it first:
12-
- Typescript/Javascript: `npm install @onkernel/sdk`
13-
- Python: `pip install kernel`
13+
Install the Kernel SDK with `npm install @onkernel/sdk` or `uv pip install kernel`
1414
</Info>
1515

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.
17-
1816
<CodeGroup>
1917

2018
```typescript Typescript/Javascript

style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* style sidebar titles */
22
#navigation-items .sidebar-group-header #sidebar-title{
33
font-weight: bold;
4-
font-size: larger;
4+
font-size: 15px;
55
}

0 commit comments

Comments
 (0)