A

agentcore

by @vercel-labsv
4.9(85)

在AWS Bedrock云浏览器会话中运行agent-browser,所有标准命令完全兼容,自动处理凭证解析

awsserverlessbrowser-automationcloud-infrastructureagentGitHub
安装方式
npx skills add https://github.com/vercel-labs/agent-browser --skill agent-browser
compare_arrows

Before / After 效果对比

1 组
使用前

本地运行浏览器自动化需要安装Chrome、配置驱动、管理资源消耗,CI/CD环境还需要额外配置和优化

使用后

自动在AWS Bedrock托管浏览器会话中运行,无需本地安装,自动解析AWS凭证,所有标准命令开箱即用

SKILL.md

agentcore

AWS Bedrock AgentCore

Run agent-browser on cloud browser sessions hosted by AWS Bedrock AgentCore. All standard agent-browser commands work identically; the only difference is where the browser runs.

Setup

Credentials are resolved automatically:

  • Environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, optionally AWS_SESSION_TOKEN)

  • AWS CLI fallback (aws configure export-credentials), which supports SSO, IAM roles, and named profiles

No additional setup is needed if the user already has working AWS credentials.

Core Workflow

# Open a page on an AgentCore cloud browser
agent-browser -p agentcore open https://example.com

# Everything else is the same as local Chrome
agent-browser snapshot -i
agent-browser click @e1
agent-browser screenshot page.png
agent-browser close

Environment Variables

Variable Description Default

AGENTCORE_REGION AWS region us-east-1

AGENTCORE_BROWSER_ID Browser identifier aws.browser.v1

AGENTCORE_PROFILE_ID Persistent browser profile (cookies, localStorage) (none)

AGENTCORE_SESSION_TIMEOUT Session timeout in seconds 3600

AWS_PROFILE AWS CLI profile for credential resolution default

Persistent Profiles

Use AGENTCORE_PROFILE_ID to persist browser state across sessions. This is useful for maintaining login sessions:

# First run: log in
AGENTCORE_PROFILE_ID=my-app agent-browser -p agentcore open https://app.example.com/login
agent-browser snapshot -i
agent-browser fill @e1 "user@example.com"
agent-browser fill @e2 "password"
agent-browser click @e3
agent-browser close

# Future runs: already authenticated
AGENTCORE_PROFILE_ID=my-app agent-browser -p agentcore open https://app.example.com/dashboard

Live View

When a session starts, AgentCore prints a Live View URL to stderr. Open it in a browser to watch the session in real time from the AWS Console:

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

Region Selection

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

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

Credential Patterns

# Explicit credentials (CI/CD, scripts)
export AWS_ACCESS_KEY_ID=AKIA...
export AWS_SECRET_ACCESS_KEY=...
agent-browser -p agentcore open https://example.com

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

# IAM role / default credential chain
agent-browser -p agentcore open https://example.com

Using with AGENT_BROWSER_PROVIDER

Set the provider via environment variable to avoid passing -p agentcore on every command:

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

Common Issues

"Failed to run aws CLI" means AWS CLI is not installed or not in PATH. Either install it or set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY directly.

"AWS CLI failed: ... Run 'aws sso login'" means SSO credentials have expired. Run aws sso login to refresh them.

Session timeout: The default is 3600 seconds (1 hour). For longer tasks, increase with AGENTCORE_SESSION_TIMEOUT=7200. Weekly Installs1.5KRepositoryvercel-labs/age…-browserGitHub Stars28.0KFirst Seen5 days agoSecurity AuditsGen Agent Trust HubPassSocketPassSnykWarnInstalled oncodex1.3Kopencode1.3Kcursor1.3Kgemini-cli1.3Kgithub-copilot1.3Kcline1.3K

用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量321.2K
评分4.9 / 5.0
版本
更新日期2026年5月31日
对比案例1 组

用户评分

4.9(85)
5
49%
4
49%
3
1%
2
0%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code

时间线

创建2026年4月9日
最后更新2026年5月31日
🎁 Agent 知识卡片
调研问卷