全部产品
Search
文档中心

无影 Agent 开发套件 AgentBay:高级配置

更新时间:Mar 13, 2026

本文介绍关于无影AgentBay SDK的更多高级配置。

配置SDK Endpoint

无影 AgentBay SDK 默认使用上海Endpoint,如果需要通过其他区域(例如新加坡)进行连接,需要配置不同的端点以获得更好的网络性能。

支持的Endpoint区域

SDK配置指定要连接到的Endpoint。建议选择距离用户最近的网关,以获得最佳网络性能。

说明

如果计划切换至新加坡区域,环境变量中AGENTBAY_API_KEY需替换为阿里云国际站无影AgentBay服务创建的API KEY。若无可用API KEY,登录无影 Agent Bay 控制台创建一个API KEY。

Endpoint区域

端点

上海(默认)

wuyingai.cn-shanghai.aliyuncs.com

新加坡

wuyingai.ap-southeast-1.aliyuncs.com

切换网关地址

Linux/macOS:

export AGENTBAY_ENDPOINT=wuyingai.ap-southeast-1.aliyuncs.com

Windows:

set AGENTBAY_ENDPOINT=wuyingai.ap-southeast-1.aliyuncs.com