🎯

agentcore

🎯Skill

Lets agent-browser, a tool that controls a web browser for your AI, run that browser in Amazon's AWS cloud. Commands work the same as on your own computer. It uses your existing AWS sign-in and can keep logins between sessions.

vercel-labs/agent-browser2,868 Installs37,762Last Updated Jun 26, 2026

Installation

$npx skills add vercel-labs/agent-browser --skill agentcore

Run it in a terminal; it asks which AI coding tools to install it for (Claude Code, Codex, Cursor and more).

Uses skills.sh Β· Node.js 22.20+

After installing

Ask for related work and the agent uses it on its own, or call it yourself.

Run it (Claude Code)/agentcore
Install by hand

Copy the whole skill folder from GitHub to the place below. Copying only SKILL.md can leave out files the skill uses.

Open the skill folder β†’
  • This project .claude/skills/agentcore/
  • All projects ~/.claude/skills/agentcore/

These paths are for Claude Code. For other tools, the command above puts it in the right place.

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.

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

VariableDescriptionDefault
AGENTCORE_REGIONAWS regionus-east-1
AGENTCORE_BROWSER_IDBrowser identifieraws.browser.v1
AGENTCORE_PROFILE_IDPersistent browser profile (cookies, localStorage)(none)
AGENTCORE_SESSION_TIMEOUTSession timeout in seconds3600
AWS_PROFILEAWS CLI profile for credential resolutiondefault

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.

More from this repository10

🎯
agent-browser🎯Skill

A command-line tool that lets your AI agent control a Chrome browser. It can open pages, fill forms, click buttons, take screenshots and collect data from websites for you.

πŸͺ
vercel-labs-agent-browserπŸͺMarketplace

Browser automation CLI for AI agents

πŸ”Œ
agent-browserπŸ”ŒPlugin

A browser automation CLI for AI agents by Vercel Labs, enabling website navigation, form filling, button clicking, screenshot capture, and data extraction through simple commands.

🎯
dogfood🎯Skill

Systematically explores and tests web applications to find bugs, UX issues, and other problems.

🎯
electron🎯Skill

Skill for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Connects to running Electron apps and controls them programmatically.

🎯
slack🎯Skill

Lets an AI agent use Slack through a browser it controls with agent-browser. It can check unread messages, open channels, search conversations, send messages and take screenshots.

🎯
vercel-sandbox🎯Skill

Shows how to run a Chrome browser inside short-lived virtual machines on Vercel, so an app hosted there can control web pages. You can open sites, take screenshots and read page structure, then the machine shuts down.

🎯
skill-creator🎯Skill

A concise, practical guide for creating specialized skills that extend Claude's capabilities with domain-specific knowledge and workflows.

🎯
core🎯Skill

A basic guide to agent-browser, a command-line tool that lets an AI agent control a Chrome browser. It covers opening pages, clicking, filling forms, pulling out text, taking screenshots and logging in to sites.

🎯
next🎯Skill

Skill