Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计提醒

cloudsway-scalebox-sandboxcloudway scalebox 沙箱

Agent Skill

cloudsway-scalebox-sandbox 用于处理浏览器自动化、网页检查和页面信息提取,适合在 OpenClaw 中需要让 Agent 打开页面、读取网页或验证前端流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,528

周安装

150

GitHub Stars

公开资料未说明

下载量

1,236
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cloudsway-scalebox-sandbox(cloudway scalebox 沙箱)
来源仓库:https://github.com/gloriathepenguin/cloudsway-scalebox-sandbox
安装命令:
openclaw skills install cloudsway-scalebox-sandbox
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install cloudsway-scalebox-sandbox

简介

用于创建隔离的云沙箱环境,支持远程代码执行和浏览器自动化测试。

  • 适用于安全开发和临时环境搭建等需要隔离运行的场景。
  • 通过 clawhub 安装,需参考原始 README 了解 API 调用方式和沙箱规格。
  • 使用前应评估网络暴露风险并确认是否允许外部代码注入操作。
  • cloudsway-scalebox-sandbox 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

ScaleBox Sandbox Skill

Create and manage isolated cloud sandboxes for secure code execution.

When to Use

  • Running untrusted code in an isolated environment
  • Browser automation (browser-use, computer-use templates)
  • Testing scripts that may have side effects
  • Remote code execution without local resource impact
  • Creating temporary development environments

Prerequisites

1. Get API Key

Register at ScaleBox Dashboard to get your API key.

Set environment variable:

export SCALEBOX_API_KEY="your-api-key-here"

2. Install CLI

Download the official CLI from ScaleBox Documentation:

# Visit official docs for platform-specific downloads
# https://www.scalebox.dev/docs/en/cli/installation

# After installation, authenticate:
scalebox-cli auth login --api-key $SCALEBOX_API_KEY --server-url https://api.scalebox.dev

Security Note: Always download CLI from official sources. Verify checksums when available.

3. Server URL

https://api.scalebox.dev

Port Access URL Format

Important: ScaleBox uses port prefixes, not port suffixes.

Method 1: Specify ports at creation time (Recommended)

Use API to specify custom_ports when creating the sandbox:

curl -X POST "https://api.scalebox.dev/v1/sandboxes" \
  -H "X-API-Key: $SCALEBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template": "base",
    "name": "my-sandbox",
    "timeout": 3600,
    "custom_ports": [
      {"port": 8080, "name": "web-server", "protocol": "TCP"}
    ]
  }'

Method 2: Add port to running sandbox

If you need to add a port after creation:

# CLI
scalebox-cli sandbox port add <sandbox-id> --port 8080 --name web-server --protocol TCP

# API
curl -X POST "https://api.scalebox.dev/v1/sandboxes/{sandbox_id}/ports" \
  -H "X-API-Key: $SCALEBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"port": 8080, "name": "web-server", "protocol": "TCP"}'

Access URL Format

Format: https://{port}-{sandbox_domain}/path

Example:

  • Sandbox domain: sbx-abc123.k27xn5o3lnw5dan3x.scalebox.dev
  • Port: 8080
  • Correct URL: https://8080-sbx-abc123.k27xn5o3lnw5dan3x.scalebox.dev/
  • Wrong: https://sbx-abc123.k27xn5o3lnw5dan3x.scalebox.dev:8080/

Available Templates

TemplateCPUMemoryUse Case
base2512MBBasic sandbox
code-interpreter21GBJupyter environment
browser-use22GBBrowser automation (VNC)
browser-use-headless44GBBrowser automation (headless)
desktop88GBDesktop environment (VNC)
computer-use-preview22GBGoogle Computer Use

Three Ways to Use ScaleBox

MethodBest ForNotes
CLIFile operations, command executionMost powerful, cross-platform
REST APILifecycle managementAuth via X-API-Key header
Python SDKProgrammatic accesspip install scalebox-sdk

Method 1: CLI Commands

1.1 Sandbox Lifecycle

# Create sandbox
scalebox-cli sandbox create --template <name> --name <name> --timeout <seconds>

# List sandboxes
scalebox-cli sandbox list

# Get sandbox details
scalebox-cli sandbox get <sandbox-id>

# Pause sandbox (preserves state)
scalebox-cli sandbox pause <sandbox-id>

# Resume paused sandbox
scalebox-cli sandbox resume <sandbox-id>

# Terminate sandbox immediately
scalebox-cli sandbox terminate <sandbox-id>

# Delete sandbox and resources
scalebox-cli sandbox delete <sandbox-id>

