413 ·GitHub
What is this?
Z·SWITCH is a Tauri 2 desktop tool that lets you one-click switch between multiple ZCode (BigModel / z.ai) accounts, showing each account's quota inline, without touching your current project, session, or settings.
Is this a GUI app, or does it also work from scripts?
It is primarily a Tauri desktop app with a tray icon and main window, but it also ships a CLI for automated export/import operations.
How do I add and switch accounts?
Inside the app you add a new account via OAuth (BigModel or z.ai entry points) without disturbing the currently logged-in account, then switch between saved accounts with one click; switching snapshots the credentials and config files and swaps them atomically.
Do I need existing BigModel or z.ai accounts?
Yes, this tool only manages switching between accounts you already have; you log into each one through the app's built-in OAuth flow for BigModel or z.ai.
Is support equally solid on Windows and macOS?
The app is built Windows-first, with path detection, process management, and tray behavior all using Win32 semantics; on macOS, the embedded login/captcha WebView may trigger harmless microphone, accessibility, or screen-recording permission prompts that you can simply deny.
What's inside a .zsb backup file?
.zsb is an encrypted account bundle protected with PBKDF2-HMAC-SHA256 (100k iterations) and AES-256-GCM with random salt/nonce, so a wrong password simply fails to decrypt, leaving no plaintext trace.
How does the quota display work?
Each saved account row shows its plan quota and reset time inline, with multiple plans grouped and polled on a staggered schedule to avoid rate limits.
Can I run exports/imports without typing a password on screen?
Yes, the CLI accepts the password via the ZSWPASSWORD environment variable so it never shows up in the process list or shell history, or you can pass --password directly.
What does 'claiming activities' mean in this app?
For plans with claimable promotions, you can one-click claim them (with GUI captcha verification) or use a 'refresh eligibility' button to manually re-check each account's claim eligibility under a rate-limited cooldown.
What are similar projects?
floral-notepaper, cockpit-tools, workbuddy-switch, dsh_desktop, quickscan, nofwl, openframe-saas-desktop, KillerPDF
Which topics is it in?
account-manager, tray, tauri, oauth, windows-app, i18n, encryption, local-first, rust, productivity, gui, privacy
