> ## 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.

# Neovate Code 接入 APIONE

> 配置自定义提供商，在 Neovate Code 中使用 APIONE。

## 安装与准备

从 [Neovate Code 官方项目](https://github.com/neovateai/neovate-code) 安装客户端：

```bash theme={null}
npm install -g @neovate/code
export APIONE_API_KEY="YOUR_APIONE_KEY"
```

## 添加自定义提供商

在用户目录的 `~/.neovate/config.json` 中合并下面配置。将两处 YOUR\_APIONE\_MODEL\_ID 替换为同一个实际模型 ID，保留已有的其他设置。

```json theme={null}
{
  "model": "apione/YOUR_APIONE_MODEL_ID",
  "provider": {
    "apione": {
      "name": "APIONE",
      "env": ["APIONE_API_KEY"],
      "api": "https://api.apione.ai/v1",
      "apiFormat": "openai",
      "models": {
        "YOUR_APIONE_MODEL_ID": {"name": "APIONE model"}
      }
    }
  }
}
```

此处 apione/ 是客户端用来区分提供商的前缀；真正发给接口的模型 ID 是其后部分。模型上下文和输出限制应按 APIONE 模型参数补充，不要依赖客户端的默认推断。

## 启动与验证

从设置了密钥的同一终端启动 `neovate`。运行 `/model` 检查所选模型，先进行普通对话，再测试读取项目文件。

如果出现 provider/model not found，检查配置键是否为单数 provider、模型是否已在 models 中登记。认证失败时检查启动进程能否读取 APIONE\_API\_KEY。配置结构参见官方 [Provider 类型](https://github.com/neovateai/neovate-code/blob/master/src/provider/providers/types.ts) 与 [加载实现](https://github.com/neovateai/neovate-code/blob/master/src/provider/providers/utils.ts)。

***

[返回集成目录](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.