pip install nanobot-aiuv tool install nanobot-aigit clone https://github.com/HKUDS/nanobot.git
cd nanobot
pip install -e .nanobot onboard~/.nanobot/ 文件夹,包含配置文件和工作目录。~/.nanobot/config.json:{
"agents": {
"defaults": {
"workspace": "~/.nanobot/workspace",
// ===================== 填写1:你的模型名称 =====================
"model": "claude-sonnet-4-6",
// ==============================================================
"provider": "custom",
"maxTokens": 8192,
"contextWindowTokens": 65536,
"temperature": 0.1,
"maxToolIterations": 40,
"reasoningEffort": null
}
},
"custom": {
// ===================== 填写2:你的虚拟密钥 =====================
"apiKey": "sk-xxxxxxxx",
// ==============================================================
// ===================== 填写3:你的接口Base URL =================
"apiBase": "https://api.bjtysz.net",
// ==============================================================
"extraHeaders": null
}
}| 字段 | 说明 | 示例值 |
|---|---|---|
model | 你的模型名称 | claude-sonnet-4-6 |
apiKey | 你的虚拟密钥 | sk-xxxxxxxx |
apiBase | 接口 Base URL | https://api.bjtysz.net |