Communityコーディング&開発github.com

browserbase/cookie-sync

ローカルChromeのCookieをBrowserbaseの永続コンテキストに同期し、browse CLIが認証済みサイトにアクセスできるようにします。ユーザーが自分自身としてブラウジングしたい場合や、Cookieを同期したい場合、Browserbaseを介してサイトにログインしたい場合に使用します。

cookie-sync とは?

browserbase/cookie-syncは、ローカルChromeブラウザからBrowserbaseの永続コンテキストへCookieを同期するためのAIエージェントスキルです。これにより、browse CLIが認証を必要とするサイトにアクセスできるようになります。主なユースケースは、ユーザーが自分自身のブラウジングセッションを維持したい場合、特定のサイトにログイン済みの状態をBrowserbase上で再現したい場合、または手動でCookieをコピーせずに認証情報を移行したい場合です。このスキルは、AI開発ツール(Claude Code、Cursor、Codexなど)と連携し、ブラウザ自動化タスクを実行する際に、ユーザーの個人データやログイン状態を安全に活用することを可能にします。動作としては、ローカルChromeから特定のドメインのCookieを抽出し、BrowserbaseのAPIを介して永続コンテキストにインポートします。これにより、ユーザーは毎回ログインすることなく、AIエージェントに認証済みのブラウジング操作を委任できます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/browserbase/skills/tree/main/skills/cookie-sync

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

cookie-sync は何をしますか?

ローカルChromeのCookieをBrowserbaseの永続コンテキストに同期し、browse CLIが認証済みサイトにアクセスできるようにします。ユーザーが自分自身としてブラウジングしたい場合や、Cookieを同期したい場合、Browserbaseを介してサイトにログインしたい場合に使用します。

概要

このスキルは、ブラウザ自動化AIエージェント(例:Claude Code、Cursor、Codex)と連携して、ユーザーのローカルブラウザセッションのCookieを安全にBrowserbase環境に転送します。これにより、AIエージェントはユーザーに代わって認証済みの状態でWebサイトにアクセスし、操作を実行できます。

前提条件

  • Browserbaseアカウントとプロジェクトが必要です。
  • 環境変数 BROWSERBASE_API_KEY と BROWSERBASE_PROJECT_ID が設定されていることを確認してください。
  • ローカルマシンにGoogle Chromeがインストールされている必要があります。

使い方

  1. ローカルChromeで目的のサイトにログインします(例:https://example.com)。
  2. 以下のコマンドを実行してCookieを同期します:
browserbase cookie-sync --domain example.com
  1. これで、browse CLIを使用して認証済みのサイトにアクセスできます:
browse https://example.com/dashboard

オプション

オプション説明
--domain同期するCookieのドメイン(必須)
--profile使用するChromeプロファイル(デフォルト:Default)
--context-id特定のBrowserbaseコンテキストID(オプション)

注意事項

  • 同期されるCookieは、指定されたドメインのもののみです。すべてのCookieが転送されるわけではありません。
  • ローカルChromeが実行中でない場合、またはアクセス権限がない場合はエラーが発生します。
  • Browserbaseの永続コンテキストは、事前に作成しておく必要があります。

関連リソース

Individual skills in this repo

This repo contains 10 individual skills — each has its own dedicated page.

browserbase/autobrowse

Self-improving browser automation via the auto-research loop. Iteratively runs a browsing task, reads the trace, and improves the navigation skill (strategy.md) until it reliably passes. Supports parallel runs across multiple tasks using sub-agents. Use when you want to build or improve browser automation skills for specific website tasks.

browserbase/browser

Automate web browser interactions using natural language via CLI commands. Use when the user asks to browse websites, navigate web pages, extract data from websites, take screenshots, fill forms, click buttons, or interact with web applications. Supports remote Browserbase sessions with Browserbase Identity, Verified browsers, automatic CAPTCHA solving, and residential proxies — ideal for protected websites and JavaScript-heavy pages.

browserbase/browserbase-cli

Use the Browserbase CLI (`browse`) for Browserbase Functions and platform API workflows. Use when the user asks to run `browse`, deploy or invoke functions, manage sessions, projects, contexts, or extensions, fetch a page through the Browserbase Fetch API, search the web through the Browserbase Search API, or scaffold starter templates. Prefer the Browser skill for interactive browsing; use the top-level `browse` driver commands (`browse open`, `browse get`, etc.) only when the user explicitly wants the CLI path.

browserbase/browser-to-api

Turn a website's observable HTTP traffic into a best-effort OpenAPI 3.1 spec by analyzing a `browser-trace` capture. Use when the user wants to discover/extract API endpoints from a browser session, build an OpenAPI doc from network traffic, or document a third-party site's XHR/fetch surface for client integration.

browserbase/browser-trace

Capture a full DevTools-protocol trace of any browser automation — CDP firehose, screenshots, and DOM dumps — then bisect the stream into per-page searchable buckets. Use when the user wants to debug a failed run, audit network/console/DOM activity, attach a trace to an in-progress session, or feed structured per-page summaries back into an agent loop so its next iteration learns from the last one.

browserbase/event-prospecting

Event prospecting skill. Takes a conference / event speakers URL, extracts the people, filters their companies against the user's ICP, then deep-researches only the speakers at ICP-fit companies. Outputs a person-first HTML report where each card answers "why should the AE talk to this person?" with all public links and a one-click DM opener. Use when the user wants to: (1) find leads at a specific conference, (2) prep for an event, (3) research event speakers, (4) build a target list from a sponsor/exhibitor page, (5) scrape conference speakers and rank by ICP fit. Triggers: "find leads at {event}", "research speakers at", "prospect this conference", "stripe sessions leads", "ai engineer summit prospects", "event prospecting", "scrape conference speakers", "who should I meet at".

browserbase/fetch

Use this skill when the user wants to retrieve a URL without a full browser session: fetch HTML or JSON from static pages, inspect status codes or headers, follow redirects, or get page source for simple scraping. Prefer it over a browser when JavaScript rendering and page interaction are not needed. Supports proxies and redirect control.

browserbase/functions

Deploy serverless browser automation as cloud functions using Browserbase. Use when the user wants to deploy browser automation to run on a schedule or cron, create a webhook endpoint for browser tasks, run automation in the cloud instead of locally, or asks about Browserbase Functions.

browserbase/safe-browser

Build local constrained-browser agents with a safe_browser tool that owns CDP, enforces a domain allowlist with Fetch interception, and lets a runtime Claude Agent SDK agent complete browsing tasks without raw browser, shell, or CDP access. Use when the user wants an agent to browse or scrape while staying on approved domains, demo blocked off-domain navigation, or generate a safe browser client.

browserbase/ui-test

AI-powered adversarial UI testing via the browse CLI. Analyzes git diffs to test only what changed, or explores the full app to find bugs. Tests functional correctness, accessibility, responsive layout, and UX heuristics. Use when the user asks to test UI changes, QA a pull request, audit accessibility, or run exploratory testing. Supports local browser (localhost) and remote Browserbase (deployed sites).

関連スキル