Models Hub
Agent Tools

Use WorkBuddy with Models Hub: Custom Model in Settings

Add a custom model in WorkBuddy (CodeBuddy IDE) settings, fill in the Models Hub endpoint and API key to start chatting, with recommended models, verification, and error troubleshooting.

Edit this page

WorkBuddy is the AI coding assistant inside Tencent Cloud's CodeBuddy IDE. It lets you add custom models straight from the settings UI, using the OpenAI-compatible interface format — no config files to edit. Point the endpoint at Models Hub and the chat panel uses your Models Hub balance for the model you choose.

Three things you need

A Models Hub API key, the base URL https://modelsok.com/v1, and a model name. Everything is done in the settings UI — no configuration files involved.

Prerequisites

  • WorkBuddy / CodeBuddy IDE installed and signed in.
  • A Models Hub API key, created on the Tokens page. The token's group must have access to the models you plan to use.
Use caseModelPricingLive status
Everyday codingclaude-sonnet-4-6PriceAvailability and latency
Harder reasoning and long contextgpt-5.5PriceAvailability and latency
Cheap and fast for small editsgpt-5.4-miniPriceAvailability and latency

Model names are authoritative on the pricing page.

Setup

Step 1 — Open the custom model dialog

Sign in to WorkBuddy, click New task in the left sidebar, then click the model selector at the bottom-right of the chat panel (it shows Auto by default). At the bottom of the menu, choose Configure custom models.

The "configure custom models" entry at the bottom of WorkBuddy's model selector

Step 2 — Pick the custom provider type

Go to Settings → Model and click Add model. In the Add model dialog, change the Provider dropdown to Custom / 自定义 under the Other group.

WorkBuddy's add model dialog with provider set to Custom

Step 3 — Fill in the configuration and save

Fill in the form:

  • Provider: Custom / 自定义
  • API endpoint: https://modelsok.com/v1
  • API Key: the actual key value from the Models Hub console (not an environment variable name)
  • Model name: the model ID from the Models Hub console, e.g. claude-sonnet-4-6
  • Advanced options: tick Tool calling, Image input, Reasoning mode, etc. based on the model's capabilities

Review the values and click Save.

WorkBuddy form with the endpoint, API key, and model name filled in

Step 4 — Pick the model and start chatting

Return to the chat workspace and click the model selector at the bottom-right. Under the Custom models group, pick the Models Hub model you just configured and start your conversation.

The Models Hub model selected under WorkBuddy's Custom models group

Verify

Select the configured model and send a test message, for example "describe this project in one sentence". A normal reply means you're connected. Then open Usage logs in the Models Hub console; a request under your configured model name appears — this confirms the request went through Models Hub and not WorkBuddy's built-in models.

Common errors

ProblemSolution
New model doesn't appear in the pickerMake sure the model name exactly matches the model ID in the Models Hub console and that you clicked Save
401 / invalid API keyConfirm the API Key field contains the actual key value, not an environment variable name
Request fails / returns 404Verify the endpoint is https://modelsok.com/v1 and that your network can reach Models Hub
Model not foundThe model ID must exactly match the one in the Models Hub console (watch case, digits, and hyphens)
Output is truncatedRaise maxOutputTokens in the advanced options
The Custom models group is emptyRe-save the configuration — WorkBuddy refreshes the custom model list automatically

More in Troubleshooting.

FAQ

How is it billed? Per input and output token actually consumed, at the price on each model's pricing page; every request is itemized in usage logs.

How is this different from Tencent Cloud's official models? Custom and built-in models live in the same selector without interfering with each other. Custom models go through the Models Hub endpoint and use your Models Hub balance, not your official subscription's model quota.

Can I add more than one Models Hub model? Yes — repeat steps 2 and 3 for each model name. They all show up under the Custom models group and you can switch between them anytime.

On this page