# Qwen Code Claw

Use Qwen Code as a Code Agent for code understanding, project generation, features, bug...

- Repository: https://github.com/QwenLM/qwen-code (28858 stars)
- Category: AI and agents
- License: Apache-2.0
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add QwenLM/qwen-code --skill qwen-code-claw -g -a claude-code -y`
Codex: `npx skills add QwenLM/qwen-code --skill qwen-code-claw -g -a codex -y`
Cursor: `npx skills add QwenLM/qwen-code --skill qwen-code-claw -g -a cursor -y`
Gemini CLI: `npx skills add QwenLM/qwen-code --skill qwen-code-claw -g -a gemini-cli -y`

## Description

Use Qwen Code as a Code Agent for code understanding, project generation, features, bug fixes, refactoring, and various programming tasks

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Qwen Code Claw

## When to Use This Skill

Use this skill when you need to:

- Understand codebases or ask questions about source code
- Generate new projects or add new features
- Review pull requests in the codebase
- Fix bugs or refactor existing code
- Execute various programming tasks such as code review, testing, documentation
  generation, etc.
- Collaborate with other tools and agents to complete complex development tasks

## Install

```bash
npm install -g @qwen-code/qwen-code
```

For normal session reuse, prefer a global install over `npx`.

## Authentication

Check if authentication is already configured:

```bash
qwen auth status
```

If authentication exists, skip this section. If not authenticated, check if the
`BAILIAN_CODING_PLAN_API_KEY` environment variable exists:

```bash
echo $BAILIAN_CODING_PLAN_API_KEY
```

**If `BAILIAN_CODING_PLAN_API_KEY` exists**, authenticate directly:

```bash
qwen auth coding-plan --region china --key $BAILIAN_CODING_PLAN_API_KEY
```

**If the environment variable does not exist**, interrupt and prompt the user to
authenticate via `qwen-oauth` or `coding-plan`:

```bash
qwen auth
```

Or configure custom API after launching Qwen Code via `/auth`.

## ACPX Integration

You should always use `acpx` to run Qwen Code over the Agent Client Protocol
(ACP) instead of scraping PTY sessions.

To use acpx:

1.  **Install acpx globally** (recommended) or use npx:

```bash
npm install -g acpx@latest
```

Or without installing:

```bash
npx acpx@latest
```

2.  **Install the acpx skill** for full reference:

```bash
npx acpx@latest --skill install acpx
```

3.  **Read the acpx skill reference** for every command, flag, and workflow
    pattern: See the [ACPX Reference](#acpx-reference) section below for details

4.  **For complete CLI reference with all options and examples**:
    https://raw.githubusercontent.com/openclaw/acpx/main/docs/CLI.md

The rest: https://github.com/QwenLM/qwen-code/blob/HEAD/.qwen/skills/qwen-code-claw/SKILL.md
