Communitygithub.com

vercel-labs/agentcore

Führe agent-browser auf AWS Bedrock AgentCore Cloud-Browsern aus. Für Aufgaben, die AgentCore, Browser-Automatisierung in AWS, Cloud-Browser mit AWS-Anmeldeinformationen oder verwaltete Browsersitzungen auf AWS-Infrastruktur erfordern.

Was ist agentcore?

Diese Fähigkeit ermöglicht es agent-browser, auf AWS Bedrock AgentCore Cloud-Browsern ausgeführt zu werden, wobei alle Standardbefehle erhalten bleiben – der einzige Unterschied ist der Standort des Browsers. Sie ist nützlich, wenn Sie eine skalierbare, AWS-hosted Browser-Automatisierung mit Unterstützung für persistente Profile, Live-View und verschiedene Authentifizierungsmethoden (Umgebungsvariablen, AWS CLI, SSO, IAM-Rollen) benötigen. Die Fähigkeit funktioniert mit agent-browser (npm Paket) und erfordert keine zusätzliche Einrichtung, wenn gültige AWS-Anmeldeinformationen vorhanden sind. Sie unterstützt die automatische Auflösung von Anmeldeinformationen, persistente Browser-Profile (Cookies, localStorage), Sitzungs-Zeitlimits und Region-Auswahl über Umgebungsvariablen. Der Live-View zeigt die Sitzung in Echtzeit über die AWS-Konsole an, und häufige Probleme wie abgelaufene SSO-Anmeldeinformationen werden klar beschrieben.

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

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

AWS Bedrock AgentCore

Führe agent-browser auf Cloud-Browser-Sitzungen aus, die von AWS Bedrock AgentCore gehostet werden. Alle Standardbefehle von agent-browser funktionieren identisch; der einzige Unterschied ist, wo der Browser läuft.

Einrichtung

Anmeldeinformationen werden automatisch aufgelöst:

  1. Umgebungsvariablen (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, optional AWS_SESSION_TOKEN)
  2. AWS CLI Fallback (aws configure export-credentials), das SSO, IAM-Rollen und benannte Profile unterstützt

Es ist keine zusätzliche Einrichtung erforderlich, wenn der Benutzer bereits funktionierende AWS-Anmeldeinformationen hat.

Kern-Workflow

# Öffne eine Seite auf einem AgentCore Cloud-Browser
agent-browser -p agentcore open https://example.com

# Alles andere ist identisch mit lokalem Chrome
agent-browser snapshot -i
agent-browser click @e1
agent-browser screenshot page.png
agent-browser close

Umgebungsvariablen

VariableBeschreibungStandardwert
AGENTCORE_REGIONAWS-Regionus-east-1
AGENTCORE_BROWSER_IDBrowser-Identifikatoraws.browser.v1
AGENTCORE_PROFILE_IDPersönliches Browser-Profil (Cookies, localStorage)(keine)
AGENTCORE_SESSION_TIMEOUTSitzungs-Timeout in Sekunden3600
AWS_PROFILEAWS CLI-Profil für die Anmeldeinformationsauflösungdefault

Persistente Profile

Verwende AGENTCORE_PROFILE_ID, um den Browser-Status über Sitzungen hinweg zu speichern. Dies ist nützlich, um Anmeldesitzungen aufrechtzuerhalten:

# Erster Durchlauf: Anmelden
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

# Nachfolgende Durchläufe: bereits authentifiziert
AGENTCORE_PROFILE_ID=my-app agent-browser -p agentcore open https://app.example.com/dashboard

Live-Ansicht

Wenn eine Sitzung startet, gibt AgentCore eine Live-View-URL auf stderr aus. Öffne sie in einem Browser, um die Sitzung in Echtzeit über die AWS-Konsole zu verfolgen:

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

Region-Auswahl

# Standard: us-east-1
agent-browser -p agentcore open https://example.com

# Explizite Region
AGENTCORE_REGION=eu-west-1 agent-browser -p agentcore open https://example.com

Anmeldeinformationsmuster

# Explizite Anmeldeinformationen (CI/CD, Skripte)
export AWS_ACCESS_KEY_ID=AKIA...
export AWS_SECRET_ACCESS_KEY=...
agent-browser -p agentcore open https://example.com

# SSO (interaktiv)
aws sso login --profile my-profile
AWS_PROFILE=my-profile agent-browser -p agentcore open https://example.com

# IAM-Rolle / Standard-Anmeldeinformationskette
agent-browser -p agentcore open https://example.com

Verwendung mit AGENT_BROWSER_PROVIDER

Setze den Anbieter über eine Umgebungsvariable, um bei jedem Befehl die Angabe von -p agentcore zu vermeiden:

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

Häufige Probleme

„Fehler beim Ausführen der AWS CLI“ bedeutet, dass die AWS CLI nicht installiert oder nicht im PATH ist. Installiere sie oder setze AWS_ACCESS_KEY_ID und AWS_SECRET_ACCESS_KEY direkt.

„AWS CLI fehlgeschlagen: ... Führe 'aws sso login' aus“ bedeutet, dass die SSO-Anmeldeinformationen abgelaufen sind. Führe aws sso login aus, um sie zu erneuern.

Sitzungs-Timeout: Der Standardwert beträgt 3600 Sekunden (1 Stunde). Für längere Aufgaben erhöhe den Wert mit 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.

Verwandte Skills