字
字节笔记本
2026年5月25日
nanobot 接入 DeepSeek V4:轻量级 AI Agent 配置指南
API中转
¥120
nanobot 是一个轻量级 AI Agent,支持接入常用聊天工具。通过配置 Provider,可以在 nanobot 中使用 DeepSeek V4 模型。
安装 nanobot
需要先安装 uv:
bash
uv tool install nanobot-aiWindows 用户需将 .local/bin 目录添加到环境变量:
powershell
$env:PATH = "$env:USERPROFILE\.local\bin;$env:PATH"
# 或者更新终端
uv tool update-shell验证安装:
bash
nanobot --version配置 DeepSeek
初始化配置文件:
bash
nanobot onboard配置文件路径:
- Windows:
$env:USERPROFILE\.nanobot\config.json - Linux / macOS:
~/.nanobot/config.json
编辑配置文件,设置 DeepSeek Provider:
json
{
"agents": {
"defaults": {
"model": "deepseek-v4-pro",
"provider": "deepseek"
}
},
"providers": {
"deepseek": {
"apiKey": "<你的 DeepSeek API Key>",
"apiBase": "https://api.deepseek.com/v1"
}
}
}在 DeepSeek 开放平台 获取 API Key。
开始使用
bash
nanobot agent分享: