A persistent browser profile is a user data directory that keeps cookies, local storage and logins between runs. A Playwright persistent context opens one with launchPersistentContext(). Puppeteer uses the userDataDir launch option, and Selenium passes Chrome's --user-data-dir argument. For multiple accounts, give each account its own directory, its own browser process and its own proxy. A clean headless browser starts empty every time.

Updated November 2026

This article was drafted with AI and checked against the official documentation it cites.

How I compared these tools

On 25 November 2026 I read the official docs for the current npm releases: Playwright 1.65.1, Puppeteer 25.19.0 and selenium-webdriver 4.54.0. I also read ChromeDriver's capabilities page and the Chrome team's March 2025 post on remote debugging switches. Every snippet below follows the API those docs describe.

For the profile-manager section, I read the developer docs or official GitHub repos of AdsPower, GoLogin and Kameleo. For Multilogin, a cloud Android phone platform for multi-account management that also includes browser profiles, I used its published product information. Then I read recent user reviews of all four on Trustpilot, Capterra and G2.

One ground rule before the code. A persistent profile changes how your script stores state. It doesn't change what a site allows, so check each site's terms before you automate logged-in accounts.

What is a persistent browser profile?

It's a folder on disk that the browser reads at launch and writes to while it runs. The folder holds cookies, local storage, IndexedDB, cache, service workers and saved site permissions.

A clean headless run is different. Each framework uses a throwaway profile unless you tell it otherwise:

  • Playwright gives you a fresh, empty context from browser.newContext().
  • Puppeteer creates a temporary user data directory when you don't pass userDataDir, according to its launcher source.
  • ChromeDriver creates a new temporary profile for every Selenium session, per its capabilities docs.

Switching to a persistent profile changes four things.

  1. Logins survive restarts. Log in once, and the next launch starts signed in.
  2. State piles up. Cache and service workers carry over too. A run can pass because of something the previous run left behind.
  3. One directory means one browser. Playwright's API reference says browsers don't allow multiple instances with the same user data directory.
  4. Your everyday Chrome profile is off limits. Playwright warns that pointing at Chrome's main "User Data" folder can stop pages loading or close the browser. Since Chrome 136, Chrome also ignores remote debugging switches on its default data directory.

Treat the profile folder like a password file. Playwright's docs warn that saved browser state can hold cookies that let someone impersonate the account. A full profile directory holds even more.

How does a Playwright persistent context compare with Puppeteer and Selenium?

All three support persistent profiles. The difference is where the profile path and the proxy go.

Default without a profile Persist with Proxy for that profile
Playwright 1.65.1 Empty context launchPersistentContext(dir) proxy option on the same call, with username and password
Puppeteer 25.19.0 Temporary user data dir userDataDir launch option --proxy-server arg, credentials via page.authenticate()
Selenium 4.54.0 (Chrome) Temporary profile per session --user-data-dir argument setProxy() capability or --proxy-server

Here's the pattern I found across all three sets of docs on 25 November 2026. In every one, persistence is a launch-time setting. None of them lets you open a profile directory as a second context inside a running browser. So for multiple accounts, the unit of work is one browser process per account.

Playwright

launchPersistentContext() starts the browser and returns its only context. Closing that context closes the browser.

// Playwright 1.65.1 import { chromium } from 'playwright'; const context = await chromium.launchPersistentContext('./profiles/account-a', { headless: true, proxy: { server: 'http://proxy-a.example.com:8000', username: process.env.PROXY_A_USER, password: process.env.PROXY_A_PASS, }, }); const page = context.pages()[0] ?? (await context.newPage()); await page.goto('https://example.com/account'); await context.close(); // closes the browser too 

Puppeteer

Puppeteer's LaunchOptions reference lists userDataDir as the path to a user data directory. The proxy goes in as a Chromium argument at launch.

