DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Apis Plugin — DSH Plugin for DeepSeek Harness
← Plugins
A

dsh-apis-plugin

Apis Plugin

Generic API management plugin: registers any set of HTTP APIs as two tools available to the agent: documentation lookup and request execution

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:xianmua/dsh-apis-plugin#ddcaf8f78d4b0a2dd9cefea2d11a1b5098e89ad7
READMECompatibilityVersions

Compatibility and provenance

Apis Plugin is published as dsh-apis-plugin and currently resolves to version 0.1.8. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
9/18/2026

Versions

0.1.8stable
9/18/2026
0.1.6
stable
9/18/2026
0.1.2stable
9/18/2026
Show 1 more versionCollapse versions
0.1.0stable
9/17/2026

Related plugins

Loading related plugins…

Latest
0.1.8
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
9/18/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in integrations-communication.

Acp App@deepseek-ai/dsh-acp-appThe dsh ACP profile bundle: automation-only JSON-RPC stdio and process lifecycle over dsh-baseRemote Web Ui@linxin666/dsh-remote-web-uiScan-to-pair remote access for the dsh web GUI that shares one official interface: a QR beside the settings button pairs phones and PCs into the same Web GUI (a portrait-touch adaptation layer for phones, full desktop on PCs) through one-time tokens and rPocketdsh-pocketPut DeepSeek Harness in your pocket: one package, one settings page, and scan a QR code on your phone to access DSH on your computer in sync (LAN + public network, real-time screen mirroring).DSCODE@toddzheng024/dscode-bundleA complete DeepSeek coding agent with persistent shell, Ultra collaboration and automatic permission review.

README

dsh-apis-plugin

通用接口管理插件(DeepSeek Harness / Cordis 双面插件):把任意一套 HTTP 接口注册成 agent 可用的文档查询 + 请求调用双工具。

核心约定:api.cfg 是接口的唯一权威范围——agent 只能请求 api.cfg 中列出的接口,范围外一律拒绝。

安装

dsh plugin --profile web add dsh-apis-plugin

安装后重启 dsh web 生效。指定版本:

dsh plugin --profile web add dsh-apis-plugin@0.1.6

配置

建议把 api.cfg 和 api_doc.md 一起放在同一个目录下(如项目的 config/ 目录),然后在插件配置页把「API配置」指向该目录:

config/
├── api.cfg      # 接口清单
└── api_doc.md   # 接口文档

1. api.cfg(接口清单,必需)

key=value 行格式,# 注释,UTF-8 编码:

# 接口服务前缀:域名 + nginx 前缀 + 网关路由段
baseUrl=http://your-host/prod-api

# 接口列表:apis= 下面逐行一个接口
apis=
  /users/page
  /users/{id}
  /outline/page
  /outline/detailByNos
  • baseUrl:请求时拼接在接口路径前(改文件即生效,无需重启)
  • apis:接口白名单,支持 {param} 模板段(如 /users/{id}),agent 请求时填实际值
  • 增删接口只改这个文件,改完点插件配置页的「扫描」(或重启)生效

2. api_doc.md(接口文档,建议提供)

与 api.cfg 放在一起。用 --- 分节,每节描述一个接口,节内用反引号标注接口路径:

## 通用说明

所有接口返回 JSON,需携带 token。

## 分页查询用户

- 路径:`/users/page`(GET)
- 参数:keyword(可选)、page、pageSize

## 用户详情

- 路径:`/users/{id}`(GET)

agent 调用 {prefix}_api_doc 时按路径命中对应小节返回。

3. 部署侧 cordis.patch.yml(可选覆盖)

- insert:
    - id: dsh-apis-plugin
      name: dsh-apis-plugin
      config:
        domain: "用户中心"        # 领域名:拼进工具描述 prompt
        toolPrefix: api           # 工具名前缀:生成 api_api_doc / api_api_request
        apiDir: ""                # api.cfg / api_doc.md 默认目录(留空则在 UI 里填)
        endpoints: []             # yml 侧额外固定接口
        baseUrl: ""               # 服务前缀兜底(api.cfg 优先)

使用

Web UI(设置 → 插件 → 插件配置)

操作说明
API 配置填 api.cfg / api_doc.md 所在目录,失焦或回车自动保存
扫描重扫目录:接口列表严格等于当前 api.cfg 内容;目录留空点击则清空列表
接口列表只读展示,增删请在 api.cfg 中操作

Agent 工具

插件向 agent 注册两个工具({prefix} 默认 api):

工具用途
api_api_doc查接口文档:传 path 返回该接口的参数与响应说明;不传返回通用说明和已配置接口目录
api_api_request真正调用接口:path 必须在白名单内,GET 用 query,POST 用 body

超出 api.cfg 范围的请求会被直接拒绝,并提示可用接口列表。

排查

dsh 控制台日志:

[dsh-apis-plugin] loaded; endpoints=N, doc sections=M
  • endpoints=0:检查 API 目录路径是否正确、api.cfg 是否与目录同级
  • 加载后列表与 api.cfg 不一致:确认已在配置页点过「扫描」
  • 提示未配置 baseUrl:在 api.cfg 写入 baseUrl=http://...

License

MIT