BytePlus Cloud Sandbox
OpenClaw plugin for BytePlus cloud sandbox backend — provisions and manages VeFaaS instances for agent code execution.
Install
$
openclaw plugins install clawhub:openclaw-plugin-byteplus-sandboxopenclaw-plugin-byteplus-sandbox
BytePlus VeFaaS cloud sandbox backend for OpenClaw.
Commands run over HTTP through a BytePlus API Gateway endpoint — no SSH, no VPC, no security group configuration needed. Just point it at your API Gateway URL.
Requirements
- OpenClaw >= 2026.3.22
- A BytePlus VeFaaS sandbox instance (pre-existing or auto-created)
- BytePlus API Gateway endpoint for the VeFaaS function
Quick Start
Option A — Connect to an existing sandbox
Add to ~/.openclaw/openclaw.json:
{
"plugins": {
"allow": ["byteplus-sandbox"],
"entries": {
"byteplus-sandbox": {
"config": {
"endpoint": "https://xxx.apigateway-ap-southeast-1.apigw-byteplus.com",
"sandboxId": "your-vefaas-instance-id"
}
}
}
},
"agents": {
"defaults": {
"sandbox": {
"mode": "all",
"backend": "byteplus"
}
}
}
}
Option B — Auto-create sandbox on first use
Set credentials and provide your VeFaaS function ID:
export BYTEPLUS_ACCESS_KEY_ID=your-ak
export BYTEPLUS_SECRET_ACCESS_KEY=your-sk
{
"plugins": {
"allow": ["byteplus-sandbox"],
"entries": {
"byteplus-sandbox": {
"config": {
"endpoint": "https://xxx.apigateway-ap-southeast-1.apigw-byteplus.com",
"functionId": "your-vefaas-function-id",
"timeoutMin": 60
}
}
}
},
"agents": {
"defaults": {
"sandbox": { "mode": "all", "backend": "byteplus" }
}
}
}
When sandboxId is omitted, the plugin calls CreateSandbox on first use and caches the result in ~/.openclaw/byteplus-sandbox-registry.json. The sandbox is killed when the agent process exits.
How It Works
OpenClaw Agent
│
│ runShellCommand / exec tool
▼
Plugin backend (src/backend.ts)
│
│ HTTP POST v1/shell/exec
▼
BytePlus API Gateway
│
│ routes via faasInstanceName=<sandboxId>
▼
VeFaaS sandbox instance
└─ shell commands execute here
No SSH tunnels, no VMs to manage. The sandbox is a serverless container.
Configuration Reference
| Field | Default | Description |
|---|---|---|
endpoint | — | Required. BytePlus API Gateway base URL |
sandboxId | auto | VeFaaS instance ID. Omit to auto-create |
workdir | /home/gem | Working directory in sandbox |
token | — | Bearer token for API Gateway auth |
functionId | — | VeFaaS function ID (for auto-create) |
timeoutMin | 60 | Sandbox timeout in minutes |
region | ap-southeast-1 | BytePlus region |
Environment Variables
| Variable | Description |
|---|---|
BYTEPLUS_ACCESS_KEY_ID | BytePlus Access Key ID (for auto-create) |
BYTEPLUS_SECRET_ACCESS_KEY | BytePlus Secret Access Key (for auto-create) |
Getting the API Gateway URL
In the BytePlus console:
- Open VeFaaS → your function
- Click API Gateway or Trigger configuration
- Copy the endpoint URL (format:
https://xxx.apigateway-ap-southeast-1.apigw-byteplus.com)
License
MIT
