SKILL.md
Bailian Sandbox (bl sandbox)
Before running bl, read the shared bailian-protocol for consent, high-risk confirmation, version checks, call attribution, authentication, and error handling. If it is missing, stop execution and prompt the user to install the full family with bl skill init. Examples in reference/ stay bare; wrap with Call attribution when running.
Call attribution: Examples below and in reference/ stay bare bl …. When running a command, wrap it with bailian-protocol → Call attribution (bash or PowerShell). One sample for this skill (BAILIAN_SKILL_NAME=bailian-sandbox; replace codex with this host). bl auth / bl config are owned by bailian-cli.
BAILIAN_CALLER_TYPE=agent BAILIAN_CALLER_NAME=codex BAILIAN_SKILL_NAME=bailian-sandbox BAILIAN_SKILL_VERSION=2.5.0 bl sandbox list
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.