用途:本指南用于在已安装 OpenClaw 的环境中,将 OpenClaw 与 Qoder CLI 对接,使 OpenClaw 聊天渠道可调用 Qoder 完成 AI 编程任务。
主要能力:对接后可在聊天中直接调用 Qoder 开发项目、自动生成代码、以 Spec 模式先出设计文档再实现、通过持久化会话保持多轮上下文,并支持代码审查等任务。
使用方式:
- 启用 ACPX 插件:openclaw plugins install @openclaw/acpx;openclaw config set plugins.entries.acpx.enabled true;openclaw plugins list | grep acpx。
- 配置 ACP:设置 acp.enabled、acp.dispatch.enabled 为 true,acp.backend 为 "acpx",acp.defaultAgent 为 "qoder",并设置 acp.allowedAgents 包含 "qoder",随后 openclaw gateway restart。
- 配置 Qoder CLI:npm install -g @qoder-ai/qodercli;创建 ~/.acpx/config.json,在 agents.qoder.command 中使用 env QODER_PERSONAL_ACCESS_TOKEN=你的API密钥 qodercli --acp;API Key 从 qoder.com 的 Settings → API Keys 获取。
验证:openclaw config get acp --raw 查看配置;在聊天中输入 /acp spawn qoder --mode persistent 测试会话创建;或用自然语言如“用 qoder 开发一个 TODO list 应用,用 Next.js + TypeScript”触发调用。常用命令包括 /acp spawn qoder、/acp status、/acp sessions、/acp close、/acp steer 继续开发。
适用场景:需要从飞书/钉钉/Discord 等聊天渠道快速发起开发任务的用户。限制与注意事项:需已有可运行的 OpenClaw 环境与 Qoder API Key;涉及权限级别(strict | moderate | approve-all)与超时设置,可按需调整;若提示 Agent not allowed、未登录、会话立即关闭或渠道无响应,需检查 allowedAgents、API Key、Gateway 日志与渠道配置。其他收费、价格等事实暂未提供。