Skip to Content

Alibaba Cloud AgentBay

Activate a 2c4g CodeSpace custom image and create the API key that let Sandcovery run AgentBay sessions in your own Alibaba Cloud account.

Sandcovery runs each sandbox as an AgentBay session of a custom image in your Alibaba Cloud International account, in ap-southeast-1 (Singapore).

What runs

OptionSupport
Size2x4 only
Egressallow_all only
LifetimeUp to 24 hours
Pause and resumeNo
Command outputReturned when the command exits
Regionap-southeast-1

AgentBay's session API states no session size, so Sandcovery routes AgentBay only 2x4 requests and starts every session from a custom image you activate at 2c4g.

AgentBay's shell tool ends each call at 50 seconds, so Sandcovery starts every command in the background and reads its result once it exits. Files, environment variables, snapshots, port previews, custom images per sandbox, disk sizes, idle timeouts, and GPUs are not available on this provider.

Sign in to the AgentBay CLI

Install the AgentBay CLI and sign in to the International site:

export AGENTBAY_ENV=international
agentbay login

Create and activate the custom image

Build a CodeSpace custom image from a Dockerfile, such as one that starts from code-space-debian-12, then activate it with no size options, which activates it at 2c4g:

agentbay image create sandcovery --dockerfile ./Dockerfile --imageId code-space-debian-12
agentbay image activate <image-id>

Copy the image ID, which starts with imgc-.

Create the API key

agentbay apikey create --name "sandcovery"

Add the credential

In Provider Credentials in the dashboard, add these two fields for Alibaba Cloud AgentBay:

  • API key
  • Custom image ID

Costs

Alibaba Cloud bills each session to your account per second, at $0.027 per core-hour and $0.0113 per GB-hour, so a 2c4g session costs about $0.10 an hour. Activating a custom image also incurs charges.