
Picture by Editor# Introduction
With the latest surge of code-centric giant language fashions, many builders and programmers have began to depend on them to enhance productiveness. Capabilities comparable to code recommendations, debugging, and even scaling a whole venture are actually attainable with these instruments.
With technological developments, the concept of agentic AI has been launched to help our work. As an agentic method can motive about duties and resolve on one of the best subsequent step to succeed in a objective, it has grow to be a significant software builders can undertake at this time. By integrating code-focused fashions with an agentic framework, we will create a personalised coding assistant that understands our wants from a easy immediate.
One of the crucial distinguished open-source code-centric fashions is the Qwen3-Coder, which boasts sturdy capabilities in agentic coding duties. With a powerful mannequin like this, the group then launched a CLI agentic programming software known as Qwen Code to help our coding work.
On this article, we’ll discover the way to use Qwen Code in observe.
# Qwen Code
Qwen Code is an agentic command-line (CLI) workflow software based mostly on the Gemini CLI that has been tailored for the Qwen3-Coder fashions. This CLI software goals to enhance improvement workflows with an clever assistant that may perceive your surroundings and act based mostly in your immediate. Moreover, the software gives methods to automate operational duties and parsing enhancements particular to the Qwen-Coder fashions.
The CLI software is free to make use of and gives two authentication choices: Qwen OAuth and an OpenAI-compatible API. The advisable methodology is Qwen OAuth, which we’ll discover on this article. Qwen OAuth gives free choices, together with 2000 requests per day and a charge restrict of 60 requests per minute, with no token restrict, which we’ll reap the benefits of.
To start out utilizing Qwen Code, you want Node.js model 20 or increased put in. You may obtain it from the supply or use the next code.
curl -qL https://www.npmjs.com/set up.sh | sh
After set up, use npm to obtain the software into your surroundings with the code beneath.
npm set up -g @qwen-code/qwen-code@newest
Should you choose to put in Qwen Code from supply, you should use the next instructions:
git clone https://github.com/QwenLM/qwen-code.git
cd qwen-code
npm set up
npm set up -g .
With Qwen Code put in, let’s strive it out. On this article, we’ll consider a coding venture—particularly the Native RAG recipe venture I developed. You need to use your personal venture and code repository.
Let’s begin by activating Qwen Code utilizing the next command in your most well-liked listing.


The very first thing Qwen Code will ask you to do is authenticate. For this text, we’ll choose Qwen OAuth, and you may be redirected to the browser.


Choose your most well-liked approach to log in—there are various choices to authenticate your profile. Upon getting logged in, return to your CLI, and you’re able to work with Qwen Code.
Begin utilizing Qwen Code by passing a immediate into the CLI. For instance, I used the immediate: “describe the code right here”


Qwen Code will carry out an agentic course of and look at the complete venture repository.


Then Qwen Code will present a whole rationalization based mostly on the immediate. On this instance, it explains the code within the listing and its function.


Utilizing Qwen Code, you possibly can ask it to execute actions in your behalf. For instance, you possibly can ask to enhance the code repository utilizing the immediate: “what elements of this module could be optimized?”


Qwen Code will current attainable optimizations and urged adjustments to implement.


You may then settle for or reject the adjustments, sustaining a human-in-the-loop workflow. If you want, you possibly can allow computerized adjustments so you don’t want to simply accept them repeatedly.
Qwen Code also can create required information by itself, such because the necessities.txt proven beneath.


Lastly, you possibly can specify a folder or information you need Qwen Code to course of. For instance, I used the immediate "@chroma_db, please clarify to me what this folder is all about". The result’s proven beneath:


The outcome exhibits the aim of every file within the listing and the way it’s used.
If you wish to enhance your Qwen Code expertise, you possibly can create a file .qwen/settings.json and fill it with the settings you need. For instance, you possibly can set the token restrict utilizing the next:
{
"sessionTokenLimit": 32000
}
Moreover, you should use numerous instructions, comparable to /assist to show all out there Qwen Code instructions or /stats to point out the present Qwen Code session info.
That’s the essential utilization of Qwen Code; strive numerous prompts in your initiatives to see the way it can assist your work.
# Wrapping Up
Qwen Code is an agentic CLI software that makes use of Qwen3-Coder, a robust code-focused mannequin. By adapting the software from Gemini CLI, Qwen Code can perceive your code and automate many basic duties with a easy immediate.
I hope this has helped!
Cornellius Yudha Wijaya is a knowledge science assistant supervisor and information author. Whereas working full-time at Allianz Indonesia, he likes to share Python and information ideas through social media and writing media. Cornellius writes on quite a lot of AI and machine studying matters.