tensorlakeai/dsh-tensorlake-sandbox5

@tensorlakeai/dsh-sandbox

Tensorlake sandbox execution providers for DeepSeek Harness

AI 분석

核心用途是提供安全的云端沙箱环境来执行智能体生成的代码和文件操作。适合需要安全隔离、防止本地系统被 Agent 破坏的敏感代码执行任务。

패키지
@tensorlakeai/dsh-sandbox
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 8. 14.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:tensorlakeai/dsh-tensorlake-sandbox

Configuration

The bundle starts an ephemeral sandbox on profile boot and terminates it when dsh exits. The runtime module accepts these Cordis config fields:

Each run prints the sandbox ID at both lifecycle boundaries. The IDs should match:

Tensorlake sandbox created: 
Tensorlake sandbox terminated: 
FieldDefaultMeaning
apiKeyTENSORLAKE_API_KEYTensorlake API credential used only by the host SDK
cwd/home/tl-user/workspaceAbsolute Linux working directory shared by file and process providers
timeoutSecs600Sandbox inactivity timeout
cpusTensorlake defaultVirtual CPU allocation
memoryMbTensorlake defaultMemory allocation in MiB
diskMbTensorlake defaultRoot disk allocation in MiB

The shipped bundle derives both the runtime cwd and policy workspace from DSH_TENSORLAKE_CWD. Prefer that single setting when changing the workspace so the Bash policy and remote providers cannot drift:

DSH_TENSORLAKE_CWD=/workspace/project dsh --profile headless "build and test this repo"

To configure the rows directly in the profile's cordis.patch.yml, override both together. A patch replaces the complete config, so restate every non-default field you need:

- id: sandbox-policy
  config:
    mode: danger-full-access
    workspaceRoot: /workspace/project

- id: tensorlake-runtime
  config:
    cwd: /workspace/project
    timeoutSecs: 1800
    cpus: 2
    memoryMb: 4096

apiKey is optional and should normally remain omitted. The package never copies TENSORLAKE_API_KEY, DEEPSEEK_API_KEY, other credential-shaped environment variables, or DSH_* variables into sandbox processes. A caller may still pass an explicit environment entry through a Harness tool or service request.