---
title: "添加 Index source"
url: "https://preview-docs.dshuniverse.com/zh/guide/index-source/"
lang: "zh-CN"
updated: "2026-11-17"
license: "CC-BY-4.0"
licenseScope: "DSH Universe plugin data"
---

# 添加 Index source

把 `https://dshuniverse.com/index.json` 加为 DeepSeek Harness（dsh）的 Index source，dsh 就能直接搜索和安装 DSH Universe 中的「严选」和「已扫描」插件。这个文件遵循 dsh 的 index format 1，可以和其他 Index source 并存。

## DSH Universe 提供哪些 Index source？

| 地址                                       | 内容                             | 适合              |
| ---------------------------------------- | ------------------------------ | --------------- |
| `https://dshuniverse.com/index.json`     | 「严选」和「已扫描」插件（是否包含「已扫描」由站点配置决定） | 大多数用户，推荐        |
| `https://dshuniverse.com/index.all.json` | 除「下架」以外的全部插件，每条带等级字段           | 想看到全部插件、自己判断的用户 |

两个文件也可以通过 `https://api.dshuniverse.com/index.json` 和 `https://api.dshuniverse.com/index.all.json` 访问，内容相同。

## 怎么在 dsh 中添加 Index source？

1. 打开 **Plugins**（插件），在 **Experimental plugins**（实验性插件）中启用 **Custom plugin indexes**（自定义插件索引）。
2. 打开 **Discover**，选择 **Add index source**。
3. 输入 `https://dshuniverse.com/index.json`。索引源属于当前 profile，可在 Discover 工具栏切换或管理。

安装前请核对 dsh 确认窗口中显示的 npm 包或 Git 来源。详见 [DeepSeek Harness 插件索引指南](https://github.com/deepseek-ai/deepseek-harness/blob/master/docs/user/guide/plugin-market.md#turn-on-discover)。

## Index source 中的版本是怎么确定的？

严选索引优先选择最新的有效严选版本。没有严选版本时，若站点启用了已扫描收录，则回退到最新的已扫描版本。全量索引选择最新的未下架版本。两个索引均提供确定的版本和安装来源。

## 多久更新一次？

等级变化后，index.json 会在几分钟内重建。文件带有 `ETag` 和 `Cache-Control` 响应头，dsh 会按缓存规则重新拉取。

## 我是开发者，想读取 index.json 的结构

字段说明见 [index.json 规范](/zh/developers/index-json/)。
