Connect Qwen Code to AgentRQ
Connect Qwen Code to AgentRQ over the Agent Client Protocol (ACP) for human-in-the-loop task management.
Qwen Code is Alibaba's open-source coding agent CLI. It exposes an experimental ACP-style shared session mode, so it can be bridged to AgentRQ with no custom integration code.
Does Qwen Code Support ACP?
Yes, experimentally. Qwen Code's qwen serve command starts a shared agent session over ACP (HTTP+SSE), allowing multiple clients — including AgentRQ's gateway — to talk to one agent session. Check Qwen Code's docs for the current daemon-mode flag, since this is still marked experimental.
What Connecting via ACP Gets You
Once Qwen Code is bridged through AgentRQ's ACP Gateway, every task it works on shows up on your AgentRQ task board in real time. You can approve risky commands, reply with extra context, or reassign work — from the dashboard or Slack — without touching the terminal Qwen Code is running in.
Connect Qwen Code
Wrap Qwen Code's ACP mode with AgentRQ's gateway:
npx @agentrq/acp-gateway@latest -- qwen serve
Then point it at your workspace with a .mcp.json in your project root:
{
"mcpServers": {
"agentrq": {
"type": "http",
"url": "https://WORKSPACE_ID.mcp.agentrq.com/mcp?token=TOKEN"
}
}
}
See the ACP Gateway guide for the full setup walkthrough, including where to find your Workspace ID and token.
FAQ
Does Qwen Code work with AgentRQ?
Yes, experimentally — Qwen Code's shared session mode speaks the Agent Client Protocol (ACP), so it connects to AgentRQ through the open-source ACP Gateway with no custom integration code.
How do I connect Qwen Code to AgentRQ?
Run npx @agentrq/acp-gateway@latest -- qwen serve from your project root, with a .mcp.json pointing at your AgentRQ workspace. Check Qwen Code's own docs for the current flag, since this mode is experimental.
What is the Agent Client Protocol (ACP)?
ACP is an open, editor-agnostic protocol that lets any coding agent talk to any client over a standard JSON-RPC interface. AgentRQ's gateway implements the client side of ACP, so any ACP-compatible agent — including Qwen Code — can use AgentRQ as its human-in-the-loop task manager.