Alibaba Cloud Agent Sandbox Express Edition
Built inBuilt inDefault provider of the CLI and the Python SDK. abx template deploy builds and registers templates here.
Use
python
from agent_sandbox import Sandbox
# TemplateID from abx template deploy, or the --alias you passed.
sandbox = await Sandbox.create(template="<TemplateID>")Capabilities 18 capabilities
Sandbox
Create, connect, list, kill
sandbox.lifecycleChange lifetime
sandbox.timeoutPause and resume
sandbox.pauseExecution
Run a command
exec.runStream output
exec.streamList and signal processes
process.manageInteractive terminal
ptyFiles
Read, write, directories, rename
files.rwWatch a directory
files.watchUpload and download URLs
files.transferCode
Code interpreter
code.interpretTemplates
Read templates
templates.readBuild templates
templates.buildNetwork and storage
Port URLs
ports.urlCustom domains
ports.domainMount storage
storage.mountVPC networking
network.vpcSessions
Named commands in the sandbox
sessionsConfiguration
Secrets are read only from the provider's own environment variables. The Express key is never forwarded.
| Name | Environment variables | Description |
|---|---|---|
sandbox_api_key Secret | ABX_SANDBOX_API_KEY | API key of the Express edition. |
region | ALIBABA_CLOUD_REGION_ID | Region. Default cn-hangzhou. Not ABX_SANDBOX_REGION. |
sandbox_base_url | ABX_SANDBOX_BASE_URL | Override the platform API origin. |
sandbox_domain | ABX_SANDBOX_DOMAIN | Domain used for port URLs. |
access_key_id Secret | ALICLOUD_ACCESS_KEY_ID | AccessKey ID for template deploy. Not ALIBABA_CLOUD_ACCESS_KEY_ID or AccessKey. |
access_key_secret Secret | ALICLOUD_ACCESS_KEY_SECRET | AccessKey secret. Not ALIBABA_CLOUD_ACCESS_KEY_SECRET or AccessSecret. |