dsh-codely
In-process DSH LLM adapter for the Codely LiteLLM gateway (codely.tuanjie.cn). No login state bundled: bring your own registered account credentials via CODELY_API_KEY / apiKey or your own ~/.codely-cli login state.
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗dsh-codely
English | 简体中文
In-process DSH (DeepSeek Harness) LLM adapter: use the Codely LiteLLM gateway (codely.tuanjie.cn) directly as a model backend inside DSH — no local proxy process needed.
⚠️ Unofficial integration based on the Codely CLI protocol; may break when the gateway changes. No login state is bundled with this package — you must register your own account and provide your own credentials.
Before you start: register & obtain your own login state
- Register an account at https://codely.tuanjie.cn.
- Provide credentials to the plugin in one of two ways:
Way A — static API key (simplest)
Get an sk- API key from your Codely account (or from the official Codely CLI), then provide it through:
- plugin config
apiKey, or - environment variable
CODELY_API_KEY.
The plugin uses the key directly and never touches any local login files.
Way B — official CLI login state
Install the official Codely CLI, launch it and log in with your own registered account. The login writes the state files the plugin reads:
~/.codely-cli/oauth_creds.json
~/.codely-cli/org.json
The plugin reads these by default; point it at your own login directory with the codelyHome config if yours lives elsewhere. This also enables automatic OAuth token refresh when the gateway returns 401/403.
On first launch without any credentials, the plugin fails with a clear error pointing to this README — it never falls back to anyone else's login state.
Install (web profile)
dsh plugin --profile web add dsh-codely
Then register the row in $DSH_HOME/profiles/web/cordis.patch.yml:
- insert:
- id: codely
name: 'dsh-codely'
config:
apiKey: 'sk-...' # optional if CODELY_API_KEY is set
# codelyHome: 'C:\\Users\\you\\.codely-cli' # optional login-state dir
DSH hot-reloads the patch. The codely provider appears in the model list.