用途:让编码智能体在不开浏览器界面的情况下调用 AI Factory Operations Agent,回答运维问题或使用其工具,也可从其他智能体运行时接入。
主要能力:无头模式与浏览器 UI 使用同一服务和 OpenClaw 后端智能体;会等待助手回合完成再返回。可通过 CLI、HTTP 或 MCP 调用,MCP 暴露 ai_factory_operations_agent_chat(调查或操作)、ai_factory_operations_agent_history(读取会话历史)、ai_factory_operations_agent_commands(列出斜杠命令与智能体入口),以及部署时启用的 OpenClaw 工具,如 Base Command Manager、Kubernetes、可观测性、Slurm 和 shell 工具。
使用方式:若已设置 MOSAIC_URL 则直接使用,否则试本地默认 curl -fsS http://127.0.0.1:3000/api/openclaw/commands。Kubernetes 部署可端口转发:kubectl -n mosaic port-forward svc/mosaic-ui 3000:3000 并 export MOSAIC_URL=http://127.0.0.1:3000。CLI 示例:mosaic --session headless "summarize whether the cluster is healthy",选项含 --url、--session、--timeout-ms、--json、--concise。HTTP 示例:curl -sS "$MOSAIC_URL/api/headless/chat" -H 'content-type: application/json' -d '{"sessionKey":"headless","prompt":"summarize whether the cluster is healthy"}',响应含 success、message、sessionKey、runId、elapsedMs 和序列化消息。MCP 为本地 stdio 桥接,需 Node.js 18+,从仓库安装 utils/mosaic-mcp.mjs 到 ~/.local/bin/mosaic-mcp,再按资料中的 claude mcp add 或 Codex 配置接入;Codex 改动后需重启并运行 /mcp,stdio 服务器显示 Auth: Unsupported 属正常。
适用场景:集群健康与根因调查、Kubernetes 部署健康、GPU 温度与 Grafana 面板、Slurm 作业失败分析等。已知确切工具时可直接调用,如 bcm_execute_cmsh;开放式问题优先用 chat。
限制:无头模式不授予新权限,可用工具与集群访问完全取决于部署的 chart 配置;不要绕过服务直接调用内部 OpenClaw 网关 API,除非在调试服务本身。未运行时可用 Helm chart 部署,需先设置镜像仓库/标签与 LLM 模式,安装后验证 rollout 状态。资料未提供收费、价格或效果数据。