- Home
- Plugins
- Models & Providers
- dsh-connect-croli
dsh-connect-croli
yaki-blake/dsh-connect-croli
Croli models inside DeepSeek Harness through a device-key signed local shim, with a three-way account pool and a credits panel that reports the daily trial quota. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Install
dsh plugin --profile web add github:yaki-blake/dsh-connect-croliREADME
dsh-connect-croli
中文说明 | English
Bring Croli models into DeepSeek Harness (dsh) as a normal model provider — without keeping the Croli desktop app running.
The plugin registers an OpenAI-compatible local shim, signs every upstream request with the device key that the official Croli client stored in Windows Credential Manager, and exposes Croli models in the DSH model picker. A settings card manages multiple accounts, shows the credit balance and the daily free-trial quota, and can refill the trial quota when it runs out.
What it does
- Model provider
croli— 5 models in the picker:gpt-6.1-sol,gpt-6-luna,claude-opus-5.5,claude-sonnet-5-5,grok-4.6(1M context, 128K max output). Streaming and tool calls are passed through as standard OpenAI chunks. - Local signing shim — a loopback HTTP server on
127.0.0.1:<random port>that the DSH model adapter talks to. The shim adds the fourx-croli-*signature headers (device id, timestamp, nonce, signature) computed over the exact request body, then forwards tohttps://ds.croli.net/v1. - Account pool — three ways to add an account, switchable in Settings → Croli:
- Web login (Clerk OAuth, PKCE, loopback callback) — opens the browser, comes back automatically.
- Import from local Croli client — reads the Clerk token the desktop app already stored and exchanges it for a gateway key.
- Paste a gateway key (
csk_…) — manual mode, no auto-renewal.
- Credits — balance, daily free-trial quota (used / limit / remaining resets), next refill time, recent ledger, and a "refill trial quota" action that only fires when the trial is actually exhausted.
- No key material in the config file — account tokens live in
~/.dsh/dsh-connect-croli.accounts.json; the plugin never writes keys into DSH settings, logs, or the model catalog.
Requirements
- Windows 10/11 (the device key is read through Windows Credential Manager).
- The official Croli desktop client installed at least once, and logged in once, so the device key
secret:free-device-key.croliexists inHKCUcredentials. The plugin does not need Croli running afterwards. - DeepSeek Harness
0.2.x(tested on0.2.2-rc.5) with the built-indsh-llm-pi-aiprovider layer. - Node.js 22.19+ or 24+ (whatever the host uses).
Install
From npm (if published):
dsh plugin --profile <profile> add dsh-connect-croli
From GitHub source:
dsh plugin --profile <profile> add github:Yaki-Blake/dsh-connect-croli
From the tarball attached to a GitHub Release:
dsh plugin --profile <profile> add https://github.com/Yaki-Blake/dsh-connect-croli/releases/latest/download/dsh-connect-croli.tgz
Then restart DSH (or reload the window) and open Settings → Croli.
Usage
- Open Settings → Croli.
- Click Add account:
- Yes, sign in → the browser opens the Croli login page; after you approve, the account is added automatically.
- No, sign up → opens the author's invite link in a new tab; sign up there, then come back and sign in.
- Import local session → uses the login already stored by the Croli desktop client.
- Or paste a
csk_…gateway key.
- The account appears in the list; click Use to make it active.
- Pick a
croli/…model in the composer.
The Credits section refreshes on open; Refill trial quota consumes one of the remaining resets, and is a no-op while the trial quota still has balance.
How it works
DSH model adapter
│ OpenAI-compatible request
▼
127.0.0.1:<random> (local shim, per-process secret)
│ + x-croli-device-id / -timestamp / -nonce / -signature
▼
https://ds.croli.net/v1
- Device identity — the PKCS#8 ECDSA P-256 key is read from the Windows credential store; the device id is
sha256(0x04 || x || y)of the public key. - Signature —
sign(sha256, [METHOD, path, timestamp, nonce, sha256(body), sha256(gateway_key)].join("\n")), DER-encoded, base64url. - Gateway key — exchanged on demand from the Croli relay with the account's Clerk token, cached in memory for 30 minutes, refreshed transparently once on
401. - Why a shim — the signature covers the request body, so it cannot be produced from header-only hooks.
Privacy and security
See docs/PRIVACY.md. In short:
- The plugin reads the Croli device private key from
HKCUcredentials and the Clerk token from%APPDATA%\croli\auth.json/ its own account store. Both stay on the machine and are only used to sign requests tods.croli.net/api.croli.net/clerk.croli.net. - Account tokens are stored in
~/.dsh/dsh-connect-croli.accounts.jsonin plain text, readable by the current user only. Delete the file (or the account in the UI) to remove them. - No telemetry, no third-party endpoints, no bundled analytics.
Limitations
- Windows only. The device-key read path uses
CredReadWfromadvapi32.dllvia PowerShell. - Depends on Croli's private protocol. Croli can change the relay, signature format, or credential name at any time; when that happens the plugin needs an update.
- Needs an existing device registration. The plugin reuses the device key created by the official client; it does not register a new device for you.
- Credits reset is upstream-defined. There is no public reset endpoint; the plugin only calls the same bootstrap the client uses, and only when the trial quota is spent.
Troubleshooting
| Symptom | Fix |
|---|---|
Croli 登录态已失效(relay 401/403) | Sign in again in the Croli client (or add the account again in Settings → Croli). |
找不到设备私钥 | Log in once with the official Croli desktop client on this machine, then restart DSH. |
| Model list empty | Check Settings → Models shows the croli provider enabled; restart DSH after installing. |
invalid_public_key / 429 | You hit the device-registration endpoint; the plugin does not use it. Report the issue instead. |
License
MIT. Not affiliated with Croli or DeepSeek.
Related plugins
dsh-our-free-model
ebony-vinyl/dsh-our-free-model
dsh-routing-suite
yjh051108/dsh-routing-suite
dsh-connect-workbuddy
dingminhua/dsh-connect-workbuddy
dsh-workbuddy-connect
corrinehu/dsh-workbuddy-connect