Updated on 2026-09-17 GMT+08:00

Usage Settings

On the Usage Settings page, enterprise administrators can set monthly token quotas (including input and output tokens) for built-in models in pay-per-use billing mode and custom models to manage and control token consumption and optimize model usage costs.

The monthly token usage cycle runs from the day the CodeArts Agent package starts to the same day of the following month. For example, if the package started on May 22, 2026, the usage cycle will be from May 22, 2026 to June 22, 2026.

Prerequisites

  • You have purchased the professional package.
  • The pay-per-use billing mode has been enabled if you want to set the monthly token quota of a built-in model.
  • For IAM user or federated user accounts, the permissions to configure monthly token quota for built-in models must be assigned before login.

    For details about how to grant permissions to IAM users on the IAM console, see Creating a User Group and Assigning Permissions or Creating a User Group and Assigning Permissions (New Edition). For details about how to grant permissions to federated users, see Creating a User Group and Assigning Permissions. After the permissions of a user group to which a federated user belongs are modified, the enterprise IdP must be restarted to make the modifications take effect.

    Table 1 Permissions of IAM user or federated user

    Operation

    Required Permissions

    Set the monthly token usage of a built-in model.

    IAM:

    devcloud:monthlyPackage:listResourceDetail

    IAM (new edition):

    codearts:monthlyPackage:listResourceDetail

Setting the Monthly Token Quota of a Built-in Model

  1. Log in to the CodeArts Agent console using any of the following accounts:

    • HUAWEI ID with the enterprise administrator role
    • IAM user or federated user account that holds both the enterprise administrator role and fine-grained permissions listed in Table 1

  2. In the navigation tree on the left, choose Enterprise Settings > Usage.
  3. In the Built-in Models area, locate the target model, and set the monthly token quota. The unit is million tokens.

    If the value is empty, there is no limit for token consumptions.

    If you want to restore the value to the original one after entering a quota, click Reset in the lower right corner.

  4. In the lower right corner, click Save.

    In the Built-in Models area, the monthly token quota of the target model is displayed.

Setting the Monthly Token Quota of a Custom Model

  1. Log in to the CodeArts Agent console using an enterprise administrator account.
  2. In the navigation tree on the left, choose Enterprise Settings > Usage.
  3. In the Custom Models area, locate the target model, and set the monthly token quota. The unit is million tokens.

    If the value is empty, there is no limit for token consumptions.

    If you want to restore the value to the original one after entering a quota, click Reset in the lower right corner.

  4. In the lower right corner, click Save.

    In the Custom Models area, the monthly token quota of the target model is displayed.