Skip to main content

How to use dsh-llm-codebuddy

Adds CodeBuddy China region model support to DeepSeek Harness, with WorkBuddy API Key and web token dual authentication.

This article is auto-derived from indexed fields (wiki / faq / compatibility_json), not freshly AI-generated.

This article is derived from the plugin's already-indexed fields (wiki / faq / compatibility_json / readme), not freshly generated by AI. Source field is noted at the end of each section.

Quick start

dsh-llm-codebuddy

— source: plugin_wiki.wiki_content

Install & verify

dsh plugin --profile web add dsh-llm-codebuddy

Run the command above in your DSH Web Profile. Then enable the plugin in the plugin list.

— source: plugins.install

Key points

  • WebUI 中直接添加 CodeBuddy 中国区;
  • 支持从 WorkBuddy 获取的 API Key;
  • API Key 输入框旁可显式切换 API Key / 令牌登录;
  • 支持从 WebUI 拉起浏览器登录 CodeBuddy 中国站,并自动复用、刷新登录令牌;
  • 自动获取 CodeBuddy 当前可用模型;

— source: plugin_wiki.readme_en (fallback readme_raw)

FAQ

Can't see CodeBuddy China region option in WebUI after installation?

Must restart DSH after installation or update, already running processes won't automatically load new plugins. After restart, open "Settings → Models".

What to do if getting models fails?

First confirm the API Key is from WorkBuddy and still valid, re-enter the Key and click "Get Available Models". If CodeBuddy API is temporarily unavailable, the plugin will fall back to built-in model directory and can still be used normally.

Why can others see a certain model but I can't see it here?

Model permissions are bound to the current API Key. The plugin only imports models authorized for the current Key in CodeBuddy; after changing the Key, you need to click "Get Available Models" again.

What to do when getting 500 status code (no body) on API call?

Upgrade to the latest version and restart DSH. Earlier versions might have DSH overwriting the CodeBuddy request's User-Agent header causing server rejection, the latest version has restored the official identifier in the request layer.

WebUI still shows old page after uninstall?

Close the running DSH process and restart. Running processes won't automatically unload loaded plugin code.

What to do if WebUI can't automatically open browser for login?

Execute npx dsh-llm-codebuddy@latest login in terminal, the plugin will call the official CodeBuddy authentication process, after completion it will automatically switch the Provider to token mode.

Do I need a WorkBuddy account to use it?

WorkBuddy API Key mode requires a WorkBuddy account to get the Key; if using CodeBuddy China station account token login, it doesn't depend on WorkBuddy, but you still need to have an available account on CodeBuddy China station.

Will uninstalling the plugin lose credentials?

No. Uninstalling only deletes the Provider configuration in settings.yaml, API Keys and login tokens in DSH credential service will be retained for convenient reinstallation later.

— source: plugin_wiki.faq_json

Compatibility

  • DSH: 0.1.0-rc.6
  • Node: >=22.19.0
  • Platforms: macOS, Windows, Linux

— source: plugin_wiki.compatibility_json

Pitfalls

Review the upstream repo before installing. This guide is auto-derived from indexed fields and may lag the latest release. If anything contradicts the official docs, treat the upstream source as authoritative.

— source: general rule