dsh-kimi
Manifest validKimi (Kimi Code account) integration bundle for DeepSeek Harness: provider route, models, device-code login and auto token refresh
dsh-kimi
中文文档 | English
Kimi (Kimi Code account) integration bundle for DeepSeek Harness (DSH). Adds Kimi as a first-class model provider to any DSH profile — provider route, models, device-code login, and automatic token refresh. No manual settings editing required.
Features
- Provider route —
kimiprovider overhttps://api.kimi.com/coding/v1using the OpenAI Responses protocol (pi-ai adapter), with four models:kimi-for-coding(K2.7 Coding),kimi-for-coding-highspeed,k3(1M context),k3-256k. - Login — Kimi Code device-code OAuth flow. dsh owns an independent OAuth session: its refresh-token family never touches the Kimi Code CLI's tokens, so refreshing here can never log the CLI out.
- Auto refresh — tokens are kept alive automatically (checked every 5 minutes,
refreshed before expiry); the access token is stored in the
KIMI_CODE_ACCESS_TOKENcredential ref, which the pi-ai adapter resolves per request. - Agent tools —
kimi_login_begin,kimi_login_status,kimi_login_refresh. - Future-proof — if the host provides the
authorizationservice, the same device flow is registered as an authorization flow forllm-pi-ai/kimi(Models page sign-in).
Install
# download the bundle tarball from GitHub Releases
# https://github.com/myk5010/dsh-kimi/releases
dsh plugin --profile web add ./dsh-kimi-provider-<version>.tgz
Restart the DSH Web process. Then log in once:
- Ask the agent to run
kimi_login_begin(or use the Models page onceauthorizationis available) — you get a Kimi authorization URL + device code. - Open the URL in your browser and confirm.
- Done: the picker shows the four Kimi models; tokens refresh automatically.
Works in any profile that mounts dsh-base (web, headless, …) — install per profile:
dsh plugin --profile headless add ./dsh-kimi-provider-<version>.tgz
How it works
cordis.patch.yml— patch layer: configures thellm-pi-airow with thekimiprovider profile (protocol, base URL, models) and inserts thekimi-loginrow.index.js— the plugin main module: device-code login, credential storage (KIMI_CODE_ACCESS_TOKEN+KIMI_CODE_REFRESHrefs), auto-refresh timer, agent tools, optionalauthorizationflow registration.
Security
- Tokens live in the DSH credentials store (
~/.dsh/.credentials.yaml, mode 0600). - The refresh token is stored only in the
KIMI_CODE_REFRESHcredential ref (JSON string), never in source or logs. - dsh's OAuth session is separate from the Kimi Code CLI's — no cross-session token rotation.
Compatibility
- DSH Host 0.1.2-alpha.4 (or any version with the pi-ai LLM adapter,
dsh pluginbundles, and thecredentialsservice). - Node.js ≥ 22.19;
curlavailable for the OAuth HTTP calls.
Comments
Loading…
Similar plugins
by BaronCyrus
Use a Kimi Code subscription in DeepSeek Harness with OAuth, quota display, and composer usage
★ 4
↓ 175/wk
MIT
JavaScript
Sep 15, 2026
dsh plugin --profile web add dsh-kimi-subscriptionby quei4r
Zero-config Kimi Coding web search provider for DeepSeek Harness: reuses the local kimi-coding credential, install and web_search just works.
★ 0
MIT
JavaScript
Aug 19, 2026
dsh plugin --profile web add dsh-host-kimi-searchby kenny2077
Kimi Coding web search and web fetch providers for the DeepSeek Harness — one coding-plan key fills both ctx.web seams (POST /v1/search and /v1/fetch), a settings card in the GUI stores it via the cre
★ 0
↓ 69/wk
MIT
TypeScript
Aug 31, 2026
dsh plugin --profile web add dsh-web-kimiby MicroHEROX
Kimi WebBridge for DeepSeek Harness — a third-party dsh plugin bundle that turns the local Kimi WebBridge daemon into 15 native kimi_webbridge_* browser tools (navigate, click, fill, snapshot, screens
★ 3
↓ 51/wk
MIT
JavaScript
Aug 21, 2026
dsh plugin --profile web add dsh-kimi-webbridgeby sologuy
Bailian (DashScope) Kimi LLM adapter plugin for DeepSeek Harness — kimi-k3 with image input, thinking and tool calling. No build step.
★ 0
MIT
JavaScript
Aug 19, 2026
dsh plugin --profile web add dsh-llm-bailian-kimiby knyazev741
Adds the KnyazevAI API provider and its DeepSeek, GLM, Kimi, and MiniMax model catalog to DeepSeek Harness.
★ 0
MIT
JavaScript
Sep 17, 2026
dsh plugin --profile web add @knyazevai/dsh-provider