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.
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) |
|
Singapore |
|
Change gateway address
Linux/macOS:
export AGENTBAY_ENDPOINT=wuyingai.ap-southeast-1.aliyuncs.comWindows:
set AGENTBAY_ENDPOINT=wuyingai.ap-southeast-1.aliyuncs.com