dsh-connect-sensetime: Connecting the Local Little Raccoon to the DSH Custom Model API

Introduction

Integrating third-party models into DSH (DeepSeek Harness) usually involves filling in an OpenAI-compatible Base URL and Key. The SenseTime Raccoon (SenseTime Raccoon) desktop client comes with its own account, points, and model directory, but the login state is stored locally. Harness does not read %USERPROFILE%\.box-agent\config\auth.json by default, nor does it display points and billing status in the sidebar.

The bundle plugin dsh-connect-sensetime (npm package name @local/dsh-raccoon) released by maintainer uia040808-design performs local bridging: it uses your already logged-in Raccoon client identity to request official interfaces, adds a sidebar panel in DSH, and provides a stable OpenAI-compatible endpoint at 127.0.0.1:8787. This project is an unofficial integration; it does not share credentials or bypass billing. It belongs to the “Model Inference” category. See the SkillHub Plugin Page for details.

What is this

In a nutshell: A DSH bundle plugin that connects the locally logged-in Raccoon desktop client to Harness—allowing you to view points and model directories in the sidebar while exposing an OpenAI-compatible API for discovering and calling sn-* models via “Custom Model API”.

Unlike “filling in a remote provider address,” this plugin must read the login state generated by the local Raccoon client; if no valid token is available, the panel will indicate it is unavailable or expired. The token is only used within the DSH Host process; the browser only interacts with the rcc_ prefixed Key generated locally by the plugin.

Core Features

UI and Slots

Position Slot Purpose
Sidebar Entry sidebar.panellist (id: raccoon, order 20) Icon + Name, click to open panel
Panel main (key: raccoon) Points, Model Directory, Billing Status, Three-way Probe, Connection Configuration (Base URL + Local Key)
Input Capsule conversation.input.right (id: raccoon-credits, order 30) Displays available points, click to return to panel

Panel Display: Logged-in account, token type and expiration, available points, model directory (multiplier, billing status, context window, image support).

OpenAI Compatibility and Fixed Port

The Harness Web service port changes on every start; the plugin listens on a stable endpoint at the default http://127.0.0.1:8787/v1, so the Base URL does not need to be changed after a restart.

Supported routes include:

  • GET /v1/models, POST /v1/chat/completions, GET /v1/health
  • SSE streaming and tools / tool_calls pass-through
  • Models supporting vision can use image_url (base64 data URL)

Paths mounted on Harness Web also include /raccoon/v1/{models,chat/completions,health} and /raccoon/api/state, /raccoon/api/probe, /raccoon/api/config (see README for details).

Connectivity Probe

The panel provides three probes: Model Directory, Points, and a minimal conversation; it gives a conclusion and actionable error message for each. Note: The target=chat probe will actually consume a small amount of points.

How it Works (Schematic)

SenseTime Raccoon Desktop Client --Login--> auth.json (read-only)
                                                │
DSH Host: @local/dsh-raccoon <--auth.json
  ├─ Panel / Capsule / Probe API
  ├─ /raccoon/v1/* (attached to Harness Web port)
  └─ http://127.0.0.1:8787/v1 --> Stable Base URL for Custom Model API
                                └── HTTPS --> xiaohuanxiong.com

In addition to the loopback listener on the fixed port, no separate business process is started; panel routes are mounted on the Harness Web service.

Installation and Enabling

Prerequisites

Dependency Description
Windows 10/11 Login state is read via Windows client path; macOS / Linux unverified
SenseTime Raccoon Desktop Client Installed and logged in, %USERPROFILE%\.box-agent\config\auth.json exists
DSH Desktop Developed on 0.2.2-rc.1; depends on Harness’s webServer and client UI slots
pnpm Used when installing profile dependencies; DSH’s built-in pnpm can also be used

The terminal needs to be able to run dsh (dsh -V produces version output; otherwise npm i -g @deepseek-ai/dsh can be used).

When the profile is not desktop, replace --profile desktop in the command with your own.

dsh plugin --profile desktop add github:uia040808-design/dsh-connect-sensetime

dsh plugin will: wrap node_modules (@local/dsh-raccoon) into the profile; register dependencies in package.json; automatically append to dsh.profile.bundles. After installation, restart DSH. “Raccoon Access” should appear in the sidebar.

Installing from GitHub requires access to codeload.github.com, which may take 1–2 minutes on slow networks.

Update and uninstall examples:

pnpm --dir "$env:USERPROFILE\.dsh\profiles\desktop" update @local/dsh-raccoon

dsh plugin --profile desktop remove @local/dsh-raccoon

Optional Environment Variables

Variable Default Value Description
RACCOON_PROXY_HOST 127.0.0.1 Fixed port proxy listening address
RACCOON_PROXY_PORT 8787 Port needs to be changed synchronously if Base URL is changed
RACCOON_API_BASE https://xiaohuanxiong.com/api/web/llm/v2 Upstream LLM base
RACCOON_POINTS_URL https://xiaohuanxiong.com/api/web/points/v1/balance Points interface
RACCOON_ORG_CODE empty Enterprise organization code; not needed for personal accounts

The local API Key is generated on first use and saved in %USERPROFILE%\.dsh\raccoon-connect\secret.json ($DSH_HOME/raccoon-connect/secret.json).

Typical Usage: Connecting to a Custom Model API

  1. Open sidebar panel → Connection Configuration, copy Base URL (default http://127.0.0.1:8787/v1) and API Key (rcc_ prefixed).
  2. DSH → Settings → Models → Add Model Provider → Custom Model API.
  3. Fill Provider ID with raccoon, select OpenAI Chat Completions protocol, and paste Base URL and API Key.
  4. Click “Get Available Models”, check models, and save.
  5. When creating a new conversation, select sn-* models; the · x<Multiplier> in the name is just a billing hint and does not participate in the model ID.

You can verify the fixed port directly with PowerShell (Key is read from secret.json):

$key = (Get-Content "$env:USERPROFILE\.dsh\raccoon-connect\secret.json" -Raw | ConvertFrom-Json).key
curl.exe -s http://127.0.0.1:8787/v1/models -H "Authorization: Bearer $key"

Applicable Scenarios and Notes

Who is this for: Users who are already using the DSH Desktop version and the SenseTime Raccoon desktop client on Windows and want to unify model selection and view points within Harness, while using the OpenAI protocol to call the Raccoon model directory.

Permissions and Trust: The plugin runs with the current DSH process permissions, will only read auth.json and make requests to xiaohuanxiong.com. It is recommended to review the source code and MIT license on the GitHub repository before installation to evaluate account and compliance risks.

Known Limitations (excerpted from README): IAM token has no refresh mechanism; expiration requires re-logging in to the Raccoon client; the model directory has a cache of about 20 seconds, use refresh panel or request ?refresh=1 for changes; enterprise X-Org-Code path has been implemented but not tested; unofficial integration, no affiliation with SenseTime or DeepSeek official entities.

The plugin has 0 stars on SkillHub (as of directory inclusion), which does not represent completeness but indicates limited community exposure.

Conclusion

dsh-connect-sensetime consolidates “local Raccoon login state + points/directory UI + fixed loopback OpenAI endpoint” into one unit, reducing the cost of changing the Base URL and manually reconciling models every time. It requires an external Raccoon account and Windows environment; after connecting to the Custom Model API, sn-* models can be used in conversations.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye