Skip to main content

QClaw

QClaw is a localized AI Agent assistant built by Tencent PC Manager based on the OpenClaw open-source ecosystem.

Prerequisites

  • You have activated a TCB environment and obtained the environment ID cloudBaseEnvID.

  • Enable the required model in the AI console.

  • Obtain the Base URL and API Key in the AI console.

Configuration Steps

We use QClaw-v0.2.25 as an example.

Method 1: QClaw Configuration

  1. Open the QClaw panel, click the model selection button in the dialog box, and then click Custom Large Model.

qclaw.png

  1. Click Custom Configuration.

qclaw1.png

  1. In the displayed Add Custom Large Model dialog box, fill in the following form information:
FieldDescriptionExample Value
Interface AddressThe request address (Base URL) for the large model API, which is obtained in the AI console and has the format https://{{cloudBaseEnvID}}.api.tcloudbasegateway.com/v1/ai/cloudbase.https://your-env-id.api.tcloudbasegateway.com/v1/ai/cloudbase
API Protocol TypeThe API protocol type. Select OpenAI-Compatible Protocol.OpenAI-Compatible Protocol
API KeyThe key for calling the large model, which is obtained in the AI console.eyJhbGciOiJSUzI1N...
Model NameThe identifier of the large model to be used. Copy the ID of an enabled model from the model list in the AI console and enter it here.hy3-preview

qclaw2.png

  1. After completing the form, click OK to save the configuration and start using it.

qclaw5.png

Method 2: Manually Modify the Local Configuration File

  1. Open the configuration file.
note

If you use your file browser to locate files, note that the file browser hides files with names starting with a period (.) by default. You may need to enable the hidden files option in your file browser to view them.

On macOS, use the Finder shortcut Command + Shift + . to show hidden files. On Windows, you can select "File Explorer - View - Show - Hidden items". Open.

  • Configuration Path for Windows
C:\Users\<YourUsername>\.qclaw\openclaw.json
  • Configuration Path for Mac/Linux
~/.qclaw/openclaw.json
  1. Enter the configuration.

Open the openclaw.json file and add a custom large model provider (e.g., cloudbase) under the models.providers field. The meanings of each field are as follows:

FieldDescription
baseUrlThe request address (Base URL) for the large model API. Obtain it from the AI console. The format is https://{{cloudBaseEnvID}}.api.tcloudbasegateway.com/v1/ai/cloudbase.
apiKeyThe key (API Key) for calling the large model, which is obtained in the AI console.
apiThe API protocol type. Enter openai-completions to use the OpenAI-compatible protocol.
models.idThe large model identifier. Copy the ID of an enabled model from the model list in the AI console and enter it here.
models.nameThe display name of the model, which can be customized. It is generally recommended to keep it consistent with models.id.

Configuration example:

{
"models": {
"providers": {
"cloudbase": {
"baseUrl": "https://{{cloudBaseEnvID}}.api.tcloudbasegateway.com/v1/ai/cloudbase",
"apiKey": "eyJhbGciOiJSUzI1N...",
"api": "openai-completions",
"models": [
{
"id": "hy3-preview",
"name": "hy3-preview"
}
]
}
}
}
}
  1. Restart QClaw, and then select the newly added custom model in the model dialog box.

qclaw4.png

Common Error Troubleshooting

Error MessageSolution
All models are temporarily rate-limited. Please try again in a few minutes.The Base URL is incorrect. Go to the AI console to copy the correct Base URL. An incorrect large model ID is configured, and the large model is not enabled in the AI console.
401 gent failed before reply: 401 status codeThe API Key is entered incorrectly or may have been deleted.