omdsh-dev/dsh-sandbox-micro ↗★ 1
@deepseek-ai/dsh-sandbox-micro
DSH microsandbox bundle: Linux microVM shell executor and ctx.sandbox provider (msb run) with workdir/env preservation, fail-closed probing, and shell-free argv construction
AI 분석
为 DSH 提供安全的 Linux 虚拟机隔离环境来执行代码和 Shell 命令。适合需要安全运行、测试未知或不可信脚本,且要求保留工作目录和环境变量的开发任务。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:omdsh-dev/dsh-sandbox-micro配置
shell-micro 继承 dsh-bash-local 的全部字段,并增加:
| 字段 | 默认值 | 说明 |
|---|---|---|
image | debian | guest 使用的 OCI 镜像 |
memory | 512M | VM 内存 |
msbPath | "" | 可执行文件覆盖;留空使用内置 microsandbox Node shim |
timeout | 未设置 | msb run --timeout,例如 60s |
extraFlags | [] | 追加的 msb run flag,例如 ["--cpus", "2"] |
allowNetwork | false | true 时移除 --no-net |
probe | doctor | 启动探测级别:doctor 或 version |
sandbox-micro 使用同一组 microsandbox 字段。