Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

huawei-cloud-devbox-sandbox

БесплатноЗапускает вложенные скриптыНе проверен

Create and manage DevBox cloud sandboxes (isolated cloud Linux environments) via three official channels, in order of preference: (1) the `devbox` CLI for…

huaweicloudskillот huaweicloudskill106 установок в других каталогах

Об этом скилле

Huawei Cloud DevBox Cloud Sandbox (CLI → JS SDK → Python SDK)

Create and operate isolated cloud Linux sandboxes through three official channels. Prefer the CLI for terminal and interactive work; use the SDKs when embedding sandbox operations into code — JS first for Node.js projects, Python for scripts and automation.

Overview

DevBox provides isolated cloud Linux sandboxes. Whatever runs your commands (CLI or SDK), the operations execute inside the sandbox; the local side only holds a control connection plus a per-sandbox data-plane credential.

The Three Channels

Channel Binary / package Best for Interactive terminal Automation
CLI (use first) devbox (Go, cobra) humans in a terminal, quick checks, one-off commands ✅ built-in (sbx create/sbx cn) ✅ (sbx ex, -f json)
JS SDK devbox-js-sdk (ESM) Node.js / TypeScript applications via pty API ✅
Python SDK devbox-sdk (import devbox) scripts, CI glue, AI agents via pty API ✅ (AsyncSandbox)

All three implement the same Manager REST API + EnvD data-plane protocol (CLI naming/flags are cobra-style; SDKs are snake_case / camelCase).

Architecture

Channel (CLI / JS SDK / Python SDK)      Huawei Cloud
┌──────────────────────────────┐
│  devbox CLI                  │  X-API-Key / auth login   ┌─────────────────────────┐
│  devbox-js-sdk               │ ────────────────────────► │  Manager (控制面)        │
│  devbox-sdk (python)         │   REST /sandboxes         │  templates / lifecycle  │
│         │                    │ ◄──────────────────────── └─────────────────────────┘
│         │                    │   connectToken
│         │                    │   Cookie: relay_token=... (数据面鉴权)
│         └────────────────────┼────────────────────────►  ┌─────────────────────────┐
└──────────────────────────────┘  EnvD protocol            │  Gateway → Sandbox      │
                                                           │  /process.Process/*     │
                                                           │  /filesystem.Filesystem │
                                                           └─────────────────────────┘
  • Manager (control plane): https://devbox.developer.myhuaweicloud.com — sandbox CRUD, templates, lifecycle. Authenticated with the API Key (X-API-Key header). Both the CLI (build-time injected) and the SDKs (default; override DEVBOX_API_URL) point at this production Manager.
  • Gateway (data plane): address returned by the Manager per sandbox. Authenticated with the per-sandbox connectToken (Cookie: relay_token=<token>), silently refreshed before expiry.

Use Cases

  • Disposable Linux workspaces for untrusted or experimental code
  • Interactive remote terminals (devbox sbx create from any terminal)
  • Cloud-based build/test/CI execution environments
  • AI agents that need a sandbox workspace (CLI for quick ops, SDK for deep integration)
  • Batch automation over many sandboxes (CLI kill --all, SDK list/kill loops)

Typical User Expressions

  • "帮我创建一个云沙箱并执行 hello world" → CLI fast path
  • "开个沙箱终端" / "进交互式终端" → devbox sbx create <templateID>
  • "用 DevBox JS SDK 写个 Node 服务,在沙箱里跑命令" → JS SDK path
  • "用 DevBox Python SDK 写个脚本,在沙箱里跑命令、读写文件" → Python SDK path
  • "把本地文件上传到沙箱,运行后再把结果下载回来" → CLI + scp-like ex, or SDK files API
  • "暂停沙箱,明天继续用" / "列出所有运行中的沙箱" → both CLI and SDK

Version Support

Item Requirement
CLI devbox 0.1.x — install from prebuilt artifacts via the official install script (OBS/GitCode/GitHub; guide: huaweicloud.github.io/devspace-devbox/cli/install); source build (Go >= 1.26) is a fallback only
JS SDK devbox-js-sdk 0.1.x — Node.js >= 20.18.1, ESM, ships its own TypeScript types
Python SDK devbox-sdk 0.1.x — import name devbox, Python >= 3.10
Source github.com/huaweicloud/devspace-devbox dev branch (cli/, js-sdk/, python-sdk/)
Authentication API Key — CLI: HW_DEVBOX_API_KEY env or auth login; SDKs: DEVBOX_API_KEY env or constructor
Registries CLI: install script (GitHub/GitCode/OBS releases) or make build (Go >= 1.26); Python SDK: pip install devbox-sdk (on PyPI, 0.1.0); JS SDK: npm install devbox-js-sdk (on npm, 0.1.0). Source builds (pip install ./python-sdk, npm ci && npm run build + npm install ./js-sdk) are the fallback for pinning a commit

Installing this skill

# from the published repository (once this skill is merged & pushed)
npx skills add huaweicloud/huaweicloud-skills --skill huawei-cloud-devbox-sandbox

# from a local checkout (works now)
npx skills add <path>/huaweicloud-skills/skills/devtools/devbox/huawei-cloud-devbox-sandbox

# GitCode private-repo fallback (npx cannot authenticate against GitCode):
git clone https://oauth2:<token>@gitcode.com/<org>/<repo>.git /tmp/repo
cp -r /
Полный SKILL.md на ClawHub

Установить huawei-cloud-devbox-sandbox в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл huawei-cloud-devbox-sandbox?

Create and manage DevBox cloud sandboxes (isolated cloud Linux environments) via three official channels, in order of preference: (1) the `devbox` CLI for terminal/interactive work, (2) the JavaScript/TypeScript SDK (devbox-js-sdk) for Node.js integration, (3) the Python SDK (devbox-sdk) for scripts and automation. Based on devspace-devbox `dev` branch (CLI 0.1.x — release and internal test builds, e.g. `test1106.002`; SDKs 0.1.x) and API Key authentication. Use when the user wants to: (1) install and use the DevBox CLI, (2) create/connect/list sandboxes, (3) open an interactive sandbox terminal or run one-off commands, (4) manage sandbox lifecycle (timeout, refresh, pause, resume, kill), (5) list and select sandbox templates, (6) integrate sandboxes into Node.js code with the JS SDK, (7) integrate sandboxes into Python code with the Python SDK (commands, processes, files, PTY, Git, async). Triggers include: user mentions "DevBox", "devbox", "devbox cli", "devbox-sdk", "devbox-js-sdk", "devspace-devbox", "云沙箱", "云端沙箱", "沙箱", "cloud sandbox", "sandbox", "创建沙箱", "隔离开发环境", "code execution sandbox", "AI sandbox", "remote dev environment", "devbox sbx"

Как установить скилл huawei-cloud-devbox-sandbox?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл huawei-cloud-devbox-sandbox запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить huawei-cloud-devbox-sandbox с