Image settings
Configure specifications and regions, sandbox lifecycle, network, display, and MCP tool settings for a custom image in the AgentBay console.
Access image settings
Log on to the AgentBay console.
In the left-side navigation pane, click Image Management (Beta).
On the Images (Beta) page, click the Custom Image tab.
Find the target image and click Settings in the Actions column.
NoteYou can modify settings only when the image is in the Disabled state. If the image is enabled, disable it first. After you finish configuration, click Enable to apply the settings.
Specifications and regions
Configure the instance type and deployment regions for the image.
Parameter | Description |
Instance type | The specification of sandbox instances created from this image. Select an instance type based on your workload requirements. [To be verified in console] |
Regions | The regions where the image is available. Each custom image supports only one region and one instance type. Changes to the region or instance type take effect after a period of time. |
Sandbox lifecycle
Configure when sandbox instances are created and recycled to balance resource usage and availability.
Automatic release: Sessions started from the image close automatically when the configured conditions are met. System images use automatic release by default, and this mode cannot be changed.
Manual release: Sessions started from the image do not close automatically. You must close them manually.
Parameter | Description |
TTL (Time to Live) | The maximum duration that a sandbox instance can exist. After the TTL expires, the instance is automatically recycled. [To be verified in console] |
Idle recycling | The maximum idle time for a sandbox instance. If no activity is detected within this period, the instance is recycled. [To be verified in console] Note Activity detection includes MCP interactions, SDK calls, user operations, and other activities. The sandbox is considered inactive and the idle timer starts only after all these activities have stopped. |
Network redirection
In the Network Configuration section, select a network type based on your bandwidth and connectivity requirements.
If the proxy server enables username/password authentication, you must also provide a valid username and password.
IP whitelist mode
You can import a whitelist.
After you configure an IP whitelist, only requests to whitelisted domains are redirected to the custom IP address. Configure the following parameters:
Domain name: Network redirection is triggered when a request involves this domain.
Server IP address: The final destination of the traffic.
Port: The service entry point.
Basic networking
When you select Basic Networking, sandbox instances use shared, free bandwidth. The maximum bandwidth for a single session is 5 Mbps.
Advanced networking
When you select Advanced Networking, sandbox instances use dedicated, paid bandwidth and are billed on a pay-by-data-transfer basis. A maximum of 1,000 concurrent sessions is supported.
To limit the bandwidth for a single session, turn on Maximum public bandwidth per session and specify a value. Valid values: 2 to 200. Unit: Mbps.
Custom network
When you select Customize Network, sandbox instances are created in a specified virtual private cloud (VPC). You can customize the network configuration.
Select a VPC and a vSwitch. If no VPC or vSwitch is available, see Create a VPC and a vSwitch.
Note the following limits:
The VPC must be in the China (Hangzhou) region.
Only vSwitches in Hangzhou Zone B (cn-hangzhou-b) are supported.
Display settings
Configure the visual output of sandbox instances.
Parameter | Description |
Resolution | The display resolution of the sandbox instance. Select a resolution based on your use case. [To be verified in console] |
MCP tool settings
Model Context Protocol (MCP) tools extend the capabilities of AI models by enabling interaction with external systems and services. Configure the tools available in the sandbox environment.
System images load the relevant MCP tools by default based on the image type. These tools cannot be modified manually.
For custom images, you can add or remove MCP tools as needed.
To configure MCP tools for your image: [To be verified in console]
In the MCP tool settings section, click Add Tool. [To be verified in console]
Configure the tool parameters, including the tool name, endpoint, and authentication method. [To be verified in console]
Click Confirm to save the MCP tool configuration. [To be verified in console]