Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)45k · #6355

agentcore

Skill này làm gì

Skill này cho phép agent-browser chạy các phiên trình duyệt trên dịch vụ đám mây AgentCore của Amazon. Nó dành cho người đã dùng AWS và muốn có trình duyệt đám mây được quản lý.

Khi nào nên dùng

  • ✓Khi bạn muốn tự động hóa trình duyệt chạy trên hạ tầng AWS thay vì máy tính của bạn.
  • ✓Khi bạn đã có thông tin xác thực AWS và cần một phiên trình duyệt được quản lý.
  • ✓Khi bạn muốn một hồ sơ trình duyệt giữ cookie và trạng thái đăng nhập giữa các phiên.

Liên kết skill

https://github.com/vercel-labs/agent-browser/blob/main/skill-data/agentcore/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/vercel-labs/agent-browser/blob/main/skill-data/agentcore/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Chạy các kiểm tra trình duyệt của tôi trên AWS để tôi không cần mở Chrome trên máy tính.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Nó tự tìm thông tin xác thực AWS của bạn, mở một trình duyệt đám mây, rồi dùng các lệnh chụp snapshot và nhấp giống như trình duyệt cục bộ.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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:

  1. Environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, optionally AWS_SESSION_TOKEN)
  2. 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.

Câu hỏi thường gặp

Tôi có cần thiết lập gì không?

Nếu thông tin xác thực AWS của bạn đã hoạt động, skill nói không cần thiết lập thêm.

Vùng AWS nào được dùng?

Mặc định là us-east-1, nhưng bạn có thể đổi bằng cài đặt AGENTCORE_REGION.

Các phiên có giữ được đăng nhập không?

Có. Một ID hồ sơ bền vững có thể giữ cookie và localStorage qua các phiên.

Chi tiết

Mô tả gốc của tác giả

Run agent-browser on AWS Bedrock AgentCore cloud browsers. Use when the user wants to use AgentCore, run browser automation on AWS, use a cloud browser with AWS credentials, or needs a managed browser session backed by AWS infrastructure. Triggers include "use agentcore", "run on AWS", "cloud browser with AWS", "bedrock browser", "agentcore session", or any task requiring AWS-hosted browser automation.

repo: vercel-labs/agent-browser

Độ phổ biến

Sao GitHub
45k
Vị trí xếp hạng
#6355
Giấy phép
Apache-2.0
Cập nhật
1/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự