CodeBuddy

CodeBuddy is Tencent Cloud's AI coding assistant (IDE plugin and CLI). Configure it to use Unisound MaaS models with pay-as-you-go or U Plan.

1. Preparation

Before connecting an AI tool, complete the following preparation steps.

1. Get an API Key

The platform supports pay-as-you-go and U Plan. Credentials differ by billing mode:

Usage
Description
How to get credentials (API Key examples below)
Pay-as-you-go API
Billed by usage; suitable for light use
  • Base URL OpenAI-compatible: https://maas-api.unisound.com/v1
  • API Key
  • Format: sk-xxxxx

Go to API Key Management to create an API Key

U Plan
Fixed subscription fee with plan quotas
  • Base URL OpenAI-compatible: https://maas-api.unisound.com/v1
  • API Key
  • Format: tp-xxxxx

After successfully subscribing to U Plan, go to Subscription Management to get your dedicated API Key

Pay-as-you-go supports all modalities, including text, speech, and vision.

A plan-exclusive Key is for plan quota. It may exist before paid resources are available; you can use resources only when you have plan quota. See U Plan overview.

2. Choose Base URL

The platform provides one Base URL:

  • OpenAI-compatible: https://maas-api.unisound.com/v1

3. Find Model ID

Replace '<'MODEL_ID'>' with the Model ID from the Model Hub console.

2. Install CodeBuddy

The CodeBuddy plugin supports VS Code and JetBrains IDEs:

  • VS Code: search CodeBuddy in the Extensions Marketplace.
  • JetBrains: search “腾讯云代码助手” in the plugin marketplace.
CodeBuddy plugin install screenshot

For terminal use, install CodeBuddy Code: install or update Node.js (v18.0 or later), then run:

Bash
npm install -g @tencent-ai/codebuddy-code

3. Configure the target model

Both the CodeBuddy plugin and CodeBuddy Code manage custom models via ~/.codebuddy/models.json (Windows: C:\\Users\\<username>\\.codebuddy\\models.json).

Paste the config below and replace UNISOUND_API_KEY and placeholders as needed:

JSON
{
  "models": [
    {
      "id": "<MODEL_ID>",
      "name": "<MODEL_ID>",
      "vendor": "OpenAI",
      "apiKey": "UNISOUND_API_KEY",
      "maxInputTokens": 128000,
      "maxOutputTokens": 4096,
      "url": "https://maas-api.unisound.com/v1/chat/completions",
      "supportsToolCall": true,
      "supportsImages": true,
      "supportsReasoning": true
    }
  ]
}

url must end with /chat/completions; set id/name to the Model ID; set maxInputTokens, maxOutputTokens, supportsToolCall, supportsImages, and supportsReasoning per the model docs.

See Preparation for how to get the Key and its format. Note that codebuddy only supports the OpenAI-compatible API.

CodeBuddy model config screenshot

Restart the IDE, then pick the custom model in the CodeBuddy chat model picker.

CodeBuddy model picker screenshot

4. Quick access to capability models

We provide U2-ASR, U2-TTS, U2-TTS-Clone, and U2-OCR capabilities. Add the matching model Skill in CodeBuddy to call these services without integrating each model API separately.

Open a Skill page below to install via chat or CLI. After installation, the Skill guides you through model configuration.

Model
Skill Name
Skill Description
Action
U2-OCR
u1-ocr-parser-pro
Document Parsing
U2-OCR
u1-ocr-extract-pro
Document Information Extraction and Classification
U2-OCR-Med
u1-ocr-med-pro
Medical Document Information Extraction and Classification
U2-ASR
u2-asr-pro
Speech Transcription
U2-TTS
u2-tts-pro
Speech Synthesis
U2-TTS-Clone
u2-tts-clone-pro
Voice Cloning