搜索

PythonReactSEOPDF
OpenClaw

devboxes

Manage development environment containers (devboxes) with web-accessible VSCode, VNC, and app routing via Traefik or Cloudflare Tunnels. Use when the user asks to create, start, stop, list, or manage devboxes/dev environments, spin up a development container, set up a coding sandbox, or configure the devbox infrastructure for the first time (onboarding).

adshrc0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install adshrc/devboxes

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Devbox Skill

Devboxes are OpenClaw sandbox containers running a custom image with VSCode Web, noVNC, Chromium (CDP), and up to 5 app ports routed via Traefik or Cloudflare Tunnels.

OpenClaw manages the full container lifecycle. The main agent assigns each devbox a sequential ID by maintaining a local counter file, then passes DEVBOX_ID to the subagent task. The devbox agent runs devbox-init as its first action, which builds URL env vars, writes env files, and sets up routing.

File Locations

Resolve paths relative to this SKILL.md's parent directory.

Key files:

  • references/setup-script-guide.md — conventions for project setup scripts (.openclaw/setup.sh)

Architecture

  • Agent id: devbox (configured in openclaw.json)
  • Sandbox mode: all / scope: session — one container per session
  • Image: ghcr.io/adshrc/openclaw-devbox:latest (pulled from GHCR)
  • Network: traefik (for Traefik routing) or default Docker network (for Cloudflare Tunnel routing)
  • Browser: sandbox.browser.enabled: true, CDP on port 9222
ID Assignment

The main agent manages the devbox counter:

  1. Reads and increments /home/node/.openclaw/.devbox-counter before spawning
  2. Includes the DEVBOX_ID in the task, instructing the devbox agent to run devbox-init {id} as its very first action
Two-Phase Startup

Phase 1 — Entrypoint (runs automatically at container start):

  • Starts core services: Xvfb, Chromium (CDP), VNC, VSCode Web
  • Does NOT require DEVBOX_ID — services are available immediately

Phase 2 — devbox-init <id> (run by the sub-agent/devbox agent):

  1. Builds APP_URL_1..5, VSCODE_URL, NOVNC_URL from tags + domain + ID
  2. Writes /etc/devbox.env and /etc/profile.d/devbox.sh (available in all shells)
  3. Routes based on ROUTING_MODE:
    • traefik (default): Writes Traefik config to /traefik/devbox-{id}.yml
    • cloudflared: Generates cloudflared ingress config, registers DNS CNA...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/adshrc/devboxes
Version
—
Commit
3f0f368048b97a5dccb29fea0c5a9a599dcbbed0
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

Devboxes Skill for OpenClaw

Spin up a full development environment in seconds — just by asking your agent.

Each devbox is an isolated container with VSCode in your browser, a visual desktop via VNC, headless Chromium for testing, and up to 5 routable app ports — all accessible via clean URLs on your domain. No SSH tunnels, no port forwarding, no "works on my machine".

Need to prototype something? Clone a repo and start coding? Debug a frontend on a real browser? Spin up a devbox. It self-registers with Traefik, assigns itself a unique ID, and hands you ready-to-use URLs. When you're done, tear it down. Zero cleanup.

Whether you're working from your laptop, a tablet, or someone else's machine — your full dev environment is one URL away.

Features

  • Self-registering containers — auto-assigns ID, configures routing, builds APP_URL_* env vars
  • Flexible routing — choose between Traefik (self-managed) or Cloudflare Tunnels (zero open ports)
  • VSCode Web — browser-based IDE on port 8000
  • noVNC — visual desktop access on port 8002
  • Chromium CDP — headless browser automation on port 9222
  • 5 app slots — routed via Traefik with configurable tags (e.g. api, app, dashboard)
  • Project setup scripts — .openclaw/setup.sh convention for automated repo setup
  • nvm — Node version management, reads .nvmrc automatically

Architecture

+-----------------------------------------------------------+
|  Devbox Container (ghcr.io/adshrc/openclaw-devbox:latest) |
|                                                           |
|  +----------+  +----------+  +-------------------+        |
|  |  VSCode  |  |  noVNC   |  |  Chromium (CDP)   |        |
|  |  :8000   |  |  :8002   |  |  :9222            |        |
|  +----------+  +----------+  +-------------------+        |
|                                                           |
|       App 1 :8003   App 2 :8004   App 3 :8005             |
|       App 4 :8006   App...

来源内容

SKILL.md
# Devbox Skill

