Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
add docs notice about migrating from cookies_file to storage_state
Nick Sweeting51aee484bf86
diff --git a/docs/customize/browser-settings.mdx b/docs/customize/browser-settings.mdxindex 407a9517c..071540fed 100644--- a/docs/customize/browser-settings.mdx+++ b/docs/customize/browser-settings.mdx@@ -298,13 +298,20 @@ Time to wait between agent actions.cookies_file: str | None = None```+JSON file path to save cookies to.+<Warning>This option is DEPRECATED. Use [`storage_state`](#storage-state) instead, it's the standard playwright format and also supports `localStorage`!-You must transfer any cookies from your existing `cookies_file` to the new format manually, or run `playwright open https://example.com/ --save-storage=auth.json` to create a new file in the new format.+Transfer any cookies from your existing `cookies_file` to the new JSON format:++`cookies_file.json`: `[{cookie}, {cookie}, {cookie}]`+⬇️+`storage_state.json`: `{"cookies": [{cookie}, {cookie}, {cookie}], "origins": {... optional localstorage state ...}}`++Or run `playwright open https://example.com/ --save-storage=storage_state.json` and log into any sites you need.</Warning>-File to save cookies to.#### `downloads_dir`