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

# DeepSeek Harness 接入 APIONE

> 以 API Key 和自定义基础地址配置 DSH。

本教程采用 DSH 的 API Key 配置路径。先让内置 DeepSeek Provider 指向 APIONE，再选择 APIONE 实际开放的 DeepSeek 模型。

## 安装

```bash theme={null}
npm install -g @deepseek-ai/dsh
dsh --version
```

Node.js 版本以当前 DSH 包的要求为准。

## 设置连接

在当前终端设置：

```bash theme={null}
export APIONE_API_KEY="YOUR_APIONE_KEY"
```

编辑 `~/.dsh/settings.yaml`；若设置过 `DSH_HOME`，使用该目录下的 `settings.yaml`。合并：

```yaml theme={null}
llm-deepseek:
  apiKeyEnv: APIONE_API_KEY
  baseURL: https://api.apione.ai/v1
```

`apiKeyEnv` 引用密钥变量。保留原文件中的其他设置。

## 在 Web UI 配置 APIONE

运行 `dsh web`，进入 **设置 → 模型 → DeepSeek → 编辑**，展开 **自定义设置**。

1. 在 **API 密钥** 中填写 APIONE API Key。
2. 在 **API 地址** 中填写 `https://api.apione.ai/v1`。
3. 核对 **模型目录** 中的实际模型 ID，与 APIONE 当前可用模型保持一致。
4. 点击 **保存**。

![DeepSeek Harness 配置 APIONE 地址、遮盖的密钥和模型目录](https://mintcdn.com/apione/-Fh541-B7_4U7vxR/images/integrations/screenshots/deepseek-harness-apione-settings-cn.png?fit=max\&auto=format\&n=-Fh541-B7_4U7vxR\&q=85\&s=1643d94101ad1d4cc2f140762429f20e)

DeepSeek Harness 的 API 密钥、地址和模型目录配置。

该入口提示使用 Anthropic Messages 协议，请选择 APIONE 支持该协议的模型，并核对最终请求路径。

## 选择模型并运行

运行 `dsh web`，进入模型设置。检查内置模型 ID 是否与 APIONE 当前目录一致；不一致时按当前 DSH 版本的自定义模型界面配置，不能直接认为内置模型都可调用。先进行文本问答，再验证文件读取和工具结果回传。

## 网络与认证

如果网页能打开但推理失败，检查运行 DSH 的终端或容器是否能访问 `api.apione.ai`。需要企业代理时参考[网络配置](https://apione.ai/docs/guides/network-environments.md)。

APIONE 接入使用自己的 API Key。其他供应商的 OAuth 插件、登录命令和授权 Token 不适用于本配置；不要通过更换插件名称来假定存在 APIONE OAuth 服务。

***

[返回集成目录](https://apione.ai/docs/guides/clients.md) · [模型选择](https://apione.ai/docs/models/catalog.md) · [错误排查](https://apione.ai/docs/support/errors.md)


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