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

# Remote Indexing

> 为 Enterprise 团队从 GitHub、GitLab 和 BitBucket 建立远程代码仓库索引，而无需在本地保存代码。

<Note> 此功能仅在 Enterprise 方案的 Windsurf Plugins 中提供。 </Note>

虽然本地索引（Local Indexing）效果良好，但用户可能希望将未在本地存储的代码库建立索引，以便我们的 AI 模型将其作为上下文使用。

针对这一场景，订阅 Teams 和 Enterprise 方案的组织可以使用 Windsurf 的 Indexing Service 全局导入所有相关代码仓库。随后由 Windsurf 的服务器（在隔离租户中）执行索引与嵌入处理；索引创建完成后，团队中的任何成员都可以查询使用。

<div id="adding-a-repository">
  ## 添加代码仓库
</div>

在 [https://windsurf.com/indexing](https://windsurf.com/indexing) 你可以添加要索引的代码仓库。当前我们支持来自 GitHub、GitLab 和 Bitbucket 的 Git 仓库。

<Frame>
  <img src="https://mintcdn.com/codeium/vRt4FQOyBeZpD2Pu/assets/remote-indexing-adding-repo.png?fit=max&auto=format&n=vRt4FQOyBeZpD2Pu&q=85&s=2e60f03d5cddbefc397174c35277273c" width="2016" height="1488" data-path="assets/remote-indexing-adding-repo.png" />
</Frame>

你可以选择为指定分支建立索引，并设置在若干天后自动重新索引该仓库。

<div id="security-guarantees">
  ## 安全保障
</div>

我们会克隆代码库以创建索引；在为代码库完成嵌入生成后，**只要未勾选“Store Snippets”设置**，我们就会删除所有代码及代码片段。除嵌入本身外，我们不会保存任何内容，而嵌入无法用于还原原始代码。

此外，所有索引和嵌入均在单租户实例中执行——索引过程中的任何信息都不会在多个 Windsurf Teams 客户之间共享。