// Puppeteer 25.19.0 import puppeteer from 'puppeteer'; const browser = await puppeteer.launch({ userDataDir: './profiles/account-b', args: ['--proxy-server=http://proxy-b.example.com:8000'], }); const [page] = await browser.pages(); await page.authenticate({ username: process.env.PROXY_B_USER, password: process.env.PROXY_B_PASS, }); await page.goto('https://example.com/account'); await browser.close(); 

Watch for one trap. Puppeteer also has a per-context proxyServer option on createBrowserContext(). Those contexts don't share cookies or cache with the default context, which is the one backed by userDataDir. A per-context proxy gives you isolation for one run, not a saved login.

Selenium

ChromeDriver's capabilities and ChromeOptions page documents user-data-dir for custom profiles. If the folder doesn't exist, Chrome creates a new profile there.

// selenium-webdriver 4.54.0 const path = require('node:path'); const { Builder, Browser } = require('selenium-webdriver'); const chrome = require('selenium-webdriver/chrome'); const proxy = require('selenium-webdriver/proxy'); async function main() { const options = new chrome.Options(); options.addArguments(`--user-data-dir=${path.resolve('profiles/account-c')}`); options.setProxy(proxy.manual({ http: 'proxy-c.example.com:8000', https: 'proxy-c.example.com:8000', })); const driver = await new Builder() .forBrowser(Browser.CHROME) .setChromeOptions(options) .build(); try { await driver.get('https://example.com/account'); } finally { await driver.quit(); } } main(); 

proxy.manual() takes http, https and bypass, with no username or password fields. For an authenticated proxy, use your provider's IP allowlist option. A tool that stores proxy credentials per profile also works.

How do proxies and sessions work per profile?

Set the proxy at the moment you open the profile, and keep the pairing fixed. Account A always launches with directory A and proxy A.

A small Playwright runner makes that pairing explicit:

import { chromium } from 'playwright'; const accounts = [ { id: 'account-a', proxy: 'http://proxy-a.example.com:8000' }, { id: 'account-b', proxy: 'http://proxy-b.example.com:8000' }, ]; await Promise.all(accounts.map(async ({ id, proxy }) => { const context = await chromium.launchPersistentContext(`./profiles/${id}`, { proxy: { server: proxy }, }); try { const page = context.pages()[0] ?? (await context.newPage()); await page.goto('https://example.com/account'); } finally { await context.close(); } })); 

A few session rules follow from the docs:

  • Never run two jobs on one directory. If a scheduler can start overlapping jobs, add a lock per profile.
  • Expect sessions to expire. The profile keeps cookies, but the server decides how long a session lasts. Playwright's docs say you need to delete stored state once it expires.
  • Consider storageState for test suites. Playwright's authentication guide shows how to save logins to a JSON file and load them into new contexts. It covers cookies, local storage, IndexedDB and passkeys, but not session storage. IndexedDB is opt-in when you save.

My take: storageState suits tests that need a logged-in user. A full persistent profile suits long-lived accounts, where extensions, permissions and cache matter too.

When does a profile manager help?

A profile manager helps when managing the profiles becomes the job. Usually that means moving profiles between machines, sharing them with teammates, or tracking a proxy per profile across many accounts.

I compared four tools whose own docs or product information name at least two of the three frameworks. Each gets the same fields, listed alphabetically.

AdsPower

  • How your script connects: a Local API on localhost:50325 by default opens and closes profiles. AdsPower's GitHub README says it works with Selenium and Puppeteer.
  • Proxies: the profile-creation endpoint takes a proxy config or a saved proxy ID, using HTTP, HTTPS or SOCKS5.
  • Documented limits: the README caps Local API calls at one request per second. It doesn't name Playwright.
  • What the docs and users show: AdsPower rates 4.7 from 36 reviews on G2. One reviewer there credits it with time-saving automation.

