pku-campuscard
A command-line client for PKU Campus Card (校园卡).
Check your campus card balance, show payment QR codes, view transaction history, and see monthly spending breakdowns -- all from the terminal.
Install
Or install the complete PKU toolkit:
Setup
Store your IAAA credentials once (encrypted in your OS keychain):
Then login:
Usage
Card Info & Payment
Recharge
Transaction History
Statistics
TOTP (手机令牌)
How It Works
Campus card data comes from the Synjones platform at bdcard.pku.edu.cn. The auth chain is:
IAAA SSO → portal2017 → berserker-auth → Synjones JWT
The client uses a mobile User-Agent (PKUANDROID) and forces HTTP/1.1, as the server does not support HTTP/2.
Links
- Repository: github.com/pkuinfo/pkucli
- Full documentation: See the main README
- Claude Code Skill:
pku-campuscardon Clawhub