> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enclave.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Enclave in these docs is the code and cloud security platform at enclave.ai. It is not Open Enclave, Intel SGX or other hardware enclaves, or enclave.gg.
> People use Enclave in the web app at https://app.enclave.ai or the desktop app. These docs describe no public Enclave API or CLI, so don't invent endpoints, commands, or config files.
> Connecting an integration needs a person to sign in and approve access in a browser. Tell the user the exact step to take instead of saying you completed it.

# 在你的云中运行沙箱

> 使用 BYOC 在你自己的云账号中运行 Enclave 的分析沙箱。

默认情况下，Enclave 在其运营的沙箱中运行代码分析。使用 **BYOC**（自带云）后，这些沙箱会改为在你自己的云账号中运行。仓库检出以及读取它们的工具都会保留在你的账号内，并在每个任务结束时销毁。

Enclave 仍会接收发现项、其智能体读取的代码片段以及分析结果，因此应用的使用方式保持不变。

## 开始之前

* 必须为你的组织开启 BYOC。如需启用，请发送邮件至 [support@enclave.ai](mailto:support@enclave.ai)。
* 你需要拥有 Enclave 中的 **Owner** 或 **Admin** 角色。
* BYOC 运行在 **AWS** 上。你需要在将要运行沙箱的账号中拥有创建 CloudFormation 堆栈（包括 IAM 资源）的权限。目前尚不支持 Google Cloud 和 Azure。

## 设置 BYOC

**1. 开始设置**

打开 **Settings → API Keys**，在 **BYOC** 部分点击 **Set up BYOC**。Enclave 会在新标签页中打开一个部署门户。

**2. 在你的账号中部署**

按照门户的指引，在你的 AWS 账号中启动 CloudFormation 堆栈。在部署运行起来之前，**BYOC** 部分会显示 **Waiting for your deployment**。

**3. 验证**

点击 **Check now**。Enclave 会在你的账号中启动并停止一个真实的沙箱。检查通过后，BYOC 会显示 **Active**，以及你的账号、区域和上次验证时间。

在检查通过之前，你的分析不会有任何变化。

## 须知

* **没有回退机制。** 如果你的部署停止响应，BYOC 会显示 **Not reachable**，分析会一直失败，直到你修复问题。Enclave 绝不会自行将分析移回它自己的沙箱。
* 使用 BYOC 时，Research 中的**文件上传**不可用。
* **渗透测试**在 Enclave 托管的独立沙箱中运行，BYOC 不会改变它们。

## 关闭 BYOC

在 **BYOC** 部分，点击 **Turn off** 并确认。新的分析将再次在 Enclave 托管的沙箱中运行。已部署在你云账号中的资源不会被删除，因此请在你的云提供商处移除它们。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.