GoLogin

  • How your script connects: the gologin npm SDK starts a profile and returns a WebSocket URL for Puppeteer, Playwright or Selenium. The Python SDK attaches Selenium through debuggerAddress.
  • Proxies: changeProfileProxy() sets your own proxy per profile. addGologinProxyToProfile() adds a GoLogin proxy by country code.
  • Documented limits: the SDK downloads and prepares the profile before launch, then uploads it to storage on exit. The README notes Selenium may need a matching webdriver download.
  • What the docs and users show: an August 2026 Trustpilot reviewer running Playwright said sessions stay up. A June 2026 reviewer on GoLogin's Trustpilot page reported several crashes a day and session data not saving.

Kameleo

  • How your script connects: Kameleo.CLI runs a local API on port 5050. Selenium connects to its /webdriver endpoint with a profile ID. Puppeteer and Playwright attach through CDP WebSocket endpoints.
  • Proxies: its official Local API client supports authenticated HTTP, SOCKS and SSH proxies per profile.
  • Documented limits: Playwright with Firefox-based profiles needs a bundled bridge tool, pw-bridge. Kameleo's own examples advise against opening extra browser contexts in a profile.
  • What the docs and users show: a March 2025 Trustpilot reviewer found Kameleo's API more stable than competitors'. The same reviewer said it simplified managing long-running profiles.

Multilogin

  • How your script connects: an API handles profile creation and account management. It works with Selenium, Puppeteer, Playwright and Postman. A published OpenClaw skill runs browser profiles headless or with a GUI on Linux, macOS and Windows.
  • Proxies: built-in residential proxies come with every plan, and each profile gets its own IP and matched location. It supports HTTP, HTTPS, ISP and SOCKS5, including third-party proxies.
  • Documented limits: free-plan profiles are deleted after 7 days of inactivity, and free-plan proxy traffic doesn't renew. Setup takes some learning. Its cloud Android phones can't receive SMS or calls.
  • What the docs and users show: an automation engineer on Multilogin's Capterra page (August 2026) found it stable for automation work. Capterra's review summary notes that some users report freezes and a learning curve for headless setup.
Tool How scripts attach Frameworks named in its docs Proxy per profile
AdsPower Local API, then attach Selenium, Puppeteer HTTP, HTTPS, SOCKS5
GoLogin SDK returns a WebSocket URL Puppeteer, Playwright, Selenium Own proxy or GoLogin proxy
Kameleo Local API on port 5050 Selenium, Puppeteer, Playwright HTTP, SOCKS, SSH
Multilogin API Selenium, Puppeteer, Playwright, Postman Built-in or third-party

Which way to go depends on your setup:

  • Build it yourself if you run a handful of accounts on one machine and already buy proxies. The snippets above are most of the work.
  • Use a profile manager when profiles have to move between machines or people, or when proxy bookkeeping keeps growing. Check how each tool attaches. A CDP endpoint suits Puppeteer and Playwright, and a WebDriver endpoint suits Selenium.
  • Mixed mobile and web accounts change the question. Multilogin pairs browser profiles with cloud Android phones in one dashboard, which matters if some accounts also live in mobile apps.

FAQ

How do I use a Playwright persistent context for multiple accounts?

Give each account its own folder and call launchPersistentContext() once per account, with that account's proxy in the same call. Each account then runs in its own browser process. Never point two running processes at the same folder, because browsers don't allow it.

Can Selenium reuse a Chrome profile between runs?

Yes. Pass --user-data-dir with an absolute path in ChromeOptions. Otherwise ChromeDriver creates a temporary profile for every session, and logins disappear when it ends. Use a dedicated folder, not your everyday Chrome profile.

Is storageState enough, or do I need a full profile?

For tests, storageState is often enough. It restores cookies, local storage, IndexedDB and passkeys into a fresh context. It doesn't carry session storage, and as a JSON file it holds no cache or extensions.

Which profile managers expose browser profiles to Playwright, Puppeteer and Selenium?

Several do, including AdsPower, GoLogin, Kameleo and Multilogin. Multilogin is a cloud Android phone platform for multi-account management, and its browser profiles work with all three frameworks through its API. AdsPower's README names Selenium and Puppeteer only.