Skills Plugins MCP Prompt Model 博客 我的中心

cookie-sync

Sync cookies from local Chrome to a Browserbase persistent context so the browse CLI can access authenticated sites. Use when the user wants to browse as themselves, sync cookies, or log into sites via Browserbase.

DeepseekModel 官方收录技能 质量 优秀 · 90 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=browserbase-skills-skills-cookie-sync-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name cookie-sync description Sync cookies from local Chrome to a Browserbase persistent context so the browse CLI can access authenticated sites. Use when the user wants to browse as themselves, sync cookies, or log into sites via Browserbase. compatibility Requires Node.js 22+, a local Chromium-based browser (Chrome, Brave, Edge) with remote debugging enabled, and BROWSERBASE_API_KEY. Run `npm install` in the skill directory before first use. license MIT allowed-tools Bash Cookie Sync — Local Chrome → Browserbase Context Exports cookies from your local Chrome and saves them into a Browserbase persistent context . After syncing, use the browse CLI to open authenticated sessions with that context. Supports domain filtering (only sync cookies you need) and context reuse (refresh cookies without creating a new context). Prerequisites Chrome (or Chromium, Brave, Edge) with remote debugging enabled If your browser build exposes chrome://flags/#allow-remote-debugging , enable it and restart the browser Otherwise, launch with --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-debug and set CDP_URL=ws://127.0.0.1:9222 At least one tab open in Chrome Node.js 22+ Environment variable: BROWSERBASE_API_KEY Setup Install dependencies before first use: cd .claude/skills/cookie-sync && npm install Usage Basic — sync all cookies node .claude/skills/cookie-sync/scripts/cookie-sync.mjs Creates a persistent context with all your Chrome cookies. Outputs a context ID. Filter by domain — only sync specific sites node .claude/skills/cookie-sync/scripts/cookie-sync.mjs --domains google.com,github.com Matches the domain and all subdomains (e.g. google.com matches accounts.google.com , mail.google.com , etc.) Refresh cookies in an existing context node .claude/skills/cookie-sync/scripts/cookie-sync.mjs --context ctx_abc123 Re-injects fresh cookies into a previously created context. Use this when cookies have expired. Verified browser mode node .claude/skills/cookie-sync/scripts/cookie-sync.mjs --verified Enables Browserbase Identity with a Verified browser to improve access on protected sites. Recommended for sites like Google that fingerprint browsers. Residential proxy with geolocation node .claude/skills/cookie-sync/scripts/cookie-sync.mjs --proxy "San Francisco,CA,US" Routes through a residential proxy in the specified location. Format: "City,ST,Country" (state is 2-letter code). Helps match your local IP's geolocation so auth cookies aren't rejected. Combine flags node .claude/skills/cookie-sync/scripts/cookie-sync.mjs --domains github.com,google.com --verified --proxy "San Francisco,CA,US" Browsing Authenticated Sites After syncing, use the browse CLI with the context ID: SESSION_JSON= " $(browse cloud sessions create --context-id <ctx-id> --persist --keep-alive) " SESSION_ID= " $(echo " $SESSION_JSON " | jq -r .id) " CONNECT_URL= " $(echo " $SESSION_JSON " | jq -r .connectUrl) " browse open https://mail.google.com --cdp " $CONNECT_URL " The --persist flag on browse cloud sessions create saves any new cookies or state changes back to the context when the cloud session is released, keeping the session fresh for next time. Full workflow example: # Step 1: Sync cookies for Twitter node .claude/skills/cookie-sync/scripts/cookie-sync.mjs --domains x.com,twitter.com # Output: Context ID: ctx_abc123 # Step 2: Browse authenticated Twitter SESSION_JSON= " $(browse cloud sessions create --context-id ctx_abc123 --persist --keep-alive) " SESSION_ID= " $(echo " $SESSION_JSON " | jq -r .id) " CONNECT_URL= " $(echo " $SESSION_JSON " | jq -r .connectUrl) " browse open https://x.com/messages --cdp " $CONNECT_URL " browse snapshot browse screenshot browse stop browse cloud sessions update " $SESSION_ID " --status REQUEST_RELEASE Reusing Contexts for Scheduled Jobs Contexts persist across sessions, making them ideal for scheduled/recurring tasks: Once (laptop open): Run cookie-sync → get a context ID Scheduled jobs: Create a Browserbase session with browse cloud sessions create --context-id <ctx-id> --persist --keep-alive , then attach with browse open <url> --cdp <connectUrl> — no local Chrome needed Re-sync as needed: When cookies expire, run cookie-sync again with --context <ctx-id> to refresh Troubleshooting "No DevToolsActivePort found" → Enable chrome://flags/#allow-remote-debugging if your browser build exposes it, or launch with --remote-debugging-port=9222 and set CDP_URL=ws://127.0.0.1:9222 "No open page targets found" → Open at least one tab in Chrome "WebSocket error" → Chrome may be hung; force quit and reopen it Cookies expired in context → Re-run cookie-sync with --context <id> to refresh Auth rejected by site → Try adding --verified and/or --proxy with a location near you
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。