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 UI(http://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 / …)。
相关
- 概览 · 安装 · Web UI · Client · Session API