Tabbit
ResourcesBlogModels
Tabbit LogoTabbit

Tabbit — The AI Browser that Works for You

Topics

  • Best Browsers 2026: Rankings and Top Lists
  • AI Browser Guides and Resources
  • Browser Comparisons: Head-to-Head Guides
  • Browser Reviews and Explainers
  • Browser Alternatives
  • Browser Directory: Guides by Browser
  • Agentic Browser Resources
  • Browser Downloads and Install Guides
  • Browser Productivity Resources
  • SillyTavern Model Guides and Presets

Popular Guides

  • Best Browsers 2026: Top 10 Ranked & Compared
  • Best Free AI Browsers 2026: Plans & Prices Compared
  • Rabbit Browser: What It Is & Why Tabbit Is Better
  • Firefox vs Chrome 2026: Privacy, RAM & Speed Compared
  • Best Lightweight Browsers 2026: 7 Tested for RAM & Speed
  • AI Browser List 2026: 10 Browsers Compared
  • Neobrowser: Norton Neo, Download & Alternatives
  • Edge vs Chrome 2026: Speed, RAM & Battery Tested
  • Best Internet Browser for Android 2026
  • Best AI Browser 2026: Top 9 Tested & Ranked

Events

  • Tabbit Skill Competition
  • KPOP SBTI Fandom Personality Test
  • Tabbit Campus Creator Program
  • fifi's Picks: AI Skills for Research Papers
  • User Survey

About

  • Tabbit Blog
  • Press & Media
English
简体中文English
Showcases & prompts
OfficialHy4

Connect Tencent Cloud Hy4 to OpenCode

Original source

Tencent Cloud TokenHub documentation

AuthorNot specified

Tabbit curation2026-11-16

Read original

One-sentence takeaway

OpenCode can connect to TokenHub through a custom OpenAI-compatible provider. Tencent Cloud's OpenCode documentation uses DeepSeek V4 Pro in its configuration example; this article replaces the model ID and display name with Hy4, based on the Hunyuan API guide for the same platform. This is an adaptation of the documented schema, not a Tencent Cloud example specifically for Hy4, and it has not been tested with an actual API call.

Use cases

  • Suitable tasks: Using TokenHub Hy4 in the OpenCode desktop app or CLI to assist with code analysis, writing, and editing.

  • Unsuitable tasks: Scenarios that require a verified Hy4-specific configuration or production-readiness guarantee. The official OpenCode page does not provide a Hy4 example, and this article has not tested one.

  • Applicable model version: TokenHub model ID hy4, corresponding to the general-availability version of Hy4.

  • Applicable client, agent, or API: OpenCode desktop app or CLI; TokenHub's OpenAI-compatible provider.

  • Recommended reasoning level and parameters: The TokenHub Hunyuan guide says Hy4 defaults to the high reasoning level. The OpenCode integration page does not explain how to override the reasoning level in this custom-provider configuration, so this article does not add any unverified parameters.

Ready-to-use content

CLI configuration

The JSON below follows the configuration structure in Tencent Cloud's OpenCode documentation, replacing the example model deepseek-v4-pro with the general-availability model ID hy4 listed in the Hunyuan guide and changing the display name to Hy4. This is a schema-based adaptation, not an official Hy4 configuration as published:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "tencent": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Tencent",
      "options": {
        "baseURL": "https://tokenhub.tencentmaas.com/v1"
      },
      "models": {
        "hy4": {
          "name": "Hy4"
        }
      }
    }
  }
}

Configuration file path: ~/.config/opencode/opencode.json. In the OpenCode CLI, enter /connect, select Tencent, and paste your TokenHub API Key. Then enter /models and select Hy4.

Desktop configuration fields

In OpenCode's model management settings, add a custom OpenAI-compatible provider and enter:

FieldValue
Provider IDtencent
Display nameTencent
Base URLhttps://tokenhub.tencentmaas.com/v1
API keyTokenHub API Key
Model IDhy4
Model display nameHy4

