跳到主要内容

Agent CLI

xiaohe 负责终端 Agent、本机检查,以及 Session API 服务。

安装:安装与更新。Client / Web UI 路径:概览

终端聊天

xiaohe # 默认后端
xiaohe doctor
xiaohe workspace init # 可选:项目工作区

给 Client / Web UI 用

xiaohe server install
xiaohe server start
xiaohe server pair # 打印 xh_… → 粘贴到 设置 → 连接

然后打开 Web UIhttp://127.0.0.1:8110/xiaohe webui --open)或 Client

检查:xiaohe server status · doctor · logs

之后管理密钥:xiaohe keys issue|list|revoke …。该密钥仅用于聊天——不是 Pro License / MCP Token(见 概览)。

模型 Provider

有用回复前需要配置(CLI 或 UI):

xiaohe switch provider
xiaohe switch provider deepseek --key <API_KEY>
xiaohe switch provider kimi --model kimi-k2.6 --base-url <URL>
xiaohe switch provider claude

xiaohe provider … 管理预设(add/list/rm、存 key);密钥保存在该机器的 ~/.xiaohe/agent/switch-configs.json。UI 里:设置 → 助手

其他命令

类别命令
本机status · version · doctor · setup · upgrade · uninstall · switch · completion
服务install · start · stop · restart · status · doctor · logs · pair · uninstall

日常用这些生命周期命令——不要跑隐藏的前台辅助进程(server api / worker / …)。

相关