Devboxes are OpenClaw sandbox containers running a custom image with VSCode Web, noVNC, Chromium (CDP), and up to 5 app ports routed via **Traefik** or **Cloudflare Tunnels**.

OpenClaw manages the full container lifecycle. The **main agent** assigns each devbox a sequential ID by maintaining a local counter file, then passes `DEVBOX_ID` to the subagent task. The devbox agent runs `devbox-init` as its first action, which builds URL env vars, writes env files, and sets up routing.

## File Locations

Resolve paths relative to this SKILL.md's parent directory.

Key files:

- `references/setup-script-guide.md` — conventions for project setup scripts (`.openclaw/setup.sh`)

## Architecture

- **Agent id:** `devbox` (configured in openclaw.json)
- **Sandbox mode:** `all` / `scope: session` — one container per session
- **Image:** `ghcr.io/adshrc/openclaw-devbox:latest` (pulled from GHCR)
- **Network:** `traefik` (for Traefik routing) or default Docker network (for Cloudflare Tunnel routing)
- **Browser:** `sandbox.browser.enabled: true`, CDP on port 9222

### ID Assignment

The **main agent** manages the devbox counter:

1. Reads and increments `/home/node/.openclaw/.devbox-counter` before spawning
2. Includes the `DEVBOX_ID` in the task, instructing the devbox agent to run `devbox-init {id}` as its very first action

### Two-Phase Startup

**Phase 1 — Entrypoint** (runs automatically at container start):

- Starts core services: Xvfb, Chromium (CDP), VNC, VSCode Web
- Does NOT require `DEVBOX_ID` — services are available immediately

**Phase 2 — `devbox-init <id>`** (run by the sub-agent/devbox agent):

1. Builds `APP_URL_1..5`, `VSCODE_URL`, `NOVNC_URL` from tags + domain + ID
2. Writes `/etc/devbox.env` and `/etc/profile.d/devbox.sh` (available in all shells)
3. Routes based on `ROUTING_MODE`:
   - **`traefik`** (default): Writes Traefik config to `/traefik/devbox-{id}.yml`
   - **`cloudflared`**: Generates cloudflared ingress config, registers DNS CNA...
README
# Devboxes Skill for OpenClaw

Spin up a full development environment in seconds — just by asking your agent.

Each devbox is an isolated container with **VSCode in your browser**, a **visual desktop via VNC**, **headless Chromium** for testing, and **up to 5 routable app ports** — all accessible via clean URLs on your domain. No SSH tunnels, no port forwarding, no "works on my machine".

Need to prototype something? Clone a repo and start coding? Debug a frontend on a real browser? Spin up a devbox. It self-registers with Traefik, assigns itself a unique ID, and hands you ready-to-use URLs. When you're done, tear it down. Zero cleanup.

Whether you're working from your laptop, a tablet, or someone else's machine — your full dev environment is one URL away.

## Features

- **Self-registering containers** — auto-assigns ID, configures routing, builds `APP_URL_*` env vars
- **Flexible routing** — choose between Traefik (self-managed) or Cloudflare Tunnels (zero open ports)
- **VSCode Web** — browser-based IDE on port 8000
- **noVNC** — visual desktop access on port 8002
- **Chromium CDP** — headless browser automation on port 9222
- **5 app slots** — routed via Traefik with configurable tags (e.g. `api`, `app`, `dashboard`)
- **Project setup scripts** — `.openclaw/setup.sh` convention for automated repo setup
- **nvm** — Node version management, reads `.nvmrc` automatically

## Architecture

```
+-----------------------------------------------------------+
|  Devbox Container (ghcr.io/adshrc/openclaw-devbox:latest) |
|                                                           |
|  +----------+  +----------+  +-------------------+        |
|  |  VSCode  |  |  noVNC   |  |  Chromium (CDP)   |        |
|  |  :8000   |  |  :8002   |  |  :9222            |        |
|  +----------+  +----------+  +-------------------+        |
|                                                           |
|       App 1 :8003   App 2 :8004   App 3 :8005             |
|       App 4 :8006   App...

相关技能

OpenClaw

openbotx

openbotx

An open-source platform for orchestrating AI agents — secure, simple, and built for everyone. Multi-agent, real-time task board, web control panel, skills system, browser automation, multi-provider, scheduler,...

OpenClaw

agent-pack-n-go

aicodelion

🚀 Clone your OpenClaw AI Agent to a new device in ~25 minutes — configs, memory, skills, everything.

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

cacheforge-skills

cacheforge-ai

⚡ SOTA agent skills for OpenClaw — observability, security, code quality, incident response, and more. Built by Anvil AI.