Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

cativo23/qwen-claude-setup

Repository files navigation

Qwen-Claude Setup

⚠️ This project is archived. A better approach has been found to accomplish the same goal. This repository is kept for reference purposes only and is no longer maintained.

License: MIT Platform: Linux Shell: Bash Status: Archived

One command to rule them all — get Qwen Code + Claude Code playing nice on your Linux box. We wire up the Claude Code router to Qwen's API (API key, compatible mode) so you can code without the setup headache.


⚠️ Project Status: Archived

This project is no longer maintained. The approach documented here has been superseded by a better solution. The code remains available for historical reference and learning purposes.


TL;DR

Clone → sudo ./install.shqwen-claude install → Done.


What's in the box

  • One installer./install.sh sets up the qwen-claude CLI tool globally.
  • Ubuntu, Debian, Arch, Fedora — (and their derivatives). Your distro's probably covered.
  • Dual Authentication — Choose between API Key (dashscope-intl.aliyuncs.com) or Bearer Token (portal.qwen.ai, recommended). See docs/AUTHENTICATION.md for details.
  • Router config — Writes ~/.claude-code-router/config.json and your shell env so ccr just works.
  • Unified CLI — Manage everything with qwen-claude.
  • Easy Refreshqwen-claude refresh handles token updates and service restarts automatically.
  • Uninstallerqwen-claude uninstall nukes our config.

Supported distros

Distro How we do it
Ubuntu / *buntu-based NodeSource for Node 20+, npm for Qwen/Claude/router
Debian Same vibe as Ubuntu
Arch / Arch-based AUR (yay/paru): qwen-code, claude-code, claude-code-router
Fedora dnf + Node from Fedora repos

You’ll need

  • Bash
  • Internet
  • sudo (or root) for packages
  • A GitHub account (for Qwen OAuth)

Quick start

git clone https://github.com/cativo23/qwen-claude-setup.git
cd qwen-claude-setup
sudo ./install.sh
qwen-claude install

What happens:

  1. Detects your OS and runs the right distro script.
  2. Installs Qwen Code, Claude Code, Claude Code Router (or tells you what to install).
  3. Credentials — Choose your authentication method (API Key or Bearer Token) and provide credentials.
  4. Config — Writes router config and appends to ~/.bashrc or ~/.zshrc.

After install

  1. Reload your shell

    source ~/.bashrc   # or source ~/.zshrc
  2. Start the router

    ccr start          # or ccr code for the full experience

Credentials live in ~/.claude-code-router/config.json. Router default port: 3456.


Docs & stuff


Project layout

qwen-claude-setup/
├── install.sh           # The one you run
├── common.sh            # Shared logic
├── distros/
│   ├── ubuntu.sh
│   ├── debian.sh
│   ├── arch.sh
│   └── fedora.sh
├── scripts/
│   └── uninstall.sh     # Nuke our config
├── docs/
│   ├── installation.md
│   └── troubleshooting.md
├── examples/
│   └── config.json.example
└── CHANGELOG.md

Uninstalling

To remove everything we added (router config, env vars):

./scripts/uninstall.sh

We don’t touch your system/AUR packages — uninstall qwen-code, claude-code, etc. with your package manager if you want them gone.


Contributing

PRs and issues welcome. Check CONTRIBUTING.md for the deets.


License

MIT — LICENSE. Use it, fork it, vibe with it.

About

Scripts to set up Qwen Code + Claude Code integration on various Linux distributions

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors