AgentSkillsCN

agentuity-cli-cloud-sandbox-create

为多次执行创建交互式沙盒。需要身份验证。适用于 Agentuity 云平台运维。

SKILL.md
--- frontmatter
name: agentuity-cli-cloud-sandbox-create
description: Create an interactive sandbox for multiple executions. Requires authentication. Use for Agentuity cloud platform operations
version: "0.1.24"
license: Apache-2.0
allowed-tools: "Bash(agentuity:*)"
metadata:
  command: "agentuity cloud sandbox create"
  tags: "slow requires-auth"

Cloud Sandbox Create

Create an interactive sandbox for multiple executions

Prerequisites

  • Authenticated with agentuity auth login
  • Organization context required (--org-id or default org)

Usage

bash
agentuity cloud sandbox create [options]

Options

OptionTypeRequiredDefaultDescription
--runtimestringYes-Runtime name (e.g., "bun:1", "python:3.14")
--runtimeIdstringYes-Runtime ID (e.g., "srt_xxx")
--namestringYes-Sandbox name
--descriptionstringYes-Sandbox description
--memorystringYes-Memory limit (e.g., "500Mi", "1Gi")
--cpustringYes-CPU limit in millicores (e.g., "500m", "1000m")
--diskstringYes-Disk limit (e.g., "500Mi", "1Gi")
--networkbooleanYes-Enable outbound network access
--idleTimeoutstringYes-Idle timeout before sandbox is reaped (e.g., "10m", "1h")
--envarrayYes-Environment variables (KEY=VALUE)
--filearrayYes-Files to create in sandbox (sandbox-path:local-path)
--snapshotstringYes-Snapshot ID or tag to restore from
--dependencyarrayYes-Apt packages to install (can be specified multiple times)
--metadatastringYes-JSON object of user-defined metadata
--portnumberYes-Port to expose from the sandbox to the outside Internet (1024-65535)
--projectIdstringYes-Project ID to associate this sandbox with

Examples

Create a sandbox with default settings:

bash
bunx @agentuity/cli cloud sandbox create

Create a sandbox with Python runtime:

bash
bunx @agentuity/cli cloud sandbox create --runtime python:3.14

Create a sandbox with resource limits:

bash
bunx @agentuity/cli cloud sandbox create --memory 1Gi --cpu 1000m

Create a sandbox with network and custom timeout:

bash
bunx @agentuity/cli cloud sandbox create --network --idle-timeout 30m

Create a sandbox with a specific environment variable:

bash
bunx @agentuity/cli cloud sandbox create --env KEY=VAL

Create a sandbox associated with a specific project:

bash
bunx @agentuity/cli cloud sandbox create --project-id proj_123

Output

Returns JSON object:

json
{
  "sandboxId": "string",
  "status": "string",
  "stdoutStreamUrl": "string",
  "stderrStreamUrl": "string"
}
FieldTypeDescription
sandboxIdstringUnique sandbox identifier
statusstringCurrent sandbox status
stdoutStreamUrlstringURL to the stdout output stream
stderrStreamUrlstringURL to the stderr output stream