# qwen-code | Qwen | Knowledge Base | Instagit

An open-source AI agent that lives in your terminal.

GitHub Stars: 19k

Repository: https://github.com/qwenlm/qwen-code

---

## Articles

### [OAuth and API-Key Authentication Flows in Qwen Code: A Complete Technical Comparison](/qwenlm/qwen-code/what-differences-between-oauth-api-key-authentication-flows)

Compare OAuth device-code flow and API-key authentication for Qwen Code. Understand differences and integration options for Qwen hosted models and third-party providers.

- Tags: deep-dive
- Published: 2026-02-19

### [How the Qwen Code File Handling System Manages Large Codebases](/qwenlm/qwen-code/how-file-handling-system-work-large-codebases)

Explore the Qwen Code file handling system's three-layer pipeline. Learn how it safely processes large codebases with BOM detection, BFS traversal, and configurable truncation.

- Tags: internals
- Published: 2026-02-19

### [How to Contribute to Qwen Code and Set Up the Development Environment](/qwenlm/qwen-code/how-contribute-qwen-code-set-up-development-environment)

Contribute to Qwen Code by cloning the repo, installing Node 20.19.0, and running build and preflight commands. Learn how to set up the dev environment and submit pull requests.

- Tags: how-to-guide
- Published: 2026-02-19

### [How Thinking Mode Affects Token Usage and Response Latency in Qwen-Code](/qwenlm/qwen-code/how-thinking-mode-affect-token-usage-response-latency)

Discover how thinking mode impacts Qwen-Code token usage and response latency. Learn which tokens are excluded from UI stats and how extra steps affect speed.

- Tags: performance
- Published: 2026-02-19

### [Terminal-Bench Performance Benchmarks: How Accuracy Is Measured in Qwen-Code](/qwenlm/qwen-code/what-performance-benchmarks-terminal-bench-how-accuracy-measured)

Discover Terminal-Bench performance benchmarks for Qwen-Code. Learn how accuracy is precisely measured as the ratio of correctly solved to total attempted tasks.

- Tags: performance
- Published: 2026-02-19

### [How the Qwen Code Conversation Store Persists State Across Terminal Restarts](/qwenlm/qwen-code/how-conversation-store-persist-state-across-terminal-restarts)

Learn how Qwen Code preserves conversation state across terminal restarts using VS Code globalState and WebviewPanelSerializer for seamless continuity.

- Tags: internals
- Published: 2026-02-19

### [How to Debug Connection Issues with the Qwen Code IDE Integration Plugins](/qwenlm/qwen-code/how-debug-connection-issues-ide-integration-plugins)

Quickly debug Qwen Code IDE integration connection issues. Learn to validate auth tokens and set environment variables for seamless integration.

- Tags: how-to-guide
- Published: 2026-02-19

### [Architecture of the Multi-Protocol API Layer in Qwen Code: OpenAI, Anthropic, and Gemini Support](/qwenlm/qwen-code/what-architecture-multi-protocol-api-layer-openai-anthropic-gemini)

Explore the Qwen Code multi-protocol API layer architecture. Seamlessly switch between OpenAI, Anthropic, and Gemini with a unified interface and ContentGenerationPipeline.

- Tags: architecture
- Published: 2026-02-19

### [How Project-Level .qwen/settings.json Overrides User-Level Configuration in Qwen Code](/qwenlm/qwen-code/how-project-level-settings-json-override-user-level-configuration)

Learn how project-level .qwen/settings.json overrides user-level configuration in Qwen Code. Discover the deep-merge algorithm and precedence rules for workspace settings.

- Tags: internals
- Published: 2026-02-19

### [How to Run Qwen Code in Headless CI Environments Without OAuth Browser Flow](/qwenlm/qwen-code/how-qwen-code-work-headless-ci-environments-without-oauth-browser-flow)

Learn how to run Qwen Code in headless CI environments without OAuth browser flow. Discover authentication methods like cached tokens, API keys, and device-code flows for seamless integration.

- Tags: how-to-guide
- Published: 2026-02-19

### [How the Java SDK Process Transport Layer Handles Terminal Commands in Qwen-Code](/qwenlm/qwen-code/how-java-sdk-process-transport-layer-handle-terminal-commands)

Learn how the Java SDK Process Transport Layer manages terminal commands using ProcessBuilder, stream wrapping, and three API patterns for flexible command execution in Qwen-Code.

- Tags: how-to-guide
- Published: 2026-02-19

### [How to Build Custom Skills in Qwen Code: Best Practices and Implementation Guide](/qwenlm/qwen-code/what-best-practices-building-custom-skills-qwen-code)

Master building custom Skills in Qwen Code. Learn best practices for creating self-contained directories, manifest files, and descriptive names to enhance your Qwen model's capabilities.

- Tags: best-practices
- Published: 2026-02-19

### [How the VS Code Companion Extension Synchronizes IDE State with the Qwen Code Agent](/qwenlm/qwen-code/how-vscode-companion-extension-synchronize-ide-state-agent)

Learn how the VS Code companion extension synchronizes IDE state using an MCP HTTP server to send real-time context updates to the Qwen Code agent via JSON RPC.

- Tags: internals
- Published: 2026-02-19

### [How Qwen Code Approval Mode Works and What the --yolo Flag Does](/qwenlm/qwen-code/how-approval-mode-work-what-yolo-flag-do)

Unlock Qwen Code's approval mode to manage tool execution confirmations. Discover how the --yolo flag auto-approves all actions for streamlined workflows with QwenLM/qwen-code.

- Tags: deep-dive
- Published: 2026-02-19

### [Understanding the Qwen Code SubAgent Architecture: How to Create Custom Sub-Agents](/qwenlm/qwen-code/what-is-subagent-architecture-how-create-custom-sub-agents)

Explore the Qwen Code SubAgent architecture to delegate tasks to isolated sub-agents. Learn how to create custom sub-agents using Markdown or APIs for specialized functions.

- Tags: architecture
- Published: 2026-02-19