Create parameters:

  • --template: Template name or ID (default: base)
  • --name: Sandbox name (optional, auto-generated)
  • --timeout: Timeout in seconds (default: 300)
  • --cpu: CPU count (minimum: 2)
  • --memory: Memory in MB
  • --storage: Storage in GB
  • --async: Fire-and-forget mode - returns immediately, sandbox may still be starting. You must poll status yourself.
  • --auto-pause: Pause on timeout instead of terminate

Important: async vs sync:

  • Sync mode (default, no --async): Waits for sandbox to be fully running before returning. The returned sandbox is ready to use.
  • Async mode (--async): Returns immediately after creating the request. The sandbox may still be starting. You must poll sandbox get <id> until status: running before using it.
# Sync mode (recommended) - sandbox is ready when command returns
scalebox-cli sandbox create --template base --timeout 600
# Output includes sandbox ID, ready to use

# Async mode - need to wait
scalebox-cli sandbox create --template base --timeout 600 --async
# Returns immediately, sandbox may still be starting
# Must poll: scalebox-cli sandbox get <id> until status is "running"

1.2 File Operations

# Upload file
scalebox-cli sandbox upload <sandbox-id> <local-path> <remote-path>

# Upload directory recursively
scalebox-cli sandbox upload <sandbox-id> ./project /workspace/project --recursive

# Download file
scalebox-cli sandbox download <sandbox-id> <remote-path> <local-path>

# List files
scalebox-cli sandbox ls <sandbox-id> <remote-path>

Note: Remote path must be absolute (e.g., /workspace/file.py).

1.3 Command Execution

# Execute command
scalebox-cli sandbox exec <sandbox-id> "<command>"

# With working directory
scalebox-cli sandbox exec <sandbox-id> "python3 script.py" --cwd /workspace

# With timeout
scalebox-cli sandbox exec <sandbox-id> "npm install" --timeout 120

Method 2: REST API

2.1 Authentication

All requests require X-API-Key header:

curl -H "X-API-Key: $SCALEBOX_API_KEY" https://api.scalebox.dev/v1/sandboxes

2.2 Sandbox Endpoints

OperationMethodEndpoint
Create sandboxPOST/v1/sandboxes
List sandboxesGET/v1/sandboxes
Get sandboxGET/v1/sandboxes/{id}
Delete sandboxDELETE/v1/sandboxes/{id}
Pause sandboxPOST/v1/sandboxes/{id}/pause
Resume sandboxPOST/v1/sandboxes/{id}/resume

Note: File operations (upload/download/exec) are only available via CLI or SDK.

2.3 API Example

# Create sandbox
curl -X POST "https://api.scalebox.dev/v1/sandboxes" \
  -H "X-API-Key: $SCALEBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"template": "base", "name": "my-sandbox", "timeout": 600}'

Method 3: Python SDK

3.1 Installation

pip install scalebox-sdk

Module name: scalebox (not scalebox_sdk)

3.2 Basic Usage

import scalebox
import os

# Create sandbox
sandbox = scalebox.Sandbox.create(
    template="base",
    timeout=600,
    api_key=os.environ.get("SCALEBOX_API_KEY")
)

print(f"Sandbox ID: {sandbox.sandbox_id}")

# Get signed URLs for file operations
upload_url = sandbox.upload_url(path="/workspace/test.py")
download_url = sandbox.download_url(path="/workspace/output.json")

# Kill sandbox
sandbox.kill()

Typical Workflow

# 1. Create sandbox
sandbox_id=$(scalebox-cli sandbox create --template code-interpreter --name my-task --async | grep "Sandbox ID:" | awk '{print $3}')

# 2. Upload code
scalebox-cli sandbox upload $sandbox_id ./script.py /workspace/script.py

# 3. Execute
scalebox-cli sandbox exec $sandbox_id "python3 /workspace/script.py"

# 4. Download results
scalebox-cli sandbox download $sandbox_id /workspace/output.json ./output.json

# 5. Cleanup
scalebox-cli sandbox delete $sandbox_id

Security Notes

  • Sandboxes are completely isolated from local machine
  • All file paths must be absolute (no .. traversal)
  • Internet access enabled by default (disable with --internet=false)
  • Credentials never stored in database
  • Minimum CPU: 2 cores
  • Always download CLI from official sources

Error Handling

ErrorSolution
CPU count must be at least 2Use --cpu 2 or higher
health check timeoutCheck status with sandbox get
Sandbox not foundVerify sandbox ID
Timeout exceededCreate new sandbox

Links

  • Official Website: https://www.scalebox.dev
  • Documentation: https://www.scalebox.dev/docs
  • CLI Installation: https://www.scalebox.dev/docs/en/cli/installation
  • API Reference: https://www.scalebox.dev/docs/en/api

Version

  • Skill: 1.0.5
  • CLI: v1.3.4
  • SDK: v0.1.9
  • API: v1

Last updated: 2026-03-21

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

92.86%
按下载量换算1,148

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills