> 自动签到,告别手动——无需打开 WorkBuddy 窗口,一行命令完成每日签到。
This skill automates the WorkBuddy daily check-in process entirely via API — no GUI, no manual clicks, no browser automation.
It works by decrypting the locally stored access token (Windows DPAPI → AES-GCM), calling the check-in API endpoint, and reporting the result. Supports:
%APPDATA%\WorkBuddy)
cryptography package (pip install cryptography)
python scripts/checkin.py [--close]
| Flag | Effect |
|------|--------|
| (none) | Run check-in, print result to stdout, keep WorkBuddy open |
| --close | Run check-in, then close all WorkBuddy windows via Win32 API |
Set up a recurring automation in WorkBuddy to run daily:
python scripts/checkin.py --close
The AI agent will use this skill when the user says "签到" (check-in), "每日签到", "查询签到状态", or any check-in related request.
| Variable | Description | Default |
|----------|-------------|---------|
| WORKBUDDY_LOCAL_STATE | Path to Local State file | %APPDATA%\WorkBuddy\Local State |
| WORKBUDDY_TOKEN_DB | Path to token database | %APPDATA%\WorkBuddy\User\globalStorage\state.vscdb |
| WORKBUDDY_OUT_DIR | Log output directory | scripts/logs/ |
Login Token (encrypted in Chrome DB)
↓ DPAPI Decrypt (Windows native)
AES Key
↓ AES-GCM Decrypt
Access Token (Bearer)
↓ POST /v2/billing/meter/checkin-status
Check current state
↓ POST /v2/billing/meter/daily-checkin (if not yet checked in)
Result: +credits, streak days, bonus
| Code | Meaning |
|------|---------|
| today_checked_in = true | Already signed in today — skips |
| code = 0 | Check-in successful ✅ |
| code != 0 | Check-in failed — check logs |
| Error | Cause | Fix |
|-------|-------|-----|
| 未找到 accessToken | Not logged in / token storage changed | Log in to WorkBuddy once |
| HTTP 4xx | Token expired | Re-login in WorkBuddy |
| DPAPI error | Non-Windows OS | Not supported — Windows only |
| cryptography not found | Missing dependency | pip install cryptography |
共 1 个版本