Communitygithub.com

vercel-labs/agentcore

Exécute agent-browser sur des navigateurs cloud AWS Bedrock AgentCore. Utilisez-le lorsque l'utilisateur souhaite utiliser AgentCore, automatiser un navigateur sur AWS, utiliser un navigateur cloud avec des identifiants AWS, ou a besoin d'une session navigateur gérée par l'infrastructure AWS.

Qu'est-ce que agentcore ?

Cette compétence permet d'exécuter agent-browser sur des sessions de navigateur cloud hébergées par AWS Bedrock AgentCore. Toutes les commandes standard d'agent-browser fonctionnent de manière identique ; la seule différence est l'emplacement où le navigateur s'exécute. Elle prend en charge plusieurs modes d'authentification AWS, y compris les variables d'environnement, l'interface en ligne de commande AWS (avec SSO, rôles IAM et profils nommés), et la chaîne d'identification par défaut. La compétence est utile pour les développeurs et les agents IA qui ont besoin d'automatiser des navigateurs dans un environnement cloud géré par AWS, avec des fonctionnalités comme les profils persistants pour maintenir les sessions de connexion, le Live View pour observer les sessions en temps réel, et la sélection de région. Elle est conçue pour fonctionner avec les plateformes d'agents IA telles que Claude Code, Cursor, Codex, et d'autres qui utilisent agent-browser.

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

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

AWS Bedrock AgentCore

Exécute agent-browser sur des sessions de navigateur cloud hébergées par AWS Bedrock AgentCore. Toutes les commandes standard d'agent-browser fonctionnent de manière identique ; la seule différence est l'emplacement où le navigateur s'exécute.

Configuration

Les identifiants sont résolus automatiquement :

  1. Variables d'environnement (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, éventuellement AWS_SESSION_TOKEN)
  2. Secours via l'interface en ligne de commande AWS (aws configure export-credentials), qui prend en charge SSO, les rôles IAM et les profils nommés

Aucune configuration supplémentaire n'est nécessaire si l'utilisateur possède déjà des identifiants AWS fonctionnels.

Flux de travail principal

# Ouvrir une page sur un navigateur cloud AgentCore
agent-browser -p agentcore open https://exemple.com

# Tout le reste est identique à Chrome local
agent-browser snapshot -i
agent-browser click @e1
agent-browser screenshot page.png
agent-browser close

Variables d'environnement

VariableDescriptionValeur par défaut
AGENTCORE_REGIONRégion AWSus-east-1
AGENTCORE_BROWSER_IDIdentifiant du navigateuraws.browser.v1
AGENTCORE_PROFILE_IDProfil navigateur persistant (cookies, localStorage)(aucun)
AGENTCORE_SESSION_TIMEOUTDélai d'expiration de session en secondes3600
AWS_PROFILEProfil AWS CLI pour la résolution des identifiantsdefault

Profils persistants

Utilisez AGENTCORE_PROFILE_ID pour conserver l'état du navigateur entre les sessions. Cela est utile pour maintenir les sessions de connexion :

# Première exécution : connexion
AGENTCORE_PROFILE_ID=mon-app agent-browser -p agentcore open https://app.exemple.com/connexion
agent-browser snapshot -i
agent-browser fill @e1 "[email protected]"
agent-browser fill @e2 "motdepasse"
agent-browser click @e3
agent-browser close

# Exécutions ultérieures : déjà authentifié
AGENTCORE_PROFILE_ID=mon-app agent-browser -p agentcore open https://app.exemple.com/tableau-de-bord

Vue en direct

Lorsqu'une session démarre, AgentCore imprime une URL de vue en direct sur stderr. Ouvrez-la dans un navigateur pour regarder la session en temps réel depuis la console AWS :

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

Sélection de région

# Par défaut : us-east-1
agent-browser -p agentcore open https://exemple.com

# Région explicite
AGENTCORE_REGION=eu-west-1 agent-browser -p agentcore open https://exemple.com

Modes d'identification

# Identifiants explicites (CI/CD, scripts)
export AWS_ACCESS_KEY_ID=AKIA...
export AWS_SECRET_ACCESS_KEY=...
agent-browser -p agentcore open https://exemple.com

# SSO (interactif)
aws sso login --profile mon-profil
AWS_PROFILE=mon-profil agent-browser -p agentcore open https://exemple.com

# Rôle IAM / chaîne d'identification par défaut
agent-browser -p agentcore open https://exemple.com

Utilisation avec AGENT_BROWSER_PROVIDER

Définissez le fournisseur via une variable d'environnement pour éviter de passer -p agentcore à chaque commande :

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

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

Problèmes courants

« Échec de l'exécution d'aws CLI » signifie que l'interface en ligne de commande AWS n'est pas installée ou n'est pas dans le PATH. Installez-la ou définissez directement AWS_ACCESS_KEY_ID et AWS_SECRET_ACCESS_KEY.

« Échec d'aws CLI : ... Exécutez 'aws sso login' » signifie que les identifiants SSO ont expiré. Exécutez aws sso login pour les rafraîchir.

Expiration de session : La valeur par défaut est de 3600 secondes (1 heure). Pour les tâches plus longues, augmentez-la avec 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.

Skills associés