Vercel Sandbox 是“AI 的 EC2”。用於即時運行 AI 生成的代碼的 API。使用活動 CPU 定價。 1️⃣ 創建 const sb = await Sandbox.create({ source: { url: '⟨git url⟩', type: 'git' }, 資源: { vCPUS: 4 }, 超時: ms(『5m』), 埠: [ 3000 ], 執行時: 'node22' }); 2️⃣ 運行任何東西 await sb.runCommand({ cmd: 'npm', args: [ 'install' ] }); 它在 Fluid 基礎設施上運行,該基礎設施每天為 1M 構建提供支援。(作為上下文,Codex by OpenAI 總共通過 每個構建都是一個 microVM,它幾乎可以做任何事情,除了逃離沙箱 😊 如果您正在建構編碼代理、AI 網站建構器、資料科學代理、代碼輔助深度研究系統、構建系統...... 就像 BotID 和 AI Gateway 一樣,如果您在 Vercel 或任何其他供應商上運行後端,則可以使用 Sandbox。
Vercel Changelog
Vercel Changelog2025年6月25日
Vercel Sandbox securely runs untrusted code in isolated cloud environments, like AI-generated code. Create ephemeral, isolated microVMs using the new Sandbox SDK, with up to 45m execution times. Now in Beta and available to customers on all plans.
64.57K