Communitygithub.com

vercel-labs/agentcore

AWS Bedrock AgentCoreのクラウドブラウザ上でagent-browserを実行します。ユーザーがAgentCoreの使用、AWSでのブラウザ自動化、AWS認証情報を使ったクラウドブラウザ、AWSインフラストラクチャによる管理ブラウザセッションを必要とする場合に使用します。

agentcore とは?

このスキルは、AWS Bedrock AgentCoreがホストするクラウドブラウザセッション上でagent-browserを実行できるようにします。すべての標準的なagent-browserコマンドはそのまま動作し、唯一の違いはブラウザがどこで実行されるかだけです。認証情報は環境変数(AWS_ACCESS_KEY_ID、AWS_SECRET_ACCESS_KEY、AWS_SESSION_TOKEN)またはAWS CLIのフォールバック(aws configure export-credentials)によって自動的に解決され、SSO、IAMロール、名前付きプロファイルをサポートします。主なユースケースには、AWSインフラストラクチャ上でのブラウザ自動化、永続プロファイル(AGENTCORE_PROFILE_ID)によるログインセッションの維持、AWSコンソール経由のリアルタイムライブビュー、AGENT_BROWSER_PROVIDER環境変数によるプロバイダ設定の簡略化などがあります。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/vercel-labs/agent-browser/tree/main/skill-data/agentcore

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

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

ドキュメント

AWS Bedrock AgentCore

AWS Bedrock AgentCoreがホストするクラウドブラウザセッション上でagent-browserを実行します。すべての標準的なagent-browserコマンドは同じように動作します。唯一の違いはブラウザの実行場所です。

セットアップ

認証情報は自動的に解決されます:

  1. 環境変数(AWS_ACCESS_KEY_ID、AWS_SECRET_ACCESS_KEY、必要に応じてAWS_SESSION_TOKEN)
  2. AWS CLIのフォールバック(aws configure export-credentials)。SSO、IAMロール、名前付きプロファイルをサポートします

ユーザーがすでに有効なAWS認証情報を持っている場合、追加のセットアップは不要です。

コアワークフロー

# AgentCoreクラウドブラウザでページを開く
agent-browser -p agentcore open https://example.com

# それ以外はすべてローカルChromeと同じ
agent-browser snapshot -i
agent-browser click @e1
agent-browser screenshot page.png
agent-browser close

環境変数

変数説明デフォルト値
AGENTCORE_REGIONAWSリージョンus-east-1
AGENTCORE_BROWSER_IDブラウザ識別子aws.browser.v1
AGENTCORE_PROFILE_ID永続ブラウザプロファイル(クッキー、localStorage)(なし)
AGENTCORE_SESSION_TIMEOUTセッションタイムアウト(秒)3600
AWS_PROFILE認証情報解決用のAWS CLIプロファイルdefault

永続プロファイル

AGENTCORE_PROFILE_IDを使用して、セッション間でブラウザの状態を保持します。これはログインセッションを維持するのに便利です:

# 初回実行:ログイン
AGENTCORE_PROFILE_ID=my-app agent-browser -p agentcore open https://app.example.com/login
agent-browser snapshot -i
agent-browser fill @e1 "[email protected]"
agent-browser fill @e2 "password"
agent-browser click @e3
agent-browser close

# 以降の実行:認証済み
AGENTCORE_PROFILE_ID=my-app agent-browser -p agentcore open https://app.example.com/dashboard

ライブビュー

セッションが開始されると、AgentCoreはライブビューURLを標準エラー出力に出力します。ブラウザで開くと、AWSコンソールからセッションをリアルタイムで視聴できます:

Session: abc123-def456
Live View: https://us-east-1.console.aws.amazon.com/bedrock-agentcore/browser/aws.browser.v1/session/abc123-def456#

リージョン選択

# デフォルト:us-east-1
agent-browser -p agentcore open https://example.com

# 明示的なリージョン
AGENTCORE_REGION=eu-west-1 agent-browser -p agentcore open https://example.com

認証情報パターン

# 明示的な認証情報(CI/CD、スクリプト)
export AWS_ACCESS_KEY_ID=AKIA...
export AWS_SECRET_ACCESS_KEY=...
agent-browser -p agentcore open https://example.com

# SSO(インタラクティブ)
aws sso login --profile my-profile
AWS_PROFILE=my-profile agent-browser -p agentcore open https://example.com

# IAMロール / デフォルト認証情報チェーン
agent-browser -p agentcore open https://example.com

AGENT_BROWSER_PROVIDERの使用

環境変数でプロバイダを設定すると、毎回-p agentcoreを指定する必要がなくなります:

export AGENT_BROWSER_PROVIDER=agentcore
export AGENTCORE_REGION=us-east-2

agent-browser open https://example.com
agent-browser snapshot -i
agent-browser click @e1
agent-browser close

よくある問題

「Failed to run aws CLI」 は、AWS CLIがインストールされていないか、PATHに含まれていないことを意味します。AWS CLIをインストールするか、AWS_ACCESS_KEY_IDとAWS_SECRET_ACCESS_KEYを直接設定してください。

「AWS CLI failed: ... Run 'aws sso login'」 は、SSO認証情報の有効期限が切れていることを意味します。aws sso loginを実行して更新してください。

セッションタイムアウト: デフォルトは3600秒(1時間)です。より長いタスクの場合は、AGENTCORE_SESSION_TIMEOUT=7200で増やしてください。

Individual skills in this repo

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

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to

vercel-labs/derive-client

Reverse-engineer a website's internal API by recording browser traffic into a HAR file, then generate a standalone client or CLI that calls the endpoints directly, with no browser needed after the first recording. Use when asked to "derive a client", "build a CLI for <site>", "reverse engineer this site's API", "record network requests", "turn this site into an API", or when the same site will be automated repeatedly and direct HTTP calls would beat driving the browser every time.

vercel-labs/dogfood

Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to "dogfood", "QA", "exploratory test", "find issues", "bug hunt", "test this app/site/platform", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.

vercel-labs/electron

Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include "automate Slack app", "control VS Code", "interact with Discord app", "test this Electron app", "connect to desktop app", or any task requiring automation of a native Electron application.

vercel-labs/protected-vercel-deployments

Access and test Vercel deployments protected by Vercel Authentication, SSO, or Deployment Protection with agent-browser. Use when a preview or production URL redirects to a Vercel login page, returns a protection 401 or 403, or needs short-lived Trusted Sources OIDC authentication instead of a static bypass secret or public exception.

vercel-labs/slack

Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include "check my Slack", "what channels have unreads", "send a message to", "search Slack for", "extract from Slack", "find who said", or any task requiring programmatic Slack interaction.

vercel-labs/vercel-sandbox

Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include "Vercel Sandbox browser", "microVM Chrome", "agent-browser in sandbox", "browser automation on Vercel", or any task requiring Chrome in a Vercel Sandbox.

vercel-labs/webmcp-gen

Build and validate experimental WebMCP tools for an existing web page. Use when an agent needs to expose a site's real workflows as page tools, create webmcp.init.js, define deterministic checks, or compare WebMCP with accessibility-tree automation.

関連スキル