跳到正文
TakoAPI
返回技能列表

devboxes

由 adshrc 提供

Web & Frontend Development
181下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Manage development environment containers (devboxes) with web-accessible VSCode, VNC, and app routing via Traefik.

描述

该技能的功能

Devboxes are sandboxed containers that run VSCode Web, noVNC, Chromium CDP, and up to 5 routed app ports. The main agent assigns each container a sequential ID, spawns a devbox subagent, and runs devbox-init to configure routing and expose public URLs. Traefik or Cloudflare Tunnels handle routing to VSCode, noVNC, and app slots.

Combines browser-based VSCode, VNC desktop, Chromium CDP, and automatic public URL routing in one container, removing the need to manually configure reverse proxies or DNS per environment.

何时使用

  • Spinning up an isolated browser-based coding environment for a new project
  • Previewing a web app on a public URL without configuring local tunnels
  • Cloning and developing inside a private GitHub repo in a sandboxed container
  • Sharing a live dev environment URL with a teammate for real-time review
  • Running multiple services on separate ports under a single container session

示例工作流

输入

User asks: Spin up a devbox for my project

智能体
  1. 1

    Reads and increments the devbox counter file to assign the next sequential DEVBOX_ID

  2. 2

    Spawns a devbox subagent labeled devbox-{id} with the assigned ID in the task

  3. 3

    Subagent runs devbox-init to build routing config and write APP_URL_*, VSCODE_URL, and NOVNC_URL env vars

  4. 4

    Routes VSCode, noVNC, and app ports via Traefik dynamic config or Cloudflare Tunnel DNS registration

  5. 5

    Reports VSCode URL, noVNC URL, and app slot URLs to the user

输出

Public URLs ready: https://vscode-1.example.com, https://novnc-1.example.com/vnc.html, and https://app1-1.example.com

前置要求

  • Domain with a wildcard DNS A-record pointing to the server (e.g. *.example.com)
  • Traefik running on the host and accessible via Docker network (Traefik routing mode only)
  • Cloudflare API token with DNS edit and Tunnel edit permissions for the target zone (Cloudflare Tunnel routing only)
  • GitHub personal access token for cloning private repositories (optional)

安装

clawhub install adshrc/devboxes

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接