Updated on 2026-08-21 GMT+08:00

Huawei Cloud CodeArts Agent

Huawei Cloud CodeArts Agent allows you to integrate third-party large language models and tailor them to your business scenarios. With support for private deployment, it helps you meet data security and compliance requirements while aligning AI capabilities with your business needs.

The professional edition of Huawei Cloud CodeArts Agent allows you to configure models on both the console and client. The basic edition or free edition allows you to configure models only on the client.

  • On the console: Only enterprise administrators can configure models and manage the permissions of enterprise members to configure models on the client.
  • On the client: All enterprise members can configure models.

Prerequisites

Billing

When using the MaaS service, you are charged based on the number of tokens used. For details, see Billing Items for MaaS Built-in Model Services.

Constraints

  • Only the third-party models that use OpenAI-compliant Chat Completions APIs and Anthropic-compliant Messages APIs can be integrated into CodeArts Agent.
  • CodeArts models cannot be invoked by the Ask agent. They can only be invoked by system built-in agents, AgentTeam, and custom agents.

Connecting a MaaS Model to the CodeArts Agent on the Console

  1. Log in to the CodeArts Agent console using an account with the Tenant Administrator permissions.
  2. In the navigation tree, choose Enterprise Settings > Models. The Models page is displayed.
  3. In Custom Models, click Create Model. The Create Model dialog box is displayed.
  4. Create the MaaS model by referring to Table 1.
    Figure 1 Creating a MaaS model

    Table 1 Parameters for creating a MaaS model

    Parameter

    Description

    Model Provider

    Select Huawei Cloud MaaS.

    Model ID

    • Select a model name from the drop-down list, for example, GLM5.2.
    • If the required model name is not in the drop-down list, select Custom and enter the model name in the Custom Model ID text box, for example, GLM5.2. For details about the supported models, see Model List.

    Model Display Name

    The model display name can be the same as the name of a built-in model, but cannot be the same as the name of any other custom model.

    Enter the model name to be displayed in CodeArts Agent, for example, GLM5.2. The name can contain a maximum of 64 characters.

    API Key

    Obtain an API key.

    Model URL

    Retain the default value that is displayed after you select the model provider.

    Context Window

    Optional. Retain the default value.

    Description

    Optional. Retain the default value.

  5. Click OK.

    The MaaS model is displayed in the built-in models area, indicating that the MaaS model has been connected to the CodeArts Agent.

  6. Log in to the CodeArts Agent console as an enterprise administrator. In the navigation tree, choose Agent Settings > Agents.
    Figure 2 Agents

  7. Locate the system built-in agent and click Edit in the Operation column. The Edit Agent page is displayed.
  8. Select the MaaS model from the Base Model drop-down list box and click Confirm in the upper right corner. The model is added to the model list of the agent.
    Figure 3 Edit Agent

  9. Log in to the CodeArts Agent client as an enterprise member.
  10. In the chat window, choose Built-in > Agent under the text box, and select the MaaS model from the model list on the right.
  11. Enter What Is a Binary Tree in the chat box and press Enter. The correct answer is returned, indicating that the MaaS model can be used normally.
    Figure 4 Using the MaaS model