难度属于中等。需要安装 Python 或 JavaScript SDK,注册 E2B 并获取 API 密钥,设置包含 API 密钥的环境变量,最后启动沙盒并运行命令。
核验依据
GitHub 项目简介: Open-source, secure environment with real-world tools for enterprise-grade agents.
README: [E2B](https://e2b.dev/...) is an open-source infrastructure that allows you to run AI-generated code in secure isolated sandboxes in the cloud.
README: 1. Sign up to E2B [here](https://e2b.dev/...). 2. Get your API key [here](https://e2b.dev/dashboard?tab=keys...). 3. Set environment variable with your API key ``` E2B_API_KEY=e2b…
README: const sandbox = await Sandbox.create() const result = await sandbox.commands.run('echo "Hello from E2B!"')