> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dropcv.work/llms.txt
> Use this file to discover all available pages before exploring further.

# Qwen Code

> 阿里巴巴出品的 CLI AI Agent，支持 MCP，国内用户友好。

<Frame>
  <img src="https://mintcdn.com/dropcv-77/IwNk1CkIuaf50zXX/images/integration/qwen-code-github.png?fit=max&auto=format&n=IwNk1CkIuaf50zXX&q=85&s=9a4268429c54627110f662e0af63e4d1" alt="Qwen Code 界面" width="1280" height="10538" data-path="images/integration/qwen-code-github.png" />
</Frame>

Qwen Code 是阿里巴巴出品的终端 AI Agent，支持 MCP 协议，对国内用户比较友好。

## 安装

<Steps>
  <Step title="安装 Qwen Code">
    ```bash theme={null}
    npm install -g -g @anthropic-ai/qwen-code
    ```
  </Step>

  <Step title="配置模型">
    ```bash theme={null}
    qwen
    ```

    首次运行引导你选择模型和配置 API Key。

    可以使用阿里云的 Coding Plan，也可以配置 OpenAI 兼容的 API。
  </Step>

  <Step title="添加 DropCV MCP Server">
    在项目目录下创建 `.qwen/mcp.json`：

    ```json theme={null}
    {
      "mcpServers": {
        "dropcv": {
          "url": "https://api.dropcv.work/api/external/v1/mcp/mcp",
          "headers": {
            "Authorization": "Bearer <你的 API Key>"
          }
        }
      }
    }
    ```

    或者在 `~/.qwen/settings.json` 中全局配置。
  </Step>

  <Step title="开始使用">
    ```bash theme={null}
    qwen
    ```

    在对话中直接操作人才库。

    Qwen Code 也支持无头模式：

    ```bash theme={null}
    qwen -p "从 DropCV 人才库里找出所有在北京的候选人"
    ```
  </Step>
</Steps>
