在 Droid CLI 中使用 AICentOS
安装 Droid CLI
bash
curl -fsSL https://app.factory.ai/cli | shpowershell
irm https://app.factory.ai/cli/windows | iex配置模型
编辑 ~/.factory/config.json,将内容修改为以下内容:
json
{
"custom_models": [
{
"model_display_name": "aicentos-gpt5",
"model": "gpt-5",
"base_url": "https://www.aicentos.com/v1",
"api_key": "YOUR_AICENTOS_KEY",
"provider": "generic-chat-completion-api",
"max_tokens": 1280000
}
]
}重要
请将 YOUR_AICENTOS_KEY 替换为你的 AICentOS API Key。
直接启动使用
配置完成后,在命令行输入 droid,在弹出的界面输入 /model,并选择 Custom Model 中的 aicentos-gpt5 即可开始使用。