Skip to main content
Use AGCloud models in Qwen3 Coder — a terminal-based AI coding assistant powered by Qwen.

What is Qwen3 Coder?

Qwen3 Coder is a terminal-based AI coding assistant built on Qwen models. It enables developers to write, debug, and refactor code using natural language directly from the command line. Qwen3 Coder supports multiple AI providers through OpenAI-compatible, Anthropic, and Gemini API formats.
With AGCloud, you can use 160+ AI models from top providers (GLM, Kimi, MiniMax, DeepSeek, and more) directly in Qwen3 Coder — all with a single API key.

Step 1: Install Qwen3 Coder

Required Node.js 18+
Install Qwen3 Coder globally via npm:
Verify the installation:

Step 2: Configure AGCloud API

Qwen3 Coder supports multiple API providers. Choose one or more based on the models you want to use.

Option A: Environment Variables (Quick Setup)

You only need to configure the provider(s) you plan to use. For example, if you only want OpenAI-compatible models, you can skip the Anthropic and Gemini variables.
Add the environment variables to your shell profile so they persist across sessions. Linux/macOS:
Add the following lines:
Apply the changes:
Windows (PowerShell - Permanent):
After setting environment variables on Windows, you need to restart PowerShell for the changes to take effect.

Step 3: Add Configuration File settings.json

The configuration file path depends on your operating system:
Add the following content to settings.json:
Since AGCloud provides an OpenAI-compatible API format, Gemini models should also be placed under the openai provider section in the configuration.

Step 4: Start Using Qwen3 Coder

Launch Qwen3 Coder in your project directory:
If prompted to select an authentication method, choose the first option Qwen OAuth and press Enter. After logging in, use the /model command to switch to your configured models.
You can use natural language to interact with your codebase:

Available Models

Below are the recommended models available through AGCloud:
AGCloud supports 160+ models. You can browse all available models at https://aiandgpu.com/v1/models.

FAQ

1. How do I switch between models?

You can select a different model within Qwen3 Coder’s interactive interface, or specify the model via environment variables before launching.

2. Connection issues?

If you encounter connection errors:
  1. Verify your API key is valid at the AGCloud Dashboard
  2. Make sure the BASE_URL is set correctly (no trailing slash)
  3. Test connectivity:

3. Node.js version too old?

Qwen3 Coder requires Node.js 18+. Update using nvm: