L0NE-6/Trae-AutoCheckin
L0NE-6/Trae-AutoCheckin has 71 GitHub stars and 59 forks. Star changes are not measured yet. Last checked 2026-11-15 22:04 UTC. Last push 2026-11-13.
Measured star growth
- in 24h
- Update delayed
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
Trae 每日自动签到与积分监控 · refreshToken-only · TRAE_CONFIG 统一配置 · Windows 配置生成器 · Token 链式续期 · 青龙/Actions
Productivitydocs/README.en.md
OriginalTrae AutoCheckin
Daily Trae check-in, device-aware retry, credit monitoring, and multi-account reporting with zero Python dependencies.
简体中文 | English | 繁體中文 | 日本語 | 한국어 | Português (BR)
This is a localized quick start. See the complete Simplified Chinese README for every option and troubleshooting detail.
At a glance
| Item | Details |
|---|---|
| Purpose | Multi-account Trae daily check-in and read-only credit monitoring |
| Credentials | TRAE_ACCOUNTS is recommended; device keys are required for newer token refresh |
| Runtime | Python 3.8+, Qinglong, local cron, or GitHub Actions |
| Dependencies | Python standard library only |
| Result codes | 9004 and 9095 both mean this device has already checked in today |
Included scripts
trae_checkin.py: check-in workflow with token refresh and device rotation.trae_credit_monitor.py: read-only credit balance and usage report.trae_get_token.py: extract client credentials and export device information.trae_sms_login.py: browser-based OAuth login flow.
Quick start
Extract the token and device material from a logged-in Trae client:
python trae_get_token.py
python trae_get_token.py --export-keys
Run the check-in:
export TRAE_ACCOUNTS='[{"accessToken":"...","refreshToken":"...","uid":"account-1"}]'
export TRAE_DEVICE_KEY_PEM='...'
export TRAE_DEVICE_PUB_PEM='...'
export TRAE_DEVICE_ID='...'
python trae_checkin.py
For Qinglong, create a task that runs:
python trae_checkin.py
GitHub Actions
Fork the repository, enable Actions, and configure these Secrets:
TRAE_ACCOUNTSTRAE_DEVICE_KEY_PEMTRAE_DEVICE_PUB_PEMTRAE_DEVICE_IDTRAE_MACHINE_IDTRAE_CACHE_KEY- Optional:
QYWX_TOKENor a supported PushPlus variable
The workflow encrypts rotated token state before writing it to Actions Cache. Do not run Qinglong and Actions for the same account at the same time.
Important variables
| Variable | Purpose |
|---|---|
TRAE_ACCOUNTS |
JSON array containing one or more accounts |
TRAE_REFRESH_TOKEN |
Legacy single-account refresh token |
TRAE_DEVICE_KEY_PEM |
Device private key required for newer refresh flows |
TRAE_DEVICE_PUB_PEM |
Device public key |
TRAE_DEVICE_ID |
Registered device identifier |
TRAE_MACHINE_ID |
Device machine identifier |
TRAE_CACHE_KEY |
Encryption key for Actions state cache |
QYWX_TOKEN |
Optional WeCom bot webhook key |
Security
Access tokens, refresh tokens, device private keys, caches, and account files must stay outside Git. Use environment variables or encrypted GitHub Secrets. Avoid refreshing the same account from multiple deployments.
Usage and redistribution
The official repository, scripts, documentation, and Releases are free. Do not repackage them as paid resources, remove attribution, impersonate the author, use the author's identity or QR codes as endorsement, or repost them through unrelated accounts or groups for traffic. See the Usage and Redistribution Notice. Violations may result in takedown requests; the author may pause updates, archive, or delete the repository.