Advanced configuration

更新时间:
复制 MD 格式

You can configure custom endpoints for the AgentBay SDK to optimize network performance across regions.

Configure SDK endpoint

The AgentBay SDK connects to the China (Shanghai) endpoint by default. If you connect from another region such as Singapore, configure a different endpoint for better network performance.

Supported endpoint regions

Choose the gateway closest to your users for optimal network performance.

Note

If you plan to switch to the Singapore region, replace the AGENTBAY_API_KEY in the environment variable with the API key generated by the AgentBay service on the Alibaba Cloud International site. If an API key is not available, log on to the AgentBay console to create one.

Endpoint region

Endpoint

China (Shanghai) (Default)

wuyingai.cn-shanghai.aliyuncs.com

Singapore

wuyingai.ap-southeast-1.aliyuncs.com

Change gateway address

Linux/macOS:

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

Windows:

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