weijiafu14/dsh-remote-sandbox--packages-bundle ↗★ 0
dsh-remote-sandbox
单行 DeepSeek Harness 捆绑包,可将执行环境移至具有崩溃弹性、心跳保持和工作区同步的 E2B 沙箱中。
AI 分析
核心用途是提供一键式远程沙箱执行环境,替代本地执行。适合需要安全隔离运行代码、防止本地系统被污染或崩溃的开发与 Agent 任务。必要条件是需要配置 E2B_API_KEY。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:weijiafu14/dsh-remote-sandbox#23bb0cf3787371c2430980c76a67998ae460f371&path:packages/bundle说明文档
阅读完整 README ↗Configuration (dsh-sandbox-keeper)
| Key | Default | Meaning |
|---|---|---|
apiKey | $E2B_API_KEY | E2B API key; never forwarded into the sandbox |
template | E2B base image | E2B template id (the base image ships Node) |
cwd | /home/user/workspace | workspace path inside the sandbox |
hostWorkspace | process.cwd() | host project synced in at open, out on request/teardown |
timeoutMs | 300000 | pause deadline; the heartbeat pushes it forward |
heartbeatMs | 30000 | keep-alive and liveness interval |
excludes | node_modules, .pnpm-store, .dsh-remote-sidecar | path segments never synced (.git is synced) |
pauseOnDispose | true | pause (retain disk) rather than kill on teardown |
syncIn / syncOut | tar over the sidecar | override with your own function (!!js) for git, object storage, a PVC, etc. |