Offline Claude Code via Qwen 3.5 Local
💡Fully offline Claude Code on Qwen3.5—configs + benchmarks for local coding
⚡ 30-Second TL;DR
What Changed
Env vars and JSON configs disable telemetry for full offline use
Why It Matters
Enables privacy-focused local coding agents rivaling cloud tools. Reveals context limits in setups for iterative dev tasks.
What To Do Next
Set ANTHROPIC_BASE_URL to localhost:8001 and test Qwen3.5-27B for local Claude Code.
Key Points
- •Env vars and JSON configs disable telemetry for full offline use
- •llama.cpp server tuned with 65K ctx-size, ROCBLAS for Strix Halo
- •Gen speed drops 24% from 9.7 to 7.4 t/s at 65K context
- •Issues: no auto-compaction, web search needs external fix
🧠 Deep Insight
AI-generated analysis for this event — not the original article.
🔑 Enhanced Key Takeaways
- •The integration relies on Claude Code's ability to point to a custom OpenAI-compatible API endpoint, allowing local llama.cpp instances to masquerade as the official Anthropic API.
- •Strix Halo hardware optimization via ROCBLAS is critical for this setup, as the high memory bandwidth of the integrated GPU is required to maintain usable token generation speeds at 65K context windows.
- •The lack of native auto-compaction in this local implementation forces users to manually manage context window overflow, as the Claude Code CLI expects the server to handle context pruning or summarization natively.
📊 Competitor Analysis▸ Show
| Feature | Claude Code (Local/Qwen) | Cursor (Local Mode) | Aider (Local) |
|---|---|---|---|
| Architecture | CLI-based, API-shimmed | IDE-integrated | CLI-based |
| Privacy | Full Air-gapped | Partial (Telemetry) | Full Air-gapped |
| Context Mgmt | Manual/None | Automated | Automated |
| Pricing | Free (Hardware cost) | Subscription | Free (Open Source) |
🛠️ Technical Deep Dive
- API Shim Implementation: Uses a proxy layer to map Claude Code's Anthropic-specific API calls to the OpenAI-compatible format exposed by llama.cpp's server mode.
- Context Handling: Utilizes llama.cpp's
--ctx-size 65536flag; performance degradation is attributed to KV cache memory fragmentation and the computational cost of attention heads at high sequence lengths. - Telemetry Blocking: Requires setting
ANTHROPIC_TELEMETRY_DISABLED=trueandCLAUDE_CODE_ANALYTICS=falseto prevent the CLI from attempting to reach Anthropic's telemetry endpoints during offline execution. - Hardware Acceleration: ROCBLAS is utilized to offload matrix multiplication to the Strix Halo integrated GPU, bypassing CPU-bound bottlenecks.
🔮 Future ImplicationsAI analysis grounded in cited sources
⏳ Timeline
Weekly AI Recap
Read this week's curated digest of top AI events →
👉Related Updates
AI-curated news aggregator. All content rights belong to original publishers.
Original source: Reddit r/LocalLLaMA ↗
This is a summary, not the original. Read the source, or get the weekly briefing.
Weekly AI briefing
One email a week. Unsubscribe anytime.