# Usecli Qwen

> Use Qwen as an external CLI worker inside a Claude Code or LikeCode-centered workflow. Good for secondary critique, math reasoning, and multilingual tasks. May require device authorization on first run.

- Skill: `harzva/usecli-qwen` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add harzva/usecli-qwen`
- Raw SKILL.md: https://api.skillmd.com/api/skills/harzva/usecli-qwen/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: harzva (https://skillmd.com/u/harzva)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/harzva/usecli-qwen

---


# usecli-qwen

## Overview

Use Alibaba Qwen CLI as an external worker inside a Claude Code workflow.

Best for:
- secondary critique
- math reasoning
- multilingual tasks
- alternative perspectives

## Install

This sub-skill can be installed independently:

```bash
skill install https://github.com/Harzva/usecli-qwen
```

Or manually:

```bash
git clone https://github.com/Harzva/usecli-qwen.git
mkdir -p ~/.claude/skills
ln -s $(pwd) ~/.claude/skills/usecli-qwen
```

## Command

```bash
bash ~/.claude/skills/usecli-qwen/scripts/usecli-qwen.sh --prompt "<prompt>"
```

Or with a prompt file:

```bash
bash ~/.claude/skills/usecli-qwen/scripts/usecli-qwen.sh --prompt-file <path>
```

## Verification

Run the local smoke test:

```bash
bash ~/.claude/skills/usecli-qwen/tests/test_wrapper.sh
```

## Environment Variables

| Variable | Purpose | Default |
| --- | --- | --- |
| `USECLI_QWEN_BIN` | Qwen executable | `qwen` |
| `USECLI_QWEN_MODEL` | Model override | (none) |
| `USECLI_QWEN_OUTPUT_FORMAT` | Output format | `text` |
| `USECLI_QWEN_AUTH_TYPE` | Auth type | `qwen-oauth` |
| `USECLI_QWEN_TIMEOUT` | Timeout seconds | (none) |

## Good Fits

- When you want a second opinion after Gemini or Codex review
- When you need math-heavy reasoning
- When you work with Chinese or other multilingual content

## Notes

- Uses `qwen -p --auth-type qwen-oauth` in non-interactive mode
- First run may require device authorization via browser
- After completing browser login, rerun the command

## Resources

### `bin/usecli-qwen.sh`

The wrapper script. Sources `bin/usecli-lib.sh` for shared functionality.

### `examples/workflows/multi-model-review.sh`

Demonstrates multi-model review workflow including Qwen.
