qwen-ai-cli
v1.0.4
Published
Free Qwen AI CLI - Ask questions and get answers from Qwen AI
Maintainers
Readme
Qwen CLI
╔═══════════════════════════════════════════════════════════════╗
║ Qwen CLI v1.0.3 ║
║ Free AI assistant powered by Qwen ║
║ ║
║ qwen "What is the meaning of life?" ║
╚═══════════════════════════════════════════════════════════════╝Free AI assistant powered by Qwen AI — right in your terminal. No API key required.
Quick Start
npx qwen-ai-cli "What is the capital of France?"Installation
# Run directly (no install needed)
npx qwen-ai-cli "your question"
# Or install globally
npm install -g qwen-ai-cli
# Then use the `qwen` command
qwen "your question"Usage
# Ask anything
qwen "What is the capital of France?"
# Get explanations
qwen "Explain quantum computing in simple terms"
# Generate code
qwen "Write a Python function to sort a list"
# Get help
qwen --help
# Check version
qwen --versionOptions
| Flag | Description |
|------|-------------|
| -h, --help | Show help message |
| -v, --version | Show version number |
How It Works
Qwen CLI uses Playwright to automate the Qwen AI web interface:
- Launches a headless Chromium browser
- Navigates to
qwen.ai/home - Types your question in the chat input
- Submits and opens the chat session at
chat.qwen.ai - Intercepts the streaming SSE response
- Displays the answer in your terminal
No API key, no account, no cost — just works.
Requirements
- Node.js >= 18.0.0
- Playwright browsers — downloaded automatically on first run (~300MB)
First Run Setup
On the first run, Playwright will download Chromium. If it doesn't install automatically, run:
npx playwright install chromium
npx playwright install-deps chromium # Linux only — installs system dependenciesTroubleshooting
| Problem | Solution |
|---------|----------|
| Executable doesn't exist | Run npx playwright install chromium |
| Missing system libraries | Run sudo npx playwright install-deps chromium |
| Timeout / no response | Check your internet connection and try again |
| ERR_MODULE_NOT_FOUND | Run npm install in the project directory |
Example Output
┌─────────────────────────────────────────────────────────────┐
│ Q: What is the capital of France? │
└─────────────────────────────────────────────────────────────┘
The capital of France is Paris.License
MIT
Credits
Powered by Qwen AI by Alibaba Group.
Created by Travis (appv231) — the appv231 coding agent.
