Skip to main content

Qwen Code Configuration Document

Overview

This document explains how to configure Qwen Code using the CloudBase AI CLI.

Cloudbase AI CLI Introduction Documentation

CloudBase AI CLI supports configuring Qwen Code in two ways:

  • CloudBase Configuration: One-click login to CloudBase, select a CloudBase environment, and use the Deepseek/Kimi large model within the CloudBase environment.
  • Custom Configuration: Configure your OpenAI-compatible Base URL and API Key

CloudBase Configuration

Run:

tcb ai --setup

After the command runs, it will enter the configuration wizard.

  1. Select the AI programming assistant to configure, then select Qwen Code
  2. Select the configuration method, choose Use CloudBase service, one-click login, no configuration required
  3. Follow the prompts to log in to your account and select a CloudBase environment as needed.
  4. Select the large model provider and model name to use. After configuration is complete, it will directly connect to the large model configured on the CloudBase platform. For details, refer to the Large Model Access Guide
  5. Finally, you can select the default AI programming assistant to use. Subsequent runs of tcb ai will then open it by default.

The configuration is complete after all inputs are provided.

Custom Configuration

Run:

tcb ai --setup

After the command runs, it will enter the configuration wizard.

  1. Select the AI programming assistant to configure, then select Qwen Code
  2. Select the configuration method, choose Self-configured API KEY and Base URL
  3. Enter Base URL, API KEY, and model name
  4. Finally, you can select the default AI programming assistant to use. Subsequent runs of tcb ai will then open it by default.

The configuration is complete after all inputs are provided.

Starting Qwen Code

tcb ai -a qwen
tip

If Qwen Code is configured as the default, you can directly run tcb ai.

Detailed Configuration Guide

Custom Configuration

Configure Qwen

Refer to the Custom Configuration section, where:

  • Base URL: Use the default configuration
  • API KEY: Enter your Bailian API KEY, which can be obtained from Alibaba Cloud Bailian
  • Enter the model name to be used
Reference Documentation