Save the settings, restart OpenCode, and select Hy4 from the model list. The desktop configuration's hy4 is likewise a substitution in the official DeepSeek example based on the Hunyuan guide.

Test or workflow steps

  1. Create an API Key in TokenHub and confirm that its access scope includes Hy4. Tencent Cloud's official OpenCode documentation requires the key used in its DeepSeek example to include access to DeepSeek V4 Pro; changing the model checked to Hy4 is an adaptation based on the TokenHub model ID.

  2. Configure the OpenCode desktop app or CLI as above, using the base URL https://tokenhub.tencentmaas.com/v1.

  3. Save the API Key through /connect, then select Hy4 under /models. In the desktop app, restart it and select the model instead.

  4. Submit a simple code explanation task and check whether a response arrives. This is a suggested user-side validation workflow; it does not mean this article ran OpenCode or tested a request.

Original evidence and data

  • Tencent Cloud's OpenCode documentation was last updated on 2026-08-31. It describes desktop and CLI configuration, uses deepseek-v4-pro as the example model, and gives https://tokenhub.tencentmaas.com/v1 as the base URL.

  • The document's CLI configuration uses @ai-sdk/openai-compatible and the provider.tencent.models field. In the CLI, /connect configures the API Key and /models switches models.

  • The TokenHub Hunyuan API guide lists hy4 as the general-availability model ID, distinguishing it from hy4-preview. Hy4 has a 1,024k context window, a maximum input of 960k, and a maximum output of 64k.

  • The Hunyuan guide says Hy4 defaults to the high reasoning level. These model IDs and parameters were cross-checked, but they do not appear as a Hy4 configuration example on Tencent Cloud's OpenCode page.

Limitations

  • The JSON configuration is an inference based on the structure of the official OpenCode example, with the model ID replaced. Tencent Cloud's documentation does not confirm this specific Hy4 configuration or provide compatibility test results for Hy4 with OpenCode.

  • This article has not verified the OpenCode version, model calls, API key permission errors, streaming output, or tool-calling behavior. If configuration problems arise, first check the current requirements for custom providers in OpenCode and the model permissions in the TokenHub console.

  • Do not use hy4-preview or model identifiers from other platforms as the TokenHub general-availability model ID. The TokenHub Hunyuan guide uses hy4.

Reproduction notes

On 2026-11-16, Tabbit was used to review Tencent Cloud's TokenHub OpenCode configuration documentation and Hunyuan API guide. This article adapts the configuration fields from the former using the hy4 model ID published in the latter. OpenCode was not installed, no local configuration was written, and no request was made with an API Key.

Curated by Tabbit

Prompts and showcases are summarized from public sources and Tabbit editorial notes. Check the original licensing and intended use before copying it.

Hy4

Use in Tabbit

Hy4

Related showcases & prompts

OfficialTencent Cloud Model-as-a-Service TokenHub documentation

Tencent Cloud TokenHub: Hy4 GA Model ID, Reasoning, and Multimodal Parameters

OfficialOpenRouter model page and API configuration panel

OpenRouter: Hy4 Production Model API and Routing Configuration

OfficialOpenClaw documentation

Explicitly Select the Tencent Hunyuan Hy4 GA in OpenClaw

OfficialTencent Cloud TokenHub documentation

Set Up Tencent Cloud Hy4 in Codex

Hy4

Related reviews

OfficialTencent Hunyuan official website, “Research”2026-11-04

Tencent Hunyuan: Hy4 Stable Release and Benchmark Results

MediaMercor APEX

Mercor APEX-Agents Professional Task Benchmark: Hy4 High Score Snapshot

MediaVals AI

Vals AI: Hy4's Cross-domain Results on Vals Index

MediaPlotly official blog2026-11-04

Plotly: Tencent Hunyuan Hy4 Data Analytics Benchmark