跳转到内容

在 Blaxel 沙箱上自托管

Blaxel 在其沙箱计算平台上运行每个 Session,使用官方 @blaxel/core SDK(动态导入)。驱动遵循 Blaxel 自身的生命周期:认领前就绪、通过 external ID 和归属标签保持稳定 Session 身份、归档/解档保留文件系统、命名进程、原生代理/防火墙以及 janitor 清理。

Terminal window
BL_API_KEY= # 必需——由 Blaxel SDK 读取

Blaxel 通过运行时宿主组合接入,而不是 SANDBOX_PROVIDER。使用 @open-managed-agents/managed-runtime-blaxel 提供的 createBlaxelProvider、createBlaxelManagedRuntime 或 createBlaxelManagedRuntimeDriver:

const driver = createBlaxelManagedRuntimeDriver({
leaseTtlMs: 90_000,
image: "node:22-slim",
memory: 2048, // MiB
region: "us-pdx-1",
ttl: "24h",
});

基础选项:image(必需)、memory、region、ttl 和 lifecycle(expirationPolicies,动作 ttl-idle/ttl-max-age/date,以及 terminatedRetention)。按分配实例的附加项走 allocationOptions:envs、volumes(持久或临时)、network、snapshotEnabled。工厂还接受 client、runtimeEnvironment、outputStore、outputKeyPrefix、credentialEgress、sessionInputs 和 readiness。

Harness 通道ama_worker、openma_supervised
suspendResume支持(归档/解档保留文件系统)
工作区retained_runtime,持久性为 best_effort
输出final_collect,持久
进程检查点无
凭证出口默认 unsupported/snapshot