Daily check-in for MiYoushe (米游社) across six miHoYo games (mainland China servers only): Genshin Impact, Honkai: Star Rail, Zenless Zone Zero, Honkai Impact 3rd, Tears of Themis and Honkai Gakuen 2. QR-code login inside the plugin panel, per-game selection, a daily schedule with random jitter and startup catch-up, and four agent tools. Credentials stay on the local machine (mode 0600) and are never sent anywhere but the official miHoYo API.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Nico-2222/dsh-mys-checkin
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
A DeepSeek Harness (dsh) Cordis bundle that performs the daily miHoYo BBS (米游社) game check-in for every role bound to your account — 原神, 崩坏:星穹铁道, 绝区零, 崩坏3, 未定事件簿, 崩坏学园2 — with per-game selection, a daily schedule, and agent tools.
Features
- QR login — scan once with the 米游社 App; the plugin exchanges the ticket for long-lived credentials itself. No browser cookie jar, no password.
- Pick your games — enable only the games you play; every bound role (across regions) is signed.
- Daily schedule — default 00:30 Asia/Shanghai plus a random 0–10 min jitter; a startup catch-up
covers a machine that was off at the scheduled time (sign-in is idempotent:
-5003means already signed). - Agent tools —
mys_checkin_status,mys_checkin_now,mys_checkin_games,mys_checkin_schedule. - Audit trail — per-role result, cumulative day count and the day's reward name, last 14 runs.
Install
dsh plugin --profile <profile> add dsh-mys-checkin
For local development, copy this directory into the profile's node_modules and add the package name
to dsh.profile.bundles in the profile's package.json.
After a restart open the panel:
http://127.0.0.1:<port>/mys-checkin
Configuration
Every field has a default; most users only touch the panel. To configure in YAML, override the row in
the profile's cordis.patch.yml:
- id: mys-checkin
name: dsh-mys-checkin
config:
games: [genshin, starrail, zzz]
signTime: "00:30"
jitterMinutes: 10
autoSign: true
catchUp: true
panelPath: /mys-checkin
| key | default | meaning |
|---|---|---|
games |
[] |
enabled games; empty means "not chosen yet" — pick in the panel |
signTime |
00:30 |
daily wall-clock time, Asia/Shanghai |
jitterMinutes |
10 |
random delay ceiling (0–120) |
autoSign |
true |
enable the scheduler |
catchUp |
true |
run once on startup when today has no recorded run |
panelPath |
/mys-checkin |
panel route |
dataPath |
empty | state file; empty = $DSH_HOME/data/mys-checkin/state.json |
Security & privacy
- The package ships no account, token or cookie. Credentials exist only after you scan a QR.
- They are stored in
$DSH_HOME/data/mys-checkin/state.jsonwith mode 0600, written atomically. - Tokens appear only in request headers to
*.mihoyo.com: never in logs, never in tool output, and the panel API returns only a masked UID. - To revoke, delete the state file or use "退出登录" in the panel.
- The panel and its API ride the dsh loopback port and carry no separate auth: do not expose that port to the internet or put it behind a public reverse proxy.
- One account per state file; a second account needs a second profile with its own
dataPath.
Return codes
| retcode | meaning | behaviour |
|---|---|---|
0 |
signed | records reward + cumulative days |
-5003 |
already signed today | treated as success |
-100 / -1001 |
credential expired | refresh cookie_token from stoken once, then ask to re-scan |
-500001 |
missing x-rpc-signgame or stale DS salt |
check signgame and client constants |
10001 |
parameter error (stale act_id) | update act_id in lib/games.js |
UI assets
The miyoushe wordmark and the six official community avatars under lib/assets/ are fetched from
miHoYo's public community CDN (bbs-static.miyoushe.com, fastcdn.mihoyo.com,
www.miyoushe.com/assets) purely so the panel is recognisable. All trademarks and artwork remain
miHoYo's property; this project claims no rights and represents no affiliation. Remove the images at
any time — the panel degrades to text-only labels.
Panel markup lives in lib/panel.html and is re-read on every request, so restyling is a file save
(no plugin reload needed after the first restart).
Limitations
- Mainland China servers only; HoYoLAB (global) uses different endpoints and salts.
- After a miHoYo client update,
BBS_VERSION/WEB_SALTmay need bumping (symptom:-500001). - Game check-in only — no 米游币 community tasks, cloud-game sign-in, or mall exchange.
- Scheduling depends on the dsh process being alive; the startup catch-up covers the rest.
Disclaimer
Personal-use automation, not affiliated with miHoYo. Use it on your own account, at low frequency; batch or commercial use may get the account restricted. No warranty.
License
MIT
Links
More in this category
DayuanJiang/next-ai-draw-io#dsh-plugin★ 36802
Draws draw.io diagrams in DeepSeek Harness through the next-ai-drawio MCP server: the link in the reply opens a live preview in the right sidebar, you can edit the diagram by hand, and each AI change is a version you can restore. Node.js 18+; npx downloads the MCP server on first use.
Tencent/WeKnora#dsh-weknora★ 36302
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
superdesigndev/treg★ 7042
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
T-Auto/dsh-ops★ 5074
Provides bash, PowerShell 7, and high-performance Rust tools for DSH on Windows to reduce token usage.
sixtysevenlf/dsh-blender-plugin★ 1575
Lets a DSH agent drive a local Blender over a direct TCP channel with 15 tools: viewport frames, custom-angle renders, Python execution, headless and job offload, transaction rollback, and a planning layer of 228 ops across 34 families.
TencentCloudBase/CloudBase-AI-Toolkit#dsh-plugin★ 1155
Tencent CloudBase backend for DeepSeek Harness — scaffold and deploy full-stack apps from chat, render query results as table cards with paging, sorting and CSV export, preview a deployment on its domain, and call the CloudBase MCP toolset (`mcp__cloudbase__*`) with device-code login.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.