bailian-sandbox
Installation
SKILL.md
Bailian Sandbox (bl sandbox)
Before running bl, read the shared bailian-protocol for consent, high-risk confirmation, version checks, authentication, and error handling. If it is missing, stop execution and prompt the user to install the full family with bl skill init.
Scope and setup
- Manage Sandbox instances and templates through Bailian's E2B-compatible REST control plane. No E2B SDK or E2B API key is required; authentication uses the Bailian API Key as an Authorization Bearer token.
- Resolve Base URL through the same CLI chain as Managed Agent:
--base-url>DASHSCOPE_BASE_URL> login/profilebase_url. Use an origin such ashttps://workspace.cn-beijing.maas.aliyuncs.com; the CLI strips URL paths/query/fragment and appends/api/v1/agentstudio/sandboxfor lifecycle operations, or/api/v1/agentstudio/filesfor template file uploads. The saved API Key is reused. Profile capability fallback follows the shared protocol for both the key and Base URL. - If no Base URL is configured, resolve the workspace from
--workspace-id, thenBAILIAN_WORKSPACE_ID, then configuredworkspace_id, and usehttps://{workspace_id}.cn-beijing.maas.aliyuncs.com/api/v1/agentstudio/sandbox. With a configured Base URL, the workspace flag is optional. The service currently supportscn-beijingand requires prior Sandbox SLR authorization. - No
agents.yamlor local IaC state is required.get/connectreturn instance connection information; neither opens an interactive shell or browser. For WebShell, CDP, or VNC, use that information with the runtime APIs described below. Do not inventbl sandbox exec,webshell, or browser subcommands.