tencent cloud

CodeBuddy

Download
Modo Foco
Tamanho da Fonte
Última atualização: 2026-07-23 15:08:38
CodeBuddy is an AI-assisted coding tool launched by Tencent Cloud. It deeply integrates AI throughout the entire process, creating a one-stop, efficient delivery platform from product conception to release. The product supports three forms: IDE, plugin, and CLI, covering the full-scenario needs from professional developers to users with no prior experience. This document describes how to configure and use the Tencent Cloud Large Language Model Enterprise Token Plan in CodeBuddy, which applies to both CodeBuddy IDE and CodeBuddy CLI.

Prerequisites

Before you start the configuration, ensure that you have completed the following preparations:
4. To install CodeBuddy, you can choose to install either CodeBuddy IDE or CodeBuddy CLI based on your needs:
Installing CodeBuddy IDE
Installing CodeBuddy CLI
Visit CodeBuddy IDE to download and install it for use.
First, ensure that Node.js version 18.0 or later is installed locally. Then, run the following command to install CodeBuddy CLI.
npm install -g @tencent-ai/codebuddy-code
After the installation is complete, you can run the following command to verify it. A successful installation is indicated by the output of the version number.
codebuddy --version

Configuring Enterprise Token Plan

1. Locate the CodeBuddy configuration file. The configuration file path is as follows. If the configuration file does not exist, create it.
Windows: C:\\Users\\<username>\\.codebuddy\\models.json.
macOS/Linux:~/.codebuddy/models.json.
2. Copy and paste the following configuration into the models.json file based on your purchased plan type, and then save the file.
Note:
Replace <USER_API_KEY> in the code with your API Key. The models list has been pre-filled in the configuration below based on your plan type. You can retain the models you need.
For model access addresses of different plans and regions, see Access Address. Select the corresponding configuration based on the plan you purchased and the region where the service is activated.
Pro Plan (Guangzhou)
Pro Plan (Singapore)
Lite Plan (Guangzhou)
Lite Plan (Singapore)
{
"models": [
{
"id": "auto",
"name": "Auto",
"vendor": "Tencent Cloud Enterprise Token Plan Pro (Guangzhou)",
"apiKey": "<USER_API_KEY>",
"url": "https://tokenhub.tencentcloudmaas.com/plan/v3"
},
{
"id": "glm-5.2",
"name": "GLM-5.2",
"vendor": "Tencent Cloud Enterprise Token Plan Pro (Guangzhou)",
"apiKey": "<USER_API_KEY>",
"url": "https://tokenhub.tencentcloudmaas.com/plan/v3"
},
{
"id": "minimax-m3",
"name": "MiniMax-M3",
"vendor": "Tencent Cloud Enterprise Token Plan Pro (Guangzhou)",
"apiKey": "<USER_API_KEY>",
"url": "https://tokenhub.tencentcloudmaas.com/plan/v3"
},
{
"id": "kimi-k2.7-code",
"name": "Kimi K2.7 Code",
"vendor": "Tencent Cloud Enterprise Token Plan Pro (Guangzhou)",
"apiKey": "<USER_API_KEY>",
"url": "https://tokenhub.tencentcloudmaas.com/plan/v3"
},
{
"id": "kimi-k2.7-code-highspeed",
"name": "Kimi K2.7 Code HighSpeed",
"vendor": "Tencent Cloud Enterprise Token Plan Pro (Guangzhou)",
"apiKey": "<USER_API_KEY>",
"url": "https://tokenhub.tencentcloudmaas.com/plan/v3"
},
{
"id": "deepseek-v4-flash",
"name": "DeepSeek-V4-Flash",
"vendor": "Tencent Cloud Enterprise Token Plan Pro (Guangzhou)",
"apiKey": "<USER_API_KEY>",
"url": "https://tokenhub.tencentcloudmaas.com/plan/v3"
},
{
"id": "deepseek-v4-pro",
"name": "DeepSeek-V4-Pro",
"vendor": "Tencent Cloud Enterprise Token Plan Pro (Guangzhou)",
"apiKey": "<USER_API_KEY>",
"url": "https://tokenhub.tencentcloudmaas.com/plan/v3"
},
{
"id": "deepseek-v4-flash-202605",
"name": "DeepSeek-V4-Flash Vendor Direct",
"vendor": "Tencent Cloud Enterprise Token Plan Pro (Guangzhou)",
"apiKey": "<USER_API_KEY>",
"url": "https://tokenhub.tencentcloudmaas.com/plan/v3"
},
{
"id": "deepseek-v4-pro-202606",
"name": "DeepSeek-V4-Pro Vendor Direct",
"vendor": "Tencent Cloud Enterprise Token Plan Pro (Guangzhou)",
"apiKey": "<USER_API_KEY>",
"url": "https://tokenhub.tencentcloudmaas.com/plan/v3"
}
]
}
{
"models": [
{
"id": "auto",
"name": "Auto",
"vendor": "Tencent Cloud Enterprise Token Plan Pro (Singapore)",
"apiKey": "<USER_API_KEY>",
"url": "https://tokenhub-intl.tencentcloudmaas.com/plan/v3"
},
{
"id": "glm-5.2",
"name": "GLM-5.2",
"vendor": "Tencent Cloud Enterprise Token Plan Pro (Singapore)",
"apiKey": "<USER_API_KEY>",
"url": "https://tokenhub-intl.tencentcloudmaas.com/plan/v3"
},
{
"id": "minimax-m3",
"name": "MiniMax-M3",
"vendor": "Tencent Cloud Enterprise Token Plan Pro (Singapore)",
"apiKey": "<USER_API_KEY>",
"url": "https://tokenhub-intl.tencentcloudmaas.com/plan/v3"
},
{
"id": "kimi-k2.7-code",
"name": "Kimi K2.7 Code",
"vendor": "Tencent Cloud Enterprise Token Plan Pro (Singapore)",
"apiKey": "<USER_API_KEY>",
"url": "https://tokenhub-intl.tencentcloudmaas.com/plan/v3"
},
{
"id": "kimi-k2.7-code-highspeed",
"name": "Kimi K2.7 Code HighSpeed",
"vendor": "Tencent Cloud Enterprise Token Plan Pro (Singapore)",
"apiKey": "<USER_API_KEY>",
"url": "https://tokenhub-intl.tencentcloudmaas.com/plan/v3"
},
{
"id": "deepseek-v4-flash",
"name": "DeepSeek-V4-Flash",
"vendor": "Tencent Cloud Enterprise Token Plan Pro (Singapore)",
"apiKey": "<USER_API_KEY>",
"url": "https://tokenhub-intl.tencentcloudmaas.com/plan/v3"
},
{
"id": "deepseek-v4-pro",
"name": "DeepSeek-V4-Pro",
"vendor": "Tencent Cloud Enterprise Token Plan Pro (Singapore)",
"apiKey": "<USER_API_KEY>",
"url": "https://tokenhub-intl.tencentcloudmaas.com/plan/v3"
},
{
"id": "deepseek-v4-flash-202605",
"name": "DeepSeek-V4-Flash Vendor Direct",
"vendor": "Tencent Cloud Enterprise Token Plan Pro (Singapore)",
"apiKey": "<USER_API_KEY>",
"url": "https://tokenhub-intl.tencentcloudmaas.com/plan/v3"
},
{
"id": "deepseek-v4-pro-202606",
"name": "DeepSeek-V4-Pro Vendor Direct",
"vendor": "Tencent Cloud Enterprise Token Plan Pro Plan (Singapore)",
"apiKey": "<USER_API_KEY>",
"url": "https://tokenhub-intl.tencentcloudmaas.com/plan/v3"
}
]
}
e{
"models": [
{
"id": "auto",
"name": "Auto",
"vendor": "Tencent Cloud Enterprise Token Plan Lite (Guangzhou)",
"apiKey": "<USER_API_KEY>",
"url": "https://tokenhub.tencentcloudmaas.com/plan/v3"
}
]
}
e{
"models": [
{
"id": "auto",
"name": "Auto",
"vendor": "Tencent Cloud Enterprise Token Plan Lite (Singapore)",
"apiKey": "<USER_API_KEY>",
"url": "https://tokenhub-intl.tencentcloudmaas.com/plan/v3"
}
]
}

Using Tikit

CodeBuddy IDE
CodeBuddy CLI
After the model is configured, you can select the configured model in the dialog box to start a conversation.
After the model is configured, run the following command to start CodeBuddy CLI.
codebuddy
When you use CodeBuddy CLI for the first time, you need to complete login authentication. After startup, a login method selection page is displayed:
Select login method:
› Log in via Chinese Site
Log in via International Site
Log in via Enterprise Domain
Log in via iOA (Tencent only)
The login methods are described as follows:
Login Method
Applicable Scenarios
Description
Chinese Site
Users of the Chinese Site
Authenticate via Tencent Cloud China Site (copilot.tencent.com), supporting mainstream models within China.
International Site
International Site users
Authenticate via Tencent Cloud International Site (codebuddy.ai), supporting mainstream models outside China.
Enterprise Domain
Dedicated Edition/Private Deployment
Connect to the enterprise-dedicated or self-built CodeBuddy service, and enter the service address provided by your enterprise.
iOA
Tencent internal employees
Authenticate via Tencent iOA Zero Trust system, and is restricted to Tencent internal employees only.
Use the ↑↓ keys to select a login method. After you press Enter to confirm, a browser is automatically opened to complete authentication.
Enter the /model command and select a model to start a conversation.


Ajuda e Suporte

Esta página foi útil?

comentários