Huawei Cloud AgentArts Runtime
Set up the agent runtime and the runtime API key that let Sandcovery run sandboxes as AgentArts Runtime sessions in your own Huawei Cloud account.
Sandcovery runs each sandbox as a session of an AgentArts agent runtime that you deploy in your Huawei Cloud account, and runs its commands through the runtime's command API. Sandcovery wrote this adapter from Huawei Cloud's public docs and has not run it against Huawei Cloud.
What runs
| Option | Support |
|---|---|
| Size | 2x8 only |
| Egress | allow_all only, from public network mode |
| Lifetime | Up to 7 days |
| Pause and resume | No |
| Command timeout | Up to 300 seconds |
| File uploads | Up to 100 MB a file |
| Region | asia, your runtime's region |
Snapshots, port previews, custom images per sandbox, environment variables set at create, disk sizes, idle timeouts, and GPUs are not available on this provider. File reads and writes take absolute file paths with no .. segment, no line break or null byte, and none of ;, |, &, $, \, !, {, }, or a backtick, as Huawei Cloud's upload API requires.
Deploy the agent runtime
AgentArts is sold on Huawei Cloud's China site, in public beta, so your account needs real-name verification and an approved AgentArts application first, as the getting started guide shows. Then deploy an agent runtime, as the deployment guide shows, with these settings:
- Inbound authentication by API key.
- Public network access.
- The 2 vCPU and 8 GiB spec, the only one a tenant gets by default.
- Idle session timeout and maximum alive time both at
604800seconds, the most the runtime API allows, since the default idle timeout of 900 seconds ends an idle sandbox. - File upload and download turned on, as the file guide requires.
- An image that holds
/bin/sh,mkdir,dirname, and GNUfind, as Debian and Ubuntu images do, run as a user that can write to/tmp.
Find the access domain and the API key
On the runtime's details page, copy its access domain, the host name alone without https://, such as xxxx.cn-southwest-2.huaweicloud-agentarts.com, and its runtime name. Create an API key for the runtime's inbound authentication, as the authentication docs show. That key calls only this runtime.
Add the credential
In Provider Credentials in the dashboard, add these three fields for Huawei Cloud AgentArts Runtime:
- Runtime access domain
- Runtime name
- API key
Costs
Huawei Cloud bills runtime sessions to your account in compute units (CU) for the CPU and memory a session consumes: 1 CU a vCPUh and 0.1 CU a GiB-hour, at CNY 1.1108 a CU below 55,000 CU a month, as the price page lists. Sandcovery's estimates and spend limits count a 2x8 session at full use at that first tier, converted at the US Treasury reporting rate of 6.705 yuan to the dollar into the list price, so a session below full use or past 55,000 CU a month costs less.