AgentCore
Section titled “AgentCore”AWS Bedrock AgentCore 提供带 SigV4 认证的云浏览器会话。适合 AWS 环境或需要 AWS 托管云浏览器的场景。
凭据会自动从以下位置解析:
- 环境变量:
AWS_ACCESS_KEY_ID、AWS_SECRET_ACCESS_KEY - AWS CLI:
aws configure export-credentials
agent-browser -p agentcore open https://example.comCI 中可使用:
export AGENT_BROWSER_PROVIDER=agentcoreagent-browser open https://example.com| 变量 | 说明 | 默认值 |
|---|---|---|
AGENTCORE_REGION | AWS 区域 | us-east-1 |
AGENTCORE_BROWSER_ID | 浏览器标识 | aws.browser.v1 |
AGENTCORE_PROFILE_ID | 持久状态 profile | 无 |
AGENTCORE_SESSION_TIMEOUT | 会话超时秒数 | 3600 |
AWS_PROFILE | AWS CLI profile | default |
浏览器 Profile
Section titled “浏览器 Profile”AGENTCORE_PROFILE_ID=my-profile agent-browser -p agentcore open https://example.com设置 profile 后,AgentCore 会自动保存并恢复 cookies、localStorage。