All Products
Search
Document Center

AgentBay:Advanced configuration

Last Updated:Mar 25, 2026

This topic describes the advanced configurations for the AgentBay SDK.

Configure SDK endpoint

The AgentBay SDK uses the China (Shanghai) endpoint by default. To improve network performance when connecting from another region, such as Singapore, you can configure a different endpoint.

Supported endpoint regions

The SDK configuration specifies the endpoint for the connection. For optimal network performance, choose the gateway closest to your users.

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