Zum Hauptinhalt springen
•
YouTube Security VideosLinkedIn connects the business world with AMD(22.10.2026 um 15:00 Uhr)
•
YouTube Security VideosLegionEdge advances custom AI models with AMD(22.10.2026 um 15:00 Uhr)
•
YouTube Security VideosNeysa lowers per token AI cost for its customers with AMD(22.10.2026 um 16:00 Uhr)
••
YouTube Security VideosMatrixdotorg: NI2CE network effects in a voluntary adoption paradigm(22.10.2026 um 15:10 Uhr)
••
YouTube Security VideosMatrixdotorg: Sustainable Digital Sovereignty(22.10.2026 um 15:51 Uhr)
••
YouTube Security VideosPC-WELT: Hört auf, so viel Geld für Mainboards auszugeben!(22.10.2026 um 15:45 Uhr)
••
YouTube Security VideosLinkedIn connects the business world with AMD(22.10.2026 um 15:00 Uhr)
•
YouTube Security VideosLegionEdge advances custom AI models with AMD(22.10.2026 um 15:00 Uhr)
•
YouTube Security VideosNeysa lowers per token AI cost for its customers with AMD(22.10.2026 um 16:00 Uhr)
••
YouTube Security VideosMatrixdotorg: NI2CE network effects in a voluntary adoption paradigm(22.10.2026 um 15:10 Uhr)
••
YouTube Security VideosMatrixdotorg: Sustainable Digital Sovereignty(22.10.2026 um 15:51 Uhr)
••
YouTube Security VideosPC-WELT: Hört auf, so viel Geld für Mainboards auszugeben!(22.10.2026 um 15:45 Uhr)
•
Intelligence View
⚡ tsecurity.de Intelligence

How to Use Claude Code with Qwen models for Free (Linux)

Prerequisites Qwen CLI installed and authenticated Node.js v18+ installed Step 1: Install Claude, Claude Code Router and Qwen Code npm install -g…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!




Prerequisites




  • Qwen CLI installed and authenticated

  • Node.js v18+ installed






Step 1: Install Claude, Claude Code Router and Qwen Code






npm install -g @qwen-code/qwen-code@latest









npm install -g @anthropic-ai/claude-code @musistudio/claude-code-router









Step 2: Extract Your Access Token



Replace LINUX_USER with your Linux username.



Open /home/LINUX_USER/.qwen/oauth_creds.json



It should look something like this:




{
"access_token": "YOUR_QWEN_ACCESS_TOKEN_HERE",
"token_type": "Bearer",
"refresh_token": "YOUR_QWEN_REFRESH_TOKEN_HERE",
"resource_url": "portal.qwen.ai",
"expiry_date": 1764876220290
}






Copy the access_token value.






Step 3: Create router config






cat > ~/.claude-code-router/config.json << 'EOF'
{
"LOG": true,
"LOG_LEVEL": "info",
"HOST": "127.0.0.1",
"PORT": 3456,
"API_TIMEOUT_MS": 600000,
"Providers": [
{
"name": "qwen",
"api_base_url": "https://portal.qwen.ai/v1/chat/completions",
"api_key": "$QWEN_ACCESS_TOKEN",
"models": [
"qwen3-coder-plus",
"qwen3-coder-plus",
"qwen3-coder-plus"
]
}
],
"Router": {
"default": "qwen,qwen3-coder-plus",
"background": "qwen,qwen3-coder-plus",
"think": "qwen,qwen3-coder-plus",
"longContext": "qwen,qwen3-coder-plus",
"longContextThreshold": 60000,
"webSearch": "qwen,qwen3-coder-plus"
}
}
EOF









Verify file was created






cat ~/.claude-code-router/config.json









Step 4: Set your Access Token






echo 'export QWEN_ACCESS_TOKEN="YOUR_QWEN_ACCESS_TOKEN_HERE"' >> ~/.zshrc









source ~/.zshrc









Step 5: Verify Setup






claude --version        # Should show: Claude Code v2.x.x
ccr version # Should show version number
echo $QWEN_ACCESS_TOKEN # Should show your token









Step 6: Start Using



Restart the router server:




ccr restart






Run Claude Code with Qwen models:




ccr code






Test with:




> hi









Token Refresh (When you get 401 errors)



Your OAuth token expires. Refresh it by:




  1. Re-authenticating your QWEN CODE CLI: If already logged in and the access_token matches in both config.json and oauth_creds.json, delete the oauth_creds.json file and run qwen to initiate re-authentication.

  2. Update the api_key in your config.json with the new access_token: nano ~/.claude-code-router/config.json

  3. Restart: ccr restart



Hopefully this will help you learn Claude Code for Free 💖

🔍 CTI & Forensik

Cyber Threat Intelligence & Forensik

ATT&CK-Navigator · IoC-Radar · Exploit-Belege
CTI Threat Relationship Graph
Akteure · Techniken · Beziehungen
2 Knoten · 1 Relationen
CVE / Incident Threat Actor Software MITRE ATT&CK CWE Weakness IoC
Intelligence Digest — kostenlos Täglich die wichtigsten Security-News · jederzeit abbestellbar
Community Rating & Social Proof
⭐ Leser-Wertung
–
Ø / 5.0
Noch keine Leser-Bewertungen
War diese Seite hilfreich?
0
Jetzt Bewertung abgeben
🟢 Niedrig (1-3.9) 🟡 Mittel (4.0-6.9) 🔴 Hoch (7.0-8.9) Kritisch (9.0-10.0)

Verwandte Story-Cluster & Quellen (Vektor-KI)

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten How to Use Claude Code with Qwen models for Free (Linux)

Thematisch verwandte Begriffe: Claude, Code, with, Qwen · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
Nächster Beitrag