中文 | English
A whale girl lounging on your desktop — one click tells you how much DeepSeek balance is left, whether it's peak hours right now, and how much longer your ChatGPT / Codex quota will last.
No switching to a browser, no opening a console — she just sits on your desktop: transparent, borderless, always on top, never in the way.
The app's own UI — menus, settings, bubbles — ships in Chinese in 0.1.1. Every label below is given as the English meaning plus the literal Chinese string in parentheses, so you can match it on screen.
| Feature | What it does | |
|---|---|---|
| 💰 | DeepSeek balance | Current balance and currency, plus a locally accumulated "used today" |
| 🕐 | DeepSeek peak / off-peak | Whether it's peak or off-peak right now, the wall-clock time, and how long until the next switch |
| 🤖 | ChatGPT / Codex quota | Remaining share of the short window (5 hours) and the long window (weekly), plus the expected reset time |
| 🐳 | Desktop-pet duties | Transparent, borderless, no taskbar icon, always on top, draggable, remembers where it was |
| 📌 | Right-edge snapping | Drag near the right side of the screen and it snaps into place (can be turned off) |
| 🔔 | Lives in the system tray | One click to hide / show; polling stops while hidden, so nothing runs behind your back |
| 🔒 | Keys never leave the main process | The DeepSeek API key is stored in Windows Credential Manager; the UI layer can't read it back |
Idle: the default state — just the character, no speech bubble.
Three info blocks in a loop: the first click enters the first enabled info mode (balance by default). Every click after that steps through peak/off-peak → Codex quota → back to balance. It never falls back to idle on its own.
To get back to idle: right-click → Hide bubble (隐藏气泡).
Hold the character and drag it anywhere; let go and the position is remembered, so it's still there next launch.
Drop it within about 72 logical pixels of the right side of the screen and it snaps to the right edge (snapping only applies horizontally — vertically it stays wherever you put it). Don't want it? Right-click and uncheck Snap near the right edge of the screen (靠近屏幕右侧时吸附).
Dragging and clicking are told apart by distance: only a press-to-release that moves 4px or less counts as a click.
Right-click on the character:
| Menu item | What it does |
|---|---|
| 🔄 Refresh data (刷新数据) | Re-fetch balance / peak-off-peak / quota right away |
| 💬 Show bubble / Hide bubble (显示气泡 / 隐藏气泡) | Only appears while a bubble is showing; hiding it returns to idle |
| ⚙️ Settings (设置) | Opens the settings panel |
| 📌 Always on top (窗口置顶) | Checkbox — toggle whether the window stays on top |
| 🧲 Snap near the right edge of the screen (靠近屏幕右侧时吸附) | Checkbox — toggle right-edge snapping |
| 📥 Hide to tray (隐藏到托盘) | Tucks it away from the desktop, leaving only the tray icon |
| ❌ Quit (退出) | Really quits (and shuts down the tray) |
Right-click the tray icon:
| Menu item | What it does |
|---|---|
| Show / Hide (显示 / 隐藏) | Flip between the desktop and the tray |
| Refresh data (刷新数据) | Re-fetch the data |
| Settings (设置) | Opens the settings panel |
| Quit (退出) | Quits the app |
While hidden to the tray it does not keep polling quota (no network traffic, no child processes) — it fetches once more when you show it again.
Open it with right-click → Settings (设置), or tray → Settings (设置).
The panel has four blocks: DeepSeek, ChatGPT / Codex quota (ChatGPT / Codex 额度), Window (窗口), and Time & timezone (时间与时区). Click Save (保存) in the bottom-right corner to apply your changes.
The panel itself is a fixed-size board that picks its own position: it prefers to appear to the left of the character, top edges aligned. If that would push it off-screen (say the character is in the bottom-right corner), it slides up as a whole until it's fully visible — it won't squash the panel to fit and it won't move the character.
| Setting | What it does |
|---|---|
| Always on top (窗口置顶) | Turn it off and other windows can cover the character |
| Launch at login (开机自启动) | Start with Windows. When enabled it appears in the bottom-right corner by default, and you can still drag it anywhere afterwards |
| Scale (缩放) | 30% – 100%, previewed live as you drag, only remembered when you click Save |
| Display duration (seconds) (显示时长(秒)) | If you don't click the character again within this time, the bubble tucks itself away and comes back as it was on the next click. Leave it empty or set 0 to keep it up forever |
| Display timezone (显示时区) | Follow system (跟随系统) or a fixed UTC±HH:MM — this only affects display (see below) |
While the settings panel is open the character isn't clickable; drag the window by holding the title bar at the top of the panel.
Regions with daylight saving only track it if you pick "Follow system" — a fixed offset stays put all year.
- Go to platform.deepseek.com and sign up / log in
- Open the API Keys page
- Click Create new secret key and copy the
sk-…string
⚠️ The key is shown only once, at creation. Close that page and it's gone — if you didn't save it, you'll have to create another one.
Right-click → Settings (设置) → DeepSeek:
- Paste the key into the API Key field
- Click Save key (保存密钥) — the key goes into Windows Credential Manager, never into a plaintext file
- Click Test connection (测试连接) to verify
If it shows "当前状态:已配置(sk-…abcd)" ("Status: configured"), you're set — only a masked form is displayed, and the app itself can't read the original back either.
To swap keys, just fill it in again to overwrite; click Clear (清除) to delete it outright. Don't want DeepSeek at all? Uncheck Enable (启用) — it stops calling the balance API, and balance and peak/off-peak disappear from the bubble.
DeepSeek bills less during off-peak hours, so knowing "is it expensive right now?" is genuinely useful:
| Window | Rule |
|---|---|
| 🔴 Peak | Weekdays 09:00–12:00 and 14:00–18:00 |
| 🟢 Off-peak | Everything outside those windows |
| 🟢 Weekends | From 2026-08-23, all of Saturday and Sunday are off-peak |
Two things worth knowing:
- The decision is always made in Beijing time (UTC+8), wherever you happen to live — DeepSeek's discount windows are defined in Chinese time.
- The Display timezone setting only changes the wall clock shown to you. The same absolute moment — say, the start of the midday off-peak — reads
12:00in Beijing time and09:30underUTC+05:30. Same instant, different phrasing.
DeepSeek has no public usage API (the usage figures in the web console come from a private endpoint that needs a logged-in session), so this number is accumulated locally, from the drop in your balance:
- It only counts the time the app was running — money spent while it's closed isn't included
- That's why the panel notes "observed since X" (自 X 起观测), marking when the tally started
- Don't compare it against the console's calendar-day totals — they're measured differently 🙂
Days roll over according to the display timezone you picked; changing the timezone won't zero out today's tally, it just measures it with a different ruler.
The app doesn't log in for you and never touches your credentials — all it does is ask the official Codex one question: "how much quota is left?". So the prerequisite is:
Codex is installed on this machine, and you've logged into a ChatGPT account at least once.
Either installation works:
- Codex desktop app (recommended on Windows) — install it from the official page and sign in once
- Codex CLI —
npm i -g @openai/codex, then runcodexonce to complete the login
Right-click → Settings (设置) → ChatGPT / Codex quota (ChatGPT / Codex 额度). First make sure Enable (启用) is checked in the top-right corner (unchecked, the app won't launch codex.exe at all and the Codex row disappears from the bubble), then pick one under Data source (数据源):
| Data source | What it actually does | When to use it |
|---|---|---|
| 🟢 Automatic (自动, default) | Tries the Codex App Server first; falls back to the manual time you filled in below | The everyday choice |
| 🔵 Codex App Server | Only queries through the official Codex process; if that fails it errors / shows cache and does not fall back to manual | When you want to confirm the Codex path really works |
| ⚪ Browser bridge (浏览器桥接) | Not implemented yet — currently behaves exactly like "Automatic" | Don't pick it yet |
| 🟡 Manual configuration (手动配置) | Launches no child process at all; just counts down to the time + interval you entered | No Codex installed, not logged in, or a corporate network that forbids child processes |
The short version:
- Codex works for you → pick "Automatic", leave the path empty, click "Test Codex" once, done.
- Codex doesn't work for you (not installed / no account / locked down) → pick "Manual configuration" and enter your own reset time. Everything else still works; the numbers are just yours to keep track of.
How "Automatic" falls back: Codex query fails → use the manual time you entered → no manual time either → show the cache marked "stale" if there is one → only then an error.
In one line: the app doesn't query the quota itself — it asks the official codex to look it up, and only reads the answer.
codex.exe app-server --stdio -c analytics.enabled=false
→ initialize → initialized → account/rateLimits/read
→ keep only "remaining share + reset time + window length" → kill the process immediately
Login state, token refresh, network retries and risk control all stay inside the official process; DSniang never touches any credential from start to finish, and leaves no lingering codex.exe in Task Manager.
Because the official Codex installer does not put the CLI on PATH.
The desktop app drops the executable in a hashed directory, and the hash changes on every upgrade:
%LOCALAPPDATA%\OpenAI\Codex\bin\<hash>\codex.exe
So you can't type codex in a terminal, and the app looking for codex directly is bound to fail too. DSniang finds the newest exe itself, by modification time, so in the overwhelming majority of cases you don't have to do anything.
If it genuinely can't find it, enter the full path in the settings. Use this to locate it:
Get-ChildItem "$env:LOCALAPPDATA\OpenAI\Codex\bin" -Recurse -Filter codex.exe |
Sort-Object LastWriteTime -Descending | Select-Object -First 1 FullNameClick the Test Codex (测试 Codex) button — it saves the current form before testing, so testing right after editing the path without saving works too. Success looks like this:
查询成功:短窗口(5h)剩余 0%,长窗口(168h)剩余 53%
使用:C:\Users\<you>\AppData\Local\OpenAI\Codex\bin\7ac07f4ce733f89a\codex.exe
("Query succeeded: short window (5h) 0% left, long window (168h) 53% left" / "Using: ")
The path on the second line is the key diagnostic — it tells you which codex actually ran. If it reads "PATH 中的 codex" ("codex from PATH"), none of the auto-detected candidate paths existed.
No Codex needed — just two fields:
| Field | Notes |
|---|---|
| Next reset time (下一次刷新时间) | Pick a moment with the date-time picker |
| Refresh interval (刷新周期) | 3 hours / 5 hours / 24 hours / 7 days |
A time already in the past is fine — it rolls forward by the interval to the next future moment, so you don't have to keep editing it.
Codex
5h 窗口 剩余 0%
周额度 剩余 53%
预计 22:59 刷新 · 还有 2 小时 51 分
(Reads as: 5h window 0% left / weekly quota 53% left / expected reset at 22:59 · 2h 51m to go. The bubble text is Chinese in this version — the glosses aren't part of the UI.)
The title "Codex" is the Quota name (额度名称) in the settings; rename it to GPT-5, ChatGPT, whatever you like.
| Message | Cause | What to do |
|---|---|---|
无法启动 Codex,请确认已安装并登录 ("Can't start Codex — make sure it's installed and logged in") |
Detection found no exe, or found one that won't start | Check the second line of "Test Codex"; if it says "codex from PATH", enter the full path by hand. Otherwise it's most likely a missing login, or security software blocking the child process |
未登录 ChatGPT/Codex ("Not logged into ChatGPT/Codex") |
Codex is installed but not signed in | Open the Codex desktop app and log in once. DSniang won't log in for you and doesn't read .codex/auth.json |
额度数据格式异常 ("Unexpected quota data format") |
It connected, but the response shape isn't what was expected (the official protocol may have changed) | Usually a version-compatibility issue — report it to the developer |
额度读取超时 ("Quota read timed out") |
No response within 20 seconds | Network trouble, or codex doing a self-check on first launch. One retry usually fixes it |
已连上,但没有读到任何额度窗口 ("Connected, but no quota window was recognized") |
The response arrived, but the window lengths aren't in the recognized range | Your plan may be unusual — switch to Manual configuration |
还没设置刷新时间 ("No reset time set yet") |
In "Automatic" mode, Codex is unavailable and no manual time was entered | Install Codex, or fill in a manual time |
For the internals (protocol, fields, caching strategy) see docs/codex-quota-guide.md.
Things this whale deliberately does not do:
- ❌ Doesn't read
.codex/auth.json— it only looks for the executable, never the credentials - ❌ Doesn't scrape the ChatGPT web page, read browser cookies, or touch private browser data
- ❌ Doesn't store raw responses, tokens, cookies or account identity — only "remaining share + reset time + window length"
- ❌ Never prints any key to a log; error logs record only the type, status code and timestamp
- ❌ Never writes the API key into the front end's
localStorage; the UI layer only ever sees a masked form
The DeepSeek API key lives only in Windows Credential Manager. If the system credential store is unavailable, saving fails outright and tells you so — it will not quietly degrade to a plaintext file. (A plaintext secret.json left behind by older versions is migrated read-only; new versions never create one.)
%APPDATA%\com.dsniang.desktop\
├── settings.json window position, scale, timezone, data source settings…
└── usage-ledger.json the local ledger behind "used today"
Deleting those two files restores the default settings — but the API key isn't in there; to remove it, click "Clear" in the settings panel.
Q: I clicked and nothing happened. Check whether the settings panel is open (the character isn't clickable then), or whether it's hidden in the tray.
Q: The bubble won't tuck itself away.
If Display duration is empty or 0, it stays up permanently. That's a different thing from the right-click menu's "Hide bubble", and neither affects the other.
Q: It sticks to the right side of the screen when I drag it there. That's right-edge snapping (靠近屏幕右侧时吸附) — uncheck it in the right-click menu. It only snaps horizontally; vertically it stays where you put it.
Q: I changed the scale and the character seemed to shift. At a larger scale the character is taller, and the window gets pulled back inside the work area so the character can't end up off-screen. Scaling back down restores it.
Q: Where does it appear after launching at login? The bottom-right corner by default, and from then on it remembers wherever you drag it.
Q: Why is "used today" lower than the console shows? It only counts the balance drop while the app is running; time with the app closed isn't included. See About "used today" above.
Q: Can I run it on Mac / Linux? 0.1.1 is Windows-only (the window shape depends on Win32 APIs).
Stack: Tauri v2 + Rust + React 18 + Vite + TypeScript.
npm ci
npm run tauri:dev # dev mode
npm run tauri:build # build the Windows installer (NSIS)Checks to run before committing:
npm run test:guards # source-level regression guards
npm run build # type check + front-end build
cargo test --manifest-path src-tauri/Cargo.toml --all-targetsEnvironment requirements, code conventions and PR notes are in CONTRIBUTING.md; design and architecture are in docs/DSniang-desktop-design.md.

